From nobody Wed Sep 28 05:45:36 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 4MclpJ1QrPz4cj1k for ; Wed, 28 Sep 2022 05:45:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-21.consmr.mail.gq1.yahoo.com (sonic314-21.consmr.mail.gq1.yahoo.com [98.137.69.84]) (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 4MclpG59rBz3qs4 for ; Wed, 28 Sep 2022 05:45:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664343940; bh=GBpYMA0N/Xg8ZoKHH+PFmkhFeYfh3O0bvuUt/YXbPUA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=jSeOpds+07lZbuC5pXbT5qeX97WNzk8YUC7uyIFgbEklgyQk/22EjQPhvprUXQcl7PIzQJGdg5EsOK7ayExYIHTmHHlATwDjcJ4PnQ+jD6h3RRB8LBI67pSYYQMHU10xDan8G/T6SZ1LQM475TqYs6X3oNafBnUymyrDK/u7ZyjIl6z8CxwrdKoz90qyp3KepT5tkZHrAWo+aCI/MAbZhPI6sCvpbaH9R7ko1juCC8gPQHbOECOmnlH7m9n56h13YNQy8qX7E8gFADDPXPTKfDRjgqbyjVlkUKlvUNE744PjjYDC49cV7qBf5bwHjm6E2Oxtwy/MYMSZqUp+itWoyw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664343940; bh=ssy/IIN/OH4Enj+ErJRXVO+EKDK90wPptmlWTXmx+F3=; h=X-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SecXuJaMEuY87jieP WZdypifMge4NQk_EefTg0b8Nin6y2E7ul7DICoGCcYvr.FW74UtOYa8zggGDbF_8uSsXgOPVQJQU 9x9APMspDUaqbDYkjl2cSEzAl_lxvOWG9CXnEIREoXxRvDQdiOy5XankS74i.u7x.FKfNHQcqNgw DSWFqYEmXNjx8OVqb54Ah67e0CfgDms1issKYTZy.PvUDmBVMraebho8ijq4CpAncb9PjrrmpltP W9IzvmmXXOI6sxlvI16bngZ2Fm0m5fxDwaq7HrjDQabv5XMWXwrI3h.h3JQdT0XqwYHYfEBGU0Oo 45Uh2szj7oNSq310ENsF1tNOklxuACfwPvHUH.TesAbCgu7x.TWm_M_fTCVFDUd9T5.b23bKWFmv QZ_WFzOXr.vteGMlgfjCqh8HArIuVXg3nJ4t2FfEj6fgzhhSj9Wm8Yy3dGbvmsR3Y4W8KWfE0hzj z4zwDOSaNoVs.gN8yiiAYRiDYEK_QUKun64Lg0XvtTArWWqZ8pSji7m6dX7df.e8PPr0wh3fXK37 SdK9zT33sOjE- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Wed, 28 Sep 2022 05:45:40 +0000 Received: by hermes--production-ne1-6dd4f99767-hqzzl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c282ad7f9489dd1a9b80af8dbb7f2742; Wed, 28 Sep 2022 05:45:38 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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: <20220928045145.GB73356@www.zefox.net> Date: Tue, 27 Sep 2022 22:45:36 -0700 Cc: Klaus K??chemann , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <81F58716-72CE-45E8-951A-B7B92AD0FE95@yahoo.com> References: <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> <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> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MclpG59rBz3qs4 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=jSeOpds+; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.84 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.997]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.84:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.84:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[googlemail.com,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Sep-27, at 21:51, bob prohaska wrote: > On Tue, Sep 27, 2022 at 07:25:09PM -0700, Mark Millard wrote: >>=20 >> Beyond enable_uart=3D1 there is, quoting from: > [snip]=20 >> "uart_2ndstage=3D1"=20 > Also added to config.txt >=20 >>=20 >> For the current purposes, dtdebug=3D1 probably does >> not provide anything of interest. But it is >> available to enable as well. >=20 > Added to config.txt as well.=20 >=20 > In general there isn't much additional output from u-boot.=20 > On a successful try I see what begins as (I think) bootcode.bin = output: > ..... > MESS:00:00:24.909927:0: Device tree loaded to 0x4000 (size 0x7374) > MESS:00:00:24.918100:0: uart: Set PL011 baud rate to 103448.300000 Hz > MESS:00:00:24.924351:0: uart: Baud rate change done... > MESS:00:00:24.927765:0: uart: Baud rate change done... >=20 > Next u-boot takes over >=20 > U-Boot 2022.04 (Sep 27 2022 - 20:04:31 -0700) There are almost 2 hours between 20:04:31 -0700 and the 21:51 when your Email arrived. None of the output that I reported as showing up shows in your report. YOu can look at: = https://lists.freebsd.org/archives/freebsd-arm/2022-September/001804.html to see the U-Boot output that I got (via use in an RPi4B). Are you sure that the u-boot.bin on the msdosfs has the new content? > 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) > ... is now current device > Scanning usb 0:1... > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > Card did not respond to voltage select! : -110 > Scanning disk mmc@7e300000.blk... > Disk mmc@7e300000.blk not ready > Scanning disk usb_mass_storage.lun0... > Found 3 disks > Missing RNG device for EFI_RNG_PROTOCOL > No EFI system partition > BootOrder not defined > EFI boot manager: Cannot load any image > Found EFI removable media binary efi/boot/bootaa64.efi > 1262604 bytes read in 38 ms (31.7 MiB/s) > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > Booting /efi\boot\bootaa64.efi >=20 > But, that's it. Is that what one would expect?=20 No. > Failed attempts are more terse: >=20 > U-Boot 2022.04 (Sep 27 2022 - 20:04:31 -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... 0 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: unknown device > Waiting for Ethernet connection... done.=20 >=20 > I imagined u-boot would be more talkative, > similar to the MESS..... output from bootcode.bin Look at: = https://lists.freebsd.org/archives/freebsd-arm/2022-September/001804.html for some of what to expect. > The output from make reports > =3D=3D=3D> Applying extra patch patches for = u-boot-rpi-arm64-2022.04_1 from = /usr/ports/sysutils/u-boot-rpi-arm64/files/ > No such line 209 in input file, ignoring That is the same 209 reference from patch-include_configs_rpi.h use that we exchanged about before. patch deals with finding the match at the new line number (that as sufficiently close to the original line number): there is no line 209 or 210 and the matching text is at a smaller line number. > Strangely, it doesn't report which patch didn't work. > The directory contains > 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 >=20 > No idea whether it matters.=20 >=20 By itself, it is just an informational message and is expected. =3D=3D=3D Mark Millard marklmi at yahoo.com