分类: 嵌入式
2014-08-15 10:54:07
修改u-boot.lds将lowlevel_init.S和nand_read.c(nandflash读函数实现)调整到前4K地址内;
还有调整speed.c中HCLK,PCLK等的计算公式。
TACLS、TWRPH0、TWRPH1:
由S3C2440手册和nandflash datasheet对比,可得:
tTACLS = tCLS/tALS - tWP = 12 - 12 = 0ns
tTWRPH0 = tWP = 12ns
tTWRPH1 = tCLH/tALH = 5ns
Duration = HCLK x TACLS ====> TACLS = 0 / 10 = 0
Duration = HCLK x ( TWRPH0 + 1 ) ====> TWRPH0 = 12/10-1 = 1
Duration = HCLK x ( TWRPH1 + 1 ) ====> TWRPH1 = 5/10-1 = 0
--------------------------------------------------------------------------------------------------------------
目前由于之前加上2410未修改的nandflash驱动,导致一上电nandflash很快lock tight,然后整块flash就不能擦除,不能write,而只能read,而笔记本也没有并口,现在还未尝试open JTAG能不能擦除。Nandflash驱动恐怕只能先搁置,而后续的移植也只能直接在RAM中进行了,悲剧啊!!!