VAR-SOM-MX6 Yocto Flash From Net: Difference between revisions

From Variscite Wiki
No edit summary
Line 4: Line 4:
= Flashing a complete Yocto system from Network using tftp & nfs  =
= Flashing a complete Yocto system from Network using tftp & nfs  =


== Host  ==
== Build mininal file system==


Make sure you installed NFS server:
<pre>$ gedit ../sources/poky/meta/recipes-core/images/core-image-minimal-mtdutils.bb
<pre>$ sudo apt-get install nfs-kernel-server
</pre>  
$ cd ~/var-som-mx6-dora-v3
Set the image to include:
$ sudo mkdir rootfs
IMAGE_INSTALL += "mtd-utils imx-kobs mtd-utils-ubifs"
$ cd rootfs
Build the system:
$ sudo tar xvf ../build_mx6q/tmp/deploy/images/vafsl-image-gui-varsommx6q.tar.bz2 </pre><pre>$ sudo gedit /etc/exports </pre>  
<pre>$
add:
</pre>


/home/&lt;uname&gt;/var-som-mx6-dora-v3/rootfs *(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
exit &amp; save
<pre>$ sudo /etc/init.d/nfs-kernel-server restart</pre>
Make sure you installed TFTP server:
<pre>$ 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
$ cp ~/var-som-mx6-dora/buildmx6q/tmp/deploy/images/varsommx6q/uImage /tftpboot</pre>
== Target  ==
== Target  ==



Revision as of 10:03, 18 December 2014

Flash From Network Yocto system

Flashing a complete Yocto system from Network using tftp & nfs

Build mininal file system

$ gedit ../sources/poky/meta/recipes-core/images/core-image-minimal-mtdutils.bb

Set the image to include: IMAGE_INSTALL += "mtd-utils imx-kobs mtd-utils-ubifs" Build the system:

$

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 ethaddr a8:cc:3d:d9:b8:f5
$ setenv kernel uImage
$ setenv nfsroot /home/<uname>/fsl-community-bsp/rootfs
$ setenv bootcmd run bootcmd_net
$ saveenv 

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