Skip to contentSkip to conversation

u-boot configurations for custom board with MPC 8265

U-Boot Jyotshna Cherukuri 2 participants 4 messages Dec 24, 2008 – Jan 6, 2009

lore
Share & tools
lore
#0 lore raw

Hi All,

I am using a custom powerpc board with MPC8265 ( 66/200/300 Mhz) , 32MB of SDRAM???? ( 0x00000000 - 0x01FFFFFF)? and
8 MB of Flash Simm ( 0xFF800000 -? 0xFFFFFFFF) .

I am modifying the MPC8260ads configurations to match my board but I don't see any messages being printed on the serial port. I am using Codewarrior USB TAP debugger to debug the u-boot code with an initialization file as follows:

setMMRBaseAddr 0x00000000
writemmr??????? SCCR??? 0x0000
writemmr??????? SYPCR?????????? 0xffffffc3
writemmr??????? RMR???????????????????? 0x0001
# Memory periodic timer prescaler
writemmr??????? MPTPR?????????? 0x3200
# Internal memory map register
writemmr??????? IMMR??? 0x04700000

#Change the debugger's base address to match the new register base setMMRBaseAddr 0x04700000

writemmr??????? BR0???????????? 0xff801001
writemmr??????? OR0???????????? 0xff800836
# CS2 is SDRAM, 64-bit port at 0x00000000

writemmr??????? BR2???????????? 0x00000041
writemmr??????? OR2???????????? 0xfe002ec0

# set 60x Bus assigned SDRAM Refresh Timer (PSRT)
writemmr??????? PSRT??????????? 0x13
writemmr??????? MPTPR?????????? 0x2800

# 60x SDRAM Mode Register

# precharge all banks

writemmr??????? PSDMR?????????? 0x824b36a3
writemmr??????? PSDMR?????????? 0xaa4b36a3

# perform an access
writemem.b????? 0x00000000????? 0x00
# cbr refresh

writemmr??????? PSDMR?????????? 0x8a4b36a3

# perform 8 accesses
writemem.b????? 0x00000000????? 0xFF
writemem.b????? 0x00000000????? 0xFF
writemem.b????? 0x00000000????? 0xFF
writemem.b????? 0x00000000????? 0xFF
writemem.b????? 0x00000000????? 0xFF
writemem.b????? 0x00000000????? 0xFF
writemem.b????? 0x00000000????? 0xFF
writemem.b????? 0x00000000????? 0xFF

# 60x SDRAM Mode Register
# Issue Mode register write

writemmr??????? PSDMR?????????? 0x9a4b36a3
writemem.b????? 0x00000190????? 0x00
writemmr??????? PSDMR?????????? 0xc24b36a3

With the above initialization file when I define CONFIG_IMMR to 0xF0000000 in u-boot it just doesn't go further and so I modified it to be same as the initilization file ( 0x0470000) and now I am stepping little further into the code but I am getting stuck at? a point in cpu_init_f in start.S.

Could anyone please let me know the exact configurations I need to define in mpc8260ads.h file in u-boot.

Any help is greatly appreciated.

Thanks in advance
Best Regards
Jyotshna

#1 lore raw

Hi Jyotshna,

Is your u-boot code doing any register initializations?

Quoted 6 lines

I am modifying the MPC8260ads configurations to match my board but I don't see any messages being printed on the serial port. I am using Codewarrior USB TAP debugger to debug the u-boot code with an initialization file as follows:

setMMRBaseAddr 0x00000000

writemmr        SCCR    0x0000
writemmr        SYPCR           0xffffffc3
writemmr        RMR                     0x0001
Quoted 7 lines

# Memory periodic timer prescaler
writemmr MPTPR 0x3200
# Internal memory map register
writemmr IMMR 0x04700000

With the above initialization file when I define CONFIG_IMMR to 0xF0000000 in u-boot it just doesn't go further and so I modified it to be same as the initilization file ( 0x0470000) and now I am stepping little further into the code but I am getting stuck at a point in cpu_init_f in start.S.

If the debugger has done the processor initialization part, trying to do the same in u-boot might cause problems. I'll suggest you to comment out the initialization from u-boot and try. Most probably, setting OR and BR registers in cpu_init_f might be the issue.

Regards,
Jayakrishnan

#2 lore raw

[U-Boot] scc-uart on mpc8265 not working

In reply to Jyotshna Cherukuri

Hi All,

I am using a custom powerpc board with MPC8265 ( 66/200/300 Mhz) , 32MB of SDRAM???? ( 0x00000000 - 0x01FFFFFF)? and
8 MB of Flash Simm ( 0xFF800000 -? 0xFFFFFFFF) .

I am modifying the MPC8260ads configurations in u-boot to match my board but I don't
see any messages being printed on the serial console. Can anyone please let me know what I need to change in u-boot to initialize the console properly. Do I need to go into the routine board_early_init_f for MPC8265 ? Please let me know

Thanks in advance
Best Regards
Jyotshna

#3 lore raw

[U-Boot] u-boot debug help

Hi ,

Could anyone please let me know the steps I need to follow to enable debug mode for u-boot .

Thanks
Jyotshna