Transferring and Running Linux on i.MX6 using NFS ( tftp)
Once you have built kernel for i.MX6 ( I will have a separate blog in how to build kernel) you need to transfer it to your i.MX6 board to test it. In this blog I will walk through the steps needed to transfer the kernel and run it.
Installing the tftp Server in Linux machine
You need to install the tfto server on the Host linux machine. Use following command to install the tftp
sudo apt-get install xinetd tftpd tftp
Now create file named tffp ( you can use gedit editor) in the directory
/etc/xinetd.d/
and put the following contents
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
Make /tftpboot directory
$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot
Start tftpd through xinetd
$ sudo /etc/init.d/xinetd start
You can find if the tftp server is running or not by using the command
ps aux | egrep 'xinetd'
It gives something like ( if the xinetd is running)
vikas 2440 0.0 0.0 13584 924 pts/0 S+ 11:50 0:00 egrep --color=auto xinetd
Find the ipaddress of the Linux machine using ifconfig ( let us say - it is 192.168.202.144)
On the i.MX6 board set the correct serverip
setenv serverip 192.168.202.144
Set the correct gatewayip
setenv 192.168.0.1
( Also make sure that the environment variable ipaddr is set. You can use dhcp to get the current ip Address)
Place the uImage file in the director /tftpboot
Transfer the uImage using tftp
> tftp 0x10008000 uImage
Run the uImage
> bootm
Hope it helps