Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 2021 18:18:18 -0600
From:      Matthew Grooms <mgrooms@shrew.net>
To:        freebsd-arm@freebsd.org
Subject:   Re: rpi4 network boot
Message-ID:  <e324f942-43ac-d2ab-3e7f-47ca91e40bee@shrew.net>
In-Reply-To: <3a1acba5-8662-55cb-c5c4-98ec7873f78f@shrew.net>
References:  <d385f2b3-87e0-1bd5-d0f8-76ba1eb99816@shrew.net> <3a1acba5-8662-55cb-c5c4-98ec7873f78f@shrew.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/4/2021 5:29 PM, Matthew Grooms wrote:
> On 1/4/2021 3:11 PM, Matthew Grooms wrote:
>> Hi All,
>>
>> Recently I've been trying to net boot a rpi4 4gb board using bootp, 
>> tftp and nfs. It get's to the point to where it appears to have 
>> problems with the genet adapter but it's hard to tell from the 
>> output. I'm not the only one who's seeing the same issue as it's also 
>> been reported in the FreeBSD forum ...
>>
>> https://forums.freebsd.org/threads/network-boot-fail-on-rpi4.78180/
>>
>> I'm happy to provide any other info that may be helpful. Any ideas?
>
> Replying to my own email, sorry. I was reading a recent thread on 
> u-boot and firmware versions and got the idea of trying to update to 
> the master version of rpi4 firmware dated January 4th ...
>
> https://github.com/raspberrypi/firmware/archive/master.zip
>
> With that I was able to netboot successfully. Want to make sure this 
> is out there for anyone else trying to do the same. I'm not sure which 
> new file did the trick as I just copied the firmware/boot files into 
> the firmware path. Here is a list of the resulting file set in the 
> directory ...
>
> root@rpi4:/var/rpi4/netboot/firmware-master # ls -la
> total 49224
> drwxr-xr-x  5 root  wheel     1536 Jan  4 17:09 .
> drwxr-xr-x  9 root  wheel      512 Jan  4 17:10 ..
> -rw-rw-r--  1 root  wheel    18693 Jan  4 06:57 COPYING.linux
> drwxr-xr-x  3 root  wheel      512 Dec 24 02:38 EFI
> -rw-rw-r--  1 root  wheel     1594 Jan  4 06:57 LICENCE.broadcom
> -rwxr-xr-x  1 root  wheel      240 Dec 23 22:19 README
> -rwxr-xr-x  1 root  wheel     5888 Dec 23 22:22 armstub8-gic.bin
> -rwxr-xr-x  1 root  wheel     5888 Dec 23 22:22 armstub8.bin
> -rw-rw-r--  1 root  wheel    25458 Jan  4 06:57 bcm2708-rpi-b-plus.dtb
> -rw-rw-r--  1 root  wheel    24806 Jan  4 06:57 bcm2708-rpi-b-rev1.dtb
> -rw-rw-r--  1 root  wheel    25195 Jan  4 06:57 bcm2708-rpi-b.dtb
> -rw-rw-r--  1 root  wheel    24928 Jan  4 06:57 bcm2708-rpi-cm.dtb
> -rw-rw-r--  1 root  wheel    26133 Jan  4 06:57 bcm2708-rpi-zero-w.dtb
> -rw-rw-r--  1 root  wheel    24940 Jan  4 06:57 bcm2708-rpi-zero.dtb
> -rw-rw-r--  1 root  wheel    26333 Jan  4 06:57 bcm2709-rpi-2-b.dtb
> -rw-rw-r--  1 root  wheel    26482 Jan  4 06:57 bcm2710-rpi-2-b.dtb
> -rw-rw-r--  1 root  wheel    28599 Jan  4 06:57 bcm2710-rpi-3-b-plus.dtb
> -rw-rw-r--  1 root  wheel    27980 Jan  4 06:57 bcm2710-rpi-3-b.dtb
> -rw-rw-r--  1 root  wheel    26289 Jan  4 06:57 bcm2710-rpi-cm3.dtb
> -rw-rw-r--  1 root  wheel    47972 Jan  4 06:57 bcm2711-rpi-4-b.dtb
> -rw-rw-r--  1 root  wheel    48145 Jan  4 06:57 bcm2711-rpi-400.dtb
> -rw-rw-r--  1 root  wheel    48303 Jan  4 06:57 bcm2711-rpi-cm4.dtb
> -rw-rw-r--  1 root  wheel    52456 Jan  4 06:57 bootcode.bin
> -rwxr-xr-x  1 root  wheel      171 Dec 23 22:22 config.txt
> drwxr-xr-x  7 root  wheel      512 Dec 24 02:38 dtb
> -rw-rw-r--  1 root  wheel     7297 Jan  4 06:57 fixup.dat
> -rw-rw-r--  1 root  wheel     5429 Jan  4 06:57 fixup4.dat
> -rw-rw-r--  1 root  wheel     3176 Jan  4 06:57 fixup4cd.dat
> -rw-rw-r--  1 root  wheel     8436 Jan  4 06:57 fixup4db.dat
> -rw-rw-r--  1 root  wheel     8436 Jan  4 06:57 fixup4x.dat
> -rw-rw-r--  1 root  wheel     3176 Jan  4 06:57 fixup_cd.dat
> -rw-rw-r--  1 root  wheel    10288 Jan  4 06:57 fixup_db.dat
> -rw-rw-r--  1 root  wheel    10288 Jan  4 06:57 fixup_x.dat
> -rw-rw-r--  1 root  wheel  5961288 Jan  4 06:57 kernel.img
> -rw-rw-r--  1 root  wheel  6301144 Jan  4 06:57 kernel7.img
> -rw-rw-r--  1 root  wheel  6672456 Jan  4 06:57 kernel7l.img
> -rw-rw-r--  1 root  wheel  7727470 Jan  4 06:57 kernel8.img
> drwxrwxr-x  2 root  wheel     6144 Jan  4 06:57 overlays
> -rw-rw-r--  1 root  wheel  2939744 Jan  4 06:57 start.elf
> -rw-rw-r--  1 root  wheel  2215424 Jan  4 06:57 start4.elf
> -rw-rw-r--  1 root  wheel   791068 Jan  4 06:57 start4cd.elf
> -rw-rw-r--  1 root  wheel  3716424 Jan  4 06:57 start4db.elf
> -rw-rw-r--  1 root  wheel  2975016 Jan  4 06:57 start4x.elf
> -rw-rw-r--  1 root  wheel   791068 Jan  4 06:57 start_cd.elf
> -rw-rw-r--  1 root  wheel  4788392 Jan  4 06:57 start_db.elf
> -rw-rw-r--  1 root  wheel  3698600 Jan  4 06:57 start_x.elf
> -rwxr-xr-x  1 root  wheel   555264 Dec 23 22:19 u-boot.bin
>
> ---- serial output of boot ----
> ...
> nfs_diskless: no interface
> Release APs...done

Woops. I missed the "no interface" output line. It would appear that the 
only reason the boot got farther was due to the genet driver not 
loading. So, the newer dtb file was really a step backwards :( Any ideas?

-Matthew





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e324f942-43ac-d2ab-3e7f-47ca91e40bee>