RedBoot iMX35 PDK

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

RedBoot iMX35 PDK

Jump to solution
3,554 Views
jvidal
Contributor III

Hi:

 

I cant download a zImage that contain linux create with ltib.

 

When i test tftp with get zImage, a new file zImage create in my home root (/home/user_name/zImage), i thing tftp is working correct.

 

Then i connect a ethernet croos cable and serial cable between debug target and PC.

 

The next step, is run cutecom and open /dev/ttyS0 and power debug board. Cutecom show me...

 

...waiting for BOOTP information

Ethernet eth0: MAC address xx:xx:xx:xx:xx:xx (x = num)

Can`t get BOOTP info for device!

hardware reset by POR

...

...

...

 

Then in Redboot promt i try to download zImage to NAND flash

 

Redboot> load -r -v -b 0x100000 zImage

Using defaukt protocol (TFTP)

Cant load 'zImage' invalid parameter

 

If in redboot promt i put fconfig, defualt server IP address is empty...and i cant get ping between debug board and PC...

 

Do you have some idea what happend???

 

Thanks for all.

0 Kudos
1 Solution
890 Views
jvidal
Contributor III

Hi:

 

Error is that i have zImage in folder /tftpboot and configuration in NFS to shared folder have /tftpboot/rootfs

 

Finally, i enumerate my error:

 

1.- We have to configure manually net (Getaway, IP, mask) in debug board

2.- Configure correctly shared folder in NFS in Host.

 

Thats is all.

 

Thanks for all asqnx.

Message Edited by jvidal on 2009-09-18 07:42 AM

View solution in original post

0 Kudos
6 Replies
890 Views
jvidal
Contributor III

Hi asqnx:

First, thanks for your answer.

I follow next tutorial to config tftp in Ubuntu, and finally i get a new zImage (with different create day) en /tftpboot

http://www.davidsudjiman.info/2006/03/27/installing-and-setting-tftpd-in-ubuntu/

 

Then:

 

PC side:
tftp 172.16.21.4 (static IP PC)
tftp>status
Connect to 172.16.21.4
Mode: netascii Verbose: off Tracing: off
Rexmt-interval...

target side:
Then i configure one parameter in RedBoot:
RedBoot>fconfig bootp_server_ip 172.16.21.4 (static IP my PC)
RedBoot>reset (reboot target)
RedBoot>load -r -b 0x100000 zImage -h 172.16.21.4

But load commando dont work

 

In the other hand i try to do a ping from target to PC

 

RedBoot>ping -n 3 -h 172.16.21.4 -r 10

Network PING - from 0.0.0.0 to 172.16.21.4

 

target IP is empty...is imposible to have communication...

 

How i can to know what is debug board IP?, in the debug board only show a MAC address...and i dont know how change board IP from RedBoot...

 

Thanks for all.

 

PD: To change target IP first have to set to false bootp:

RedBoot>fconfig bootp false

Then we can configure the next parameters

RedBoot>fconfig bootp_my_gateway_ip 172.16.21.1

RedBoot>fconfig bootp_my_ip  172.16.21.25

RedBoot>fconfig bootp_my_ip_mask 255.255.255.0

RedBoot>fconfig bootp_server_ip 172.16.21.4

 

Now we can do ping command from PC to Board and from Board to PC, but load command dont work...

Can´t loas 'zImage': Unknown error...

 

Any idea.

 

Thanks

Message Edited by jvidal on 2009-09-17 03:39 PM
Message Edited by jvidal on 2009-09-17 03:39 PM
Message Edited by jvidal on 2009-09-17 03:41 PM
Message Edited by jvidal on 2009-09-17 03:46 PM
0 Kudos
890 Views
asqnx
Contributor I

Hi jvidal:

 

If your IP address for your PC is 172.16.21.4, I would try to set the target to 172.16.21.100 like this:

 

At the Redboot prompt, type fconfig and press enter:

 

RedBoot>
RedBoot> fconfig
Run script at boot: false
Use BOOTP for network configuration: false
Gateway IP address: 172.16.21.4
Local IP address: 172.16.21.100
Local IP address mask: 255.255.255.0
Default server IP address: 172.16.21.4
Board specifics: 0
Console baud rate: 115200
Set eth0 network hardware address [MAC]: false
Set FEC network hardware address [MAC]: false
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Default network device: lan92xx_eth0
Update RedBoot non-volatile configuration - continue (y/n)? y
... Read from 0x07ec0000-0x07eff000 at 0x00080000: ..
... Erase from 0x00080000-0x000c0000: .
... Program from 0x07ec0000-0x07f00000 at 0x00080000: ..
RedBoot>

 

Then reboot target,

you should see something like this:

 

LAN92xx Driver version 1.1
SMSC LAN9217: ID = 0x117a REV = 0x0
[Warning] FEC not connect right PHY: ID=c0001c
FEC: [ HALF_DUPLEX ] [ disconnected ] [ 10M bps ]:
Ethernet eth0: MAC address 00:04:9f:00:d8:b5
IP: 172.16.21.100/255.255.255.0, Gateway: 172.16.21.4
Default server: 172.16.21.4
hardware reset by watchdog

At Redboot prompt, type ip.  This will show you the target's configuration.

RedBoot> ip
IP: 172.16.21.100/255.255.255.0, Gateway: 172.16.21.4
Default server: 172.16.21.4

 

Then on your Ubuntu PC, try:

ping 172.16.21.100  (I have trouble with Redboot's ping so try it the other way--initiate it on PC)

 

I am able to get load command to work (looks like this):

RedBoot> load -r -b 0x100000 zImage
Using default protocol (TFTP)
Raw file loaded 0x00100000-0x002c2fbb, assumed entry at 0x00100000
RedBoot>

 

 

*Check also: Are you using the ethernet jack on the debug board?

 

0 Kudos
890 Views
jvidal
Contributor III

Hi asqnx:

 

Thanks other again for your time :smileywink.

 

getaway is the same that ip but finish in 1???, depend of the class of net (A,B or C) ¿¿¿no??

 

For example:

 

my IP: 172.16.21.4 mask: 255.255.255.0

Getaway: 172.16.21.1

 

In the other hand PC can see board and board can see PC, but i cant load zImage...

 

Any idea...

 

Thanks for all friend.

 

P.D: Yes i connect ethernet croos cable between PC-Board

Message Edited by jvidal on 2009-09-17 04:01 PM
Message Edited by jvidal on 2009-09-17 04:02 PM
Message Edited by jvidal on 2009-09-17 04:02 PM
0 Kudos
890 Views
jvidal
Contributor III

For more information my configuration is:

 

In file /etc/exports

 

/tftpboot/rootfs/ *(rw,no_root_squash,async)

 

 

In file /etc/xinetd.d/tftp

service tftp

{

disable = no

socket_type = dgram

protocol = udp

wait = yes

user = xxx (where xxx=my user name)

server = /usr/sbin/in.tftpd

server_args = -s /tftpboot

port=69

}

 

Then we have permision in /tftpboot ( sudo chmod -R 777 /tftpboot  )

 

Then restart TFTP and NFS...

 

And thats is all.

 

Any idea, load command redboot promt dont work???

 

Thanks for all.

Message Edited by jvidal on 2009-09-17 04:26 PM
0 Kudos
891 Views
jvidal
Contributor III

Hi:

 

Error is that i have zImage in folder /tftpboot and configuration in NFS to shared folder have /tftpboot/rootfs

 

Finally, i enumerate my error:

 

1.- We have to configure manually net (Getaway, IP, mask) in debug board

2.- Configure correctly shared folder in NFS in Host.

 

Thats is all.

 

Thanks for all asqnx.

Message Edited by jvidal on 2009-09-18 07:42 AM
0 Kudos
890 Views
asqnx
Contributor I

First steps: confirm IP connectivity between PC and target; confirm TFTPD works with PC

 

Since your target and PC are connected directly with an ethernet cross cable, you would need to run a BOOTP server on your PC in order for the target to get an IP address. But you could just hard-code the settings on the target and do without BOOTP.

 

PC side:
Configure your ethernet card with a static IP (e.g. 192.168.1.1)

Run TFTPD (TFTP server)

target side:
At the Redboot prompt, use fconfig to hard-code all of the settings, including default server IP to be the IP address of your PC

 

I had trouble using ping on Redboot but you could use ping on your PC to confirm network connectivity after you have saved changes to fconfig and reset the target.

 

Also confirm that tftpd is correctly configured on your PC by using tftp to localhost on the PC to test that.

 

Then try

load -r -b 0x100000 zImage

 

or

load -r -b 0x100000 zImage -h 192.168.1.1 (your PC's IP address) -- you can specify the TFTP server address (it serves up zImage) with -h in case you want to use something other the default in fconfig.

0 Kudos