Actually, there's on other change too, which is to start udev earlier.  I think it should basically go:

remont r/w
mount /proc
start udev
load modules
other stuff

C

On May 5, 2006, at 11:47 AM, Marc Bernard wrote:

Proposed changes to /etc/inittab :

 

# Startup the system

null::sysinit:/bin/mount -o remount,rw /

null::sysinit:/bin/mount -t proc proc /proc

 

# load up the modules                      

::sysinit:/etc/init.d/rc.modules

 

null::sysinit:/bin/mount -a

null::sysinit:/bin/hostname -F /etc/hostname

# now run any rc scripts

::sysinit:/etc/init.d/rcS start

 

INSTEAD OF

 

# Startup the system

null::sysinit:/bin/mount -o remount,rw /

null::sysinit:/bin/mount -t proc proc /proc

null::sysinit:/bin/mount -a

null::sysinit:/bin/hostname -F /etc/hostname

 

# load up the modules                      

::sysinit:/etc/init.d/rc.modules

 

# now run any rc scripts

::sysinit:/etc/init.d/rcS start


From: "David Scanlan" <dava1336@ntlworld.com>
Date: May 5, 2006 11:04:45 AM PDT
To: <gumstix-users@lists.sourceforge.net>
Subject: RE: [Gumstix-users] Can't automount mmc card (using fstab - 2.6.15 kernel)
Reply-To: <gumstix-users@lists.sourceforge.net>


Hi can you just confirm that these are the only modules which would need to be changed to be compiled into the kernel to get this working:

 

File systems -> DOS/FAT/NT Filesystems -> VFAT

 

Device drivers -> MMC/SD Card support -> MMC support

Device drivers -> MMC/SD Card support -> MMC block device driver

Device drivers -> MMC/SD Card support -> Intel PXA255 Multimedia Card Interface support

 

Then change noauto to defaults for the mmc line in fstab?

 

Cheers


Dave

 

 


From: gumstix-users-admin@lists.sourceforge.net [mailto:gumstix-users-admin@lists.sourceforge.net] On Behalf Of Craig Hughes
Sent: 01 May 2006 12:48
To: gumstix-users@lists.sourceforge.net
Subject: Re: [Gumstix-users] Can't automount mmc card (using fstab - 2.6.15 kernel)

 

On May 1, 2006, at 3:51 AM, David Scanlan wrote:



I’ve been trying to get my mmc card to automount on startup of the gumstix by changing noauto in fstab to defaults.  This seems to make no difference unfortunately.  Once the gumstix has started if I enter “mount /mnt/mmc” or “mount –a” the mmc mount is brought up no problems.  I’m using the 2.6.15 kernel on basix 200 bt.  I’ve read in other posts about modules needing to be loaded first but I thought that was with older versions of the kernel and the fstab method should work regardless here.  Any ideas?  Cheers

 

the "mount -a" is run from /etc/inittab before the rc.modules script is run -- so the mmc driver and the mmc block driver have not yet been loaded, so there is no /dev/mmcblk* to mount, so mount -a in /etc/inittab doesn't mount it.  You can add a manual "/sbin/modprobe mmc_block; /sbin/modprobe pxamci" in /etc/inittab ahead of the "mount -a" command to ensure that the right modules are already loaded before the mount is attempted.  Or easier, just compile the MMC stuff into the kernel instead of building it as modules, then it'll be there for sure.

 

C