Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

CompactFlash Problem

I'm a newbie in Nios uClinux , I use Stratix 1s40 board ,when I want mount Fat Filesystem but have some truble. At first time i mount Fat Filesystem CF card have error like this:

# /bin/mount -t vfat /dev/hda1 /mnt/ide0 -n

hda: hda1

FAT: codepage cp437 not found

hda: hda1

mount: wrong fs type, bad option, bad superblock on /dev/hda1, or too many mounted file systems

and then i find this topic :

http://www.niosforum.com/forum/index.php?s...pic=2518&hl=437 (http://www.niosforum.com/forum/index.php?showtopic=2518&hl=437)

in this topic have trouble like me so i follow those steps to

enable Code 437 (United States & Canada)

but the problem was not solved, when i rebuild kernel and upload to my board

Stratix 1s40 and run it ,I got an another problem happen like this:

# mount -t vfat /dev/hda1 /mnt/ide0 -n

mount -t vfat /dev/hda1 /mnt/ide0 -n

hda: hda1

FAT: IO charset iso8859-1 not found

hda: hda1

mount: wrong fs type, bad option, bad superblock on /dev/hda1,

or too many mounted file systems

i'm sure when i use Extended 2 Filesystem in CF card i can mount it , but when i use Fat filesystem i can't mount it anymore.

have anyone can help me solve this problem? let me can mount Fat filesystem cf card in my Nios Board. Thanks&#65281;(Sorry my English is not so good><)

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi

    I beleive you have to enable support for that character set in the kernel as well. I&#39;m not exacly sure where, but its not hard to find.

    Good luck
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you for your recommend&#65281;

    It work&#65281;

    thanks&#65281;