热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

我在使用yaffs2fs引导时遇到了问题-Ihaveproblemsinbootingwithayaffs2fs

Iamtryingtobootanembeddedsystemusingyaffs2fs.ThisisthebootargsIused:我正在尝试使用yaffs2f

I am trying to boot an embedded system using yaffs2 fs. This is the bootargs I used:

我正在尝试使用yaffs2 fs引导嵌入式系统。这是我用的靴子:

cOnsole=ttyO0,115200n8 androidboot.cOnsole=ttyO0 ip=off mem=256M rootwait=1 rw root=1f09 rw rootfstype=yaffs2 init=/init

控制台= ttyO0 115200 n8 androidboot。控制台=ttyO0 ip=off mem=256M rootwait=1 rw root=1f09 rw rootfstype=yaffs2 init=/init

An I got this when booting kernel:

我在启动内核时得到了这个:

[    3.160095] yaffs: dev is 32505865 name is "mtdblock9" rw
[    3.165802] yaffs: passed flags ""
[    3.480407] VFS: Mounted root (yaffs2 filesystem) on device 31:9.
[    3.486877] devtmpfs: error mounting -2
[    3.491546] Freeing init memory: 244K
[    3.495422] Failed to execute /init.  Attempting defaults...
[    3.502258] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    3.515350] Backtrace: 
[    3.518005] [] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
[    3.526885]  r7:00000013 r6:c003f498 r5:c0739350 r4:c0739350
[    3.532867] [] (dump_stack+0x0/0x1c) from [] (panic+0x64/0x198)
[    3.540954] [] (panic+0x0/0x198) from [] (init_post+0x84/0xd4)
[    3.548919]  r3:fffffffe r2:00000004 r1:00000080 r0:c05f5690
[    3.554901] [] (init_post+0x0/0xd4) from [] (kernel_init+0xf4/0x124)
[    3.563446]  r5:c06dbf94 r4:c0738400
[    3.567230] [] (kernel_init+0x0/0x124) from [] (do_exit+0x0/0x6ac)

I have also tried with other init scripts (/system/bin/sh) but I still have the same problem.

我也尝试过其他的init脚本(/system/bin/sh),但是我仍然有同样的问题。

I tryed also with ramdisk image And I got this log from kernel :

我也用了ramdisk图像我从kernel那里得到了这个日志

[    3.171234] omap_rtc omap_rtc: setting system clock to 2000-01-01 01:24:39 UTC (946689879)
[    3.180786] RAMDISK: gzip image found at block 0
[    3.190429] yaffs: dev is 1048576 name is "ram0" rw
[    3.195587] yaffs: passed flags ""
[    3.199371] List of all partitions:
[    3.203063] 1f00             128 mtdblock0  (driver?)
[    3.208435] 1f01             128 mtdblock1  (driver?)
[    3.213775] 1f02             128 mtdblock2  (driver?)
[    3.219116] 1f03             128 mtdblock3  (driver?)
[    3.224426] 1f04            1920 mtdblock4  (driver?)
[    3.229766] 1f05             128 mtdblock5  (driver?)
[    3.235076] 1f06            5120 mtdblock6  (driver?)
[    3.240417] 1f07            5120 mtdblock7  (driver?)
[    3.245727] 1f08           61440 mtdblock8  (driver?)
[    3.251068] 1f09          187904 mtdblock9  (driver?)
[    3.256408] b300         7875584 mmcblk0  driver: mmcblk
[    3.262023]   b301          200781 mmcblk0p1 00000000-0000-0000-0000-000000000000mmcblk0p1
[    3.270751]   b302         7671037 mmcblk0p2 00000000-0000-0000-0000-000000000000mmcblk0p2
[    3.279449] No filesystem could mount root, tried:  yaffs2
[    3.285247] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,9)
[    3.294036] Backtrace: 
[    3.296661] [] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
[    3.305541]  r7:c05f5f18 r6:00008000 r5:c0739350 r4:c0739350
[    3.311553] [] (dump_stack+0x0/0x1c) from [] (panic+0x64/0x198)
[    3.319641] [] (panic+0x0/0x198) from [] (mount_block_root+0x1e8/0x228)
[    3.328430]  r3:00000000 r2:cf81df58 r1:cf81df58 r0:c05f59c8
[    3.334411] [] (mount_block_root+0x0/0x228) from [] (initrd_load+0xb4/0x338)
[    3.343688] [] (initrd_load+0x0/0x338) from [] (prepare_namespace+0xcc/0x1cc)
[    3.353027]  r5:c06ce068 r4:c06ce05c
[    3.356842] [] (prepare_namespace+0x0/0x1cc) from [] (kernel_init+0xf0/0x124)
[    3.366149]  r5:c06dbf94 r4:c0738400
[    3.369964] [] (kernel_init+0x0/0x124) from [] (do_exit+0x0/0x6ac)
[    3.378295]  r5:c06a0208 r4:00000000

I don't undestand the cause of this problem. Since I am not well initiated to this topics, could anyone help me find the cause? is there any kernel option to add to have more details about the cause or missing details in bootargs ??

我不明白造成这个问题的原因。因为我对这个话题还不是很了解,谁能帮我找到原因吗?是否有内核选项可以添加以获得关于bootargs中原因或缺失细节的更多细节?

Thank you !

谢谢你!

1 个解决方案

#1


0  

Try giving root partition in command line argument options where init resides. For example. /dev/sda - give whatever your root partition is.

尝试在init所在的命令行参数选项中提供根分区。为例。/dev/sda——给出你的根分区。


推荐阅读
author-avatar
最佳牛牛1
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有