Rpi-eeprom-config pieeprom-.bin > bootconf.txt If you see strange errors in dmesg related to emmc0 and you don’t need a SD card you can solve by adding this to /boot/config.txt (/nfs/pi4.1/boot/config.txt): Kpartx -a -v -raspios-buster-lite-armhf.imgĮcho "/nfs/pi4.1/boot /tftpboot/d5f1ba04 none defaults,bind 0 0" | sudo tee -a /etc/fstabĮcho "console=serial0,115200 console=tty root=/dev/nfs nfsroot=192.168.0.28:/nfs/pi4.1,vers=3 rw ip=dhcp rootwait elevator=deadline" | sudo tee /nfs/pi4.1/boot/cmdline.txtĮcho "/nfs/pi4.1 *(rw,sync,no_subtree_check,no_root_squash)" | sudo tee -a /etc/exports Prepare Raspbian image on NFS server (it’s faster that copying the files from Raspbery Pi 4 SD card) nfs/pi4.2 *(rw,sync,no_subtree_check,no_root_squash) nfs/pi4.1 *(rw,sync,no_subtree_check,no_root_squash) In that folder you need to create a folder with the serial of your raspbery and put inside the content of /boot folder. # now enter with ftp on mikrotik and create a folder tftp. ip tftp add real-filename=tftp/ req-filename=.* # change ip and mac address with your PI data. ip dhcp-server option add code=60 name=pi-60 value="s'PXEClient'" ![]() ip dhcp-server option add code=43 name=pi4-43 value="s' Raspberry Pi Boot'" ![]() Serial of your pi can be found with this command: cat /sys/firmware/devicetree/base/serial-number|tail -c 9 Setup Mikrotik DHCP and optional TFTP server:ġ92.168.0.28 – is the TFTP server form linux, but you can use TFTP server that is already installed on mikrotik router. *You also need another machine to provide NFS share.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |