This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to mount the u disk on omap3530

Other Parts Discussed in Thread: OMAP3530

I can mount the u disk, but it doesn't show the Chinese character correctly, instead of it is "?".

The operation is as follows :

1. mount the u disk on omap3530 by the command:

# mount /dev/sda1 /home/root/sd -t vfat

2. then get all of the file name which on the u disk by Qt's API.

3.  display them on the screen by Qt's widget.

(Qt is set  : QTextCodec::setCodecForLocale and QTextCodec::setCodecForTr with gb2312)

and I tried to add "-o iocharset=utf8" (same as cp936) for mount command and set Qt code as utf-8  but failed :

FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will !
FAT: IO charset utf8 not found
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

What should I do?? It make me crazy now !!~~help~~plz~~

  • Hi Fengyong,

    Could you specify the software version which you are using? List your boot args - it may be useful too.

    BR

    Tsvetolin Shulev

  • hi, Shulev

    Thanks for your reply.

    I don't use any software. I'm developing a software for omap3530, which tries to display the u disk's files on the screen. By the way, the software is developed by Qt. Before this, I use the command 'mount' to mount the u disk on /home/root/sd. The boot args are as follows:

    baudrate=115200                                                                 
    bootfile=uImage                                                                 
    loadaddr=0x82000000                                                             
    usbtty=cdc_acm                                                                  
    console=ttyS2,115200n8                                                          
    mmcargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootfstype=ext
    3 rootwait                                                                      
    nandargs=setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=jf
    fs2                                                                             
    loadbootscript=fatload mmc 0 ${loadaddr} boot.scr                               
    bootscript=echo Running bootscript from mmc ...; source ${loadaddr}             
    loaduimage=fatload mmc 0 ${loadaddr} uImage                                     
    mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}               
    nandboot=echo Booting from nand ...; run nandargs; onenand read ${loadaddr} 2800
    00 400000; bootm ${loadaddr}                                                    
    stdin=serial                                                                    
    stdout=serial                                                                   
    stderr=serial                                                                   
    ethaddr=02:85:19:01:d0:05                                                       
    bootargs=console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
    mem=99M@0x80000000 mem=128M@0x88000000 mpurate=720 omapfb.mode=hdmi:1280x720@60
    omapdss.def_disp=hdmi gid=1ED20004000000000403A3851901D005                      
    bootcmd=mmc init;fatload mmc 0 0x82000000 uImage;bootm 0x82000000               
    bootdelay=1                                                                     
    dieid#=1ed20004000000000403a3851901d005                                         
    ethact=dm9000                                                                   
                                                                                    
    Environment size: 1020/131068 bytes