Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with uboot and dhcp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Sat Mar 13, 2010 10:30 pm    Post subject: problems with uboot and dhcp Reply with quote

I got here an arm netbook. What I try to do is to boot the kernel from my desktop, where crossdev is set up. Don't worry too much about the kernel yet since it doesn't even try to boot it :(

What uboot does on boot, it checks on the inserted sdcard a folder called "script" and executes the scriptimage "scriptcmd" found there. Here I can give uboot some options and even boot another kernel.

My dhcpd.conf:
Code:
host netbook {
        hardware ethernet 00:40:63:e4:a3:e0;
        fixed-address 192.168.0.26;
        option routers 192.168.0.254;
        option broadcast-address 192.168.0.255;
#        next-server 192.168.0.1;
#        filename "/var/tftproot/uImage";
}


the u-boot script I use:
Code:
textout 0 0 "Hello World!" ffffff
dhcp

The "Hello World" is to see at which step it hangs, because I just have a u-boot splash image on the screen. It writes Hello World in the top left corner of the screen. this shows me the script gets executed.

What happens is, that it gets an IP from the dhcp server:
Code:
Mar 13 22:11:30 disi-openvz dhcpd: DHCPDISCOVER from 00:40:63:e4:a3:e0 via eth0
Mar 13 22:11:30 disi-openvz dhcpd: DHCPOFFER on 192.168.0.26 to 00:40:63:e4:a3:e0 via eth0
Mar 13 22:11:30 disi-openvz dhcpd: DHCPREQUEST for 192.168.0.26 (192.168.0.254) from 00:40:63:e4:a3:e0 via eth0
Mar 13 22:11:30 disi-openvz dhcpd: DHCPACK on 192.168.0.26 to 00:40:63:e4:a3:e0 via eth0

But then it repeats this forever and on the switch the LED never turns green.

What could be the problem, that the netbook doesn't accept the ip address?
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
Wormo
Developer
Developer


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Tue Mar 16, 2010 6:04 am    Post subject: Reply with quote

I don't know what version of u-boot is on your netbook, but it could have a bug in the dhcp command. For instance here is a patch from 2009 regarding a dhcp bug in another port
http://www.mail-archive.com/u-boot-commits@blackfin.uclinux.org/msg01355.html

Why don't you try setting ip addresses statically in your script instead?

Something like

Code:

setenv ipaddr 192.168.0.26
setenv serverip 192.168.0.whatever
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Wed Mar 17, 2010 9:53 am    Post subject: Reply with quote

I tested it already, same thing. Must be a problem with uboot then.
That means I would have to copy the uImage each time to the sdcard and swap it between desktop and netbook... -.-

Or wait for them to port some Linux to it. WonderMedia plans to port Android to the wm8505 chip... this is not really official, just read this here:
Quote:
As I know, They will not promote VT8500, now they only have WM8505. of cause, OS is WINCE6.0 now.

Android system base on WM8505, it will be MP at 15/April. at that time, it will replace WINCE.

To DonutFun : yes. Wondermedia is the subsidiary of Via. That's why VT to WM. it is the same company.

To Mikko: they do porting android by themselves or with 3rd party now. it will be ready at begining of April. I am wondering you can develop linux without BSP.


The problem is, that Android has this weird kernel code and no official support in the Linux kernel :(
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
Wormo
Developer
Developer


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Thu Mar 18, 2010 1:24 am    Post subject: Reply with quote

disi wrote:

The problem is, that Android has this weird kernel code and no official support in the Linux kernel :(


Another really inconvenient thing is that normal Linux apps don't work in Android. It really is a different operating system which is not even POSIX, so effort to port apps is significantly more than just a recompile. Definitely not what I'd want for a netbook. Formerly-moblin soon-to-be-released "meego" seems more interesting for netbooks in my opinion.
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Thu Mar 25, 2010 11:11 am    Post subject: Reply with quote

If someone else has the problem on those WM8505 netbooks:
The default IP address is 10.1.8.250, and the default server IP is 10.1.8.37. As a work around you can create a tiny network with just those ip addresses which works fine then. dhcp or assigning another ip address doesn't work :(
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum