VAR-SOM-MX6 Yocto Utilizing: Difference between revisions

From Variscite Wiki
Line 56: Line 56:
$ setenv kernel uImage
$ setenv kernel uImage
$ setenv console ttymxc0
$ setenv console ttymxc0
$ setenv nfsroot /home/<uname>/vvar-som-mx6-yocto-fido/rootfs
$ setenv nfsroot /home/<uname>/var-som-mx6-yocto-fido/rootfs
$ setenv bootcmd run netboot
$ setenv bootcmd run netboot
$ saveenv </pre>  
$ saveenv </pre>  

Revision as of 07:05, 11 January 2016

Setup TFTP/NFS Yocto system

Running Yocto rootfs on Variscite board using tftp & nfs

Host

Make sure you installed NFS server:

$ sudo apt-get install nfs-kernel-server
$ cd ~/var-som-mx6-yocto-fido
$ sudo mkdir rootfs
$ cd rootfs
$ sudo tar xvf  ../build_x11/tmp/deploy/images/var-som-mx6/fsl-image-qt5-var-som-mx6.tar.bz2 
$ sudo gedit /etc/exports 

add:

/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 ~/var-som-mx6-yocto-fido/build_x11/
$ cp tmp/deploy/images/var-som-mx6/uImage /tftpboot
$ cp tmp/deploy/images/var-som-mx6/uImage-imx6dl-var-som.dtb /tftpboot/imx6dl-var-som.dtb
$ cp tmp/deploy/images/var-som-mx6/uImage-imx6dl-var-som-solo.dtb /tftpboot/imx6dl-var-som-solo.dtb
$ cp tmp/deploy/images/var-som-mx6/uImage-imx6dl-var-som-solo-vsc.dtb /tftpboot/imx6dl-var-som-solo-vsc.dtb
$ cp tmp/deploy/images/var-som-mx6/uImage-imx6q-var-dart.dtb /tftpboot/var-dart.dtb
$ cp tmp/deploy/images/var-som-mx6/uImage-imx6q-var-som.dtb /tftpboot/imx6q-var-som.dtb
$ cp tmp/deploy/images/var-som-mx6/uImage-imx6q-var-som-vsc.dtb /tftpboot/imx6q-var-som-vsc.dtb

Target

make sure you have a serial connection to the target.

reset and hold the space bar. This will brink you to u-boot prompt

$ setenv serverip 192.168.1.188
$ setenv kernel uImage
$ setenv console ttymxc0
$ setenv nfsroot /home/<uname>/var-som-mx6-yocto-fido/rootfs
$ setenv bootcmd run netboot
$ saveenv 

You are all set. Pushing reset on the VAR-SOM-MX6 board will run your Yocto result file system.