Robots - Notes - gumstix - CF Mount

Mounting a CF memory card on an 400xm equipped with a cfstix

After login in as root the following message is displayed:

Welcome to Gumstix!
By default, this gumstix is configured for MMC support.
Unfortunately, this means Compact Flash support has to be
disabled out of the box. To turn off MMC and turn on CF,
edit the file /etc/modules and comment out or delete the MMC
lines; then rename /etc/init.d/s30pcmcia to /etc/init.d/S30pcmcia
and reboot.
# _

Before following the instructions determine what drives the 400mx thought it had and also what CF cards it thought it saw.

To determine what drives the 400mx had:

# df
Filesystem       Size   Used   Available   Use%   Mounted on
/dev/mtdblock2  15.8M   3.7M       12.0M    24%   /
# _

(I have no idea how to determine what devices the 400mx thought it had that could be mounted, fdisk, is not installed)

To determine what cards the 400mx and cfstix had:

# cardctl
no pcmcia driver in /proc/devices
# _

Okay no drivers. As per the login message, edited the modules file (using vi).

modules before:

modules after edit:

# more modules
# MMC support -- comment out to enable CF
# mmc_block
# pxamci

# FAT Filesystem and its NLS support
vfat
nls_iso8859-1
nls_cp437
# _
# more modules
# MMC support -- comment out to enable CF
mmc_block
pxamci

# FAT Filesystem and its NLS support
vfat
nls_iso8859-1
nls_cp437
# _

Rename the s30pcmcia file:

# mv s30pcmcia S30pcmcia

Stop the system:

# halt

Wait for the system to halt. Unplug the power and re-plug the power . What cards does the 400mx now think it has?

# cardctl ident
Socket 0:
  no product info available
# _

Stop the system. Unplug the system. Insert the CF memory card into the cfstix and plug in the power back in. What cards does the 400mx now think it has?:

# cardctl ident
Socket 0:
  product info: "TOSHIBA THNCF256MMA ", "", ""
  manfid: 0x0098, 0x0000
  function: 4 (fixed disk)
# _

Check the drives one more time:

# df
Filesystem       Size   Used   Available   Use%   Mounted on
/dev/mtdblock2  15.8M   3.7M       12.0M    24%   /
# _

Create the mount point /mnt/hda and mount the CF as x on mount point y:

# mkdir hda
# mount -t vfat /dev/hda1 /mnt/hda
hda: max request size: 128KiB
hda: 500736 sectors (256 MB) w/2KiB Cache, CHS=978/16/32
hda: hda1
hda: hda1
# _

Check the drives one last time:

# df
Filesystem       Size    Used   Available  Use%  Mounted on
/dev/mtdblock2   15.8M   3.7M       12.1M   23%  /
/dev/hda1       243.3M   4.0k      243.3M    0%  /mnt/hda
# _

Success! Files can now be save to the compact flash card at /mnt/hda. This may be the best way or traditional way to go about it but it worked.


If you have any questions or comments about this page please email me at: debots_replacethis_dinkdaze.org with at sign.