免费注册 查看新帖 |

Chinaunix

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

高手诊断:2.6内核移植启动到Freeing init memory: 96K,就卡壳啦! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-31 11:09 |只看该作者 |倒序浏览
高手们,请帮我诊断下,我现在在移植2.6.18的内核到ARM + s3c2410的平台上面来,参考高手们的移植经验,有关nandflash的分区信息我已经添加进去了!并且能够识别nandflash,但是不能进入控制台,启动信息如下:
Uncompressing Linux................................................................ done, booting the kernel.
Linux version 2.6.18 (jerry@vsserver1.porcheson.com) (gcc version 3.4.1) #22 Thu Oct 30 15:53:01 CST 2008
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists. Total pages: 16384
Kernel command line: root=/dev/mtdblock2 load_ramdisk=0 console=ttySAC0,115200,mem=64M
irq: clearing subpending status 00000092
PID hash table entries: 512 (order: 9, 2048 bytes)
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 62848KB available (1632K code, 346K data, 96K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
smdk_machine_init
S3C2410: Initialising architecture
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 80x25
fb0: Virtual frame buffer device, using 1024K of video memory
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 1GiB 3,3V 8-bit":
0x00000000-0x00040000 : "boot"
0x00040000-0x00200000 : "kernel"
0x00200000-0x01000000 : "rootfs"
0x01000000-0x40000000 : "yaffs"
mice: PS/2 mouse device common for all mice
TCP bic registered
NET: Registered protocol family 1
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 96K
running :/sbin/init

请高手们关注!谢谢!

论坛徽章:
0
2 [报告]
发表于 2008-10-31 12:10 |只看该作者
文件系统的问题吧。可能是/dev下没有设备,也可能是init有问题

论坛徽章:
0
3 [报告]
发表于 2008-10-31 12:49 |只看该作者

回复 #1 yubobo0622 的帖子

我的/dev 目录下面已经创建了console , null ,如下:

crwxrwxrwx 1 jerry gpu   5,   1 Aug 16  2007 console

crwxrwxrwx 1 jerry gpu 204,   5 Aug 16  2007 ttyAM0

crwxrwxrwx 1 jerry gpu   1,   3 Aug 16  2007 null

内核里面也配置了devfs啊? 我的启动参数把init=/linuxrc去掉了,还有我这个文件系统在2.4的下面是可以用的!不知道哪里除了问题?请各位指教下!谢谢!

论坛徽章:
0
4 [报告]
发表于 2008-11-01 08:50 |只看该作者
你干嘛要去掉init=/linuxrc???

论坛徽章:
0
5 [报告]
发表于 2008-11-01 16:35 |只看该作者
内核已经起来了,初始化脚本init的问题~

论坛徽章:
0
6 [报告]
发表于 2008-11-03 11:47 |只看该作者
贴出 目标板 /etc 下的inittab 看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP