Angstrom u-boot not working for dhcp/bootp

I’ve been trying to boot a kernel over the network. When trying dhcp or bootp from u-boot, the LEDs on the ethernet jack toggle but no packets are ever sent on the network. Has anyone booted via the network?

copy here "printenv"

Yes I did it but this proved to be very painful. I had to get the last git version of u-boot because the ones provided with angstrom had problems with 'usb start' command (no interface was found) OR did had nfs/tftp disabled at compile time.

But with the last git version, once again I faced two problems
1) the MLO seems to be broken on beagleboard, I mean the board is wrongly initialized and I had several boot time messages errors. I had to use the MLO file from the angstrom distro (yuk! bad mix)
2) usb mac addr was impossible to set with uEnv.txt file because uEnv.txt was not read by u-boot - I had to insert this variable and several others at compile time

Then I had u-boot retrieving the kernel from my tftp server but hanging at 'booting the kernel'. I'm quite sure it's caused by 1)

So I gave up. If you have any success, I would be VERY interested by knowing which version of u-boot you used !

You need to do 'dcache off' before usb or network commands.

Yes, I'm aware of this trick, I tried this one too... But I had further problems (don't remember which ones)... I'll give another try

dcache off did not make a difference. No bootp/dhcp packets are transmitted.

That was with the ubuntu build. I just tried it with the angstrom build and it worked. Thanks.

From: beagleboard@googlegroups.com [mailto:beagleboard@googlegroups.com]
On Behalf Of Christophe Gimenez
Sent: Sunday, May 06, 2012 6:17 AM
To: beagleboard@googlegroups.com
Subject: Re: [beagleboard] Angstrom u-boot not working for dhcp/bootp

>
>>> I've been trying to boot a kernel over the network. When trying dhcp

or bootp

from u-boot, the LEDs on the ethernet jack toggle but no packets are ever

sent on

the network. Has anyone booted via the network? -- To join:
http://beagleboard.org/discuss
>>> To unsubscribe from this group, send email to:
>>> beagleboard+unsubscribe@googlegroups.com
>>> Frequently asked questions: http://beagleboard.org/faq
>> Yes I did it but this proved to be very painful. I had to get the last

git version of

u-boot because the ones provided with angstrom had problems with 'usb

start'

command (no interface was found) OR did had nfs/tftp disabled at compile

time.

> You need to do 'dcache off' before usb or network commands.
>
>

Yes, I'm aware of this trick, I tried this one too... But I had further

problems (don't

remember which ones)... I'll give another try

I just managed to get tftp/nfs working on my Beagle-xM using Angstrom u-boot
V2011.12 and Linux Kernel V3.2.16 so I thought I would share my findings:

1) The Angstrom Linux Kernel V3.2.16 will not boot via NFS because it was
built without the USB Ethernet driver installed in the kernel. Instead, it
is built as a module which won't work. You will have to enable this driver
by changing the setting CONFIG_USB_NET_SMSC95XX=m to
CONFIG_USB_NET_SMSC95XX=y. Easiest way to do this is change this setting in
the file
oe/source/meta-ti/recipes-kernel/linux/linux-mailline-3.2/beagleboard/defcon
fig and them rebuild the kernel in Angstrom. Something like this: bitbake -c
cleansstate virtual/kernel; bitbake -c build virtual/kernel. If you are
using the V3.0.28 kernel, this setting is correct so no changes necessary.
2) Edit the attached file and update yourUserID, ipaddr, serverip and gwaddr
to match your development environment
3) Erase any u-boot environment stored in flash
4) Copy the attached file to the first fat32 partition. The only files you
need are MLO, u-boot.img and uEnv.txt
5) Setup your tftp and nfs server on your desktop
6) Copy your uImage-beagleboard.bin to your tftp folder
7) Extract the Angstrom FileSystem to your target NFS folder
8) Power up your board and you should be good to go.

Hope this helps.

John

-- To join: http://beagleboard.org/discuss To unsubscribe from this group,

send

uEnv.txt (977 Bytes)