Re: [U-Boot] Crash nand init UPMA - NAND flash MPC832x

Hi, IO accessor function did not work out for us. But we survived from the crash in the UPM programming, if I move the base address of NAND after the NOR flash base address it programmed the UPM successfully.
Earlier Configuration ( Crash while programming UPMA): ------------------------------------------------------ CFG_NAND_BASE 0xFA000000 // 64 MB NAND flash CFG_FLASH_BASE 0xFE000000 // NOR flash size is 16MB flash
Now Configuration(UPM Programming success case) : --------------------------------------------------- CFG_NAND_BASE 0xFB000000 // 64 MB NAND flash CFG_FLASH_BASE 0xFA000000 // NOR flash size is 16MB flash
Our summarized configuration file include/configs/MPC832x_RDB.h is as below
NOR Flash Configuration using Local bus 0: ------------------------------------------
CFG_FLASH_BASE 0xFA000000 // NOR flash size is 16MB flash CFG_BR0_PRELIM (CFG_FLASH_BASE | /* Flash Base address */ \ (2
Our development needs NAND to be implemented from u-boot level. And our booting from FLASH depends of NOR flash using the GPCM.
We are facing in the initialization of the nand_init, a crash in the dummy write during the UPM program based on the UPM mode of freescale MPC8323 in the code below:
void UPMA_prog() { int i=0; // OP set to write to RAM array command *(int *)(MAMR) = 0x10000000; // Write word to RAM arrays for (i=0;i
There is no such code in mainline U-Boot. I recommend you look for existing (and working) code examples when porting U-Boot to your hardware. Note that you should use I/O accessor functions instead of plain register writes.
Best regards,
Wolfgang Denk
participants (1)
-
nanda