2010-10-13 10:56:40     cannot boot bf527

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

2010-10-13 10:56:40     cannot boot bf527

Alexander Vasiljev (RUSSIAN FEDERATION)

Message: 94476   

 

Hello.

 

We try to boot our custom board. The board consist of bf527-0.2, MT48LC16M16A2 (32MB sdram),spi flash and ethernet.

 

LdrViewer loads initcode. The Initcode says something like ABCDEFNOPQR> .Then LdrViewer hangs.

 

In the initcode function we made sdram test. The test passes successfully.

 

Uboot = u-boot-2008.10-2009R1

 

#define CONFIG_DEBUG_EARLY_SERIAL

#define CONFIG_BFIN_CPU             bf527-0.2

#define CONFIG_BFIN_BOOT_MODE       BFIN_BOOT_UART

 

#define CONFIG_MEM_ADD_WDTH            9

#define CONFIG_MEM_SIZE                32

 

#define CONFIG_EBIU_SDRRC_VAL        0x03F8    //0x03F6//0x026B

#define CONFIG_EBIU_SDGCTL_VAL        0x8091998D

 

#define CONFIG_UART_CONSOLE    0

#define CONFIG_BAUDRATE        9600

 

Why the boot process can hang?

QuoteReplyEditDelete

 

 

2010-10-13 12:11:52     Re: cannot boot bf527

Mike Frysinger (UNITED STATES)

Message: 94483   

 

please read the documentation:

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

 

QuoteReplyEditDelete

 

 

2010-10-13 12:44:22     Re: cannot boot bf527

Alexander Vasiljev (RUSSIAN FEDERATION)

Message: 94487   

 

Hi, Mike.

 

I have calculated sdc registers values in BfSdcCalculation_Release.xls.

 

I wrote sdram memory test in initcode. And it passes succesfully.

 

I slowed down it to 100/25Mhz. But LdrViewer still hangs just after initcode writes >. It wrotes "Processing Block Payload at Address 0x00000364 (32768 bytes)... and hangs.

 

bfin-uclinux-ldr.exe hangs at 27%.

 

 

 

Thanks for reply.

QuoteReplyEditDelete

 

 

2010-10-13 13:57:48     Re: cannot boot bf527

Mike Frysinger (UNITED STATES)

Message: 94489   

 

so connect with JTAG to figure out where it is hanging

 

and make sure you arent using CTSRTS.  or if you are, make sure your hardware is wired correctly and not constantly pulling the line in the wrong direction.

QuoteReplyEditDelete

 

 

2010-10-14 03:37:58     Re: cannot boot bf527

Alexander Vasiljev (RUSSIAN FEDERATION)

Message: 94505   

 

We don't have jtag.

 

We are using ctsrts. And it is going up-down several times at the start of loading. But after execution of initcode, it doesn't move, so loading programs hangs.

 

i notice that uboot doesn't take into account ANOMALY_05000440. Can it be the problem?

QuoteReplyEditDelete

 

 

2010-10-14 06:13:09     Re: cannot boot bf527

Alexander Vasiljev (RUSSIAN FEDERATION)

Message: 94509   

 

I have made necessary changes in the bf527-ezkit config. And it works!

 

But if copy files from bf527-ezkit config and make the same changes, it doesn't boot.

 

By bf527-ezkit config i mean:

 

1) include/configs/bf527-ezkit.h

 

2)board/bf527-ezkit

 

3) Changes in Makefile and MAKEALL

QuoteReplyEditDelete

Attachments

    Outcomes