JZ2440用U-Boot给Nand-Flash烧写程序时报错:NAND write: incorrect device type in bootloader ‘bootloader‘ is not
生活随笔
收集整理的這篇文章主要介紹了
JZ2440用U-Boot给Nand-Flash烧写程序时报错:NAND write: incorrect device type in bootloader ‘bootloader‘ is not
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
JZ2440開發(fā)板使用問題,U-Boot燒寫程序到Nand Flash時報錯:NAND write: incorrect device type in bootloader
'bootloader' is not a number
?
?
這是因為分區(qū)名中u-boot,不是bootloader,而cmd_menu.c里用的是bootloader
可以執(zhí)行:mtdpart default
? ?? ?? ?? ?save?
參考文章:https://bbs.elecfans.com/jishu_1805952_1_1.html
##### 100ask Bootloader for OpenJTAG ##### [n] Download u-boot to Nand Flash [o] Download u-boot to Nor Flash [k] Download Linux kernel uImage [j] Download root_jffs2 image [y] Download root_yaffs image [d] Download to SDRAM & Run [z] Download zImage into RAM [g] Boot linux from RAM [f] Format the Nand Flash [s] Set the boot parameters [b] Boot the system [r] Reboot u-boot [q] Quit from menu Enter your selection: q OpenJTAG> mtdpart default OpenJTAG> save Saving Environment to NAND... Erasing Nand...Writing to Nand... done OpenJTAG> menu##### 100ask Bootloader for OpenJTAG ##### [n] Download u-boot to Nand Flash [o] Download u-boot to Nor Flash [k] Download Linux kernel uImage [j] Download root_jffs2 image [y] Download root_yaffs image [d] Download to SDRAM & Run [z] Download zImage into RAM [g] Boot linux from RAM [f] Format the Nand Flash [s] Set the boot parameters [b] Boot the system [r] Reboot u-boot [q] Quit from menu Enter your selection: n USB host is connected. Waiting a download.Now, Downloading [ADDRESS:30000000h,TOTAL:18338] RECEIVED FILE SIZE: 18338 (17KB/S, 1S)NAND erase: device 0 offset 0x0, size 0x40000 Erasing at 0x20000 -- 100% complete. OKNAND write: device 0 offset 0x0, size 0x4798Writing data at 0x4000 -- 100% complete.18328 bytes written: OK?
總結(jié)
以上是生活随笔為你收集整理的JZ2440用U-Boot给Nand-Flash烧写程序时报错:NAND write: incorrect device type in bootloader ‘bootloader‘ is not的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关东金王剧情介绍
- 下一篇: 韦东山衔接班——4.4_构建根文件系统之