Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Dec 2004 03:28 AM by  tom@cyberiansoftware.com
compact flash filesystem problems
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
billodo@visi.com
New Member
New Member
Posts:


--
08 Jul 2003 02:48 PM
    Trying to figure out what's wrong with this picture (see output below)
    booting Linux from onboard flash, using compact flash loaded root filesystem
    (I formatted the cflash as ext2 and used .../Embedix/.../dev_image )
    javascript:emoticon(':twisted:')
    --------------------------------------------------
    losh> exec 0x40100000 - root=/dev/hda1
    kernel cmdline: 'root=/dev/hda1' at 200c0100
    jumping to: 40100000...
    Uncompressing Linux..............................................
    done, booting the kernel.
    Linux version 2.4.17-rmk2-lineo5 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)) #2 Wed Jun 25 08:59:46 UTC 2003
    Processor: ARM ARM720T revision 3
    Architecture: LogicPD LH79520 Card Engine
    On node 0 totalpages: 8192
    zone(0): 8192 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line: console=ttyAM1,115200 root=/dev/hda1
    setup_timer(): timerLoad=32256
    Console: colour dummy device 80x30
    Calibrating delay loop... 25.70 BogoMIPS
    Memory: 32MB = 32MB total
    Memory: 14288KB available (1204K code, 252K data, 76K 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)
    POSIX conformance testing by UNIFIX
    Linux NET4.0 for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    Starting kswapd
    ttyAM0 at MEM 0xfffc0000 (irq = 23) is a AMBA PrimeCell PL011
    ttyAM1 at MEM 0xfffc1000 (irq = 24) is a AMBA PrimeCell PL011
    ttyAM2 at MEM 0xfffc2000 (irq = 25) is a AMBA PrimeCell PL011
    Console: switching to colour frame buffer device 30x40
    LH79520 Watchdog Timer: timer margin 60 sec
    block: 64 slots per queue, batch=16
    RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
    hd: no drives specified - use hd=cyl,head,sectors on kernel command line
    hd?: check_status: status=0xd0 { Busy DriveReady SeekComplete }
    hda: 61MB, CHS=490/8/32
    Partition check:
    hda:hda: check_status: status=0xd0 { Busy DriveReady SeekComplete }
    hda: check_status: status=0xd0 { Busy DriveReady SeekComplete }
    hda1
    eth0: SMC91C11xFD(rev:1) at 0xf4800000 IRQ:4 DMA:0 (16-bit) MEM:8192b NOWAIT:1
    eth0: ADDR: 00:08:ee:00:10:44
    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 2048)
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
    RAMDISK: Couldn't find valid RAM disk image starting at 0.
    Freeing initrd memory: 16384K
    EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
    VFS: Mounted root (ext2 filesystem).
    Freeing init memory: 76K
    Warning: unable to open an initial console.
    Kernel panic: No init found. Try passing init= option to kernel.
    --------------------------------------------------------------------
    billodo@visi.com
    New Member
    New Member
    Posts:


    --
    09 Jul 2003 09:26 AM
    losh>
    losh> exec 0x40100000 - root=/dev/hda1
    kernel cmdline: 'root=/dev/hda1' at 200c0100
    jumping to: 40100000...
    Uncompressing Linux..............................................
    done, booting the kernel.
    Linux version 2.4.17-rmk2-lineo5 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)) #2 Wed Jun 25 08:59:46 UTC 2003
    Processor: ARM ARM720T revision 3
    Architecture: LogicPD LH79520 Card Engine
    On node 0 totalpages: 8192
    zone(0): 8192 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line: console=ttyAM1,115200 root=/dev/hda1
    setup_timer(): timerLoad=32256
    Console: colour dummy device 80x30
    Calibrating delay loop... 25.70 BogoMIPS
    Memory: 32MB = 32MB total
    Memory: 14288KB available (1204K code, 252K data, 76K 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)
    POSIX conformance testing by UNIFIX
    Linux NET4.0 for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    Starting kswapd
    ttyAM0 at MEM 0xfffc0000 (irq = 23) is a AMBA PrimeCell PL011
    ttyAM1 at MEM 0xfffc1000 (irq = 24) is a AMBA PrimeCell PL011
    ttyAM2 at MEM 0xfffc2000 (irq = 25) is a AMBA PrimeCell PL011
    Console: switching to colour frame buffer device 30x40
    LH79520 Watchdog Timer: timer margin 60 sec
    block: 64 slots per queue, batch=16
    RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
    hd: no drives specified - use hd=cyl,head,sectors on kernel command line
    hd?: check_status: status=0xd0 { Busy DriveReady SeekComplete }
    hda: 61MB, CHS=490/8/32
    Partition check:
    hda:hda: check_status: status=0xd0 { Busy DriveReady SeekComplete }
    hda: check_status: status=0xd0 { Busy DriveReady SeekComplete }
    hda1 hda2
    eth0: SMC91C11xFD(rev:1) at 0xf4800000 IRQ:4 DMA:0 (16-bit) MEM:8192b NOWAIT:1
    eth0: ADDR: 00:08:ee:00:10:44
    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 2048)
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
    RAMDISK: Couldn't find valid RAM disk image starting at 0.
    Freeing initrd memory: 16384K
    Kernel panic: VFS: Unable to mount root fs on 03:01
    billodo@visi.com
    New Member
    New Member
    Posts:


    --
    09 Jul 2003 09:37 AM
    it boots now... disregard last posting... my cflash has 2 partitions and I was mounting
    the wrong one. Siorry... back to emoticons.. finally!!
    abinnewies
    New Member
    New Member
    Posts:


    --
    10 Dec 2004 02:32 PM
    Hey billodo,

    How did you fix the init problem? I am running into the same issue with my lh79520-10 board.

    Thanks,
    Andreas
    tom@cyberiansoftware.com
    New Member
    New Member
    Posts:


    --
    18 Dec 2004 03:28 AM
    It might have been the "exec 0x40100000 - root=/dev/hda1" where he was passing /dev/hda1 as the root volume to the kernel, If he said that he was mounting the wrong partition, then it would most likely be that he needed "exec 0x40100000 - root=/dev/hda2" instead.

    Typically, the "Kernel panic: No init found. Try passing init= option to kernel" is the result of no media found, or unreadable media, or a trashed romfs image.

    If you are not using an EXT2 filesystem on the CF (bad idea not to) and are using an MSDOS FAT filesystem, make sure that you have the DOS filesystem + DOS partitions compiled into your kernel (not as modules).
    You are not authorized to post a reply.