From owner-freebsd-arm@freebsd.org Mon Jan 4 21:11:12 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 D37124CD397 for ; Mon, 4 Jan 2021 21:11:12 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mx1.shrew.net (mx1.shrew.net [38.97.5.131]) (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 4D8pFq6PCgz4WTP for ; Mon, 4 Jan 2021 21:11:11 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mail.shrew.net (mail.shrew.prv [10.24.10.20]) by mx1.shrew.net (8.15.2/8.15.2) with ESMTP id 104LB5Pq064547 for ; Mon, 4 Jan 2021 15:11:05 -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 99668199CA9 for ; Mon, 4 Jan 2021 15:11:00 -0600 (CST) To: freebsd-arm@freebsd.org From: Matthew Grooms Subject: rpi4 network boot Message-ID: Date: Mon, 4 Jan 2021 15:11:02 -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 Content-Language: en-US X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.shrew.net [10.24.10.10]); Mon, 04 Jan 2021 15:11:05 -0600 (CST) X-Rspamd-Queue-Id: 4D8pFq6PCgz4WTP 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.131 as permitted sender) smtp.mailfrom=mgrooms@shrew.net X-Spamd-Result: default: False [-2.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_DN_NONE(0.00)[]; MIME_BASE64_TEXT_BOGUS(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MIME_BASE64_TEXT(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[38.97.5.131:from]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:174, ipnet:38.0.0.0/8, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_NA(0.00)[]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[shrew.net]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[38.97.5.131:from:127.0.2.255]; DBL_PROHIBIT(0.00)[0.0.0.0:email]; NEURAL_HAM_LONG(-1.00)[-1.000]; MAILMAN_DEST(0.00)[freebsd-arm] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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: Mon, 04 Jan 2021 21:11:12 -0000 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=20 only one who's seeing the same issue as it's also been reported in the=20 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? -Matthew ---- serial boot output below ---- U-Boot 2020.10 (Dec 24 2020 - 04:18:29 +0000) DRAM: 3.9 GiB RPI 4 Model B (0xc03112) MMC: mmc@7e300000: 1, emmc2@7e340000: 0 Loading Environment from FAT... In: serial Out: vidconsole Err: vidconsole Net: eth0: ethernet@7d580000 PCIe BRCM: link up, 5.0 Gbps x1 (SSC) starting USB... Bus xhci_pci: Register 5000420 NbrPorts 5 Starting the controller USB XHCI 1.00 scanning bus xhci_pci for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 2 1 0 Card did not respond to voltage select! Device 0: unknown device ethernet@7d580000 Waiting for PHY auto negotiation to complete. done BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 BOOTP broadcast 4 DHCP client bound to address X.X.X.26 (1759 ms) Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/loader.efi'. Load address: 0x200000 Loading: *################################################## 1.1 MiB 8.4 MiB/s done Bytes transferred =3D 1183548 (120f3c hex) missing environment variable: pxeuuid Retrieving file: freebsd/boot/pxelinux.cfg/01-dc-a6-32-a8-54-13 Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/01-dc-a6-32-a8-54-13'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/0A16C81A Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/0A16C81A'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/0A16C81 Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/0A16C81'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/0A16C8 Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/0A16C8'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/0A16C Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/0A16C'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/0A16 Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/0A16'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/0A1 Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/0A1'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/0A Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/0A'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/0 Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/0'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/default-arm-bcm283x-rpi Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/default-arm-bcm283x-rpi'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/default-arm-bcm283x Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/default-arm-bcm283x'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/default-arm Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/default-arm'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Retrieving file: freebsd/boot/pxelinux.cfg/default Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/pxelinux.cfg/default'. Load address: 0x2500000 Loading: * TFTP error: 'File not found' (1) Not retrying... Config file not found BOOTP broadcast 1 DHCP client bound to address X.X.X.26 (2 ms) Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'boot.scr.uimg'. Load address: 0x2400000 Loading: * TFTP error: 'File not found' (1) Not retrying... BOOTP broadcast 1 DHCP client bound to address X.X.X.26 (2 ms) Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'freebsd/boot/loader.efi'. Load address: 0x80000 Loading: *################################################## 1.1 MiB 8.2 MiB/s done Bytes transferred =3D 1183548 (120f3c hex) Using ethernet@7d580000 device TFTP from server X.X.X.25; our IP address is X.X.X.26 Filename 'dtb/broadcom/bcm2711-rpi-4-b.dtb'. Load address: 0x2600000 Loading: * TFTP error: 'File not found' (1) Not retrying... libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk mmc@7e300000.blk... Disk mmc@7e300000.blk not ready Card did not respond to voltage select! Scanning disk emmc2@7e340000.blk... Disk emmc2@7e340000.blk not ready Found 0 disks No EFI system partition Booting /dtb\broadcom\bcm2711-rpi-4-b.dt Consoles: EFI console Reading loader env vars from /efi/freebsd/loader.env FreeBSD/arm64 EFI loader, Revision 1.1 (Fri Dec 18 19:40:33 CST 2020 root@rpi4.blah.lab) Command line arguments: loader.efi Image base: 0x39e05000 EFI version: 2.80 EFI Firmware: Das U-Boot (rev 8224.4096) Console: comconsole (0) Load Path: /dtb\broadcom\bcm2711-rpi-4-b.dt Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/MAC(dca632a= 85413,1) Setting currdev to net0: net0: cannot set rx. filters (status=3D3) |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\Loading /boot/defaults/loader.con= f |/-Loading /boot/defaults/loader.conf Loading /boot/device.hints \|/-\|Loading /boot/loader.conf /-Loading /boot/loader.conf.local \|/-\|/-\|/-\|/-\|Loading kernel... /-\|/-\|/-\|/-\|/-\/boot/kernel/kernel text=3D0x2a8 text=3D0x9321c0 |/-\|= /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/= -\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-= \|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\= |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|= /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/= -\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-= \|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\= |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\t= ext=3D0x1b8ed4 |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/= -\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/data=3D0x19a2d0 -\|/-= \|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\= |/-\|/-\|/-\|/-\|/-\|/-\|data=3D0x0+0x4a3cf6 syms=3D[0x8+0x113b08/-\|/-\|= /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+0x8+0x138a0= 2-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/= -\|/-\] Loading configured modules... |/-\|/can't find '/etc/hostid' -\|/-\can't find '/boot/entropy' |/-\|//boot/kernel/umodem.ko text=3D0x1c00 text=3D0xfb0 data=3D0x618+0x8 = -syms=3D[0x8+0xe40+0x8+0xa8c] loading required module 'ucom' \|/-\|//boot/kernel/ucom.ko text=3D0x1d38 text=3D0x2c18 -data=3D0x820+0x8= 50 syms=3D[0x8+0x1140+0x8+0xac5] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x7f00000. \|/-\|EFI framebuffer information: addr, size 0x3e495000, 0x6d8c00 dimensions 1824 x 984 stride 1824 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 ---<>--- KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2020 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-CURRENT #0 r368766: Fri Dec 18 21:16:54 CST 2020 root@rpi4.blah.lab:/var/rpi4/build/obj/usr/src/arm64.aarch64/sys/GEN= ERIC-NODEBUG arm64 FreeBSD clang version 11.0.0 (git@github.com:llvm/llvm-project.git llvmor= g-11.0.0-0-g176249bd673) VT(efifb): resolution 1824x984 module firmware already present! real memory =3D 4147933184 (3955 MB) avail memory =3D 4021624832 (3835 MB) Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs arc4random: WARNING: initial seeding bypassed the cryptographic random de= vice because it was not yet seeded and the knob 'bypass_before_seeding' w= as enabled. random: entropy device external interface MAP 39f2b000 mode 2 pages 1 MAP 39f2f000 mode 2 pages 3 MAP 39f33000 mode 2 pages 4 MAP 3b350000 mode 2 pages 16 MAP fe100000 mode 0 pages 1 WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 1= 3.0. kbd0 at kbdmux0 WARNING: Device "openfirm" is Giant locked and may be deleted before Free= BSD 13.0. ofwbus0: simplebus0: on ofwbus0 ofw_clkbus0: on ofwbus0 clk_fixed0: on ofw_clkbus0 clk_fixed1: on ofw_clkbus0 simplebus1: on ofwbus0 simplebus2: on ofwbus0 regfix0: on ofwbus0 regfix1: on ofwbus0 simplebus3: on ofwbus0 clk_fixed2: on ofwbus0 regfix2: on ofwbus0 simple_mfd0: mem 0x7d5d2000-0x7d5d2= eff on simplebus0 psci0: on ofwbus0 gic0: mem 0x40041000-0x40041fff,0x4004= 2000-0x40043fff,0x40044000-0x40045fff,0x40046000-0x40047fff irq 31 on sim= plebus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 256 mbox0: mem 0x7e00b880-0x7e00b8bf irq 14 on si= mplebus0 bcm2835_firmware0: on simplebus0 ofw_clkbus1: on bcm2835_firmware0 gpio0: on bcm2835_firmware0 gpiobus0: on gpio0 gpioregulator0: on ofwbus0 generic_timer0: irq 4,5,6,7 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 54000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 54000000 Hz quality 1000 usb_nop_xceiv0: on ofwbus0 uart0: mem 0x7e201000-0x7e2011ff irq 17 on simpl= ebus0 uart0: console (115200,n,8,1) spi0: mem 0x7e204000-0x7e2041ff irq 19 on s= implebus0 spibus0: on spi0 spibus0: at cs 0 mode 0 spibus0: at cs 1 mode 0 iichb0: mem 0x7e804000-0x7e804fff irq 27 on= simplebus0 bcm_dma0: mem 0x7e007000-0x7e007aff irq 32,33,34= ,35,36,37,38,39,40,41,42 on simplebus0 bcmwd0: mem 0x7e100000-0x7e100113,0x7e00a000-0x7e= 00a023,0x7ec11000-0x7ec1101f on simplebus0 gpioc0: on gpio0 sdhci_bcm0: mem 0x7e300000-0x7e3000ff ir= q 58 on simplebus0 mmc0: on sdhci_bcm0 fb0: on simplebus0 fb0: keeping existing fb bpp of 32 fbd0 on fb0 WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 13= =2E0. VT: Replacing driver "efifb" with new "fb". fb0: 1824x984(1824x984@0,0) 32bpp fb0: fbswap: 1, pitch 7296, base 0x3e495000, screen_size 7237632 sdhci_bcm1: mem 0x7e340000-0x7e3400ff ir= q 69 on simplebus1 mmc1: on sdhci_bcm1 pmu0: irq 0,1,2,3 on ofwbus0 cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 pcib0: mem 0x7d500000-0x7d509= 30f irq 70,71 on simplebus2 pcib0: hardware identifies as revision 0x304. pci0: on pcib0 pcib1: irq 81 at device 0.0 on pci0 pci1: on pcib1 bcm_xhci0: irq 82 at = device 0.0 on pci1 bcm_xhci0: 32 bytes context size, 64-bit DMA usbus0 on bcm_xhci0 genet0: mem 0x7d580000-0x7d58ffff irq 72,73 on si= mplebus2 genet0: GENET version 5.0 phy 0x0000 miibus0: on genet0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000= baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto genet0: Ethernet address: dc:a6:32:a8:54:13 gpioled0: on ofwbus0 gpioled0: failed to map pin cryptosoft0: Timecounters tick every 1.000 msec genet0: gen_intr2 genet0: gen_intr2 genet0: gen_intr2 genet0: gen_intr2 genet0: gen_intr2 genet0: gen_intr2 =2E.. last line repeats endlessly