龙芯1c平台(智龙开发板V2.0)内核无法启动
(1)内核源码为linux-3.0.82.tar.gz。(2)编译所用配置文件.config为该内核源码下的arch/mips/configs/ls1c300a_default(同一目录下ls1c300a_openloogson_v2.0_default也试过,出现同样错误)。
(3)交叉编译工具为gcc-4.3-ls232。
(4)文件系统为yaffs2,文件系统制作上没有问题,而且内核编译配置中已勾选对yaffs2文件系统支持的选项
(5)内核启动之前内核和文件系统的烧写命令和启动参数为:
mtd_erase /dev/mtd1 //擦除数据
devcp tftp://192.168.1.5/vmlinuz /dev/mtd0 //下载内核
set al /dev/mtd0 //设置启动参数
devcp tftp://192.168.1.5/nfsyaffs-uart2-null.img /dev/mtd1 yaf nw //烧写文件系统
set append " root=/dev/mtdblock1" //根目录位置,块设备
set append " $append console=ttyS2,115200" //设置串口3,115200波特率
set append " $appendnoinitrd init=/linuxrc rw rootfstype=yaffs2"
set append " $appendvideo=ls1bfb:480x272-16@60 fbcon=rotate:1 consoleblank=0"
reboot //重启
以上是相关参数。
按照上述的条件进行启动后,内核启动报错,错误信息如下:
yaffs: dev is 32505857 name is "mtdblock1" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs2 filesystem) on device 31:1.
devtmpfs: error mounting -2
Freeing unused kernel memory: 204k freed
Failed to execute /linuxrc.Attempting defaults...
Kernel panic - not syncing: No init found.Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
错误信息显示文件系统应该已经挂载成功,但是无法执行linuxrc导致出错,我刚刚接触linux,请问各位大侠,是不是按照默认的配置(即ls1c300a_default和ls1c300a_openloongsonV2.0_default)还不足以启动内核,我还需要怎样做才可以成功启动内核? 看你的文件系统根目录下存不存在 linuxrc 你还好,能启动。
我最近刚好有需要修改内核配置,谁知道从百度盘下载的内核编译出来的,启动不了啊!
不过编译的hello倒是在开发板自带的内核上跑的很溜!
我下载的内核里根本没有v2.0的default
(┯_┯) 额,对不住,我忽略了文档 《开龙BSP中linux源码不能正常启动的解决办法.txt》
唉,请收下我的膝盖,我想说 楠哥 你就不能重新发布一次!:'(
页:
[1]