About imx6q-sabresd board: TFTP Setup

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

About imx6q-sabresd board: TFTP Setup

Jump to solution
1,025 Views
tungho
Contributor III

Hi guys,
I am trying to 'run netboot' during start-up. However, I keep getting the following output on the serial console:

=> run netboot


Booting from net ...
Using FEC device
TFTP from server 10.0.0.1; our IP address is 10.0.0.10
Filename 'zImage'.
Load address: 0x12000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
[...]

Do you know what could have caused this issue ?? It sounds like I did NOT bring up the TFTP server properly because my board can NOT load the kernel. Or at least, what and where should I look into ??

Thanks,
Have a nice day,
TH

0 Kudos
1 Solution
861 Views
tungho
Contributor III

Hi guys,

My TFTP setup is fine. It was just the '.sdcard' image that did NOT work properly (i.e. fsl-image-gui failed the kernel loading during netboot). I had to use another yocto build to successsfully netboot my board (i.e. core-image-base succeeded).

This question has been resolved.

Sorry about this...

Thanks,
TH

View solution in original post

0 Kudos
5 Replies
862 Views
tungho
Contributor III

Hi guys,

My TFTP setup is fine. It was just the '.sdcard' image that did NOT work properly (i.e. fsl-image-gui failed the kernel loading during netboot). I had to use another yocto build to successsfully netboot my board (i.e. core-image-base succeeded).

This question has been resolved.

Sorry about this...

Thanks,
TH

0 Kudos
861 Views
Carlos_Musich
NXP Employee
NXP Employee

Thank you for sharing you experience Tung Go.

Regards,

Carlos

0 Kudos
861 Views
tungho
Contributor III

Hi guys,

I have been able to run a TFTP server on one Linux machine (14.04 LTS [32-bit]) and run another TFTP client on another Linux machine (14.04 LTS [64-bit]). I have also been able to transfer a sample text file from the server to the client as follows:

server> ls /var/lib/tftpboot

sample.txt     zImage     [other-files]

server> sudo ufw disable && sudo chmod 1777 /var/lib/tftpboot

server> sudo service tftpd-hpa restart

tftpd-hpa stop/waiting
tftpd-hpa start/running, process 6784

server> ifconfig

eth0   Link encap:Ethernet  HWaddr f4:8e:38:bc:4a:1a  
          inet addr:192.168.0.14  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: ::c4e0:10ab:bedf:d2b9/64 Scope:Global
          inet6 addr: fe80::f68e:38ff:febc:4a1a/64 Scope:Link
          inet6 addr: ::f68e:38ff:febc:4a1a/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:106716 errors:0 dropped:587 overruns:0 frame:0
          TX packets:83062 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:60894881 (60.8 MB)  TX bytes:24045817 (24.0 MB)

client> ls

[other-files]

client> tftp 192.168.0.14

tftp> get sample.txt

tftp>quit

client> ls

sample.txt     [other-files]

HOWEVER, I CAN NOT DO THE SAME THING WITH MY imx6q-sabresd BOARD OVER ETHERNET.

[i.e. 'tftp sample.txt' and 'tftp zImage' failed]

AND I KEPT SEEING THE FOLLOWING OUTPUT ON THE SERIAL TERMINAL:

   Loading: T T T T T T T T T T
   Retry count exceeded; starting again

May I ask you if this issue can be traced back to my sabre board (i.e. configuration, revision, ...) or am I missing something here ?? Because it looks like the TFTP server is running fine on one Linux station, it is just that the sabre board can NOT get any file from the server, whereas another Linux client can.

Or at least, what should I do now ??

Thanks,
TH

0 Kudos
861 Views
Carlos_Musich
NXP Employee
NXP Employee

HI Tung Ho,

my understanding is that you already solved your problem as you mentioned here. Right?

https://community.nxp.com/message/945749 

Regards,

Carlos

0 Kudos
861 Views
tungho
Contributor III

Hi Carlos,

Sorry about this, but No I did NOT solve the whole problem. I just got part of it to run. And I should have clarified better.

What I really meant in that post is "The command 'run netboot' is able to run now" ...

However, I still could NOT load the kernel image from the TFTP server on my development station (Ubuntu 14.04 LTS 32-bit) because I kept seeing the following output on the serial terminal:

   Loading: T T T T T T T T T T
   Retry count exceeded; starting again

   [...]

Do you happen to know what I am missing here ?? Is it my development environment, dip switches, or firmware update/upgrade ?? Or at least, what should i look at or do next ??

Thanks,

Have a nice day,

TH

0 Kudos