4- Build a network file system

173  /* ************************************************ **************************************************** ****** */ 
174 Build network filesystem:
 175          bootloader :uboot
 176          kernel: zImage
 177                  ramdisk chroot
 178                  ----------------------- --
 179                  rootfs The place where the busybox
 180                  root is stored can be: SD EMMC NFS
 181  
182  
183                  NFS: Create a myroot
 184                          chmod 777 / myroot
 185                          cp _install in the root directory of the machine/* /myroot -rf
186 Mount NFS:
187                         vim /etc/exports
188                         /myroot *(rw,sync,no_root_squash)
189 The above statement only allows a space after /myroot, no spaces are allowed elsewhere.
190 The meaning in brackets: All users have read and write permissions, synchronization, super users will not be downgraded.
191
192 Configuration: Turn off firewall-----NFS auto-start----turn off SElinux
193 Start NFS: sudo service nfs-server start
194 View status: sudo service nfs-server status
195                         sudo mount 127.0.0.1:/myroot /mnt
196 ls / mnt
197
198 Enter the terminal of the development board:
199                         set bootargs root=/dev/nfs nfsroot=192.168.1.116:/myroot ip=192.168.1.10 console=ttySAC0 lcd=S70
200                         fatload mmc 0:1 50000000 zImage
201                         fatload mmc 0:1 41000000 ramdisk-u.img
202                         bootm 50000000 41000000
203                         cd
204 cat /proc/cmdline : you can see the bootargs we set
205
206 /××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××/

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324642756&siteId=291194637