NFS boot
- Follow the steps to boot the board using NFS
- Setup host machine as NFS server (optional)
- If you want to setup a new NFS server, do this step
- Add one line in /etc/exports:
/nfsroot *(rw,no_root_squash,sync)
- Then restart NFS server
$ sudo /etc/init.d/nfs-kernel-server restart
- If you want to setup a new NFS server, do this step
- Build Kernel for NFS boot
- make sure your kernel enable these options for NFS boot:
[*] Networking support --->
Networking options --->
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
File systems --->
[*] Network File Systems --->
<*> NFS client support
[*] NFS client support for NFS version 3
[*] NFS client support for the NFSv3 ACL protocol extension
[*] NFS client support for NFS version 4 (EXPERIMENTAL)
[*] Root file system on NFS - Build kernel:
- make sure your kernel enable these options for NFS boot:
- Copy kernel to the TFTP server's root
- We also have a TFTP server on the test machine, the TFTP server's root path is: /mydroid/tftpboot
- Put kernel file to the TFTP server's root path
- uImage is the name of the kernel file you just built out
- We also have a TFTP server on the test machine, the TFTP server's root path is: /mydroid/tftpboot
- Prepare the rootfs
- Put the files to the NFS root path
- Use android for example, we build the file system first, then do the commands:
- Put the files to the NFS root path
- Set the boot parameters to kernel for the frist time, before it run 'autoboot'
- serverip is the IP address of your NFS server
- for example, our NFS server ip here is 10.126.34.43
- serverip is the IP address of your NFS server
- Boot
- Just restart the board
- The same as normal boot, Enjoy!
- Just restart the board
No comments:
Post a Comment