[rpi] Raspberry pi netboot not working
Hello,
I am currently trying to set up a pure read-only network boot unsing the raspberry pi. For that I have choosen a u-boot based boot stack. It greps the official netboot images from a TFTP server and continues booting into it.
I would expect the following to u-boot commands to drop me into a netbooted shell:
# Set TFTP server ip
setenv serverip 172.16.0.105
# Load the Kernel from local SFTP
tftp ${kernel_addr_r} netboot/vmlinuz-rpi2
# Load the appropriate FDT table from local SD card.
fatload mmc 0:1 ${fdt_addr_r} ${fdtfile}
# Load the initramfs from local SFTP
tftp ${ramdisk_addr_r} netboot/initramfs-rpi2
# Set up the Kernel line commands to
# * load the network card driver
# * load the modloop file for that kernel via HTTP
# * load the rest of alpine from the repo url
setenv bootargs earlyprintk modules=loop,squashfs,sd-mod,usb-storage,lan78xx ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/ modloop=http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/armhf/netboot/modloop-rpi2
# Boot into the kernel
bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
Unfortunately, the inital initramfs does not come with ethernet drivers for the pi, so it fails early on in the init procedure with no Ethernet interface available.
Since you offer official netboot images also for the rpi, I wonder if I'm doing something wrong here. Any advice on how to get this fully working is highly appreciated.