|
|
|
help:yaffs partition can't mount, no such file, with detailed problem description | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
Hello,all, I'm now using an s3c2410-based board, with 64MB nand flash and 64MB SDRam. And now the 2.4.18 kernel and the cramfs file system works! But the yaffs partition in my fstab can't mount while initialing system, the detailed problem description attaches below: The bootloader -vivi partitions: vivi> part show mtdpart info. (5 partitions) name offset size flag ------------------------------------------------ vivi : 0x00000000 0x00020000 0 128k param : 0x00020000 0x00010000 0 64k kernel : 0x00030000 0x00800000 0 8M root : 0x00830000 0x00400000 4 4M usr : 0x00c30000 0x033d0000 4 51M+832k Referring to some online documents, I have made a self-defined file system my_rootfs: [root@redhatel3 root]# tree my_rootfs my_rootfs |-- apps | |-- buttons | |-- hello | |-- led | |-- led-player | `-- rtc |-- bin | |-- Writerootfs | |-- Writerootfs~ | |-- [ -> busybox | |-- [[ -> busybox | |-- ash -> busybox | |-- busybox | |-- buttons | |-- cat -> busybox | |-- chmod -> busybox | |-- chown -> busybox | |-- clear -> busybox | |-- cp -> busybox | |-- echo -> busybox | |-- env -> busybox | |-- hello | |-- hostid -> busybox | |-- hostname -> busybox | |-- led | |-- led-player | |-- ls -> busybox | |-- madplay | |-- mesg -> busybox | |-- mkdir -> busybox | |-- mknod -> busybox | |-- mkyaffsimage | |-- mount -> busybox | |-- mv -> busybox | |-- ping -> busybox | |-- pwd -> busybox | |-- reset -> busybox | |-- rm -> busybox | |-- rtc | |-- sh -> busybox | |-- tar -> busybox | |-- telnet -> busybox | |-- test -> busybox | |-- touch -> busybox | |-- umount -> busybox | |-- vi -> busybox | `-- whoami -> busybox |-- dev | |-- console | |-- cua0 | |-- cua1 | |-- cua2 | |-- cua3 | |-- cua4 | |-- cua5 | |-- cua6 | |-- cua7 | |-- cua8 | |-- cua9 | |-- full | |-- kmem | |-- mem | |-- mtd0 | |-- mtd1 | |-- mtd2 | |-- mtd3 | |-- mtd4 | |-- mtdblock0 | |-- mtdblock1 | |-- mtdblock2 | |-- mtdblock3 | |-- mtdblock4 | |-- null | |-- port | |-- pts | |-- random | |-- shm | |-- tty | |-- tty0 | |-- tty1 | |-- tty2 | |-- tty3 | |-- tty4 | |-- tty5 | |-- tty6 | |-- tty7 | |-- tty8 | |-- tty9 | |-- ttyS0 | |-- ttyp0 | |-- urandom | |-- vcs -> vcs0 | |-- vcs0 | |-- vcs1 | |-- vcs2 | |-- vcs3 | |-- vcs4 | |-- vcs5 | |-- vcs6 | |-- vcs7 | |-- vcs8 | |-- vcs9 | |-- vcsa -> vcsa0 | |-- vcsa0 | |-- vcsa1 | |-- vcsa2 | |-- vcsa3 | |-- vcsa4 | |-- vcsa5 | |-- vcsa6 | |-- vcsa7 | |-- vcsa8 | |-- vcsa9 | `-- zero |-- etc | |-- fstab | |-- fstab~ | |-- group | |-- inetd.conf | |-- init.d | | |-- rcS | | `-- rcS~ | |-- inittab | |-- inittab~ | |-- passwd | |-- profile | |-- profile~ | `-- shadow |-- home |-- lib |-- linuxrc -> bin/busybox |-- linuxrc.old |-- mnt | |-- etc | | `-- backup | | |-- fstab | | |-- group | | |-- inetd.conf | | |-- init.d | | | |-- rcS | | | `-- rcS~ | | |-- inittab | | |-- passwd | | |-- profile | | `-- shadow | `-- usr |-- proc |-- root |-- sbin | |-- halt -> ../bin/busybox | |-- ifconfig -> ../bin/busybox | |-- inetd -> ../bin/busybox | |-- init -> ../bin/busybox | |-- lsmod -> ../bin/busybox | |-- modprobe -> ../bin/busybox | |-- poweroff -> ../bin/busybox | |-- reboot -> ../bin/busybox | |-- start-stop-daemon -> ../bin/busybox | |-- swapoff -> ../bin/busybox | `-- swapon -> ../bin/busybox |-- sys |-- tmp |-- usr | |-- bin | | |-- Writerootfs | | |-- Writerootfs~ | | |-- [ -> busybox | | |-- [[ -> busybox | | |-- ash -> busybox | | |-- busybox | | |-- buttons | | |-- cat -> busybox | | |-- chmod -> busybox | | |-- chown -> busybox | | |-- clear -> busybox | | |-- cp -> busybox | | |-- echo -> busybox | | |-- env -> busybox | | |-- hello | | |-- hostid -> busybox | | |-- hostname -> busybox | | |-- led | | |-- led-player | | |-- ls -> busybox | | |-- madplay | | |-- mesg -> busybox | | |-- mkdir -> busybox | | |-- mknod -> busybox | | |-- mkyaffsimage | | |-- mount -> busybox | | |-- mv -> busybox | | |-- ping -> busybox | | |-- pwd -> busybox | | |-- reset -> busybox | | |-- rm -> busybox | | |-- rtc | | |-- sh -> busybox | | |-- tar -> busybox | | |-- telnet -> busybox | | |-- test -> busybox | | |-- touch -> busybox | | |-- umount -> busybox | | |-- vi -> busybox | | `-- whoami -> busybox | |-- lib | `-- sbin | |-- halt -> ../bin/busybox | |-- ifconfig -> ../bin/busybox | |-- inetd -> ../bin/busybox | |-- init -> ../bin/busybox | |-- lsmod -> ../bin/busybox | |-- modprobe -> ../bin/busybox | |-- poweroff -> ../bin/busybox | |-- reboot -> ../bin/busybox | |-- start-stop-daemon -> ../bin/busybox | |-- swapoff -> ../bin/busybox | `-- swapon -> ../bin/busybox `-- var 24 directories, 194 files the busybox version is 1.1.3, linuxrc is linked to busybox, and below are some init scripts: [root@redhatel3 root]# cat my_rootfs/etc/fstab none /var tmpfs defaults 0 0 none /proc proc defaults 0 0 none /dev/pts devpts mode=0622 0 0 tmpfs /dev/shm tmpfs defaults 0 0 /dev/mtdblock/4 /mnt/usr yaffs defaults 0 0 [root@redhatel3 root]# cat my_rootfs/etc/inittab # /etc/inittab ::sysinit:/etc/init.d/rcS ::sysinit:/etc/profile ::askfirst:/bin/sh ::restart:/sbin/init ::ctrlaltdel:/sbin/reboot ::shutdown:/sbin/swapoff -a ::shutdown:/bin/umount -a -r [root@redhatel3 root]# cat my_rootfs/etc/init.d/rcS #!/bin/sh echo "-----Below are my rcS-----" /bin/mount -a /bin/hostname CardReader /bin/hello [root@redhatel3 root]# cat my_rootfs/etc/profile # Set search library path # !!!very important echo "-----Below are my profile-----" echo "Set search library path int /etc/profile" export LD_LIBRARY_PATH=/lib:/usr/lib # Set user path echo "Set user path in /etc/profile" PATH=/bin:/sbin:/usr/bin:/usr/sbin export PATH finally I made them to a cramfs filesystem root.cramfs, download it to root partition in vivi: [root@redhatel3 root]# mkcramfs my_rootfs root.cramfs here is my boot information: vivi> boot Copy linux kernel from 0x00030000 to 0x30008000, size = 0x00800000 ... done zImage magic = 0x016f2818 Setup linux parameters at 0x30000100 linux command line is: "noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttyS0,115200" MACH_TYPE = 193 NOW, Booting Linux...... Uncompressing Linux........................................................ done, booting the kernel. Linux version 2.4.18-rmk7-pxa1 (root@redhatel3) (gcc version 2.95.3 20010315 (release)) #157 Thu Feb 21 17:27:53 CST 2008 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,115200 DEBUG: timer count 15626 Console: colour dummy device 80x30 Calibrating delay loop... 99.94 BogoMIPS Memory: 64MB = 64MB total Memory: 62584KB available (1368K code, 440K data, 72K 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 S3C2410 USB Controller Core Initialized USB Function Character Driver Interface - 0.5, (C) 2001, Extenex Corp. usbctl: Opened for usb-char usbctl: Started for usb-char Starting kswapd devfs: v1.10 (20020120) Richard Gooch (rgooch@xxxxxxxxxxxxx) 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 Console: switching to colour frame buffer device 30x40 Installed S3C2410 frame buffer pty: 256 Unix98 ptys configured leds initialized s3c2410-ts initialized 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 cs89x0: no cs8900 or cs8920 detected.Be sure to disable PnP with SETUP SCSI subsystem driver Revision: 1.00 scsi0 : SCSI host adapter emulation for IDE ATAPI devices UDA1341 audio driver initialized NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V) NAND_ECC_NONE selected by board driver. This is not recommended !! Creating 5 MTD partitions on "NAND 64MiB 3,3V": 0x00000000-0x00020000 : "vivi" 0x00020000-0x00030000 : "param" 0x00030000-0x00830000 : "kernel" 0x00830000-0x00c30000 : "root" 0x00c30000-0x04000000 : "usr" mice: PS/2 mouse device common for all mice 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 VFS: Mounted root (cramfs filesystem). Mounted devfs on /dev Freeing init memory: 72K init started: BusyBox v1.1.3 (2008.02.21-09:06+0000) multi-call binary Starting pid 10, console /dev/console: '/etc/init.d/rcS' -----Below are my rcS----- yaffs: dev is 7940 name is "1f:04" mount: Mounting on /mnt/usr failed: No such file or directory /etc/init.d/rcS: /etc/init.d/rcS: 5: /bin/hello: Starting pid 17, console /dev/console: '/etc/pr Please press Enter to activate this console. Starting pid 19, console /dev/console: '/bin/sh' BusyBox v1.1.3 (2008.02.21-09:06+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. # ls /mnt/usr lost+found # umount /mnt/usr # ls /mnt/usr # Thank you for taking so much time to read above descriptions, now my questions: 1/ I have made the yaffs support in the kernel, why is there no corresponding information in the booting information? 1/ how can I format my /dev/mtdblock/4 in rootfs or usr/ in vivito to yaffs format? 3/ when mounting the /dev/mtdblock/4, why is it saying "no such file or directry"? 4/ there is a lost+found directry in the /mnt/usr, after a "umount", then the directry has nothing, what does that mean? Thanks again! 2008-02-25 xu xu frankxu0217@xxxxxxxxxxxx Yesterday is history,Tomorrow is a Mystery, and Today is a Gift. And that's why we call it---the PrEsEnT. -------------------------------------------------------------------List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-armFAQ: http://www.arm.linux.org.uk/mailinglists/faq.phpEtiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Linux ARM] [Linux ARM MSM] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Asterisk Internet PBX] [Linux API]
![]() |
![]() |