免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4034 | 回复: 17
打印 上一主题 下一主题

系统启动脚本执行失败?求助! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-27 17:53 |只看该作者 |倒序浏览
在已经做好的嵌入式产品上做更改,把原来的5608的flash换成1208的,然后对uboot做了相应的修改后烧入内核及文件系统,可是启动到一半就停止了,实在想不出来到底是哪里出问题了,怀疑是不是内核需做什么修改。希望知道的朋友给点建议,非常感激!
我把串口监控打印的信息贴下:
NOW, Booting Linux......
Uncompressing Linux....................................................................................
done, booting the kernel.
Linux version 2.4.27-vrs1-2440 (s3c2440x@deng.txl) (gcc version 3.3.5)
#128 三 6月 25 17:33:00 CST 2008
CPU: Arm920Tid(wb) revision 0
Machine: Samsung-SMDK2440
Warning: bad configuration page, trying to continue
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=1f02 mem=32M console=tty0 console=ttyS0 init=/linuxrc
Console: colour dummy device 80x30
Calibrating delay loop... 202.75 BogoMIPS
Memory: 32MB = 32MB total
Memory: 29576KB available (1294K code, 1435K data, 64K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
CPU: Testing write buffer: pass
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
CPU clock = 406.000 Mhz, HCLK = 101.500000 Mhz, PCLK = 50.750000 Mhz
CPU clock = 406.000 Mhz, HCLK = 101.500000 Mhz, PCLK = 50.750000 Mhz
Initializing S3C2440 buffer pool for DMA workaround
Starting kswapd
devfs: v1.12c (2002081 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
ttyS%d0 at I/O 0x50000000 (irq = 52) is a S3C2440
Console: switching to colour frame buffer device 100x60
Installed S3C2440 frame buffer
pty: 256 Unix98 ptys configured
S3C2440 Real Time Clock Driver v0.1
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MB 3,3V)
nand flash size is 0x04000000
Creating 4 MTD partitions on "NAND 64MB 3,3V":
0x00000000-0x00030000 : "NAND partition 0 : Bootloader"
0x00030000-0x00200000 : "NAND partition 1 : Kernel"
0x00200000-0x03200000 : "NAND partition 2"
0x03200000-0x04000000 : "NAND partition 3"
i2c-core.o: i2c core module version 2.6.1 (20010830)
Samsung S3CX (i2c) algorithm module version 2.6.1 (20010830)
iic_elfin_init: Samsung S3CX iic adapter module version 2.6.1 (20010830)
enable_irq(27) unbalanced from c00c398c
elfin_init: Initialized IIC on S3CX, 6kHz clock
iic_elfin_init: initialized iic-bus at 0xf4000000.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
host/usb-ohci.c: USB OHCI at membase 0xe9000000, IRQ 26
usb.c: new USB bus registered, assigned bus number 1
Product: USB OHCI Root Hub
SerialNumber: e9000000
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver usbkbd
usbkbd.c: :USB HID Boot Protocol keyboard driver
usb.c: registered new driver usbnet
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 64K
Kernel panic: No init found. Try passing init= option
to kernel.系统启动后就停在此。
在线等待答复,希望尽快解决问题!!!!

另外我做了些测试,发现就是init=..的脚本执行失败。我给定的参数是init=/linuxrc,其它如/sbin/init等脚本都执行不起来。从打印信息看root文件系统已经被mount上了,实在想不出问题出在哪。希望知道朋友积极回复!!非常感谢!!

论坛徽章:
0
2 [报告]
发表于 2008-06-27 17:55 |只看该作者
明显你的文件系统里没有linuxrc这个程序
不过现在的initrd使用新的cpio机制了

论坛徽章:
0
3 [报告]
发表于 2008-06-27 18:00 |只看该作者
文件系统里绝对有/linuxrc这个文件的,因为我把相同的文件系统烧到flash为5608的里面,系统启动、运行都没问题的。

论坛徽章:
0
4 [报告]
发表于 2008-06-28 09:41 |只看该作者
等待回复!!!!!!!!!!

论坛徽章:
0
5 [报告]
发表于 2008-06-28 09:43 |只看该作者
不是你的文件系统,而是你的initrd里边有没有linuxrc

论坛徽章:
0
6 [报告]
发表于 2008-06-28 16:19 |只看该作者
原帖由 anhongkui 于 2008-6-28 09:43 发表
不是你的文件系统,而是你的initrd里边有没有linuxrc


能否说详细点,怎么查看initrd里面有没有linuxrc呀?initrd是怎么工作的?这个我不清楚,希望能帮说明白点,感激不尽!!!!!

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
7 [报告]
发表于 2008-06-28 16:39 |只看该作者
看一看你的文件系统的类型是cramfs,那你的kernel是否支持呢?在编译你的kernel的时候,有些选项估计没有选

论坛徽章:
0
8 [报告]
发表于 2008-06-28 17:30 |只看该作者
原帖由 T-bagwell 于 2008-6-28 16:39 发表
看一看你的文件系统的类型是cramfs,那你的kernel是否支持呢?在编译你的kernel的时候,有些选项估计没有选


我这个文件系统root是cramfs,share是JFFS2。因为只是换了一个flash,其它什么都没换,换之前是没有任何问题的,
我想应该不会是内核选项的问题吧

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
9 [报告]
发表于 2008-06-28 22:45 |只看该作者
原帖由 seer_lz 于 2008-6-28 17:30 发表


我这个文件系统root是cramfs,share是JFFS2。因为只是换了一个flash,其它什么都没换,换之前是没有任何问题的,
我想应该不会是内核选项的问题吧


kernel的image没换吗?fs没有换吗?就换了个flash?

[ 本帖最后由 T-bagwell 于 2008-6-28 22:46 编辑 ]

论坛徽章:
0
10 [报告]
发表于 2008-06-30 09:34 |只看该作者

回复 #9 T-bagwell 的帖子

是的就只换了一个flash,因为原来用的5608的nand flash已经停止生产了,所以不得不换成1208的了,其它什么都没有改,
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP