All Boards NFS on Ubuntu

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

All Boards NFS on Ubuntu

All Boards NFS on Ubuntu

Network File System (NFS)


Setting the Host


1 - Install NFS Service on host typing:

$sudo apt-get install nfs-kernel-server 

2 - Create symbolic link to ltib/rootfs

$sudo ln -s <ltib instalation folder>/rootfs /tftpboot/rootfs 

3 - Setup exports typing:

$sudo gedit /etc/exports 

and add the following line:

/tftpboot/rootfs/ *(rw,no_root_squash,no_subtree_check,async) 

4 - Restart the NFS server:

$sudo /etc/init.d/nfs-kernel-server restart 

Now the host is ready to use NFS.

Setting Target Linux Image to use NFS


1 - Run LTIB configuration typing:

$cd <ltib instalation folder> 
$./ltib -c


2 - On first page menu, go to "Target Image Generation -> Options" as in the picture below.

Ltib_nfs1.jpg


3 - Select the option NFS only and exit LTIB configuration to compile with the new configuration.

Ltib_nfs2.jpg


4 - LTIB should start new compiling and create a new Linux image on /<ltib instalation folder>/rootfs/boot/zImage


5 - Copy the created image on /<ltib instalation folder>/rootfs/boot/zImage to /tftpboot/zImage


6 - The system is ready to run with NFS. The root file system on target will be located on host on /<ltib instalation folder>/rootfs/


Tags (2)
Comments

Why are you loading zImage and not uImage?

%3CLINGO-SUB%20id%3D%22lingo-sub-1114666%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EAll%20Boards%20NFS%20on%20Ubuntu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1114666%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH1%20id%3D%22toc-hId-381533618%22%20id%3D%22toc-hId-381533618%22%20id%3D%22toc-hId-1297817292%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ENetwork%20File%20System%20(NFS)%3C%2FSPAN%3E%3C%2FH1%3E%3CH2%20id%3D%22toc-hId-1072095092%22%20id%3D%22toc-hId-1072095092%22%20id%3D%22toc-hId-1988378766%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH2%3E%3CH2%20id%3D%22toc-hId--735359371%22%20id%3D%22toc-hId--735359371%22%20id%3D%22toc-hId-180924303%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ESetting%20the%20Host%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E1%20-%20Install%20NFS%20Service%20on%20host%20typing%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24sudo%20apt-get%20install%20nfs-kernel-server%20%3C%2FPRE%3E%3CP%3E2%20-%20Create%20symbolic%20link%20to%20ltib%2Frootfs%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24sudo%20ln%20-s%20%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%2Frootfs%20%2Ftftpboot%2Frootfs%20%3C%2FLTIB%3E%3C%2FPRE%3E%3CP%3E3%20-%20Setup%20exports%20typing%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24sudo%20gedit%20%2Fetc%2Fexports%20%3C%2FPRE%3E%3CP%3Eand%20add%20the%20following%20line%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%2Ftftpboot%2Frootfs%2F%20*(rw%2Cno_root_squash%2Cno_subtree_check%2Casync)%20%3C%2FPRE%3E%3CP%3E4%20-%20Restart%20the%20NFS%20server%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24sudo%20%2Fetc%2Finit.d%2Fnfs-kernel-server%20restart%20%3C%2FPRE%3E%3CP%3ENow%20the%20host%20is%20ready%20to%20use%20NFS.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1752153462%22%20id%3D%22toc-hId-1752153462%22%20id%3D%22toc-hId--1626530160%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ESetting%20Target%20Linux%20Image%20to%20use%20NFS%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E1%20-%20Run%20LTIB%20configuration%20typing%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24cd%20%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%20%0A%24.%2Fltib%20-c%0A%3C%2FLTIB%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%202%20-%20On%20first%20page%20menu%2C%20go%20to%20%22Target%20Image%20Generation%20-%26gt%3B%20Options%22%20as%20in%20the%20picture%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ltib_nfs1.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ltib_nfs1.jpg%22%20style%3D%22width%3A%20667px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37856iBCBE1FFE3A48E028%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Ltib_nfs1.jpg%22%20alt%3D%22Ltib_nfs1.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%203%20-%20Select%20the%20option%20NFS%20only%20and%20exit%20LTIB%20configuration%20to%20compile%20with%20the%20new%20configuration.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ltib_nfs2.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ltib_nfs2.jpg%22%20style%3D%22width%3A%20667px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37860i3D9131D8EBC7CC98%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Ltib_nfs2.jpg%22%20alt%3D%22Ltib_nfs2.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%204%20-%20LTIB%20should%20start%20new%20compiling%20and%20create%20a%20new%20Linux%20image%20on%20%2F%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%2Frootfs%2Fboot%2FzImage%3C%2FLTIB%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%205%20-%20Copy%20the%20created%20image%20on%20%2F%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%2Frootfs%2Fboot%2FzImage%20to%20%2Ftftpboot%2FzImage%3C%2FLTIB%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%206%20-%20The%20system%20is%20ready%20to%20run%20with%20NFS.%20The%20root%20file%20system%20on%20target%20will%20be%20located%20on%20host%20on%20%2F%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%2Frootfs%2F%3C%2FLTIB%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1114667%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20All%20Boards%20NFS%20on%20Ubuntu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1114667%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhy%20are%20you%20loading%20zImage%20and%20not%20uImage%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-10-2020 02:26 AM
Updated by: