初試mini2440 nandflash驅動移植

2021-06-01 22:45:36 字數 2754 閱讀 9154

今日根據《mini2440_linux移植開發實戰指南》一文進行nandflash驅動 

的移植出現了不少問題。不知道是我操作失誤還是該文編寫出現錯漏導致的。 

首先按照步驟修改相關資訊之後執行make zimage出現了不少錯誤: 

其中有代表性的錯誤如下: 

arch/arm/mach-s3c2440/mach-mini2440.c:189: error: array type has incomplete element type 

arch/arm/mach-s3c2440/mach-mini2440.c:190: error: array index in non-array initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:190: error: (near initialization for 'smdk_default_nand_part') 

arch/arm/mach-s3c2440/mach-mini2440.c:191: error: field name not in record or union initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:191: error: (near initialization for 'smdk_default_nand_part')

arch/arm/mach-s3c2440/mach-mini2440.c:193: error: unknown field 'tacls' specified in initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:193: warning: excess elements in struct initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:193: warning: (near initialization for 'mini2440_nand_info') 

arch/arm/mach-s3c2440/mach-mini2440.c:194: error: unknown field 'twrph0' specified in initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:194: warning: excess elements in struct initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:194: warning: (near initialization for 'mini2440_nand_info') 

arch/arm/mach-s3c2440/mach-mini2440.c:195: error: unknown field 'twrph1' specified in initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:195: warning: excess elements in struct initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:195: warning: (near initialization for 'mini2440_nand_info') 

arch/arm/mach-s3c2440/mach-mini2440.c:196: error: unknown field 'nr_sets' specified in initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:196: warning: type defaults to 'int' in declaration of 'type name' 

arch/arm/mach-s3c2440/mach-mini2440.c:196: warning: type defaults to 'int' in declaration of 'type name' 

arch/arm/mach-s3c2440/mach-mini2440.c:196: error: negative width in bit-field '' 

arch/arm/mach-s3c2440/mach-mini2440.c:196: warning: excess elements in struct initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:196: warning: (near initialization for 'mini2440_nand_info') 

arch/arm/mach-s3c2440/mach-mini2440.c:197: error: unknown field 'sets' specified in initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:197: warning: excess elements in struct initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:197: warning: (near initialization for 'mini2440_nand_info') 

arch/arm/mach-s3c2440/mach-mini2440.c:198: error: unknown field 'ingnore_unset_ecc' specified in initializer 

arch/arm/mach-s3c2440/mach-mini2440.c:198: warning: excess elements in struct initializer

mini2440 解除安裝模組

我的mini2440買回來這麼久了,一直有個問題很奇怪,就是執行insmod ko一切正行,lsmod也可以看到你插入的模組,但是用rmmod就會出現no such file,一直對這個問題就感覺很奇怪,也google了很多,網上五花八門的答案都有。最後還是仔細看了手冊才找到答案,原來是要把板子上的...

mini2440儲存空間

s3c2440把低1g的空間分成了8塊,由圖可知,第0至6這七塊的起始位址是不變的。而第七段的位址是可變的 它的位址有第六塊需要用到多少來決定,反正就是第六第七是連在一起的 前6塊可以是rom sram 最後兩塊不但可以是rom,sram外,還可以是sdram.其實啊,簡單點的說,就是只有最後兩塊才...

mini2440 led測試程式

本程式用到的硬體資源 nled 1 nled 2 nled 3 nled 4 gpb5 gpb6 gpb7 gpb8 k2 l5 k7 k5 儲存器位址分配如下 sdram 0x3000,0000 0x3400,0000 特殊功能暫存器 0x4800,0000 0x6000,0000 ads1.2編...