QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2720|回复: 12

2.6.14移植到2410的问题

[复制链接]
发表于 2006-6-29 22:08:46 | 显示全部楼层 |阅读模式
编译器arm-linux-gcc3.4.1 redhat9 s3c2410的平台

root.cramfs使用的是2.4.18的
==========================================================================
VIVI version 0.1.4 ([email protected]) (gcc version 2.95.2 20000516 (release) [Rebel.com]5MMU table base address = 0x33DFC000
Succeed memory mapping.
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V)
Found saved vivi parameters.
Press Return to start the LINUX now, any other key for vivi
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x00100000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/bon/2 init=/linuxrc console=ttySAC0 mac=00:01:5D:68:7A:0F"
MACH_TYPE = 193
NOW, Booting Linux......
Uncompressing Linux............................................................... done, booting the ker.Linux version 2.6.14.2 (root@tzq) (gcc version 3.4.1) #6 Thu Jun 29 17:08:36 CST 2006
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
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
S3C2410 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
Kernel command line: noinitrd root=/dev/bon/2 init=/linuxrc console=ttySAC0 mac=00:01:5D:68:7A:0F
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 62848KB available (1573K code, 334K data, 88K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
softlockup thread 0 started up.
NET: Registered protocol family 16
S3C2410: Initialising architecture
Console: switching to colour frame buffer device 80x25
fb0: Virtual frame buffer device, using 1024K of video memory
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NFTL driver: nftlcore.c $Revision: 1.97 $, nftlmount.c $Revision: 1.40 $
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4980000
s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 10ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "vivi"
0x00020000-0x00030000 : "param"
0x00030000-0x00130000 : "kernel"
0x00130000-0x00430000 : "root"
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "bon/2" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
===================================================================

也试过把ecc去掉(/drivers/mtd/nand/s3c2410.c)

但打印的错误还是一样的
发表于 2006-6-30 09:29:29 | 显示全部楼层
why Kernel command line: noinitrd root=/dev/bon/2 init=/linuxrc console=ttySAC0 mac=00:01:5D:68:7A:0F

form the message:

0x00000000-0x00020000 : "vivi"
0x00020000-0x00030000 : "param"
0x00030000-0x00130000 : "kernel"
0x00130000-0x00430000 : "root"

root is on the mtdblock3

I think it shoud be "noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttySAC0"

By the way, what is the filesystem of your flash?
回复

使用道具 举报

发表于 2006-6-30 09:33:01 | 显示全部楼层
no way to use console=ttySAC0 in 2.4 kernel
回复

使用道具 举报

 楼主| 发表于 2006-6-30 12:56:04 | 显示全部楼层
我也试过noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttySAC0
和 noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
不清楚是mtdblock3 还是mtdblock/3,所以都试了

还是不行

我用的root.cramfs,原来开发板(2.4.18内核)自带的,不知道能不能用在2.6的内核上?

我看了网上一些文章说是devfs的问题,2.6.14不支持devfs
不明白怎么回事?比较菜
回复

使用道具 举报

发表于 2006-6-30 13:18:44 | 显示全部楼层
Please post the following command's result:
vivi> bon part info
vivi> part show

And try to startup the board by NFS, mount the /dev/mtdX and check files there.

As for the unsupported devfs, please google "udev". Anyway I think it will not affect your system only
after you have loaded up the filesystem.
回复

使用道具 举报

 楼主| 发表于 2006-6-30 17:28:59 | 显示全部楼层
谢谢你,我的这个问题解决了
就是在make menuconfig的时候加上cramfs支持就可以了
现在是出现这个问题:

NET: Registered protocol family 1
Reading data from NAND FLASH without ECC is not recommended
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 88K
Warning: unable to open an initial console.

我想在root.cramfs的dev文件下下建立console节点,该怎么建立?
回复

使用道具 举报

发表于 2006-6-30 19:09:29 | 显示全部楼层
mknod /dev/console c 5 1
回复

使用道具 举报

 楼主| 发表于 2006-6-30 20:15:57 | 显示全部楼层
我在pc上,建立的这个console节点
制成 root.cramfs后下载到2410上,没有反应
NET: Registered protocol family 1
Reading data from NAND FLASH without ECC is not recommended
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 88K


/////Warning: unable to open an initial console. 这句警告没有了,但是就停在这个地方不走了
回复

使用道具 举报

发表于 2006-6-30 21:09:19 | 显示全部楼层
Check /etc/inittab & /etc/init.d/rcS
回复

使用道具 举报

 楼主| 发表于 2006-7-3 23:11:59 | 显示全部楼层
一个周末过得,移植的东西都快忘光了

继续整

2.6.14的make menuconfig中没有devfs,要修改fs/kconfig,不知道和这个问题的关系大不大,先试试,到时bg
回复

使用道具 举报

 楼主| 发表于 2006-7-12 17:41:41 | 显示全部楼层
搞定了,不过用的2.6.11
要容易一些
回复

使用道具 举报

 楼主| 发表于 2006-7-12 17:58:08 | 显示全部楼层
vivi> boot smc kernel
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x00100000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock3 init=linuxrc console=ttySAC0 mac=00:01:5D:68:7A:0F"
MACH_TYPE = 193
NOW, Booting Linux......
Uncompressing Linux........................................................ done, booting the kernel.
Linux version 2.6.11 (root@klrfpaul) (gcc version 3.4.1) #10 Wed Jul 12 15:34:51 CST 2006
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
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
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
S3C2410 Clock control, (c) 2004 Simtec Electronics
Built 1 zonelists
Kernel command line: noinitrd root=/dev/mtdblock3 init=linuxrc console=ttySAC0 mac=00:01:5D:68:7A:0F
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 62976KB available (1392K code, 346K data, 80K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Linux NoNET1.0 for Linux 2.6
S3C2410: Initialising architecture
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
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch ([email protected])
devfs: boot_options: 0x1
JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
lp: driver loaded but no devices found
S3C2410 RTC, (c) 2004 Simtec Electronics
ppdev: user-space parallel port driver
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
NFTL driver: nftlcore.c $Revision: 1.97 $, nftlmount.c $Revision: 1.40 $
BAST NOR-Flash Driver, (c) 2004 Simtec Electronics
block2mtd: version $Revision: 1.23 $
S3C2410 NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4a00000
s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 10ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "vivi"
0x00020000-0x00030000 : "param"
0x00030000-0x00130000 : "kernel"
0x00130000-0x00430000 : "root"
0x00430000-0x04000000 : "user"
mice: PS/2 mouse device common for all mice
Reading data from NAND FLASH without ECC is not recommended
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 80K
Reading data from NAND FLASH without ECC is not recommended
mount /etc as ramfs
re-create the /etc/mtab entries
init started:  BusyBox v1.00 (2006.06.14-03:27+0000) multi-call binary
mount: Mounting /dev/mtdblock/4 on /hysc failed: No such device
                                                                                                                                             
Please press Enter to activate this console. syslogd: Couldn't get file descriptor for socket /dev/log: Function not implemented
回复

使用道具 举报

 楼主| 发表于 2006-7-12 18:06:54 | 显示全部楼层
谢谢wiserltz !
:)
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-23 04:14 , Processed in 0.041662 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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