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.

Mount Flash Devices in AM335x



Hi All,

  I am trying to mount Pen drive that i am able to found in sda , sda1 , sda5 in dev. While in partitions  I can able to see the description of the device. :-

Steps I have performed: 

1) I have formatted usb-storage device with ext2

2) then I have inserted into am335x based device

3)Unmount /media/sda5

    # umount -l media/sda5

4) Tried to mount on /media/sd5 so that i can able to access the device;

$ mount -t msdos /dev/sda1 /media/sda5

also tried with

$ mount -t msdos /dev/sda5 /media/sda5

Getting Error :


mounting device /dev/sda5 /media/sda5 : unable to mount to device  no device found

Praveen

  • after you get error, fire "dmesg | tail"

    paste output, it will be a great referance. 

    Best luck

  • Hi,

     Here I using usb-storage through /media its fine I am  able to create files and folders on usb - storage and can access from application but regarding Spi-Flash again there is same mounting problem  In both case I am not able to mount.

    I have followed McSPI Driver for SPI and USBHostConfigMSC.pdf  but in mode cases not able to mount ;

    As per your suggestion i have used that command and results I am attaching pls have a look !!

  • Hi,

    Can you plz post the output of "cat /proc/filesystems" to see what are the fileystems were supported by your kernel?

    or yourself look into that & enable appropriate fs support in kernel menuconfig & compile and try

    If ext2/jffs2/vfat supports not avail then, you may get failures,

  • Hi Titus ,

    Thank for your Response;

    pls have a look. 
    I am not aware of the following could you explain briefly  ;  

      about what "nodev"  sysfs

                          _____   vfat etc means;

     

       

  • Hi Praveen,

    These are the filesystem types supported by booted kernel uImage.

    sysfs - used to check & change  system driver info

    procfs - used to check processor info

    vfat - windows based filesystem format like FAT

    1) Format your pendrive in windows then do the following command.

    mount -t vfat /dev/sdb1 /mnt


    2) You cannot mount your NAND in "jffs2" fs fomat since support is not enabled in your booted kernel image.

    3) Instead you can see & try the "ubifs" fs support for NAND flash.

    4) If you want to mount your NAND flash in jffs2fs format then enable jffs2support in linux kernel configuration.