2008-11-28 03:51:55     Does uboot work on BF532(u-boot-1.1.6-2008R1.5.tar.bz2)

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

2008-11-28 03:51:55     Does uboot work on BF532(u-boot-1.1.6-2008R1.5.tar.bz2)

yang yang (CHINA)

Message: 65943   

 

What should I modify if I want to run uboot and uclinux on it?((u-boot-1.1.6-2008R1.5.tar.bz2))

 

now,I modify from the board BF533-STAMP,!

 

I changed the fine BF533_def.h, replace by BF532_def.h

 

#define L1_INST_SRAM 0xFFA08000 /* 0xFFA08000 -> 0xFFA0BFFF Instruction Bank A SRAM */

#define L1_INST_SRAM_SIZE (0xFFA0BFFF - 0xFFA08000 + 1)

#define L1_INST_SRAM_END (L1_INST_SRAM + L1_INST_SRAM_SIZE)

#define L1_SRAM_SCRATCH 0xFFB00000 /* 0xFFB00000 -> 0xFFB00FFF Scratchpad SRAM */

#define L1_SRAM_SCRATCH_SIZE (0xFFB00FFF - 0xFFB00000 + 1)

#define L1_SRAM_SCRATCH_END (L1_SRAM_SCRATCH + L1_SRAM_SCRATCH_SIZE)

#define SYSMMR_BASE 0xFFC00000 /* 0xFFC00000 -> 0xFFFFFFFF MMR registers */

#define SYSMMR_BASE_SIZE (0xFFFFFFFF - 0xFFC00000 + 1)

#define SYSMMR_BASE_END (SYSMMR_BASE + SYSMMR_BASE_SIZE)

 

I have some problem,

 

tftp 0x01a00000 u-boot.bin

 

go 0x01a00000

 

 

Early:start.S: Init Registers

Early:start.S: Relocate

Early:start.S: Zero BSS

Early:start.S: Lower to 15

Early: NOP Slide ...... 

 

STOP here,  the file cpu.c in the function  :

 

     void cpu_init_f(ulong bootflag, ulong loaded_from_ldr)

 

what i should do? Thank you very Mach!(u-boot-1.1.6-2008R1.5.tar.bz2)

 

 

TranslateQuoteReplyEditDelete

 

 

2008-11-28 04:08:44     Re: Does uboot work on BF532(u-boot-1.1.6-2008R1.5.tar.bz2)

Mike Frysinger (UNITED STATES)

Message: 65945   

 

please read the documentation:

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

 

there is no reason whatsoever for you to be touching files in include/asm-blackfin/, so stop

QuoteReplyEditDelete

 

 

2008-11-28 05:24:31     Re: Does uboot work on BF532(u-boot-1.1.6-2008R1.5.tar.bz2)

yang yang (CHINA)

Message: 65953   

 

Thank you  Mike Frysinger?i read the doc ! I have do it .

 

But my problem is :when i use the BF533_def.h of formerly(not modify) can pass the void cpu_init_f(ulong bootflag, ulong loaded_from_ldr). but stop at the function void init_cplbtables(void) in the file board.c why?

 

I know the different between the bf532 and bf532 is only that :

 

bf532:

 

        #define L1_INST_SRAM 0xFFA08000 /* 0xFFA08000 -> 0xFFA0BFFF Instruction Bank A SRAM */

       #define L1_INST_SRAM_SIZE (0xFFA0BFFF - 0xFFA08000 + 1)

       #define L1_INST_SRAM_END (L1_INST_SRAM + L1_INST_SRAM_SIZE)

 

bf533:

 

      #define L1_INST_SRAM 0xFFA00000 /* 0xFFA00000 -> 0xFFA07FFF Instruction Bank A SRAM */

     #define L1_INST_SRAM_SIZE (0xFFA07FFF - 0xFFA00000 + 1)

     #define L1_INST_SRAM_END (L1_INST_SRAM + L1_INST_SRAM_SIZE)

 

my boad is bf532 ,I use the L1_INST_SRAM 0xFFA00000  can pass cpu_init_f  but stop at init_cplbtables, but use the L1_INST_SRAM 0xFFA08000  can't pass cpu_init_f  .I read datesheet bf532 shuld be L1_INST_SRAM 0xFFA08000.

 

Have somebody do success for bf532 use  u-boot-1.1.6-2008R1.5.tar.bz2

 

 

TranslateQuoteReplyEditDelete

 

 

2008-11-28 08:02:18     Re: Does uboot work on BF532(u-boot-1.1.6-2008R1.5.tar.bz2)

Robin Getz (UNITED STATES)

Message: 65959   

 

Yang:

 

> stop at the function void init_cplbtables(void) in the file board.c

 

What do you mean by "stop"? Run time error? Compile Error?

 

-Robin

QuoteReplyEditDelete

 

 

2008-11-28 14:16:23     Re: Does uboot work on BF532(u-boot-1.1.6-2008R1.5.tar.bz2)

Mike Frysinger (UNITED STATES)

Message: 65981   

 

do not modify include/asm-blackfin/ headers.  they should all be correct.  the BF533_def.h header is never included when building for the BF532.

 

we've def tested booting SPI LDRs on a BF531, but i'm not sure about the BF532.  not that it should make any difference whatsoever though ...

QuoteReplyEditDelete

 

 

2008-11-29 01:20:25     Re: Does uboot work on BF532(u-boot-1.1.6-2008R1.5.tar.bz2)

yang yang (CHINA)

Message: 66000   

 

Thank you !Robin Getz.

 

My mean is Run time error? I define CONFIG_DEBUG_EARLY_SERIAL 1

 

So when run the u-boot.bin stop at Early: NOP Slide(in the cpu.c print of serial_early_puts("NOP Slide\n"))!

Attachments

    Outcomes