Skip to contentSkip to conversation

No subject

DISCUSSION [email protected] 1 participant 1 message Aug 19, 2008

lore
Share & tools
lore
#0 lore raw

ethernet dirver.

If I do a ping, all netRxPackets are inited to proper values, and everything works fine.

Thanks
Dave.

Quoted 49 lines · --- Wolfgang Denk

Dear Dave,

in message <[email protected]>

Quoted 2 lines · you

I have 8260 based board and am using u-boot for

that.

Quoted 1 line

I boot kernel from the flash. All works fine

however

Quoted 2 lines

sometimes Linux Kernel does not boot after uncompressing, further investigation found that as

the

Quoted 2 lines

kernel entry point is address 0, and that is also address of netRxPackets, if a packet is received

after

You are wrong here. NetRxPackets[] is definitely NOT located at
address 0.

Quoted 2 lines

the kernel is unzipped by u-boot, ethernet driver corrupts data at address 0 thinking it as its

buffer

Quoted 1 line

pointer. Hence kernel does not boot up in that

case.

No, no, no.

Quoted 2 lines

My first question is that why we dont initialize netRxPackets in net.c?? (these are only

initialized

Quoted 1 line

once a network related operation (like ping) is

done).

U-Boot uses the network only when a network related operation is in
progress, so why should we waste memory for buffers when they are not
needed?

Quoted 1 line

Is this the corect behaviour?? has anyone

observed

Quoted 1 line

this problem??

This is correct behaviour. It works perfectly find on all boards I
was able to test.

Quoted 18 lines

You are on the wrong track.

Best regards,

Wolfgang Denk

Signature · 8 lines
Software Engineering:  Embedded and Realtime
Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88 
Email: wd at denx.de
You got to learn three things. What's  real,  what's
 not  real,  and
what's the difference."           - Terry Pratchett,
_Witches Abroad_

-------------------------------------------------------

Quoted 7 lines

This SF.Net email is sponsored by: IBM Linux
Tutorials
Free Linux tutorial presented by Daniel Robbins,
President and CEO of
GenToo technologies. Learn everything from
fundamentals to system

administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

Quoted 4 lines

_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/u-boot-users

__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html