完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我试着在uboot下面格式化nand flash,之后我选择从nor flash启动。就出现如下错误
NAND read: device 0 offset 0x60000, size 0x200000 reading NAND page at offset 0x60000 failed Could not read entire image due to bad blocks 2097152 bytes read: ERROR ## Booting image at 30007fc0 ... Bad Magic Number 然后直接进入menu选择,好像不能自动引导内核了,我重新刷整个系统。刷成功之后启动还是这样,这是为什么? |
|
相关推荐
7个回答
|
|
这是现在nor启动一上电的信息
U-Boot 1.1.6 (Nov 26 2010 - 08:49:16) DRAM: 64 MB Flash: 2 MB NAND: 256 MiB *** Warning - bad CRC or NAND, using default environment In: serial Out: serial Err: serial UPLLVal [M:38h,P:2h,S:2h] MPLLVal [M:5ch,P:1h,S:1h] CLKDIVN:5h S3C2440A USB Downloader ver R0.03 2004 Jan | USB: IN_ENDPOINT:1 OUT_ENDPOINT:3 FORMAT: NOTE: Power off/on or press the reset button for 1 sec in order to get a valid USB device address. Hit any key to stop autoboot: 0 Booting Linux ... NAND read: device 0 offset 0x60000, size 0x200000 reading NAND page at offset 0x60000 failed Could not read entire image due to bad blocks 2097152 bytes read: ERROR ## Booting image at 30007fc0 ... Bad Magic Number ##### 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 Boot the system [r] Reboot u-boot [q] Quit from menu Enter your selection: q OpenJTAG> OpenJTAG> OpenJTAG> print bootargs=noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0 bootcmd=nand read.jffs2 0x30007FC0 kernel; bootm 0x30007FC0 bootdelay=2 baudrate=115200 ethaddr=08:00:3e:26:0a:5b ipaddr=192.168.7.17 serverip=192.168.7.11 netmask=255.255.255.0 stdin=serial stdout=serial stderr=serial mtdids=nand0=nandflash0 mtdparts=mtdparts=nandflash0:256k@0(bootloader),128k(params),2m(kernel),-(root) partition=nand0,0 mtddevnum=0 mtddevname=bootloader Environment size: 443/131068 bytes OpenJTAG> 我之前就是format nand flash了,从0到0x04000000,然后从nor flash启动也不行了,而后利用nor里面的uboot烧写了重新烧写了整个系统,还是这样,,我不太清楚这个fformat nand flash是什么用途,不是擦除我指定的地址的东西吗? |
|
|
|
需***啊
|
|
|
|
我自己弄好了,应该就是nand flash有坏块导致的,我把nand flash先nand srcub一下,然后把里面kernel分区erase,在重新烧写kernel image就可以启动了。谢谢了
|
|
|
|
我的也是U-Boot 1.1.6 (Nov 26 2010 - 08:49:16)
DRAM: 64 MB Flash: 2 MB NAND: 256 MiB *** Warning - bad CRC or NAND, using default environment In: serial Out: serial Err: serial UPLLVal [M:38h,P:2h,S:2h] MPLLVal [M:5ch,P:1h,S:1h] CLKDIVN:5h +---------------------------------------------+ | S3C2440A USB Downloader ver R0.03 2004 Jan | +---------------------------------------------+ USB: IN_ENDPOINT:1 OUT_ENDPOINT:3 FORMAT: NOTE: Power off/on or press the reset button for 1 sec in order to get a valid USB device address. Hit any key to stop autoboot: 0 Booting Linux ... NAND read: device 0 offset 0x60000, size 0x200000 reading NAND page at offset 0x60000 failed Could not read entire image due to bad blocks 2097152 bytes read: ERROR ## Booting image at 30007fc0 ... Bad Magic Number ##### 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 Boot the system [r] Reboot u-boot [q] Quit from menu Enter your selection: 而且u-boot菜单不等输入 这是怎么!!! 求助!!! |
|
|
|
你解决了吗?
|
|
|
|
怎么解决的啊,求解答
|
|
|
|
4楼不是有解答嘛
|
|
|
|
只有小组成员才能发言,加入小组>>
197个成员聚集在这个小组
加入小组为什么点亮LED的例子放在NORFlash上跑会出现奇怪的现象?
2196 浏览 6 评论
1994 浏览 5 评论
韦东山老师推出的《玩转ARM裸机实战》课程将帮你以上问题一扫而光!
4549 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-30 11:55 , Processed in 0.849512 second(s), Total 92, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号