Yocto Setup TFTP/NFS: Difference between revisions
From Variscite Wiki
(Created page with "<!-- Set release according to "release" parameter in URL and use MORTY_BETA_DART-6UL as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {{#lst:Yocto_Plat...") |
(→Host) |
||
Line 8: | Line 8: | ||
Make sure you installed NFS server: | Make sure you installed NFS server: | ||
$ sudo apt-get install nfs-kernel-server | |||
$ cd {{#var:BUILD_FOLDER}} | $ cd {{#var:BUILD_FOLDER}} | ||
$ sudo mkdir rootfs | $ sudo mkdir rootfs | ||
$ cd rootfs | $ cd rootfs | ||
$ sudo tar xvf ../build_x11/tmp/deploy/images/{{#var:MACHINE_NAME}}/fsl-image-qt5-{{#var:MACHINE_NAME}}.tar.bz2 | $ sudo tar xvf ../build_x11/tmp/deploy/images/{{#var:MACHINE_NAME}}/fsl-image-qt5-{{#var:MACHINE_NAME}}.tar.bz2 | ||
<pre>$ sudo gedit /etc/exports </pre> | <pre>$ sudo gedit /etc/exports </pre> | ||
add (change <uname> to the name of user): | add (change <uname> to the name of user): |
Revision as of 16:50, 8 May 2017
- Yocto Setup TFTP/NFS
Running Yocto rootfs on Variscite board using TFTP & NFS
Host
Make sure you installed NFS server:
$ sudo apt-get install nfs-kernel-server $ cd $ sudo mkdir rootfs $ cd rootfs $ sudo tar xvf ../build_x11/tmp/deploy/images//fsl-image-qt5-.tar.bz2
$ sudo gedit /etc/exports
add (change <uname> to the name of user):
/home/<uname>/var-som-mx6-yocto-fido/rootfs *(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
exit & save
$ sudo /etc/init.d/nfs-kernel-server restart
Make sure you installed TFTP server:
$ sudo apt-get install xinetd tftpd tftp Verify: $ ls /usr/sbin/in.tftpd $ sudo gedit /etc/xinetd.d/tftp service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no }
$ sudo mkdir /tftpboot $ sudo chmod -R 777 /tftpboot $ sudo /etc/init.d/xinetd restart $ cd // $ cp tmp/deploy/images// /tftpboot $ sudo rename 's/-//' /tftpboot/-*.dtb
Target
Make sure you have a serial connection to the target.
Reset and hold the space bar. This will bring you to U-Boot command line.
$ setenv serverip 192.168.1.188 $ setenv nfsroot /home/<uname>/var-som-mx6-yocto-fido/rootfs (change <uname> to the name of user) $ setenv bootcmd run netboot $ saveenv
You are all set. Pushing reset on the VAR-SOM-MX6 board will run your Yocto result file system.