2010-05-12 02:46:04     Loading U-Boot to BF518 Custom Board through UART & JTAG failed

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

2010-05-12 02:46:04     Loading U-Boot to BF518 Custom Board through UART & JTAG failed

Eric Toh (SINGAPORE)

Message: 89322   

 

Hi,

 

I have this custom board using BF518 processor. Currently I am following instruction from this link

 

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

 

However, both method of loading through UART & JTAG fails.

 

UART

 

For loading through UART method, I have check the following,

 

1. BMODE pins has been set to 7, which is boot from UART

 

2. Using the latest u-boot for bf518, "u-boot-bf518f-ezbrd-uart-2009R1.1-rc1.ldr"

 

When Executing loading u-Boot through UART, this is what happens

 

1. it always timeout when waiting for reply from Blackfin

 

2. sometimes it returns 4 bytes of 00 00 00 00 instead of the expected BF 10 00 00

 

My doubt here, (Need your help to clarify, thanks!)

 

1. Is the 4 bytes of BF 10 00 00 retrieved from the Blackfin's Boot ROM?

 

2. If it's retrieved from Boot ROM, will this 4 bytes of BF 10 00 00  be in the Boot ROM at manufactured point of time, when i purchase the BF518 processor chip alone?

 

JTAG

 

For loading through JTAG, I have done/check the following,

 

1. Configured JTAG Blue according to this link http://docs.blackfin.uclinux.org/doku.php?id=hw:jtag:jtagblue&s[]=jtag&s[]=blue  using DLC7 Xilink Parallel Cable IV (Suppose to be backward compatible to DLC5 Xilink Parallel Cable III)

 

2. Already download the necessary software for JTAG

 

When executing loading u-Boot through JTAG, this is what happens

 

1. Able to initialize the JTAG cable using the cable command

 

2. When perform detect, there is totally no response

 

My doubt here,

 

1. Can DLC7 JTAG cable be used to configured as JTAG Blue?

 

2. Any other things that i didn't do?

 

Please help, thanks a lot!

QuoteReplyEditDelete

 

 

2010-05-12 03:11:50     Re: Loading U-Boot to BF518 Custom Board through UART & JTAG failed

Mike Frysinger (UNITED STATES)

Message: 89323   

 

the bootrom takes care of everything related to UART bootstrapping.  if you arent getting back responses, it probably means your hardware setup is broken (incorrect bmode, or proc is powered correctly, or wired incorrectly, or ...).

 

if you cant detect the part over JTAG, then that means your JTAG cable is wired incorrectly, or again your hardware is broken.

 

we've never tested JTAG cables from Xilinx.  the info in the wiki for old parallel/serial port cables is largely historical at this point and you're on your own if you want to try to use that junk.  considering how dirt cheap it is to get a real JTAG cable (i.e. a USB gnICE), we dont support anything else anymore:

https://docs.blackfin.uclinux.org/doku.php?id=buy_stuff

 

until JTAG can detect the part, dont waste time on anything else (u-boot/uart boot/etc...).

QuoteReplyEditDelete

 

 

2010-05-14 03:04:55     Re: Loading U-Boot to BF518 Custom Board through UART & JTAG failed

Eric Toh (SINGAPORE)

Message: 89395   

 

Hi,

 

I have finally manage to get the boot from UART to work after some troubleshooting. Now, I have loaded my custom u-Boot in and it works fine with the SDRAM, i am able to download "uclinux uImage" into the SDRAM and get it running.

 

However, when I try to use my custom u-Boot to burn the "uclinux uImage" into parallel flash, i failed to do so. The parallel flash that I m using is CFI compliance and from my understanding according to this link http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:parallel-flash, basically i do not need to change any settings in my custom u-Boot to get it communicate with the parallel flash.

 

My custom u-Boot is modified from bf518f-ezbrd u-Boot, and the settings for parallel flash i leave it unchanged. The parallel flash i m using is same size as bf518f-ezbrd, which is 4MB (2Mb X16), same bottom boot.

 

Please help me clear the following doubts,

 

1. Do I need to do any specific setting in u-Boot to get my CFI compliance parallel flash to work?

 

2. If i need to do specific setting, what are the settings needed other than those mentioned in the above mentioned link?

 

Thanks a lot in advance!

 

Regards,

 

Eric

QuoteReplyEditDelete

 

 

2010-05-14 06:35:45     Re: Loading U-Boot to BF518 Custom Board through UART & JTAG failed

Eric Toh (SINGAPORE)

Message: 89403   

 

Hi,

 

Fyi, i m changing the original parallel flash M29W320EB to SST39VF3201 parallel flash. Really stuck here and do not know whether is it a software error or hardware error now. Thus, the more important thing i need to know, is whether any changes required for the u-Boot? If no changes required, then i am confirm is due to hardware error. Thanks.

QuoteReplyEditDelete

 

 

2010-05-14 12:05:46     Re: Loading U-Boot to BF518 Custom Board through UART & JTAG failed

Robin Getz (UNITED STATES)

Message: 89415   

 

There isn't much to do when using a real CFI part.

 

See:

 

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

QuoteReplyEditDelete

 

 

2010-05-15 01:11:34     Re: Loading U-Boot to BF518 Custom Board through UART & JTAG failed

Eric Toh (SINGAPORE)

Message: 89425   

 

Looks like there is really no need to change any settings for the parallel flash i m using. Guess i need to troubleshoot my hardware circuit again. Thanks.

 

Regards,

 

Eric

QuoteReplyEditDelete

 

 

2010-05-16 15:22:18     Re: Loading U-Boot to BF518 Custom Board through UART & JTAG failed

Mike Frysinger (UNITED STATES)

Message: 89459   

 

sorry, the documentation isnt exactly 100% correct wrt supported flashes.  any parallel NOR flash that is CFI compliant and uses a supported command set should work fine.  historically, people dont create their own new command set which means everyone uses AMD or Intel.

Attachments

    Outcomes