当前位置: 技术问答>linux和unix
在挂载根文件系统的时候出现如下错误,请帮忙看看!
来源: 互联网 发布时间:2016-06-18
本文导语: 配置如下: 内核命令: CONFIG_CMDLINE="noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttyS0,115200 rootfstype=jffs2" 分区表: static struct mtd_partition partition_info[] = { [0] = { .name = "uboot", .s...
配置如下:
内核命令:
CONFIG_CMDLINE="noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttyS0,115200 rootfstype=jffs2"
分区表:
static struct mtd_partition partition_info[] =
{
[0] =
{
.name = "uboot",
.size = 0x00040000,
.offset = 0x00000000, /*256K*/
},
[1] =
{
.name = "env",
.offset = 0x00040000,
.size = 0x00004000, /*16K*/
},
[2] =
{
.name = "kernel",
.offset = 0x00050000,
.size = 0x00200000, /*2MB*/
},
[3] =
{
.name = "jffs2",
.offset = 0x00250000,
.size = 0x00800000, /*8MB*/
// .size = 0x07D00000, /*125MB*/
}
};
UART1 is set for console!
baud = 115200
console [ttyS0] enabled
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
zx2960 NAND Driver, (c) 2004 Simtec Electronics
mice: PS/2 mouse device common for all mice
rtc rtc: rtc core: registered rtc as rtc0
rtc: RTC power up reset detected
hw_wdt_set_heartbeat: count=10000, timeout=20ms, freq=78000000, divisor=155
watchdog watchdog: zx2960 watchdog timer initialized.
NET: Registered protocol family 1
rtc rtc: hctosys: invalid date/time
List of all partitions:
No filesystem could mount root, tried: jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
内核命令:
CONFIG_CMDLINE="noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttyS0,115200 rootfstype=jffs2"
分区表:
static struct mtd_partition partition_info[] =
{
[0] =
{
.name = "uboot",
.size = 0x00040000,
.offset = 0x00000000, /*256K*/
},
[1] =
{
.name = "env",
.offset = 0x00040000,
.size = 0x00004000, /*16K*/
},
[2] =
{
.name = "kernel",
.offset = 0x00050000,
.size = 0x00200000, /*2MB*/
},
[3] =
{
.name = "jffs2",
.offset = 0x00250000,
.size = 0x00800000, /*8MB*/
// .size = 0x07D00000, /*125MB*/
}
};
UART1 is set for console!
baud = 115200
console [ttyS0] enabled
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
zx2960 NAND Driver, (c) 2004 Simtec Electronics
mice: PS/2 mouse device common for all mice
rtc rtc: rtc core: registered rtc as rtc0
rtc: RTC power up reset detected
hw_wdt_set_heartbeat: count=10000, timeout=20ms, freq=78000000, divisor=155
watchdog watchdog: zx2960 watchdog timer initialized.
NET: Registered protocol family 1
rtc rtc: hctosys: invalid date/time
List of all partitions:
No filesystem could mount root, tried: jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
|
确认mtdblock3 已经烧录一个jffs2的file system.