From nobody Tue Sep 27 22:27:10 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4McZ4P0hTBz4d5T8 for ; Tue, 27 Sep 2022 22:27:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4McZ4N0fRyz4QR8 for ; Tue, 27 Sep 2022 22:27:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664317633; bh=4fGdf403mGGoZ8OmXcvjS7yBgcjv+S3i01Mk5iTbCZA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=aT6EQd43PntGXMR/4pgJyZroPwajP+xVgU2XHgiSpsBtIWtWfIhLidchlCcItA0OhETx5LCADI33MRyrP0514XjuCWu4cSPJFEISkhhqwCXcj71hVsj5jcxpM3JdyIu/obZmDP/b9AmHfEsdP8scgCXc1xxQpkoWdaa/sA0ffXQaFjoeLDz68FiNbvVHkkG8DhWwEwPqX7hwORrX5CqCZYJm+pjCqqViVOgvT8h+08wy069G8RcUpUTCHcglPxKuE7pBdKs4QiDgsHcrKYgHKfp8Hvf63UzHwxkhm59Yg3srmCVhj+/iyEOs4hN4h3hBEboopj6qTIdVnxLMsASf5Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664317633; bh=3Y5zNyexItaFVKw+LYUaeRRCbzsBafrGAnOcVv+eVTf=; h=X-Sonic-M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nUfwqLLQC0w9Sb02PcLDg.9w UNRT3I3DCBdZpt.c08yJjo9lIN1RVlsmmyFY5eItbfcfTPlPkr3KKwX8HQkfaKRpLn99ZUVvQ0t4 ocL1oL3eOQQDgajrMzVUIBKYgB1nsC0l045YvXMvT2pqzK6deaaZgof4WGpYKZwfFOkfIAHdxVGH Rgke23b9s_Q.EFCRCTPvlBs9ZbZq4BCs.ww9MF5dCe1f6r65rZ_WiAqrI7ANiFLooAdJ4YanTXUG 4oWNUYzgzyz_uId8WszglrfbcFHpC3x.iUlWLXCZqfLQNrPWSMb1uHgLaNQue0sExZqOXC_5XA65 BkiU91IWD3nA3oh.LrCO8LykUg.hkC3b9PIOFfPlSlRV.EdIAzYPMmXLikdQiLq2OxKOCykfF3E7 c7gd94xFXlOjrHn6L6gt8QuD2yTyxugGThMUJmu.WbsAj10ABa22CsZMclPa84vuQu0u1.1lPmgW OugIQ6L7Zkd9Q4gHwPyPGKywxQs2EgvNm2GDxxTUFx0gV.fpiCGX3qB61Gxvv46XB1p.TeKp4dQU wcni7odc- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Tue, 27 Sep 2022 22:27:13 +0000 Received: by hermes--production-ne1-6dd4f99767-h2xxw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5dd6d662883df3403de580fd96c614dc; Tue, 27 Sep 2022 22:27:11 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it From: Mark Millard In-Reply-To: <81C8A094-8492-41DC-A74E-486A9225A2A3@googlemail.com> Date: Tue, 27 Sep 2022 15:27:10 -0700 Cc: bob prohaska , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <760FE9D5-7A1D-40C2-B4CC-E90B300F5B3B@yahoo.com> References: <20220921154240.GA37735@www.zefox.net> <8CC2A42B-21AC-44C6-BD02-44D320CADF63@yahoo.com> <20220921175026.GA45144@www.zefox.net> <5DB9C93B-B9E1-418D-ABA3-8A0CFCE85C0F@yahoo.com> <3781CF46-C4F7-4579-8655-B7558B724C0A@yahoo.com> <20220922014500.GA46697@www.zefox.net> <20220925160531.GA63213@www.zefox.net> <20220925193415.GA63733@www.zefox.net> <3D6CF13E-261D-41D2-AC5B-923C0BF54087@yahoo.com> <20220927160328.GA71742@www.zefox.net> <67C09E9F-AD1D-4D0D-9E6F-9C1B046D8952@googlemail.com> <4154AFCB-7428-4005-843A-4EF8C0EBCCB8@googlemail.com> <9A3609DF-D873-4712-A61D-C351C162EF2A@googlemail.com> <61CFA9D4-8DFD-41C5-A2B4-E5B3CD78C327@yahoo.com> <650FD030-783D-46C4-8CC9-50D608569898@yahoo.com> <81C8A094-8492-41DC-A74E-486A9225A2A3@googlemail.com> To: =?utf-8?Q?Klaus_K=C3=BCchemann?= X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4McZ4N0fRyz4QR8 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=aT6EQd43; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.99)[-0.991]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.147:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[googlemail.com]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.66.147:from] X-ThisMailContainsUnwantedMimeParts: N On 2022-Sep-27, at 14:20, Klaus K=C3=BCchemann = wrote: >=20 >> Am 27.09.2022 um 22:36 schrieb Mark Millard : >>=20 >> =E2=80=A6..So, for the vintage of U-Boot source that the u-boot ports = are >> based on, DEBUG would need to be separately defined=E2=80=A6. >=20 > If you mean the freebsd u-boot port, I would suggest to completely = ignore older versions/vintages . > afaik Fbsd will not accept any device specific patch which didn=E2=80=99= t made it (u-boot-) upstream. > And u-boot also won=E2=80=99t accept such patches if not extensively = validated. > So you can use the port to compile but I suggest to use the master = stream of u-boot as source > ( I think that's what you had in mind anyway) sysutils/u-boot-* are based on: /usr/ports/sysutils/u-boot-master/Makefile:UBOOT_VERSION?=3D = 2022.04 I expect that Bob is working with that version for problem identification (which need not be of a U-Boot issue). Changes to U-Boot to improve things would be a separate issue --if such changes are even possible. (Bob is not that far along.) My note was based on having LOG_DEBUG and DEBUG defined in a way that works for 2022.04 and after without having to worry about the status of the change in log.h . >> Am 27.09.2022 um 22:36 schrieb Mark Millard : >>=20 >>=20 >> So it may be best to always #define LOG_DEBUG in whatever >> *.c file(s) before the line with: #include >=20 > Although that seems a bit unusual maybe u-boot planned it that way( = placing the #define in line 1 of the files),I haven't investigated that = yet =E2=80=A6 > I would begin with a simple #define DEBUG in common/usb.c and then = look what happens=E2=80=A6 > and then I would continue with the other files you suggested if = there=E2=80=99s no relevant output from usb.c debug=E2=80=A6 > using the master stream of u-boot=E2=80=A6 Until the following are changed to have appropriate values at the overall configuration level, it does not appear that LOG_DEBUG and/or DEBUG will do anything: QUOTE The following options are used to enable logging at compile time: CONFIG_LOG - Enables the logging system CONFIG_LOG_MAX_LEVEL - Max log level to build (anything higher is compiled out) CONFIG_LOG_CONSOLE - Enable writing log records to the console END QUOTE I expect that means having them set appropriately in rpi_arm64_defconfig for the experiments. =3D=3D=3D Mark Millard marklmi at yahoo.com