2010-11-17 09:45:34     ezkit 537 ethernet problem

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-11-17 09:45:34     ezkit 537 ethernet problem

Eugene Shvets (RUSSIAN FEDERATION)

Message: 95922   

 

Hey!

 

I manged to load Uboot into board, and now am struggling to make the ethernet link to use tftp.

 

I have 3 problems:

 

1.I set ethadrr, ipaddr and serverip on the board and plug in ethernet cable between host and the board, then change ip of the host (ifconfig eth0 192.168.0.1)

 

bfin> print ipaddr

ipaddr=192.168.0.15

bfin> print ethaddr

ethaddr=00:E0:22:FE:07:91

bfin> print serverip

serverip=192.168.0.1

 

 

then I type in bfin> ping 192.168.0.1 and the LED on the ethernet cable stops working and there is a message "Blackfin EMAC: link down, check cable". The Ethernet cable is working and is properly plugged... Did I forget to change some variable? I also put the MAC into 0x203F0000 adress of flash.

 

2.I create tftp server as said at http://docs.blackfin.uclinux.org/doku.php?id=setting_up_a_tftp_server

 

but when I try to

 

tftp localhost

 

get foo

 

It fails "no such file"

 

3. How can I load Uboot into flash memory and boot from it? I guess load to RAM => copy to flash => use 0 bmode?

QuoteReplyEditDelete

 

 

2010-11-17 13:05:24     Re: ezkit 537 ethernet problem

Mike Frysinger (UNITED STATES)

Message: 95928   

 

what version of u-boot exactly are you testing with ?  if it says "link down", then there is a hardware problem.  nothing in software will change this.  verify your cable is correct and is connected properly to the board and the other side.

 

if you dont have a file named "foo" in your tftp server, then obviously you'll get a "no such file" error

 

please read the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:upgrading

QuoteReplyEditDelete

 

 

2010-11-19 05:09:42     Re: ezkit 537 ethernet problem

Eugene Shvets (RUSSIAN FEDERATION)

Message: 95993   

 

I am using u-boot-bf537-stamp-uart-2009R1.1-rc1

 

I am using ezkit, not stamp. May the problem be caused by that?

 

Of course I first put the foo file there.

 

I am sorry for so many questions, I am a student and have access to the board only 2 days a week.

QuoteReplyEditDelete

 

 

2010-11-19 05:17:09     Re: ezkit 537 ethernet problem

Mike Frysinger (UNITED STATES)

Message: 95994   

 

stamp/ezkit are the same thing from u-boot's perspective

 

typically people use the UART ldr to boot up once, then load the u-boot.bin into flash, and then just boot out of flash all the time

 

i dont recall if 2009R1.1 had it, but you could try using the "mii" command to get info about the PHY

QuoteReplyEditDelete

 

 

2010-11-19 05:57:42     Re: ezkit 537 ethernet problem

Aaron Wu (CHINA)

Message: 96004   

 

you may try this: tftp -g -r foo 192.168.0.1, what's the output?

QuoteReplyEditDelete

 

 

2010-11-19 10:58:59     Re: ezkit 537 ethernet problem

Eugene Shvets (RUSSIAN FEDERATION)

Message: 96015   

 

That's what I was doing, I was trying to load u-boot into memory with serial. I couldn't transfer the data over serial (in Kermit-c: loadb -> ctrl+\ + C choose 1x0000000 memory place, choose  a u-boot-bypass file and then I got something like "packets transmitted 2 retries 11 ERROR number of retries exceeded"). Something like that, I don't remember more precisely, I don't have either host or target on my hands now.

 

So i decided to make an ethernet connection to load the uboot..

QuoteReplyEditDelete

 

 

2010-11-21 21:37:03     Re: ezkit 537 ethernet problem

Aaron Wu (CHINA)

Message: 96070   

 

Interesting, have you checked the hardware for both cases, the UART and Ethernet. Like power suppy, ethernet cable, and hardware jumpers setting on the board?

Attachments

    Outcomes