Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4863

Advanced users • Attempting to netboot with buildroot image

$
0
0
I managed to build a minimum image using buildroot-2024.02 source code. When I flashed the image to SD card and boot up using my Pi 4, I was able to boot into terminal without issue.

When I attempt to netboot using the same image, seems like I was able to boot into terminal without issue. However, when I checked the content of root, it seems like it is only able to boot into the kernel image "/tftpboot/Image". When I execute "df -h", the root directory didn't mounted as expected. I expect to see rootfs mounted to nfs server like "192.168.10.1:/<board_serial_number> /". From the server side, when I run "showmount -a", only /tftpboot directory is mounted.

My question is, is buildroot actually capable of booting from network? Anything need to enable on menuconfig in order to enable booting from network? So far I've tried turn on nfs-utils in menuconfig but it didn't help. Seems to me the changes to cmdline.txt is ignored somehow. Here is my modified cmdline.txt

Code:

console=tty1 console=ttyAMA0,115200 root=/dev/nfs nfsroot=192.168.10.1:/<board_serial_number>,vers=3 rw ip=dhcp rootwait
Original cmdline.txt

Code:

root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA0,115200

Appreciate if anyone can point me to the correct direction.

Statistics: Posted by rasp14 — Thu May 02, 2024 5:48 am



Viewing all articles
Browse latest Browse all 4863

Trending Articles