Hi Adrian, > > [INIT] > > WREG MSR 0x00000000 > > WM32 0x00010004 0xffff2081 ; SYPCR > > WM32 0x00010024 0x00000000 ; BCR > > WM32 0x00010000 0x82240000 ; SIUMCR > > WM32 0x00010c80 0x00000001 ; SCCR > > WM32 0x000119c4 0x00000000 ; RCCR > > ; Initialize the flash memory controller > > WM32 0x00010100 0x40001001 ; BR0 > > WM32 0x00010104 0xf8000834 ; OR0 > > It looks like your workspace is in RAM, but there's nothing in the setup > above to initialise the memory controller banks for your RAM. Check that > you can read and write the workspace locations with mm and md from the > BDI command line.
The workspace is in internal RAM, mapped at address 0x00000000 (the hardware reset configuration register is 0x00000000). I tried setting IMMR to 0xf0000000 and mapping the SDRAM at 0x00000000, without success. The BDI2000 reports successfull flash programming, but the flash is definitely empty. BDI>prog 0x40000000 u-boot-1.1.4-ucc32.16-0005 BIN Programming u-boot-1.1.4-ucc32.16-0005 , please wait .... Programming flash passed BDI>md 0x40000000 40000000 : ffffffff ffffffff ffffffff ffffffff ................ 40000010 : ffffffff ffffffff ffffffff ffffffff ................ 40000020 : ffffffff ffffffff ffffffff ffffffff ................ 40000030 : ffffffff ffffffff ffffffff ffffffff ................ 40000040 : ffffffff ffffffff ffffffff ffffffff ................ 40000050 : ffffffff ffffffff ffffffff ffffffff ................ 40000060 : ffffffff ffffffff ffffffff ffffffff ................ 40000070 : ffffffff ffffffff ffffffff ffffffff ................ 40000080 : ffffffff ffffffff ffffffff ffffffff ................ 40000090 : ffffffff ffffffff ffffffff ffffffff ................ 400000a0 : ffffffff ffffffff ffffffff ffffffff ................ 400000b0 : ffffffff ffffffff ffffffff ffffffff ................ 400000c0 : ffffffff ffffffff ffffffff ffffffff ................ 400000d0 : ffffffff ffffffff ffffffff ffffffff ................ 400000e0 : ffffffff ffffffff ffffffff ffffffff ................ 400000f0 : ffffffff ffffffff ffffffff ffffffff ................ I made sure I can write to the workspace at 0x00008000 using mm and md, using both internal RAM (IMMR = 0x00000000) or SDRAM (IMMR = 0xf0000000). Laurent Pinchart _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded
