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.

  1. mkdir /tftpboot.  zfs list; zfs create -o compress=off arm64pool/tftpboot

  2. 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 -l

  3. Add inetd_enable="YES" to your /etc/rc.conf.

  4. 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

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 ..


URLs to Read for learning 

https://discourse.practicalzfs.com/t/zfs-dataset-home-folder-mounting/881/2 

https://cheat.readthedocs.io/en/latest/zfs.html Dan's ZFS Cheat sheet
https://openzfs.github.io/openzfs-docs/man/master/8/zfs-create.8.html  OpenZFS
https://www.alibabacloud.com/blog/use-your-storage-space-more-effectively-with-zfs-exploring-datasets_594180
Alibaba Cloud ZFS

https://forum.proxmox.com/threads/directories-under-zfs-pool.91796/  Proxmox directories under ZFS

 

 

 

Comments

Popular posts from this blog

HDMI Audio sound patches into GhostBSD source code /usr/ghost14/ghostbsd-src SOLVED Jan20 2024

How to install GhostBSD-Arm64 into a USB Flash Drive stick April 24, 2024 update edition.

January 19, 2024 Howto Download a Raspberry Pi 4B bootable image from http://ghostbsdarm64.hopto.org/packages/