2009-01-26 10:05:34     bf548 u-boot does not boot while bf549 can boot

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

2009-01-26 10:05:34     bf548 u-boot does not boot while bf549 can boot

Murat GOCMEN (TURKEY)

Message: 68347   

 

Our custom design bf548 board based on bf548-ezkit with only ddram and paralel flash attached after we get our pcb we put bf549 eng. samples untill we have our bf548 shipped. with bf549 assembled chips everything was fine for u-boot and we stick to the loading and installing documents here.

 

what we did with bf549 custom board is below:

 

1- compile u-boot with uart_boot mode as defined in bf548_ezkit document in this web site with no other changes

2- load the ldr via ldr loader with no probs. U-Boot foud the ddrram flash and give warning for eth and nand as not found but no probs

3- compile u-boot with boot_para then upload it to bfin from minicom ymodem (bfin booted via u-boot-uart)

4- write it to flash 0x20000000

5- compile and upload uclinux uImage file via ymodem upload

6- write it to flash 0x20100000

7-set boot mode to flashboot then saveenv

8- shutdown board

9- swithc to para flash mode bootmode 1

10- power-up board

 

Everything worked very fine.

 

then we have our bf548 rev 0.1 chips then we make new boards with the new bf548 chips then we follow the same steps but the new board was able to boot from uart and uplaod to flash erase flash even if you jump to 0x20100000 u can boot linux but only in uart booted mode if it is in boot from flash mode it goes crazy. sometimes u-boot craches at the post tests at nand test then we compile u-boot with no nand support then reloaded it then when it opened from flash it crashed again wheneever you try to saveenv erase or any access to flash.

We finished our card with bf549 then when we come bk to bf548 after a few weeks later now bf548 not even booting from uart at the minicom it says from the trace bfin_panic at flash_make_cmd

 

for our experiments we have seen bf548 EBIU signals AMS0 ARDY etc goes to logic 0 which are active high signals we are not sure but maybe this is the trick.

 

the problem maybe software or hardware we dont know but if it is software why same code works with bf549 but not 548 but i m sure bf548 chips with periplerals work fine coz not now but we definatly seen they work propery when u boot from uart.

 

 

QuoteReplyEditDelete

 

 

2009-01-26 11:20:27     Re: bf548 u-boot does not boot while bf549 can boot

Mike Frysinger (UNITED STATES)

Message: 68351   

 

what version of u-boot are you using ?  the 2008R1.5 release ?

 

have you checked that your DDR memory timings are correct ?  how did you calculate them ?

QuoteReplyEditDelete

 

 

2009-01-27 08:01:29     Re: bf548 u-boot does not boot while bf549 can boot

Murat GOCMEN (TURKEY)

Message: 68396   

 

the version of u-boot 2008R1 we have tried the r1.5 as well the result was same and about DDR we havent changed anything in the header file which has the configs about registers and timing and we did not check the timing of DDR from a scope if u mean that.

 

 

We only check the EBIU signals around when the failure happens. Just incase if it may help ya i am attaching the EBIU signals snapshots from scope.

 

the legend for the snapshots are:

purple->ARDY (rd enable)

    green->AOE  (output enable)

    yellow->AMS0 (chip select)

 

the file is attached snapshost_EBIU.zip in that zip u ll c the png and txt files of the channel settings

 

snapshost_EBIU.zip

QuoteReplyEditDelete

 

 

2009-01-27 09:53:52     Re: bf548 u-boot does not boot while bf549 can boot

Mike Frysinger (UNITED STATES)

Message: 68402   

 

by check i meant verify you calculated them correctly from the datasheet.  you should use this sheet to do so:

http://docs.blackfin.uclinux.org/lib/exe/fetch.php?id=bfin%3Asdram&cache=cache&media=bfin:bfsdccalculation_release_02.xls

QuoteReplyEditDelete

 

 

2009-01-29 13:55:02     Re: bf548 u-boot does not boot while bf549 can boot

Murat GOCMEN (TURKEY)

Message: 68528   

 

Thanks Mike for everything and the first problem solved now. While we were trying teh ddr values nothing changed an it was looking everything about ddr was alright. afterwards i compile u-boot with debugging enabled then i figured that out the problem was coming from flash_get_size function in cfi_flash.c in the fucntion after the block if(flash_detect_cfi()){} there is a flash_write_cmd function the bfin crashes there becoz bfin could not find any flash according to the debug so that was a small bug after we fix this the problem changed to unknown flash problem then we assembeled a new card coz before we messed with the card so much so with the new card it detect the flash properly but then it gone to the endless loop saying nand.c:dev_ready:110 which taked us PJ1 and PJ2 pull-ups coz at BF549 if you put the pull-ups chip doesnt work while BF548 needs the pull-ups we figured that after we put the pullups it said no nand device then continue on working now we put the kernel as well it is working properly .

 

If it is needed we can send some bug fix patches if u want about this and thaks again for ur time and attention. now we are coming to our second problem which is usb host problem afterwards i m gonna open a case about it when we sort the required results summed.

 

regards.

QuoteReplyEditDelete

 

 

2009-01-29 13:59:16     Re: bf548 u-boot does not boot while bf549 can boot

Mike Frysinger (UNITED STATES)

Message: 68529   

 

if you see bugs in the code, please post patches as attachments and describe the problem and how you're trying to fix it

Attachments

Outcomes