he detail information is : I can't mount the cramfs to
/root and yaffs to /usr!!!
Thank you ...
> root is cramfs;
> usr is yaffs.
>
> I download the kernel image...and then boot... The
booting information is as below,
>
> vivi> part show
> mtdpart info. (5 partitions)
> name offset size flag
> ------------------------------------------------
> vivi : 0x00000000 0x00020000 0 128k
> param : 0x00020000 0x00010000 0 64k
> kernel : 0x00030000 0x001c0000 0
1M+768k
> root : 0x00200000 0x00200000 0 2M
> usr : 0x00400000 0x03cf8000 0
60M+992k
> vivi>load flash kernel x (zImage)
> //....
> vivi> load flash root x (root.cramfs)
> //....
> vivi>load flash usr x (usr.yaffs)
> vivi> boot
>
> NOW, Booting Linux......
> Uncompressing
Linux.......................................................
done,
> booting the kernel.
> Linux version 2.4.18-rmk7-pxa1
(root@localhost.localdomain) (gcc version 2.95.2
> 20000516 (release) [Rebel.com]) #108 四 9月 16
15:47:38 HKT 2004
> CPU: ARM/CIRRUS Arm920Tsid(wb) revision 0
> Machine: Samsung-SMDK2410
> On node 0 totalpages: 16384
> zone(0): 16384 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: noinitrd root=/dev/mtdblock/3
init=/linuxrc console=ttyS0 m
> ac=00:0e:3a:aa:bb:cc
> DEBUG: timer count 15626
> Calibrating delay loop... 99.94 BogoMIPS
> Memory: 64MB = 64MB total
> Memory: 62656KB available (1354K code, 401K data, 56K
init)
> Dentry-cache hash table entries: 8192 (order: 4,
65536 bytes)
> Inode-cache hash table entries: 4096 (order: 3, 32768
bytes)
> Mount-cache hash table entries: 1024 (order: 1, 8192
bytes)
> Buffer-cache hash table entries: 4096 (order: 2,
16384 bytes)
> Page-cache hash table entries: 16384 (order: 4, 65536
bytes)
> 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 = 200.000 Mhz, HCLK = 100.000 Mhz, PCLK =
50.000 Mhz
> Initializing S3C2410 buffer pool for DMA workaround
> S3C2410 USB Controller Core Initialized
> eth0: cs8900 rev J(3.3 Volts) found at 0xd0000300
> cs89x0 media RJ-45, IRQ 37
> get_random_bytes called before random driver
initialization
> usbctl: Opened for usb-eth
> usbctl: Started for usb-eth
> Starting kswapd
> devfs: v1.10 (20020120) Richard Gooch
(rgooch@atnf.csiro.au)
> devfs: boot_options: 0x1
> ttyS%d0 at I/O 0x50000000 (irq = 52) is a S3C2410
> ttyS%d1 at I/O 0x50004000 (irq = 55) is a S3C2410
> ttyS%d2 at I/O 0x50008000 (irq = 58) is a S3C2410
> pty: 256 Unix98 ptys configured
> S3C2410 Real Time Clock Driver v0.1
> block: 128 slots per queue, batch=32
> Uniform Multi-Platform E-IDE driver Revision: 6.31
> ide: Assuming 50MHz system bus speed for PIO modes;
override with idebus=xx
> SCSI subsystem driver Revision: 1.00
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> UDA1341 audio driver initialized
> Entering s3c2410_nand_init()...
> zw: s3c2410nd.c call nand_scan function...
> zw:nand_maf_id is 236
> zw:nand_dev_id is 236
> NAND device: Manufacture ID: 0xec, Chip ID: 0x76
(Samsung K9D1208V0M)
> Creating 5 MTD partitions on "Samsung K9D1208V0M":
> 0x00000000-0x00020000 : "loader"
> 0x00020000-0x00030000 : "param"
> 0x00030000-0x001f0000 : "kernel"
> 0x00200000-0x00400000 : "root"
> 0x00400000-0x03cf8000 : "usr"
> this is the result of add_mtd_partitions 0
> usb.c: registered new driver usbdevfs
> usb.c: registered new driver hub
> usb-ohci.c: USB OHCI at membase 0xe9000000, IRQ 26
> usb.c: new USB bus registered, assigned bus number 1
> hub.c: USB hub found
> port #1 suspened!
> port #0 alived!
> hub.c: 1 port detected
> usb.c: registered new driver usblp
> printer.c: v0.8:USB Printer Device Class driver
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> USB Mass Storage support registered.
> 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 4096 bind 4096)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> NetWinder Floating Point Emulator V0.95 (c) 1998-1999
Rebel.com
> cramfs: wrong magic
> FAT: bogus logical sector size 64764
> Kernel panic: VFS: Unable to mount root fs on 1f:03
>
> And the init=/root/linuxrc, the content of linuxrc is:
> #!/bin/sh
> echo "mount /etc as ramfs"
> /bin/mount -n -t ramfs ramfs /etc
> /bin/cp -a /mnt/etc/* /etc
>
> echo "re-create the /etc/mtab entries"
> # re-create the /etc/mtab entries
> /bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/3 /
> #/bin/mount -f -t ramfs ramfs /etc
> #/sbin/insmod -f /lib/yaffs.o
> /bin/mount -t yaffs /dev/mtdblock/4 /usr
>
> exec /sbin/init
>