小弟在做VxWorks系统的移植。使用5.5.1版的VxWorks,2.2.1版的tornado IDE,tq2440开发板(s3c2440的ARM SOC)。
在NAND MTD驱动上卡住了,无法修改Nand Flash Controller相关寄存器。
据VxWorks文档 VxWorks for ARM - Architecture Supplement 5.5 :
VxWorks for ARM executes mainly in 32-bit supervisor mode (SVC32). When exceptions occur that cause the CPU to enter other modes, the kernel generally switches to SVC32 mode for most of the processing. No code should execute in user mode. No support is included for the 26-bit modes, which are obsolete.
据S3C2440A USER'S MANUAL:
S3C2440A supports only software mode access. Using this mode, you can completely access the NAND flash
memory. The NAND Flash Controller supports direct access interface with the NAND flash memory.
我的疑问主要有:
1.software mode是什么模式,是不是ARM处理器的模式之一?
2.是不是VxWorks+S3C2440上nand就是个悲剧?(因为《TQ2440 VxWorks 实验大纲》里面是“Nor Flash 创建TFFS 的实验”而不是“NAND”。)
希望各位师兄、师姐帮帮我。
------解决思路----------------------
2.2不在支持NAND需要从2.0移植驱动!
------解决思路----------------------
software mode特指非DMA模式.跟什么svc32没关系.
"无法修改Nand Flash Controller相关寄存器"
看看是不是nand的时钟没打开