From owner-freebsd-arm@freebsd.org Thu May 13 09:57:25 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B34D963913A for ; Thu, 13 May 2021 09:57:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FgnBs2NJHz4gpr for ; Thu, 13 May 2021 09:57:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: by mailman.nyi.freebsd.org (Postfix) id 519A36393A0; Thu, 13 May 2021 09:57:25 +0000 (UTC) Delivered-To: arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5064A639235 for ; Thu, 13 May 2021 09:57:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-23.consmr.mail.gq1.yahoo.com (sonic304-23.consmr.mail.gq1.yahoo.com [98.137.68.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FgnBs0HzPz4h21 for ; Thu, 13 May 2021 09:57:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1620899843; bh=I3+oJzIrtK2LkMmfXHKN6Hr/oBuqZ/Kg3zIbLJWcM1M=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=A/m2nmg3gT5Av9Sf3GJYCOyjkd6ZOnGnzSHwGbWIzg+ij2sqn/djXR5bCcFLmo8OvKVSqC9anFyKxd3m8hqj+YnCSCoYyaWNKp+kC2yTv7pGVB/FxHdNneVCe4seWkYQrPhBK52dW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6arC.9GVTi3JvpLfd6xiOg1T7REUF eQ5UEVI5KLa3S5ieHp7yoUPaBv3yu3Bh5xdkdDxJUTMeDh_O3Pd822MDD6Yafv4bRtMMYG6unXwt BgFKhvIkTHWzb_RFP381tdv4.MOdLGPEIUP3.mU5xPBgqdPUxMLeAIfA5P41jmTYdv9UROLhxiVY VPE7gXTFgQ44Dchd1QlmDpscnxdiN0CLid5UDWPvU0ZB8waSE8mcIzgqaRgJNPTYo0.gMY_n_Ivb 7JrjtBaADQ2CunXJVHMZHnjFjDNoxPnV.KNf1MqhZhxHIOE3l.G80WHWPsnvUV_4NK88h0wft8Wf eN2Era28hCo9B0MUbYCDFgHe_7M6Dna5avPpJa_3z4kxKsCQd7eSUgNFwOx.NHyAxdCNETn6sMjs ZKAea_3iUfpS7XAJ4x7i874SjvQbkciVBRm93Npo..Hgv979Mwuw0odSa4JR7xVB0pSXKAclOnqy WPf_rFKFG8AwCdHPO13IOy4LkjiBARM671b1are__N13ct2rGjXlZCGfUytXG8fczcpKhCbMCfqQ QmysxLKGKCXd7As0nFF5Cvk4Xl..EFjXCjDMzvcGmISvxs8QnOZ9TTzkVYKgD1_bhLWYlXlF6VuW AM7_ahqcZuGHT4cGG81i2PooYS3ijM6coa2v.REca2mfm73CT1aHwQVJTlnQ4fI7sP0SRDCVDlB0 XHfwvmSw8yzN_UNDW4RUqcjoVQAyuKg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Thu, 13 May 2021 09:57:23 +0000 Received: by kubenode568.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 4bd18eb3774dcb3dda887527d9287b66; Thu, 13 May 2021 09:57:22 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: /usr/local/share/u-boot/u-boot-orangepi-plus-2e/README out of date ; orangepi-plus-2e and RPi2 v1.1 get "Kernel args: (null)" From: Mark Millard In-Reply-To: <20210513111517.86336633bae9568d8599f229@bidouilliste.com> Date: Thu, 13 May 2021 02:57:21 -0700 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <40298C05-5F50-4437-B15B-7A02EA070EAE.ref@yahoo.com> <40298C05-5F50-4437-B15B-7A02EA070EAE@yahoo.com> <20210513111517.86336633bae9568d8599f229@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Rspamd-Queue-Id: 4FgnBs0HzPz4h21 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2021 09:57:25 -0000 > On 2021-May-13, at 02:15, Emmanuel Vadot = wrote: >=20 > On Thu, 13 May 2021 01:52:08 -0700 > Mark Millard via freebsd-arm wrote: >=20 >> The updated armv7 U-Boot ports now install the likes of: >>=20 >> # ls -Tldt /usr/local/share/u-boot/u-boot-orangepi-plus-2e/* >> -rw-r--r-- 1 root wheel 504 May 12 07:01:10 2021 = /usr/local/share/u-boot/u-boot-orangepi-plus-2e/README >> -rw-r--r-- 1 root wheel 66 May 12 07:01:10 2021 = /usr/local/share/u-boot/u-boot-orangepi-plus-2e/metadata >> -rw-r--r-- 1 root wheel 490924 May 12 07:01:10 2021 = /usr/local/share/u-boot/u-boot-orangepi-plus-2e/u-boot-sunxi-with-spl.bin >>=20 >> # ls -Tldt /usr/local/share/u-boot/u-boot-rpi2/* >> -rw-r--r-- 1 root wheel 767 May 12 06:39:07 2021 = /usr/local/share/u-boot/u-boot-rpi2/README >> -rw-r--r-- 1 root wheel 44 May 12 06:39:07 2021 = /usr/local/share/u-boot/u-boot-rpi2/metadata >> -rw-r--r-- 1 root wheel 475420 May 12 06:39:07 2021 = /usr/local/share/u-boot/u-boot-rpi2/u-boot.bin >>=20 >> So, for example, no boot.scr files ro go with ubldr.bin >> any more. >>=20 >> But the u-boot-orangepi-plus-2e/README says . . . >>=20 >> QUOTE >> This version is patched so that: >> * API features are enabled. >> * A boot.scr (U-Boot script) that loads ubldr.bin and execute it is = included >> END QUOTE >>=20 >> The u-boot-rpi2/README says . . . >>=20 >> QUOTE >> This version is patched so that: >> * ELF and API features are enabled. >> * The distroboot command knows how to load FreeBSD loader(8) >> * By default, it loads ubldr.bin (PIE) from file ubldr.bin on the FAT >> partition to address ${kernel_addr_r}, and launches it. If = ubldr.bin is >> not found, it falls back on ubldr >> END QUOTE >>=20 >=20 > Oups, I'll update the README, thanks for noticing this. FYI: I only looked at examples for which I've access to operational hardware. >> But for the orangepi-plus-2e that I have access to I >> now get: >>=20 >> . . . >> Hit [Enter] to boot immediately, or any other key for command prompt. >> Booting [/boot/kernel/kernel]... =20 >> Using DTB provided by EFI at 0x47eea000. >> Kernel entry at 0xb2e00200... >> Kernel args: (null) >=20 > This is the symptoms when caches are not flushed. > U-Boot distroboot first scans for extlinux.conf, then uboot script and > then EFI. So this probably means that you still have a boot.scr on the > ESP, try removing that and make sure that you have the efi loader too > in efi/boot/bootarm.efi. That is not the issue . . . showing more context from the same recorded boot attempts (blank lines and a huge number of escape sequences removed, and using ". . ." for other omitted text): U-Boot 2021.04 (Apr 09 2021 - 19:24:51 +0000) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi Plus 2E DRAM: 2 GiB . . . =08FreeBSD/arm EFI loader, Revision 1.1 Command line arguments: l Image base: 0xb8dd5000 EFI version: 2.80 EFI Firmware: Das U-Boot (rev 8225.1024) Console: comconsole (0) Load Path: /efi\boot\bootarm.efi . . . Found EFI removable media binary efi/boot/bootarm.efi 1396100 bytes read in 36 ms (37 MiB/s) Booting /efi\boot\bootarm.efi Consoles: EFI console =20 |=08/=08-=08\=08|=08/=08-=08\=08|=08/=08-=08\=08|=08/=08-=08\=08|=08/=08-=08= \=08|=08/=08-=08\=08|=08/=08-=08\=08 Reading loader env vars from = /efi/freebsd/loader.env . . . Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... =20 Using DTB provided by EFI at 0x47eea000. Kernel entry at 0xb2e00200... Kernel args: (null) and: U-Boot 2021.04 (May 12 2021 - 13:36:42 +0000) DRAM: 948 MiB RPI 2 Model B (0xa21041) . . . =08FreeBSD/arm EFI loader, Revision 1.1 Command line arguments: l Image base: 0x39df8000 EFI version: 2.80 EFI Firmware: Das U-Boot (rev 8225.1024) Console: comconsole (0) Load Path: /efi\boot\bootarm.efi . . . Found EFI removable media binary efi/boot/bootarm.efi 1396100 bytes read in 38 ms (35 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC Booting /efi\boot\bootarm.efi Consoles: EFI console =20 |=08/=08-=08\=08|=08/=08-=08\=08|=08/=08 Reading loader env vars from = /efi/freebsd/loader.env . . . Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... =20 Using DTB provided by EFI at 0x7ef6000. Kernel entry at 0x33e00200... Kernel args: (null) No *.scr files, no ubldr* files. Showing from the efi partition mounted on a Rock64: # find /mnt/dtb/ -print /mnt/dtb/ /mnt/dtb/sun8i-h3-orangepi-plus2e.dtb /mnt/dtb/overlays /mnt/dtb/overlays/sun8i-h3-i2c0.dtbo /mnt/dtb/overlays/spigen-rpi2.dtbo # find /mnt/efi/ -print /mnt/efi/ /mnt/efi/boot /mnt/efi/boot/bootarm.efi # ls -Tld /mnt/u* -rwxr-xr-x 1 root wheel 475420 May 12 06:39:06 2021 /mnt/u-boot.bin # ls -Tld /mnt/*.scr ls: /mnt/*.scr: Invalid argument I'll not list the files from the RPi* firmware. >> and that is the last of the output. >>=20 >> The RPi2 v1.1 is similar: >>=20 >> Hit [Enter] to boot immediately, or any other key for command prompt. >> Booting [/boot/kernel/kernel]... =20 >> Using DTB provided by EFI at 0x7ef6000. >> Kernel entry at 0x33e00200... >> Kernel args: (null) >>=20 >> and that is the last of the output. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)