UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor lucasw
Visitor
6,837 Views
Registered: ‎08-05-2008

Network and stand alone u-boot application help with u-boot on ml507

I'm running u-boot on an ml507, but so far am unable to tftp or ping (u-boot hangs and I have to restart it in xmd), and when I kermit transfer hello_world.bin over it hangs without printing the output shown in the stand-alone application documentation and I have to ctrl-c terminate it.

I have an ml507 and EDK 11.4, and downloaded the http://www.xilinx.com/products/boards/ml507/ml507_10.1_3_1/files/ml507_bsb_std_ip_ppc440.zip reference design.  For 11.4 I had to increase the temac address size to 512k. Other cores are listed as deprecated but built fine with warnings.

I've built u-boot with the denx ELDK and the http://xilinx.wikidot.com/u-boot u-boot version.  To do so I copied the newly generated xparameters.h into the boards/xilinx/ml507 and in ml507.c changed the following references:
XPAR_FLASH…  is now XPAR_EMC…
XPAR_CORE_CLOCK_FREQ_HZ is now XPAR_CPU_PPC440_CORE_CLOCK_FREQ_HZ
In ml507.h I had to have this line:
#define CFG_FLASH_BASE          XPAR_EMC_0_MEM1_BASEADDR
 I open xmd and dow u-boot and run it and get this:
U-Boot 1.3.4 (Feb  1 2010 - 13:23:48)

CPU:   Xilinx PowerPC 440 UNKNOWN (PVR=7ff21912) at 400 MHz
       32 kB I-Cache 32 kB D-Cache
### No HW ID - assuming ML507
DRAM:  256 MB
FLASH: 32 MB
In:    serial
Out:   serial
Err:   serial
=> bdinfo
memstart    = 0x00000000
memsize     = 0x10000000
flashstart  = 0x8E000000
flashsize   = 0x02000000
flashoffset = 0x00000000
sramstart   = 0x00000000
sramsize    = 0x00000000
bootflags   = 0x00000000
procfreq    =    400 MHz
plb_busfreq =    100 MHz
ethaddr     = 00:0A:35:01:D8:55
IP addr     = 10.1.33.50
baudrate    = 115200 bps

I've set the ipaddr and netmask appropriately for my network, and have a tftp serverip setup and a tftp server running, but network operations lock up the system.

Also when I try to run the hello_world.bin (kermit transfer with hyperterminal):
=> loadb
## Ready for binary (kermit) download to 0x00400000 at 115200 bps...
## Total Size      = 0x00040364 = 263012 Bytes
## Start Addr      = 0x00400000

=> go 400004 test
## Starting application at 0x00400004 ...     
[have to hit ctrl-c]
## Application terminated, rc = 0x0
 
Can anyone help?
Thanks,
Lucas

Tags (2)
0 Kudos
5 Replies
Xilinx Employee
Xilinx Employee
6,831 Views
Registered: ‎09-10-2008

Re: Network and stand alone u-boot application help with u-boot on ml507

Hi,

 

I don't run u-boot much any more as some others are taking over this work.  We don't run u-boot in our automated test every nite as we should be and I hope to do in the future.

 

The wiki page for u-boot shows a std reference design from Xilinx that the Xilinx u-boot repository was tested on. It looks like that's not the system you downloaded to me, but I may be off there.

 

I would use that system that I refer to so a baseline can be established easily, then make changes. You shouldn't have to do anything other than build it and run it for a baseline.

 

You could compare your xparameters.h to the one that's already in the boards/xilinx/ml507 dir.  It almost sounds like some addresses changed.

 

Hope that helps a little at least. 

 

 

Xilinx Employee
Xilinx Employee
6,825 Views
Registered: ‎09-10-2008

Re: Network and stand alone u-boot application help with u-boot on ml507

I just downloaded the reference design based on the link on the wiki.

 

I also downloaded the u-boot from the Xilinx repo, built it, downloaded to the ML507.  I was able to ping another board.  I didn't do any more network stuff.

 

I think this agrees with my previous concerns.  That system is a 10.1.2 system, but I would still use it as a baseline 1st, then make changes to move forward.

 

Thanks.

0 Kudos
Visitor lucasw
Visitor
6,820 Views
Registered: ‎08-05-2008

Re: Network and stand alone u-boot application help with u-boot on ml507

Okay, I'm working with the proper reference design now and I'll test it soon.  Can you attach your u-boot so I can see if it works for me?

 

Thanks,

 

Lucas

0 Kudos
Visitor lucasw
Visitor
6,818 Views
Registered: ‎08-05-2008

Re: Network and stand alone u-boot application help with u-boot on ml507

Scratch that last request, the download.bit and the ml507 u-boot built from the latest git.xilinx.com/u-boot-xlnx.git work for me, I can run hello_world.bin that was tftped in. 

 

Next I'll try rebuilding that reference design with the newer version of EDK and see if I can get to the same place.

0 Kudos
Xilinx Employee
Xilinx Employee
6,816 Views
Registered: ‎09-10-2008

Re: Network and stand alone u-boot application help with u-boot on ml507

I would compare the system.mhs file between the design that works and the one that doesn't to understand the deltas.

 

Sounds like you have a baseline now which will help a lot.

0 Kudos