[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] ethernet status



Hi Finn,

Finn S. Nielsen wrote:

> When I say:
> 
> ifconfig eth0
> 
> I get
> 
> eth0      Link encap:Ethernet  HWaddr 00:00:C0:A3:E5:44
>           inet addr:192.168.44.6  Bcast:192.168.44.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           RX packets:0 errors:3701 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:748 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:0 (2236007218937856.508 ?iB)kX bytes:0
> (191280663494656.43 ?i
> B)k          Interrupt:3
> 
> 
> Seems all packets are erred, although things seem to work resonably anyway.
> But the Rxbyte and Tx byte count is somewhat strange...
> 
> Anyone got an idea of what's wrong.. ?

The problem is in the output of these numbers, not the networking 
support itself.  Somewhere between the mb-gcc support for variable 
argument lists, and the uClibc printf function, you can get this 
corruption when trying to print large numbers.

It's not a particualrly satisfactory answer, but I've never actually 
nailed it down.  You might want to have a look at some of the options in 
the uClibc/.config file - in particular the option called 
USE_OLD_VPRINTF (or something like that).  Try playing with that and 
rebuilding the libs.  Note you have to edit this file manually, it is 
not (yet) possible to play with the uClibc config in the menuconfig options.

Yashi - I notice that you've got this working properly in the Suzaku 
target, do you remember what you did to clean it up?

Thanks,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/