uboot解决DRAM无法正确识别的问题
终于解决了DRAM无法正确识别的问题,吼吼~
参考修改代码:
./include/configs/ok6410.h:#define PHYS_SDRAM_1_SIZE 0x10000000 /* 256 MB */
#define DMC1_MEM_CFG 0x0001001A
board/feilin/ok6410/lowlevel_init.S mmu_table:将 // 128MB for SDRAM 0xC0000000 -> 0x50000000 .set __base, 0x500 .rept 0xC80 - 0xC00 FL_SECTION_ENTRY __base,3,0,1,1 .set __base,__base+1 .endr // access is not allowed. .rept 0x1000 - 0xc80 .word 0x00000000 .endr 修改为: // 256MB for SDRAM 0xC0000000 -> 0x50000000 .set __base, 0x500 .rept 0xd00 - 0xC00 FL_SECTION_ENTRY __base,3,0,1,1 .set __base,__base+1 .endr // access is not allowed. .rept 0x1000 - 0xd00 .word 0x00000000 .endr
不用修改uboot自举地址仍然默认为ox57e00000
下面着手解决flash failed的问题