天嵌 ARM开发社区

 找回密码
 注册
查看: 2197|回复: 2

内核移植问题

[复制链接]
dsgh2440 发表于 2010-1-28 15:36:13 | 显示全部楼层 |阅读模式
VFS: Mounted root (yaffs filesystem) on device 31:2.

Freeing init memory: 144K

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.
我移植到板子上,启动linux后出现这个问题。请问是什么情况呀?

我的NAND分区为:
static struct mtd_partition smdk_default_nand_part[] = {
        [0]={
                .name = "uboot",
                .size = 0x00040000,
                .offset = 0x00000000,
                },
        [1]={
                .name = "kernel",
                .size = 0x0004C000,
                .offset = 0x00200000,
                },
        [2]={
                .name = "rootfs",
                .offset = 0x0024C000,               
                .size =  0x03DB0000,
                }
};
static struct s3c2410_platform_nand smdk_nand_info = {
.tacls           = 10,        //default is 20
.twrph0          = 25,       //default is 60
.twrph1          = 10,        //defualt is 20 changed by yangdk
.nr_sets   = ARRAY_SIZE(smdk_nand_sets),
.sets        = smdk_nand_sets,
};
内核配置如下:
File systems --->
          < > Second extended fs support
          < > Ext3 journalling file system support
          <*> Kernel automounter support
          <*> Kernel automounter version 4 support (also supports v3)
          <*> Filesystem in Userspace support
            CD-ROM/DVD Filesystems --->
               <*> ISO 9660 CDROM file system support
               [ ] Microsoft Joliet CDROM extensions
               [ ] Transparent decompression extension
               < > UDF file system support
            DOS/FAT/NT Filesystems --->
               <*> MSDOS fs support
               <*> VFAT (Windows-95) fs support
       (437) Default codepage for FAT
       (iso8859-1) Default iocharset for FAT
       < > NTFS file system support
       Pseudo filesystems --->
       [*] Virtual memory file system support (former shm fs)
       [*] Tmpfs POSIX Access Control Lists
       <*> Userspace-driven configuration filesystem
     Miscellaneous filesystems --->
       <*> YAFFS2 file system support
       -*-    512 byte / page devices
       []       Use older-style on-NAND data format with pageStatus byte
       [*]          Lets Yaffs do its own ECC
       []            Use the same ecc byte order as Steven Hill's nand_ecc
       -*-    2048 byte (or larger) / page devices
       []       Autoselect yaffs2 format
       [*]       Disable lazy loading
       [*]    Turn off wide tnodes
       [*]    Force chunk erase check
       [ ] Cache short names in RAM
  -*- Native language support --->
       --- Native language support
       (iso8859-1) Default NLS Option
       <*>     Codepage 437 (United States, Canada)
       <*>     Simplified Chinese charset (CP936, GB2312)
       <*>     NLS ISO 8859-1 (Latin 1; Western European Languages)
       <*>     NLS UTF-8
wotongyong999 发表于 2010-1-28 17:33:13 | 显示全部楼层
期待正解 我的也是这样
回复

使用道具 举报

亚瑟王 发表于 2010-1-28 21:10:49 | 显示全部楼层
其他的配置选项呢?文件系统怎么制作的呢?出现这样的问题一般情况是文件系统制作和内核用的编译器不匹配导致的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2025-8-3 16:17 , Processed in 2.049741 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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