Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: nfs rootfs 'link down'
PostPosted: Thu May 22, 2008 8:20 pm 
Offline

Joined: Sun Sep 02, 2007 1:39 pm
Posts: 77
Hello,

in an effort to be more flexible during the (software) development cycle, I'm creating a setup where the kernel is booted from tftp and the rootfs is used over nfs.

Booting the kernel with u-boot (and starting) is going great (I do have to use a static IP, when using bootp, the tftp transfer fails).

I've tried bootargs with both ip=bootp and ip=172.16.0.2.54, but I keep getting errors:

Quote:
VFS: Mounted root (nfs filesystem).
Freeing init memory: 124K
eth0: TX underrun, resetting buffers
eth0: TX underrun, resetting buffers
eth0: TX underrun, resetting buffers
eth0: link down
nfs: server 172.16.0.1 not responding, still trying
nfs: server 172.16.0.1 not responding, still trying


I've tried several mii-tool options on the server-side, but this doesn't help.
This is kernel 2.6.24 with the latest patch sets from Linux4Sam.

Anyone got pointers to fix the underrun errors ?

my U-boot environment:

Quote:
bootdelay=3
baudrate=115200
bootcmd= cp.b 0xC0040000 0x22200000 0x00173438; bootm 0x22200000
ethaddr=00:de:ad:be:ef:01
serverip=172.16.0.1
ipaddr=172.16.0.254
boot_net=tftp $(boot_addr) uImage; bootm $(boot_addr)
boot_addr=0x21400000
bootargs=mem=64M console=ttyS0,115200 root=/dev/nfs nfsroot=172.16.0.1:/misc/usb/2008-05/oe/tmp/rootfs ip=172.16.0.254
stdin=serial
stdout=serial
stderr=serial


The evalkit (9263) is starting using run boot_net


edit:

using ethtool on the server side, to force autonegotiation off, speed 100, full duplex and tx/rx flow control disabled, the tx underrun errors disappear but the link still goes down.

edit2:

The root of all evil appears to be some old script I was using to obtain a dhcp lease...
When the script start, it does a ifconfig eth0 down (whoops, nfs gone!) and configures the hardware address.. Ofcourse, when the interface is being used for a rootfs over nfs, it isn't smart to down the interface.. Shame on me.

Apparently, the 'tx underrun' errors are not fatal, when the ethernet interface (server side) is using RX flowcontrol again, the message reappear on the client side but everything is working ok.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 26, 2008 2:08 pm 
Offline

Joined: Thu Feb 28, 2008 5:37 am
Posts: 65
Hello limpens,

Did u got any success in mounting the root FS through NFS, I was also trying the same but my AT91SAM9263EK board system hanged after mounting, with this message.

VFS: Mounted root (nfs filesystem).
Freeing init memory: 124K


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 27, 2008 8:44 am 
Offline

Joined: Sun Sep 02, 2007 1:39 pm
Posts: 77
dev wrote:
Hello limpens,

Did u got any success in mounting the root FS through NFS, I was also trying the same but my AT91SAM9263EK board system hanged after mounting, with this message.

VFS: Mounted root (nfs filesystem).
Freeing init memory: 124K


Hmm, looks like your missing the /dev/console device if I'm not mistaken.

The steps I've followed to get this up and running are (semi) documented at my private wiki


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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: