• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 移植内核出现一下问题?求助!!! 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
楼主  发表于: 2008-02-13 18:50

 移植内核出现一下问题?求助!!!

s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 112K
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.
级别: 新手上路
UID: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
1楼  发表于: 2008-02-13 19:27
使用的文件系统在别的内核下都是好使的

就是在移植新的内核下就是上面的反应
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2008-02-13 19:48
引用楼主xydjh于2008-02-13 18:50发表的 移植内核出现一下问题?求助!!! :
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
.......


Warning: unable to open an initial console.
  - 这是因为没有/dev/console节点造成的,
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
  - 这是因为无法执行/linuxrc脚本?造成init进程失败。

建议你自己做一个yaffs的rootfs image,用手动创建的设备节点试试。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
3楼  发表于: 2008-02-13 19:59
我自己做的yaffs影像 在2。6。13版下就好使,换到别的高的版本就不好使了
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2008-02-13 21:36
引用第3楼xydjh于2008-02-13 19:59发表的  :
我自己做的yaffs影像 在2。6。13版下就好使,换到别的高的版本就不好使了


友善之臂提供的2.6.13的kernel里有老掉牙的devfs,所以好使。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
5楼  发表于: 2008-02-14 15:52
呵呵  现在只能适应新的udev了
能有资料就好了
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2008-02-14 16:46
你也可以用MAKEDEV手动创建设备节点,要让bash跑起来的话,至少需要创建console节点。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
7楼  发表于: 2008-02-14 16:57
但是init进程就是执行不了啊
Failed to execute /linuxrc.  Attempting defaults...        怎么解决呢?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2008-02-14 17:11
Init进程退出的可能性很多,找不到可执行文件,没有设备节点,找不到动态链接库。。。
建议你先用一个自己做的yaffs image,把/linuxrc替换成一个静态链接的HelloWorld程序,手动在image的/dev目录下创建设备节点。先确认rootfs mount没有问题。
[ 此贴被kasim在2008-02-14 17:20重新编辑 ]
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
9楼  发表于: 2008-02-14 17:30
那为什么同样的文件系统在2.6.13下就好使呢

就是友善给的内核
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go