From nobody Wed Sep 28 17:57:41 2022 X-Original-To: freebsd-uboot@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 4Md4332kf2z4ctdx for ; Wed, 28 Sep 2022 17:57:51 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (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 4Md4310qNYz3wb4 for ; Wed, 28 Sep 2022 17:57:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664387867; bh=CmkL4pYRzbihovovf5qISG+CkjQJcz8Z3RK8r1J7Jy8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=DRvY+DaN4pqjnZtJXJycKSzykflEVBo0rQgPyHG3sa6+01GTJqYJbhX4/72D98BYGwk8fHhUam+kqcti5xbRDbzT5pewOgBnBBaEAyUD2ljhtOftz0oetQlZ3p+NzvZEB7jkUslFikwH/zSmQSQ6CZWf7FK9swPP12cdu27xLBu+4N2mzm+c+sJmFfvsiyyAiquUNcbv7Wm8TKWLMeZ1wQ/Yl/NtYpjUegMKDA/KpUfh5vTC2WycrerZYIC37He0FCNtGeBFIsSaFhq/0it8FH3irhq0ewrIAuhXfjT8YfC366fX/k6rZqmn9brIX6lT0u/5lutLiHuG1atAheyCGA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664387867; bh=IMZP5QNVGyT56Eppxox0p9/gKiGudg5I44QZSTP8Bpe=; h=X-Sonic-MF:Sub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kVY6Ivj4QMHKFbFAN8R8jrQfNR7uzvDPYWGuKQ1FvwzEjSkXhVxrZDKA0CQr_.kd LPBqGjx3qE42smu92_.eEc6Qsjxc_Fo_INABoRNlPzMIm3.9I31PFo4oyijQVm.fveHmlZhX4WEj EX2eznfCWbknEZssh5fhZsNHI2i1vGqxex.76Ep_w9C2R1Khfnb534je3TTTQCGS2awFXd9ieoIZ PLZSlHa7Xd4quKV39NBsxTvymGGQUMFu2K3ffFPytANPQ1hd1OturusLTKUcGUP3GxqFWfvqtU3I 0H.m9LeEQ05qcbW4Mk0CGgT8wq3Fz8NmlK4n6JXRBeuI7xs9K5PLUH8F4I4u_m0EsiKHGTI.gJ_X SxiSYgmeEgVzfRLtnqpEyrpZP0KgKXN0WxpKRLIKJtI6sWzge4YzESH.MtcAsjPu6ig1P5gTK5bW wnF3DI1aJpVbT767_Yg0l7OxyYQRLYdXGOp1il0vDtgS9.knEEVa4qakYBIFwD9mlHgtKN.Z04pb 7FeXLJA_sSfjuDTCr.7Su2Q9lG9w2G16otB7HcFXHPTb6eEoDW4PbfEsBNHnaxIVZKzH9RoahDVE ejKqVkcO.IfDMFoGDG8s11vM43kI10jbiWHKBXFvIb1a29UHz7s2P8Yo1Gpq7U2kOXSQkhPCnbF. AFNY- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Wed, 28 Sep 2022 17:57:47 +0000 Received: by hermes--production-gq1-7dfd88c84d-mvm5c (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f9a274347cdf9d0550fec6fe81a5027c; Wed, 28 Sep 2022 17:57:42 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-uboot List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-uboot@freebsd.org X-BeenThere: freebsd-uboot@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: <20220928172839.GA75564@www.zefox.net> Date: Wed, 28 Sep 2022 10:57:41 -0700 Cc: freebsd-arm , freebsd-uboot@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <62A7FD9D-DFAD-46B2-8681-F6EF0E5AC0DE@yahoo.com> References: <650FD030-783D-46C4-8CC9-50D608569898@yahoo.com> <81C8A094-8492-41DC-A74E-486A9225A2A3@googlemail.com> <760FE9D5-7A1D-40C2-B4CC-E90B300F5B3B@yahoo.com> <20220927232930.GC72077@www.zefox.net> <9F57D5D0-F715-4DD2-A05C-FB2B9E8B5C30@yahoo.com> <20220928015721.GA73356@www.zefox.net> <20220928045145.GB73356@www.zefox.net> <81F58716-72CE-45E8-951A-B7B92AD0FE95@yahoo.com> <20220928172839.GA75564@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4Md4310qNYz3wb4 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=DRvY+DaN; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.47 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.972]; 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)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; 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]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.148:from]; 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:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-uboot@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Sep-28, at 10:28, bob prohaska wrote: > [removed Klaus from cc, added freebsd-uboot@freebsd.org]=20 > On Tue, Sep 27, 2022 at 10:45:36PM -0700, Mark Millard wrote: >>=20 >> There are almost 2 hours between 20:04:31 -0700 >> and the 21:51 when your Email arrived. >>=20 >=20 > The delay between compile and email seems ok.=20 >=20 >> None of the output that I reported as showing up >> shows in your report. YOu can look at: >>=20 >> = https://lists.freebsd.org/archives/freebsd-arm/2022-September/001804.html >>=20 >> to see the U-Boot output that I got (via use in >> an RPi4B). >>=20 >> Are you sure that the u-boot.bin on the msdosfs >> has the new content? >>=20 >=20 > I'm still doing something wrong, but haven't found it yet.=20 If the patch files are in place for what poudriere uses for /usr/ports/sysutils/u-boot-rpi-arm64/ , poudriere based port building should then work. Is there a log file of the port build output that you could post? For manual make activity one can use something like the script command to also have the output sent out to a log file. > After cleaninug up old files and re-running make and make=20 > install, find locates: The output during the make would be a good cross check on what is in the build and if the patches are being applied to a fresh extraction of the source code. > root@pelorus:~ # sum /boot/msdos/u-boot.bin > 4933 570 /boot/msdos/u-boot.bin Those 570's indicate the smaller file size. The larger size from being a debug build is likely to be more like 587. (Your and my checksums would be unlikely to match due to details of build environment differences that control some aspects of code generation. But the sizes should be similar.) The sum output, of itself, does not show file timestamps and more detailed size figures that would also be evidence. > root@pelorus:~ # sum = /usr/local/share/u-boot/u-boot-rpi-arm64/u-boot.bin > 4933 570 /usr/local/share/u-boot/u-boot-rpi-arm64/u-boot.bin >=20 > root@pelorus:~ # sum = /usr/ports/sysutils/u-boot-rpi-arm64/work/u-boot-2022.04/u-boot.bin > 4933 570 = /usr/ports/sysutils/u-boot-rpi-arm64/work/u-boot-2022.04/u-boot.bin >=20 > root@pelorus:~ # sum = /usr/ports/sysutils/u-boot-rpi-arm64/work/stage/usr/local/share/u-boot/u-b= oot-rpi-arm64/u-boot.bin > 4933 570 = /usr/ports/sysutils/u-boot-rpi-arm64/work/stage/usr/local/share/u-boot/u-b= oot-rpi-arm64/u-boot.bin >=20 > At the same time: > root@pelorus:~ # ls /usr/ports/sysutils/u-boot-rpi-arm64/files > patch-common_usb.c patch-common_usb__storage.c = patch-lib_efi__loader_efi__console.c > patch-common_usb__hub.c patch-include_configs_rpi.h = rpi_arm64_fragment Did the build sequence re-extract the source code and apply all the patch files to the result? > There' still no additional output from u-boot, As expected, given the u-boot.bin is too small to be a debug build. Until you produce the bigger variant of the file, there will be no debug or other logging. Probably no reason to even copy over the smaller file variants to the boot media. > although with enough > re-trying the machine still boots:=20 >=20 > U-Boot 2022.04 (Sep 28 2022 - 09:02:56 -0700) >=20 > DRAM: 948 MiB > RPI 3 Model B (0xa02082) > Core: 69 devices, 10 uclasses, devicetree: board > MMC: mmc@7e300000: 2 > Loading Environment from FAT... In: serial > Out: vidconsole > Err: vidconsole > Net: No ethernet found. > starting USB... > Bus usb@7e980000: USB DWC2 > scanning bus usb@7e980000 for devices... 6 USB Device(s) found > scanning usb for storage devices... 1 Storage Device(s) found > Hit any key to stop autoboot: 0=20 > MMC Device 0 not found > no mmc device at slot 0 > MMC Device 1 not found > no mmc device at slot 1 > Card did not respond to voltage select! : -110 >=20 > Device 0: Vendor: SABRENT Rev: 1214 Prod:=20 > Type: Hard Disk > Capacity: 953869.7 MB =3D 931.5 GB (1953525168 x 512) > [normal boot follows] >=20 > A file copying error on my part seems most likely. I'll try again > this afternoon. =3D=3D=3D Mark Millard marklmi at yahoo.com