From owner-freebsd-arm@freebsd.org Tue Jan 5 00:18:28 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 8EC394D1ACF for ; Tue, 5 Jan 2021 00:18:28 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mx2.shrew.net (mx2.shrew.net [38.97.5.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D8tPv5rZNz4jGX for ; Tue, 5 Jan 2021 00:18:27 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mail.shrew.net (mail.shrew.prv [10.24.10.20]) by mx2.shrew.net (8.15.2/8.15.2) with ESMTP id 1050IL7M075199 for ; Mon, 4 Jan 2021 18:18:21 -0600 (CST) (envelope-from mgrooms@shrew.net) Received: from [10.22.200.30] (unknown [136.49.68.36]) by mail.shrew.net (Postfix) with ESMTPSA id 4C57A187E20 for ; Mon, 4 Jan 2021 18:18:16 -0600 (CST) Subject: Re: rpi4 network boot To: freebsd-arm@freebsd.org References: <3a1acba5-8662-55cb-c5c4-98ec7873f78f@shrew.net> From: Matthew Grooms Message-ID: Date: Mon, 4 Jan 2021 18:18:18 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <3a1acba5-8662-55cb-c5c4-98ec7873f78f@shrew.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx2.shrew.net [10.24.10.11]); Mon, 04 Jan 2021 18:18:21 -0600 (CST) X-Rspamd-Queue-Id: 4D8tPv5rZNz4jGX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mgrooms@shrew.net designates 38.97.5.132 as permitted sender) smtp.mailfrom=mgrooms@shrew.net X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[38.97.5.132:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[38.97.5.132:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[shrew.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:174, ipnet:38.0.0.0/8, country:US]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm]; RECEIVED_SPAMHAUS_PBL(0.00)[136.49.68.36:received] 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: Tue, 05 Jan 2021 00:18:28 -0000 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