CuBox Development Platform

Linux, Android based tiny, energy efficient development machine
It is currently Wed Jun 19, 2013 8:40 am

All times are UTC




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Apr 16, 2012 12:40 am 
Offline

Joined: Fri Apr 13, 2012 4:49 am
Posts: 8
I'm trying to set up my cubox for net booting but this is the message the serial port is sending me.

Using egiga0 device
TFTP from server 192.168.15.100; our IP address is 192.168.15.223
Filename 'boot.scr'.
Load address: 0x2000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again

The TFTP server is located at 192.168.3.10 (same as the DHCP server).
When booting from the SD Card with ArchLinux, the cubox gets IP address 192.168.3.15 from the DHCP server so I'm sure that cubox can find the server.

Where did it get the 192.168.15.100 number? (it does not exist on my netwark) and how do we get my cubox to talk to the correct server?


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 4:49 am 
Offline

Joined: Thu Dec 15, 2011 11:05 am
Posts: 207
Location: Castellbisbal (Spain)
You have to set your own settings in the uboot, for instance:

setenv ipaddr 192.168.3.15 (your cubox ip)
setenv serverip 192.168.3.10 (your tftp server ip)

Once you set the correct values, store it in the uboot using the command saveenv, then the command reset (or power off & power on your cubox)

Hope it hels,

PacoLM

_________________
Proud user of a Cubox


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 5:06 am 
Offline

Joined: Sat Dec 17, 2011 9:43 am
Posts: 209
I also found that (sometimes) one has to unplug, count to 10 and plug in the ethernet for the uboot ethernet to work.


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 5:08 am 
Offline

Joined: Fri Apr 13, 2012 4:49 am
Posts: 8
Is it possible to set uboot to get these ip address from the dhcp server rather than hard coding the addresses?

Seems like a pain to have to boot up the device on a special memory card every time the dhcp server changes so it will find the new numbers. All of my other net booting devices can do that.


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 6:10 am 
Offline
User avatar

Joined: Mon Jan 02, 2012 5:34 pm
Posts: 108
Location: Czech Republic
try this
http://www.denx.de/wiki/view/DULG/Syste ... ection_4.7.
( http://www.solid-run.com/mw/index.php/Setup_NFS_boot )

_________________
Please visit and update the Wiki
Use forum Search function


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 1:52 am 
Offline

Joined: Fri Apr 13, 2012 4:49 am
Posts: 8
I was able to set the enviroment variables. (Only after realizing that these can only be set from the serial port interface after interrupting the boot process and not after booting up Ubuntu.)

I've found the TFTP server but can not down load the file. I can download files from the TFTP server using other computers. I've tried both boot.scr and uImage and get the same result.

The message now says:

Using egiga0 device
TFTP from server 192.168.3.10; our IP address is 192.168.3.15
Filename 'boot.scr'.
Load address: 0x2000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again



Any other ideas


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 4:45 am 
Offline

Joined: Thu Dec 15, 2011 11:05 am
Posts: 207
Location: Castellbisbal (Spain)
When the first timeout is reached, unplug and plug again the ethernet cable.

_________________
Proud user of a Cubox


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 5:59 am 
Offline

Joined: Fri Apr 13, 2012 4:49 am
Posts: 8
After I unplug and plug back in the ethernet cable the system stops completely (no more activity on the serial port.)


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 11:57 am 
Offline

Joined: Thu Dec 15, 2011 11:05 am
Posts: 207
Location: Castellbisbal (Spain)
cmhood wrote:
After I unplug and plug back in the ethernet cable the system stops completely (no more activity on the serial port.)


Yes, this happens sometimes, another option is to disconnect the ethernet cable just after the tftp command and plug it when 2 or 3 timeouts had happenned. Just try it, it works!

_________________
Proud user of a Cubox


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 1:10 pm 
Offline

Joined: Mon Apr 16, 2012 4:27 pm
Posts: 23
Location: Russia
Decreasing network traffic may be helpful too. My Dlink DIR-615 router was dropping packets apparently. I've checked everything a dozen times, TFTP was fixed by stopping Deluge :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group