程序可以运行在nor falsh上;nand flash上的程序必须加载到内存才可运行
2440驱动帖子写的很多,可以参考下
1- nor flash原理
1.1- 看芯片手册
明白nor flash的时序、命令格式、两种模式(cfi、jedec)
1.2- 使用uboot操作nor flash
熟悉nor flash读写操作
2- nor flash框架
应用层--VFS--FS(jaffs)--块驱动(RAM BLOCK;磁盘;MTD),其中MTD包括NOR/Nand flash。--硬件。
对于硬件上面的驱动层,linux已经为我们抽象好了,我们只需编写硬件相关的即可。对于上面的驱动可以从示例代码中参考、移植。
3- nor flahs驱动
参考内核:drivers\mtd\maps\physmap.c
内核中还有使用内存模拟nor flash的例子:\drivers\mtd\devices\mtdram.c