From nobody Tue Oct 04 20:59:06 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 4MhqnZ1290z4dhZT for ; Tue, 4 Oct 2022 20:59:14 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-20.consmr.mail.gq1.yahoo.com (sonic306-20.consmr.mail.gq1.yahoo.com [98.137.68.83]) (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 4MhqnY1Kkkz3G4r for ; Tue, 4 Oct 2022 20:59:12 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664917151; bh=xWHqxViBj7l+GOyIYZWPZ0qqT9cif7pZvpHTJ/ftwPE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ECQ8XK3QtgbQvAiGup8GzTArBONuvzvQGNuUUxTYiybL5fO646CRcDUVITwnZs1QfgYOFeH6tsvJ+tXpsuow8xo6cQ6/s8Db3syUKv41K/kQUAnfp3fm5vAZX3WdKXRxhgETLWPiTtspXWaDww9nGxVLURSh7RBUJlAr7W6Pi6Q6nwp9iaI1/gnOHS3XQsZC03HdCH6gtEDzcjQY2sGpHXXWE6X+28/+hJZNwouJVjsj7VSreEmcqEf+fiWQt6K9fEDD0Y7Wr1vF28Mt+sP4qbckV6i8qufHUTMI85HW20K4BlbSIHmFTNzJiFPhEvaZS1NWP7V2pD2uXMqED3nXCg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664917151; bh=JPCeXfeCZE3B/ZQ4mLvdNZ+uG5/34YDqv/5JvsfdT64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ngeQzarTU7HcPdkAXz05M7YfAi.De.ZLKt1IzjvkRb6nA8blKR9nKfpCOiC CjJ4q9oER7Ik6repEefI8ANxETya0KT8bff0D4lQ95UrNii.jA1L3yiPk5PIv0SZ.EXhSXqygXHs ivwZ_V3SyxQeQpOG4UFfb5EF_qx68_bQVk_sb173LY6z_TWmrtS4Eo.khKuZteIXkosIDK66oX13 WV.QinzlKoXoOGuLcrbcG7i9r_DphdsWYtbF5XUI9OmzPiMp.ixROxE0ogjOrw.Y5_wn06PDBiBO QHYwNo.6krojLjAfI8qL3tyI1KIjCAmmGGbmAGnQENZegjks9dZKNbeIrsaS72XpRSi5doTDwW1Q m5K.F3.4CVOEOSyybjnB6yMCPTjFtICyiT.TeyiU.Oqsnvo.Bewir4_azO8kL69r596hOFJWE8ny pREBCrIgCBgAu.cPBpcN7bE9agcj0yqRaAzB02zw.y5eB.5RvzoetNkhC7EVG86gDLATFVkYU9Ll fyKT7GXXuAAda1tvjKYJmehOEDhOhFYQZU5kkqWYVaGwFjR95hpsJX6tUnW..tyryyoKZ9PwtSBz aDPeXMQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Tue, 4 Oct 2022 20:59:11 +0000 Received: by hermes--production-gq1-94b89944-tv947 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e768ef29a56adf30a1d5d8aa217168df; Tue, 04 Oct 2022 20:59:06 +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: <1DE565E3-3906-4C53-83C8-EBC20A4E3C95@yahoo.com> Date: Tue, 4 Oct 2022 13:59:06 -0700 Cc: Klaus K??chemann , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <564843EB-2699-4742-B642-9D0DF57A9C96@yahoo.com> References: <20221001193033.GA98348@www.zefox.net> <46226720-D867-4AD3-9559-A4365FAC28C4@yahoo.com> <6DB88FC9-629C-43E6-9673-32640FC547F7@yahoo.com> <20221002182049.GA2255@www.zefox.net> <5FFDAA6A-AD8C-4E40-A2EB-4082E5086679@googlemail.com> <38DFEB91-AC60-4FD1-8088-95B0A06C5E5D@yahoo.com> <20221003004624.GA3381@www.zefox.net> <20221004001857.GA7109@www.zefox.net> <62F8D709-BBC3-41C4-B1A9-939B2001BA52@yahoo.com> <1DE565E3-3906-4C53-83C8-EBC20A4E3C95@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MhqnY1Kkkz3G4r X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=ECQ8XK3Q; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.83 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.83:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; 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)[]; 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-Oct-4, at 01:25, Mark Millard wrote: > I found a configuration that gets the RPi3 EDK2 and FreeBSD > combination to have the serial console working. You can try > booting and operating via the RPi3 EDK2 UEFI materials. >=20 > However, microsd cards should still not be mounted/used from > a FreeBSD that has been booted via RPi3 EDK2. Bluetooth is > disabled as part of getting a working serial console. >=20 > I ended up with a RPi3 EDK2 microsd card for use in booting > that has: I should have also shown the likes of (USB microsd card reader/writer in use): =3D> 63 61145025 da3 MBR (29G) 63 1985 - free - (993K) 2048 61143040 da3s1 fat32 (29G) via the likes of: # gpart add -i1 -b2048 -tfat32 da3 after the gpart create command. A smaller slice/partition with newfs_msdos placing fat16 ( so: -F16 on the command line instead of -F32 ) also worked for booting. But for the above I used: # newfs_msdos -F32 /dev/da3s1 The detailed MBR type for the slice/partition set via gpart does not seem to have to be an exact match for 16 vs. 32 in newfs_msdos but keeping them tracking is probably a good idea. > # mount -onoatime -tmsdosfs /dev/da3s1 /mnt > # find /mnt -print > /mnt > /mnt/RPI_EFI.fd > /mnt/bootcode.bin > /mnt/config.txt > /mnt/fixup.dat > /mnt/start.elf > /mnt/Readme.md > /mnt/bcm2710-rpi-3-b-plus.dtb > /mnt/bcm2710-rpi-3-b.dtb > /mnt/bcm2710-rpi-cm3.dtb > /mnt/firmware > /mnt/firmware/Readme.txt > /mnt/firmware/brcmfmac43455-sdio.txt > /mnt/firmware/brcmfmac43455-sdio.bin > /mnt/firmware/brcmfmac43455-sdio.clm_blob > /mnt/firmware/LICENCE_bin+clm_blob.txt > /mnt/firmware/brcmfmac43430-sdio.clm_blob > /mnt/firmware/brcmfmac43430-sdio.txt > /mnt/firmware/brcmfmac43430-sdio.bin > /mnt/firmware/LICENSE_txt.txt > /mnt/overlays > /mnt/overlays/disable-bt.dtbo >=20 > All but the 2 "overlays" lines are based on the content of: >=20 > = https://github.com/pftf/RPi3/releases/download/v1.37/RPi3_UEFI_Firmware_v1= .37.zip >=20 > disable-bt.dtbo is a copy of one from a RPi* firmware > used for booting FreeBSD on RPi*s. It is not in the .zip > file. >=20 > I adjusted config.txt to indicate to use the disable-bt.dtbo : >=20 > # more /mnt/config.txt > arm_64bit=3D1 > disable_commandline_tags=3D2 > disable_overscan=3D1 > enable_uart=3D1 > uart_2ndstage=3D1 > armstub=3DRPI_EFI.fd > device_tree_address=3D0x1f0000 > device_tree_end=3D0x200000 > # > # Local addition(s): > dtoverlay=3Ddisable-bt >=20 > (The file has a carriage returns at the end of each > line. Some editors show such characters as ^M . > The characters could be deleted if desired.) >=20 > I'll note that the firmware/* content is likely of > no use for FreeBSD at this point but I did not > remove it. It should be okay to not have it present. >=20 > I'll note that the output from "uart_2ndstage=3D1" does > not actually display during the boot sequence. (Sent > to the wrong internal UART, as if dtoverlay=3Ddisable-bt > had not been used, from what I understand.) >=20 > Using that microsd card in the RPi3B should try to > boot. The EFI prompt will timeout and continue to the > next stage (so far as it is successful, anyway). If > it all works, it will get to the "login: " prompt. > I'm not familiar with what the error reporting would > be like if it also has troubles with your equipment. >=20 > You hit the return key to explicitly continue at the > EFI prompt. The Escape key can be used instead to get > into the menu system for controlling the UEFI > settings. >=20 > If it gets far enough, the UEFI will try to find the > EFI/BOOT/* on your USB media's msdosfs. If found, it > will then load the FreeBSD loader and then start it > --and things would then be back in familiar territory. >=20 >=20 > The above actually boots via a default setting that likely > should be replaced. The related menu/field nesting is: >=20 > Device Manager > Raspberry Pi Configuration > Advanced Configuration > System Table Selection >=20 > Picking just Devicetree instead, then saving, and then > exiting the nested menus via a sequence of Escape key > presses, until back to the initial display, one can > then select Reset and it will start over based on the > new setting. The save actually updates an area in the > RPI_EFI.fd file. >=20 > (The issue is that the ACPI information is odd: > Microsoft specific, not standard. So if the ACPI > information is used things are possibly not > complete/correct.) >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com