2008-04-18 12:29:03     Unable to mount SD-card

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-18 12:29:03     Unable to mount SD-card

blue hash (UNITED STATES)

Message: 54485    Card: 1 GB-Kingston SD card, uClinux(2008-r1-rc8), custom BF537 board

My system is able to detect the SD card as below:

 

root:/> cat /proc/spi_mmc

Driver build date: Apr 18 2008

SCLK: 20000 KHz

SPISEL1 as chip select

Driver: SPI Framework master

Total errors: 0

 

MMC :

         Capacity: 1030225920 B

         Name: SD01G(.

         Rev: 9.1

         Date: 2007/7

         Serial: 0x344a5f (3426911)

         CSD ver.: 0

         CCC supported: 5b5

         Mult. block writes works: YES

last block:      0

users:   0

Performance for last 100 transfers

         Mean read throughput:   10 kB/s

         Mean write throughput:  0 kB/s

 

 

According to this wiki page, i created a FAT partition:

http://docs.blackfin.uclinux.org/doku.php?id=mmc_driver&s[]=mmc

 

Partition information

Disk /dev/spi_mmc: 8 heads, 62 sectors, 4056 cylinders

Units = cylinders of 496 * 512 bytes

 

       Device Boot    Start       End    Blocks   Id  System

/dev/spi_mmc1             1      4056   1005857    6  FAT16

 

 

 

When I try to mount the mmc

root:/> mount -t vfat /dev/spi_mmc /mnt/ -o sync

Unable to load NLS charset iso8859-1

FAT: IO charset iso8859-1 not found

mount: mounting /dev/spi_mmc on /mnt/ failed

 

I have the charset enabled in the kernel.

Any changes to be made to the device table?

Thanks.

QuoteReplyEditDelete

 

 

2008-04-18 13:17:28     Re: Unable to mount SD-card

Robin Getz (UNITED STATES)

Message: 54493    Blue:

 

Do something like:

 

ls /lib/modules/[kernel_version]/kernel/fs/nls/

 

and what files are there? I have:

 

root:~> ls /lib/modules/2.6.22.16-ADI-2008R2-pre-svn4147/kernel/fs/nls/

nls_ascii.ko       nls_cp857.ko       nls_cp932.ko       nls_iso8859-3.ko

nls_cp1250.ko      nls_cp860.ko       nls_cp936.ko       nls_iso8859-4.ko

nls_cp1251.ko      nls_cp861.ko       nls_cp949.ko       nls_iso8859-5.ko

nls_cp1255.ko      nls_cp862.ko       nls_cp950.ko       nls_iso8859-6.ko

nls_cp437.ko       nls_cp863.ko       nls_euc-jp.ko      nls_iso8859-7.ko

nls_cp737.ko       nls_cp864.ko       nls_iso8859-1.ko   nls_iso8859-9.ko

nls_cp775.ko       nls_cp865.ko       nls_iso8859-13.ko  nls_koi8-r.ko

nls_cp850.ko       nls_cp866.ko       nls_iso8859-14.ko  nls_koi8-ru.ko

nls_cp852.ko       nls_cp869.ko       nls_iso8859-15.ko  nls_koi8-u.ko

nls_cp855.ko       nls_cp874.ko       nls_iso8859-2.ko   nls_utf8.ko

 

-robin

QuoteReplyEditDelete

 

 

2008-04-18 13:35:07     Re: Unable to mount SD-card

blue hash (UNITED STATES)

Message: 54500    Thats funny. I dont seem to have the nls directory at all

root:/> ls /lib/modules/2.6.22.18-ADI-2008R1black-svn/kernel/fs          

lockd  nfs    smbfs

 

The base NLS is default in the kernel

 

--- Base native language support                                           

                                     (iso8859-1) Default NLS Option

 

Where did my directory go. Is this responsible for the mount failure.

QuoteReplyEditDelete

 

 

2008-04-18 14:25:04     Re: Unable to mount SD-card

Mike Frysinger (UNITED STATES)

Message: 54503    that option only selects the default ... it doesnt actually build up the associated NLS code.  you still need to select it.

QuoteReplyEditDelete

 

 

2008-04-18 18:33:55     Re: Unable to mount SD-card

blue hash (UNITED STATES)

Message: 54508    It works.

iso8859-1 was not selected. Thanks

Attachments

    Outcomes