PXE aarch64 TFTp boot a Raspberry Pi 4B over the network, May 5 2024
PXE aarch64 TFTp boot a Raspberry Pi 4B over the network, May 5 2024
PXE:TFTPd Setup
This is one of the easiest pieces to get working.
mkdir /tftpboot. zfs list; zfs create -o compress=off arm64pool/tftpboot
Uncomment the tftp line in /etc/inetd.conf.
tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
# enable the ftp server
ftp stream tcp nowait root /usr/libexec/ftpd ftpd -lAdd inetd_enable="YES" to your /etc/rc.conf.
Run /etc/rc.d/inetd start.
Now that the server is working, we need the boot loader that will be served via TFTP to the PXE loader on your machine. for x86_64, maybe for aarch64 needs a different pxeboot file and file name??
cp /sys/boot/i386/pxeldr/pxeboot /tftpboot
zfs create example
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:~ # zfs create -P -o quota=5G -o mountpoint=/tftpboot arm64pool/tftpboot
create arm64pool/tftpboot
property quota 5G
property mountpoint /tftpboot
create arm64pool/tftpboot
property quota 5G
property mountpoint /tftpboot
zfs set compress=off arm64pool/tftpboot
# zfs list arm64pool/tftpboot
NAME USED AVAIL REFER MOUNTPOINT
arm64pool/tftpboot 96K 5.00G 96K /tftpboot
# zfs get quota,compress,canmount,mounted arm64pool/tftpboot
NAME PROPERTY VALUE SOURCE
arm64pool/tftpboot quota 5G local
arm64pool/tftpboot compression off local
arm64pool/tftpboot canmount on default
arm64pool/tftpboot mounted yes -
# ls -l /tftpboot
total 9
drwxr-xr-x 2 root wheel 2 May 5 17:48 .
drwxr-xr-x 24 root wheel 29 May 5 17:48 ..
NAME PROPERTY VALUE SOURCE
arm64pool/tftpboot quota 5G local
arm64pool/tftpboot compression off local
arm64pool/tftpboot canmount on default
arm64pool/tftpboot mounted yes -
# ls -l /tftpboot
total 9
drwxr-xr-x 2 root wheel 2 May 5 17:48 .
drwxr-xr-x 24 root wheel 29 May 5 17:48 ..
Comments
Post a Comment