Forum Discussion
Altera_Forum
Honored Contributor
20 years agoUSB device!
I have a usb flash disk, I want to using it on my board, I choose USB Mass storage and SCSI disk and ISA116X driver support in menuconfig. Start uClinux on NIOS II SDK shell, using dmesg, I got these...
Altera_Forum
Honored Contributor
20 years agohi qoral
thank you for your reply ! final step is very important ! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif I can access usb flash disk(fat 16) on uClinux OS,and the reason that i can't mount usb flash is file system problem, before. Can i mount usb flash disk that file system is linux ? # fdisk -l /dev/sda Disk /dev/sda: 131 MB, 131072000 bytes 16 heads, 32 sectors/track, 500 cylinders Units = cylinders of 512 * 512 = 262144 bytes Device Boot Start End Blocks Id System /dev/sda1 1 500 127984 83 Linux# mount -t vfat /dev/sda1 /mnt mount: Mounting /dev/sda1 on /mnt failed: Invalid argument# usb 1-2: USB disconnect, address 2 usb 1-2: new full speed USB device using isp1362-hcd and address 3 usb 1-2: configuration# 1 chosen from 1 choice scsi1 : SCSI emulation for USB Mass Storage devices Vendor: USB 2.0 Model: Mobile Disk Rev: 2.00 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sda: 256000 512-byte hdwr sectors (131 MB) sda: Write Protect is off sda: assuming drive cache: write through SCSI device sda: 256000 512-byte hdwr sectors (131 MB) sda: Write Protect is off sda: assuming drive cache: write through sda: sda1 sd 1:0:0:0: Attached scsi removable disk sda # fdisk -l /dev/sda Disk /dev/sda: 131 MB, 131072000 bytes 16 heads, 32 sectors/track, 500 cylinders Units = cylinders of 512 * 512 = 262144 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 499 127728 6 FAT16# mount -t vfat /dev/sda1 /mnt# cd /mnt# ls ?? S1????.doc nios2.ptf ??1.vsd S1??????0411.doc nios2_system.h ????10 app_self nios_1.ptf ????2.doc ice zImage Filesystem_1c20_usr jay_??# thx in advance !