gpt4 book ai didi

linux-kernel - 不为 jffs2 文件系统同步 : No init found.

转载 作者:行者123 更新时间:2023-12-03 22:22:45 25 4
gpt4 key购买 nike

我正在使用内核 2.6.33.7 开发 mpc8309-twr 开发板,当我使用 ramdisk 文件系统 (rootfs.ext2.gz.uboot) 创建我的 rootfs 镜像时,我能够挂载我的文件系统并且我的开发板能够成功启动。

But, when i am trying with jffs2 filesystem it is saying "no init found",here is the kernel log.

VFS: Mounted root (jffs2 filesystem) on device 31:1. Freeing unused kernel memory: 168k init Warning: unable to open an initial console. Kernel panic - not syncing: No init found. Try passing init= option to kernel. Call Trace: [c782df40] [c0008484] 0xc0008484 (unreliable) [c782df70] [c0025320] 0xc0025320 [c782dfc0] [c0003b78] 0xc0003b78 [c782dfd0] [c03a2238] 0xc03a2238 [c782dff0] [c0011994] 0xc0011994

但是 init 存在于/sbin/init 位置。任何人都可以帮助我吗?

Thanks in advance...............!

最佳答案

在使用闪存时,我们需要通过设备树 blob 手动向内核提供分区表。由于 RAM 镜像具有所有正确的内容,因此以正确的方式启动。
但是,当您尝试使用 NOR 闪存启动时,您的内核日志显示 RedBoot partition parsing not available,这意味着用于加载 rootfs 的偏移内核可能与 rootfs 所在的确切位置不同当前的。由于哪个内核无法根据您的内核日志找到您的 init 以及 initial console

因此,添加或更改您在设备树结构文件中提供的分区的偏移量。
可以引用this在设备树文件中添加 mtd 支持的引用文档。

关于linux-kernel - 不为 jffs2 文件系统同步 : No init found.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36215932/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com