天嵌 ARM开发社区

 找回密码
 注册
查看: 2691|回复: 7

请教亚瑟王:关于nand烧写系统后不能启动而且反复重启的问题

[复制链接]
zxjhh 发表于 2010-5-10 15:28:14 | 显示全部楼层 |阅读模式
操作步骤:
在nor flash下
选择  1> 烧写F:\tq2440\bootloader合集\EmbedSky_boot_20091031\EmbedSky_boot_Data\DebugRe了\EmbedSky_boot.bin
然后选择3>烧写内核,内核为光盘下F:\tq2440\Linux资源\Linux源码包\2.6.30.4在ubuntu上自己编译的,

然后选择6>烧写文件系统F:\tq2440\出厂烧录镜像合集\Linux文件系统镜像下所有256M的文件都试了一遍,最后得结果都是

yaffs: auto selecting yaffs2
block 336 is bad
block 382 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 180K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Backtrace:
[<c0039904>] (dump_backtrace+0x0/0x12c) from [<c0039a48>] (dump_stack+0x18/0x1c)

r7:00000000 r6:c001dc54 r5:c03b737c r4:c03b6d34
[<c0039a30>] (dump_stack+0x0/0x1c) from [<c0046988>] (panic+0x40/0x118)
[<c0046948>] (panic+0x0/0x118) from [<c00354dc>] (init_post+0xac/0x11c)
r3:c381dee8 r2:00000000 r1:c045ae40 r0:c0338640
[<c0035430>] (init_post+0x0/0x11c) from [<c0008a2c>] (kernel_init+0xcc/0xf4)
r4:c03b6d38
[<c0008960>] (kernel_init+0x0/0xf4) from [<c0048f5c>] (do_exit+0x0/0x630)
r6:00000000 r5:00000000 r4:00000000

最后它是反复的重启,间隔时间大约是2分钟不到
 楼主| zxjhh 发表于 2010-5-10 16:15:46 | 显示全部楼层
1# zxjhh

还是没人回答!
亚瑟王 发表于 2010-5-10 16:35:43 | 显示全部楼层
1、你的Nand Flash容量是多大的?是256MB的吗?
2、内核的配置单建议参考天嵌科技提供的配置单。
 楼主| zxjhh 发表于 2010-5-10 17:03:33 | 显示全部楼层
NAND 是256M的
内核就是用的天嵌光盘里带的,我没坐改变,只是自己重新编译了一下,因为光盘里没有编译好的内核镜像!
亚瑟王 发表于 2010-5-10 21:05:33 | 显示全部楼层
光盘里面提供了编译好的内核镜像啊,在出厂镜像烧录合集里面的啊。
你在uboot下载模式使用:命令q->nand info,然后查看一下Nand的容量。
 楼主| zxjhh 发表于 2010-5-10 22:57:28 | 显示全部楼层
EmbedSky> nand info

Device 0: NAND 256MiB 3,3V 8-bit, sector size 128 KiB
Enter your selection: 6
USB host is connected. Waiting a download.
Now, Downloading [ADDRESS:30000000h,TOTAL:52804234]//烧写的是root_qtopia_2.2.0_2.6.30.4_256MB_20091216.bin

NAND erase: device 0 offset 0x400000, size 0xfc00000
Skipping bad block at  0x02de0000
Skipping bad block at  0x033a0000
Erasing at 0xffe0000 -- 100% complete.
OK

NAND write: device 0 offset 0x400000, size 0x325ba80

Bad block at 0x2de0000 in erase block from 0x2de0000 will be skipped
Bad block at 0x33a0000 in erase block from 0x33a0000 will be skipped
Writing data at 0x3534800 -- 100% complete.
52804224 bytes written: OK

然后 关机,开关打到nand flash 启动

yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 180K
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0039904>] (dump_backtrace+0x0/0x12c) from [<c0039a48>] (dump_stack+0x18/0x1c)

r7:c381c000 r6:c381a000 r5:c03b737c r4:00000004
[<c0039a30>] (dump_stack+0x0/0x1c) from [<c0046988>] (panic+0x40/0x118)
[<c0046948>] (panic+0x0/0x118) from [<c0049108>] (do_exit+0x1ac/0x630)
r3:c0392788 r2:60000013 r1:c03954c4 r0:c033b7e4
[<c0048f5c>] (do_exit+0x0/0x630) from [<c004964c>] (do_group_exit+0x88/0xc0)
[<c00495c4>] (do_group_exit+0x0/0xc0) from [<c005310c>] (get_signal_to_deliver+0
x230/0x350)
r4:00000004
[<c0052edc>] (get_signal_to_deliver+0x0/0x350) from [<c0038658>] (do_signal+0x5c
/0x4b4)
[<c00385fc>] (do_signal+0x0/0x4b4) from [<c0038c70>] (do_notify_resume+0x2c/0x30
)
[<c0038c44>] (do_notify_resume+0x0/0x30) from [<c0035e6c>] (work_pending+0x1c/0x
20)

LCD 显示很乱,过会后自动重新启动!现象上上面一样!
 楼主| zxjhh 发表于 2010-5-11 13:05:02 | 显示全部楼层
哈哈 可以了,原来是编译内核和文件系统的编译器不同导致的!谢谢亚瑟王!
亚瑟王 发表于 2010-5-11 17:15:08 | 显示全部楼层
TQ2440的Linux移植教程里面多次强调交叉编译器要匹配的啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-20 07:17 , Processed in 1.034220 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表