odroid-c2:application_note:software:nfsboot

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:application_note:software:nfsboot [2017/05/31 09:53]
luke.go ↷ Page moved from odroid_c2:software:c2_nfsboot to odroid-c2:software:c2_nfsboot
odroid-c2:application_note:software:nfsboot [2018/03/15 15:55] (current)
joshua [How to add the boot argument]
Line 4: Line 4:
 ===== NFS server settings (HOST PC) ===== ===== NFS server settings (HOST PC) =====
 Install nfs pakages. Install nfs pakages.
 +<code bash host>
   sudo apt-get install nfs-kernel-server nfs-common   sudo apt-get install nfs-kernel-server nfs-common
 +</code>
  
 After insert your eMMC or SD card, copy the Root File System. After insert your eMMC or SD card, copy the Root File System.
 +<code bash host>
   # 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/rootfs   sudo cp -rp /media/$USER/rootfs /home/$USER/rootfs
 +</code>
  
 **Note: You can also user rsync to copy all file.** **Note: You can also user rsync to copy all file.**
 +<code bash host>
   mkdir /tmp/rootfs   mkdir /tmp/rootfs
   mount /dev/sdb2 /tmp/rootfs   mount /dev/sdb2 /tmp/rootfs
Line 16: Line 21:
   sync   sync
   umount /dev/sdb2   umount /dev/sdb2
 +</code>
  
 Add following line in "/etc/exports" Add following line in "/etc/exports"
   /home/$USER/rootfs        *(rw,sync,no_root_squash,no_subtree_check)   /home/$USER/rootfs        *(rw,sync,no_root_squash,no_subtree_check)
 Restart NFS service. Restart NFS service.
 +<code bash host>
   sudo service nfs-kernel-server restart   sudo service nfs-kernel-server restart
 +</code>
 Modify /home/$USER/rootfs/etc/network/interfaces Modify /home/$USER/rootfs/etc/network/interfaces
 <code> <code>
Line 30: Line 38:
  
 ===== Kernel configuration on Odroid C2 ===== ===== Kernel configuration on Odroid C2 =====
-<WRAP center round important 100%>+<WRAP round important 100%>
 To use the NFS, you first need to update the kernel version to "3.14.65-74" or higher. 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   sudo apt-get update && sudo apt-get dist-upgrade
Line 48: Line 56:
 Then, Update your ODROID's kernel.\\ Then, Update your ODROID's kernel.\\
 Refer to the following links How to kernel update.\\ Refer to the following links How to kernel update.\\
-  * [[odroid_c2:software:c2_building_kernel| ODROID-C2 kernel update]]+  * [[odroid-c2:software:building_kernel| ODROID-C2 kernel update]]
  
 ===== NFS Client(Target Board) settings ===== ===== NFS Client(Target Board) settings =====
Line 57: Line 65:
   boot=nfs root=/dev/nfs ip=dhcp nfsroot=${rfspath} rw   boot=nfs root=/dev/nfs ip=dhcp nfsroot=${rfspath} rw
  
-Modify "/media/boot/boot.ini" +Modify "/media/boot/boot.ini"
-<code>+Delete existing **root** argument and add **boot=nfs root=/dev/nfs ip=dhcp nfsroot=${rfspath} rw** at the head of the line like below.\\  
 +<code ini>
 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 hdmimode=${m} ${cmode} m_bpp=${m_bpp} vout=${voutfsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd} max_freq=${max_freq} maxcpus=${maxcpus} monitor_onoff=${monitor_onoff} disableuhs=${disableuhs} mmc_removable=${mmc_removable} usbmulticam=${usbmulticam} ${hid_quirks}"
 </code> </code>
  
Line 72: Line 81:
  
 Reboot. Reboot.
 +<code bash target>
   sudo reboot   sudo reboot
 +</code>
  
 Nice to have a lot of disk space: Nice to have a lot of disk space:
-<code>+<code bash target>
 odroid@odroid64:~$ df -h odroid@odroid64:~$ df -h
 Filesystem                              Size  Used Avail Use% Mounted on Filesystem                              Size  Used Avail Use% Mounted on
Line 91: Line 102:
  
 Dmesg output: Dmesg output:
-<code>+<code bash target>
 odroid@odroid64:~$ dmesg odroid@odroid64:~$ dmesg
 [    0.000000] Initializing cgroup subsys cpuset [    0.000000] Initializing cgroup subsys cpuset
  • odroid-c2/application_note/software/nfsboot.1496193797.txt.gz
  • Last modified: 2017/05/31 09:53
  • by luke.go