We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
odroid-c2:software:c2_nfsboot [2016/08/08 03:43]
moon.linux [NFS Client(Tartget Board) settings]
odroid-c2:software:c2_nfsboot [2017/05/30 17:25] (current)
luke.go ↷ Page name changed from odroid-c2:software:nfsboot to odroid-c2:software:c2_nfsboot
Line 1: Line 1:
 ====== Boot linux over NFS ====== ====== Boot linux over NFS ======
 The following text describes on how to use NFS for the root filesystem. For the rest of this text '​client'​ means the diskless system, and '​server'​ means the NFS server. The following text describes on how to use NFS for the root filesystem. For the rest of this text '​client'​ means the diskless system, and '​server'​ means the NFS server.
 +
 +<note important>​If you have any trouble to setup the NFS boot, refer genosensor guide in this link.\\
 +[[https://​forum.odroid.com/​viewtopic.php?​f=138&​t=27034]]
 +</​note>​
  
 ===== NFS server settings (HOST PC) ===== ===== NFS server settings (HOST PC) =====
Line 8: Line 12:
 After insert your eMMC or SD card, copy the Root File System. After insert your eMMC or SD card, copy the Root File System.
   # The rootfs folder is mounted your RFS by SD card.   # The rootfs folder is mounted your RFS by SD card.
-  sudo cp -rp /​media/​$USER/​rootfs /​home/​$USER/​+  sudo cp -rp /​media/​$USER/​rootfs /​home/​$USER/​rootfs 
 + 
 +**Note: You can also user rsync to copy all file.** 
 +  mkdir /​tmp/​rootfs 
 +  mount /dev/sdb2 /​tmp/​rootfs 
 +  rsync -avzh /tmp/rootfs /​home/​$USER/​rootfs 
 +  sync 
 +  umount /dev/sdb2
  
 Add following line in "/​etc/​exports"​ Add following line in "/​etc/​exports"​
Line 21: Line 32:
 iface lo inet loopback iface lo inet loopback
 </​code>​ </​code>​
-===== Kernel configuration =====+ 
 +===== Kernel configuration ​on Odroid C2 ===== 
 +<WRAP center round important 100%> 
 +To use the NFS, you first need to update the kernel version to "​3.14.65-74"​ or higher. 
 +  sudo apt-get update && sudo apt-get dist-upgrade 
 +</​WRAP>​ 
 To use Ethernet and NFS on initramfs you need to change module to built-in. To use Ethernet and NFS on initramfs you need to change module to built-in.
 +
 ==== kernel configuration ==== ==== kernel configuration ====
 Location: Location:
Line 47: Line 65:
 setenv rfspath 192.168.0.22:/​home/​john/​rootfs setenv rfspath 192.168.0.22:/​home/​john/​rootfs
 setenv bootargs "​boot=nfs root=/​dev/​nfs ip=dhcp nfsroot=${rfspath} rw rootwait ro ${condev} no_console_suspend vdaccfg=0xa000 logo=osd1,​loaded,​0x7900000,​720p,​full dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs}"​ setenv bootargs "​boot=nfs root=/​dev/​nfs ip=dhcp nfsroot=${rfspath} rw rootwait ro ${condev} no_console_suspend vdaccfg=0xa000 logo=osd1,​loaded,​0x7900000,​720p,​full dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs}"​
 +</​code>​
 +
 +In order to mount the filesystem via NFS in RW mode we need to update the /etc/fstab of the.
 +
 +**Note: update the NFS/​etc/​fstab.**
 +
 +<​code>​
 +192.168.30.27:/​home/​john/​nfs/​c2/​rootfs / nfs defaults 0 0
 </​code>​ </​code>​
  
odroid-c2/software/c2_nfsboot.1470597187.txt.gz · Last modified: 2016/08/08 03:43 by moon.linux
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0