Can't Mount CF-Card on boot of 2.6.15 Kernel on EPIA motherboard

Markus Biermaier mbier at office-m.at
Fri Jun 2 02:27:25 EDT 2006


Hello,

I've an EPIA mini-ITX MII6000E running under Kernel 2.4.25 perfectly.
Now I want to migrate to 2.6.15.4.
The EPIA has no hard-drive or CD.
The mass storage is a 256 MB CF-Card.

With an 2.6.15.4 Kernel I can't mount the file-system of the CF-Card.
As I am short on space in the "initrd" (8 MB) I've only the minimum  
files needing for booting.

The symptom:
o "initrd" is loaded over the network. "linuxrc" is beeing executed.
o pcmcia-modules are loaded.
o /sys and /proc file-systems are mounted and populated.
o CF-Card is found but not correct initialized.
o Kernel panics if I try to mount "hde1" ("Kernel Panic: VFS: Unable  
to mount root fs on 'hde1'..."

I have no "hotplug", because I've no space left on "initrd" and I  
would like to initialize the CF-Card from "linuxrc".

Any ideas?

mbier



The stages:
"vmlinuz" and "initrd" in a "/tftboot"-directory on some other PC.
The "pxelinux.cfg/XXX" files looks like this:
----------------------------------------------------------------------
DEFAULT standard

LABEL standard
KERNEL vmlinuz
APPEND initrd=initrd ramdisk_size=32768 root=/dev/hde1
----------------------------------------------------------------------

On "initrd" there is "linuxrc"
------------------------------ [ BEGIN linuxrc ]  
------------------------------
PCIC="i82365 yenta_socket pcmcia pcmcia_core rsrc_nonstatic"

# Put socket driver timing parameters here
PCIC_OPTS=
# Put pcmcia_core options here
CORE_OPTS=

DEBUG=1

mount -t proc /proc /proc
mount /sys
echo "/sbin/udev" > /proc/sys/kernel/hotplug

CreateCF-Node

for Module in $PCIC
do
         echo modprobe $Module
         modprobe $Module
done

lsmod

if [ "$DEBUG" != "" ] ; then V=-v ; fi

#echo cardmgr $V -q -o -c /etc -m /lib -s /tmp/stab -p /tmp/pid
#cardmgr $V -q -o -c /etc -m /lib -s /tmp/stab -p /tmp/pid
pcmcia-socket-startup

if [ "$DEBUG" != "" ] ; then
     /bin/sh < /dev/console
fi
------------------------------ [ END   linuxrc ]  
------------------------------

The directories in initrd:
(The old files are left from the 2.4.25 boot)

------------------------------ [ BEGIN / ]  
------------------------------
drwxr-xr-x    2 root     root         1024 Okt 19  2004 tmp
drwxr-xr-x    2 root     root         1024 Okt 19  2004 proc
drwxr-xr-x    2 root     root         1024 Okt 19  2004 mnt
drwxr-xr-x    2 root     root         1024 Okt 19  2004 lost+found
drwxr-xr-x    4 root     root         1024 Okt 19  2004 var
drwxr-xr-x    2 root     root         1024 Okt 22  2004 boot
drwxr-xr-x    2 root     root         1024 Okt 22  2004 dev
drwxr-xr-x   10 root     root         4096 Mai 30 15:12 ..
drwxr-xr-x    2 root     root         1024 Mai 31 21:15 bin
drwxr-xr-x    3 root     root         1024 Jun  1 14:17 lib
drwxr-xr-x    2 root     root         1024 Jun  1 16:02 sys
drwxr-xr-x    3 root     root         1024 Jun  1 16:05 etc
drwxr-xr-x    2 root     root         1024 Jun  1 17:25 sbin
-rwxr-xr-x    1 root     root         1485 Jun  1 17:32 linuxrc
drwxr-xr-x   14 root     root         1024 Jun  1 17:32 .
------------------------------ [ END   / ]  
------------------------------

------------------------------ [ BEGIN bin ]  
------------------------------
-rwxr-xr-x    1 root     root        16900 Jan 19  2001 mknod
-rwxr-xr-x    1 root     root        19204 Jan 19  2001 mkdir
-rwxr-xr-x    1 root     root        46568 Jan 19  2001 ls
-rwxr-xr-x    1 root     root        28584 Jan 19  2001 df
-rwxr-xr-x    1 root     root        37524 Jan 19  2001 cp
-rwxr-xr-x    1 root     root         6704 Jan 19  2001 uname
-rwxr-xr-x    1 root     root        14004 Jan 19  2001 cat
-rwxr-xr-x    1 root     root         4600 Jan 19  2001 dmesg
-rwxr-xr-x    1 root     root        14516 Jan 19  2001 fsck
-rwxr-xr-x    1 root     root        80696 Jan 19  2001 e2fsck
-rwsr-xr-x    1 root     root        15501 Jan 19  2001 cardctl
-rwxr-xr-x    1 root     root        34536 Okt 19  2004 umount
-rwxr-xr-x    1 root     root        65252 Okt 19  2004 sh
-rwxr-xr-x    1 root     root        67204 Okt 19  2004 mount
-rwxr-xr-x    1 root     root        37900 Okt 19  2004 cardmgr
-rwxr-xr-x    1 root     root         1128 Okt 19  2004 MAKEDEV.ide
lrwxrwxrwx    1 root     root            7 Okt 20  2004 M -> MountCF
lrwxrwxrwx    1 root     root           13 Okt 20  2004 C -> CreateCF- 
Node
lrwxrwxrwx    1 root     root           16 Okt 20  2004 modprobe - 
 > ../sbin/modprobe
-rwxr-xr-x    1 root     root         1787 Okt 20  2004 CreateCF-Node
-rwxr-xr-x    1 root     root          215 Okt 20  2004 MountCF
-rwxr-xr-x    1 root     users       22419 Feb 17 10:02 lsmod
-rwxr-xr-x    1 root     users       86127 Feb 17 10:02 insmod
drwxr-xr-x    2 root     root         1024 Mai 31 21:15 .
-rwxr-xr-x    1 root     users        7256 Jun  1 14:36 pcmcia-check- 
broken-cis
-rwxr-xr-x    1 root     users       15800 Jun  1 14:36 pcmcia-socket- 
startup
-rwxr-xr-x    1 root     users       11332 Jun  1 15:32 pccardctl
drwxr-xr-x   14 root     root         1024 Jun  1 17:32 ..
------------------------------ [ END   bin ]  
------------------------------

------------------------------ [ BEGIN sbin ]  
------------------------------
-rwxr-xr-x    1 root     root        80696 Jan 19  2001 fsck.ext2
-rwxr-xr-x    1 root     root        78736 Jan 21  2001 lilo
-rwxr-xr-x    1 root     users       23629 Feb 17 10:02 insmod
-rwxr-xr-x    1 root     users       28210 Feb 17 10:02 rmmod
-rwxr-xr-x    1 root     users       86127 Feb 17 10:02 modprobe
-rwxr-xr-x    1 root     users      135523 Feb 17 10:02 depmod
-rwxr-xr-x    1 root     users        7461 Mai 31 18:40 scsi_info
-r-xr-xr-x    1 root     users        4820 Mai 31 18:40 pcinitrd
-rwxr-xr-x    1 root     users       11342 Mai 31 18:40 pcic_probe
-rwxr-xr-x    1 root     users       33513 Mai 31 18:40 pack_cis
-rwxr-xr-x    1 root     users        7510 Mai 31 18:40 ifuser
-rwxr-xr-x    1 root     users        6448 Mai 31 18:40 ifport
-rwxr-xr-x    1 root     users        6735 Mai 31 18:40 ide_info
-rwxr-xr-x    1 root     users       10351 Mai 31 18:40 ftl_format
-rwxr-xr-x    1 root     users        8604 Mai 31 18:40 ftl_check
-rwxr-xr-x    1 root     users       24120 Mai 31 18:40 dump_cis
-rwxr-xr-x    1 root     users       54662 Mai 31 18:40 cardmgr
-rwsr-xr-x    1 root     users       18135 Mai 31 18:40 cardctl
-rwxr-xr-x    1 root     users       15076 Jun  1 17:16 udevtrigger
-rwxr-xr-x    1 root     users       39376 Jun  1 17:16 udevtest
-rwxr-xr-x    1 root     users       41264 Jun  1 17:16 udevstart
-rwxr-xr-x    1 root     users       14308 Jun  1 17:16 udevsettle
-rwxr-xr-x    1 root     users        5944 Jun  1 17:16 udevmonitor
-rwxr-xr-x    1 root     users       43216 Jun  1 17:16 udevinfo
-rwxr-xr-x    1 root     users       51504 Jun  1 17:16 udevd
-rwxr-xr-x    1 root     users       10096 Jun  1 17:16 udevcontrol
-rwxr-xr-x    1 root     users       40144 Jun  1 17:16 udev
drwxr-xr-x    2 root     root         1024 Jun  1 17:25 .
drwxr-xr-x   14 root     root         1024 Jun  1 17:32 ..
------------------------------ [ END   sbin ]  
------------------------------

------------------------------ [ BEGIN etc ]  
------------------------------
-rw-r--r--    1 root     root         3332 Dez 11  2000 rc.status
-rwxr-xr-x    1 root     root            0 Okt 19  2004 serial
-rwxr-xr-x    1 root     root            0 Okt 19  2004 scsi
-rwxr-xr-x    1 root     root            0 Okt 19  2004 network
-rwxr-xr-x    1 root     root            0 Okt 19  2004 memory
-rw-r--r--    1 root     root       101621 Okt 19  2004 ld.so.cache
-rwxr-xr-x    1 root     root            0 Okt 19  2004 ide
-rwxr-xr-x    1 root     root            0 Okt 19  2004 ftl
-rw-r--r--    1 root     root         1682 Okt 19  2004 config.opts
-rwxr-xr-x    1 root     root        41266 Okt 20  2004 config
-rw-r--r--    1 root     root          491 Okt 22  2004 lilo.config
-rw-r--r--    1 root     root          277 Jun  1 16:05 fstab
drwxr-xr-x    3 root     root         1024 Jun  1 16:05 .
drwxr-xr-x   14 root     root         1024 Jun  1 17:32 ..
drwxr-xr-x    2 root     users        1024 Jun  1 17:37 udev
------------------------------ [ END   etc ]  
------------------------------

------------------------------ [ BEGIN etc/udev ]  
------------------------------
-rw-r--r--    1 root     users         226 Mai 29 11:18 udev.conf
-rw-r--r--    1 root     users          20 Jun  1 11:07 rules-start
-rw-r--r--    1 root     users         180 Jun  1 11:07 rules- 
nonstaticsocket
-rw-r--r--    1 root     users         148 Jun  1 11:07 rules-modprobe
-rw-r--r--    1 root     users         725 Jun  1 11:07 rules-base
-rw-r--r--    1 root     users        1073 Jun  1 14:53 60-pcmcia.rules
drwxr-xr-x    3 root     root         1024 Jun  1 16:05 ..
drwxr-xr-x    2 root     users        1024 Jun  1 17:37 .
------------------------------ [ END   etc/udev ]  
------------------------------




More information about the linux-pcmcia mailing list