Hello List,
I am having difficulties to access my Compact Flash card from uboot on a
Wifistix which is connected to a Connex 400 xm and a Console-st. The
instructions as described on http://docwiki.gumstix.org/U-Boot#The_CF_car=
d don't
seem to work for me. "fatls ide 0" always returns "** Unable to use ide 0=
:1 for
fatls **". Believing that I may have provided the wrong partition number,=
I also
tried to do "fatls ide 1" but that doesn't seem to make a difference.
The CF card I use has 1 GB of space, a single partition which is fat form=
atted,
and there is one file in the file system's root dir. If I boot the Connex=
normally I can access the file without any problems.
Here are the gory details:
U-Boot 1.1.4 (Nov 6 2006 - 11:20:03) - 400 MHz - 1161
*** Welcome to Gumstix ***
U-Boot code: A3F00000 -> A3F25DE4 BSS: -> A3F5AF00
RAM Configuration:
Bank #0: a0000000 64 MB
Flash: 16 MB
Using default environment
SMC91C1111-0
Net: SMC91C1111-0
Hit any key to stop autoboot: 0
GUM> pinit on
Marvell 802.11 CF ID: 04
Network Adapter Card
GUM> fatls ide 0
** Unable to use ide 0:1 for fatls **
Well, then I boot the thing ... and we see that the card and its data can=
be
accessed:
# ls /mnt/cf
# mount /mnt/cf
# ls /mnt/cf
HelloWorld.txt
# cat /mnt/cf/HelloWorld.txt
Hello World!
And yes, there really is a fat file system on the one partition of the CF=
card:
# fdisk -l /dev/hda
Disk /dev/hda: 1014 MB, 1014644736 bytes
255 heads, 63 sectors/track, 123 cylinders
Units =3D cylinders of 16065 * 512 =3D 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 123 987966 6 FAT16
# cat /proc/mounts
[...]
/dev/hda1 /mnt/cf vfat
rw,sync,fmask=3D0022,dmask=3D0022,codepage=3Dcp437,iocharset=3Diso8859-1 =
0 0
Does anybody know what prevents me from accessing the CF card from uboot?=
Regards,
Birger
|