[PURPOSE]
On the FS2410 Development Board for linux-2.6.22.6 kernel transplantation, this part of the completion of the USB device driver to complete the corresponding functions.
[Lab environment]
1. Ubuntu10.10 release
2. FS2410 platform and u-boot-1.3.1 transplanted in the Development Board
3. Cross-compiler arm-linux-gnu-gcc (ver: 3.4.5)
Lab procedure]
(1) Linux 2.6.22.6 supports USB flash drives.
1.
SCSI device support --->
<*> SCSI disk support
<*> SCSI generic support
<*> SCSI media changer support
[*] Probe all LUNs on each SCSI device
These configurations support the host and device.
2. USB support --->
<*> USB Mass Storage support
This is the support for the SCSI type of the USB flash disk.
3. File systems --->
Native Language Support ---> (iso8859-1) Default NLS Option
<*> Codepage 437 (United States, Canada)
<*> Simplified Chinese charset (CP936, GB2312)
<*> Nls iso 8859-1 (Latin 1; Western European ages)
Supported languages
(2) Start the Development Board
Insert the USB flash drive [USB port close to the SD card] and the following message is displayed:
[Root @ 192/] # usb 1-1: new full speed USB device using s3c2410-ohci and address2
Usb 1-1: configuration #1 chosen from 1 choice
Scsi0: SCSI emulation for USB Mass Storage devices
Scsi 0: 0: 0: 0: Direct-Access Netac OnlyDisk 1.00 PQ: 0 ANSI: 2
Sd 0: 0: 0: 0: [sda] 2039808 512-byte hardware sectors (1044 MB)
Sd 0: 0: 0: 0: [sda] Write Protect is off
Sd 0: 0: 0: 0: [sda] Assuming drive cache: write through
Sd 0: 0: 0: 0: [sda] 2039808 512-byte hardware sectors (1044 MB)
Sd 0: 0: 0: 0: [sda] Write Protect is off
Sd 0: 0: 0: 0: [sda] Assuming drive cache: write through
Sda: sda1 (mknod/dev/sda1 B 8 1; mount-t vfat/dev/sda1/tmp)
Sd 0: 0: 0: 0: [sda] Attached SCSI removable disk
Sd 0: 0: 0: 0: Attached scsi generic sg0 type 0
(3) Verify
# Mkdir-p/mnt/udisk
# Mount-t vfat-o codepage = 936, iocharset = cp936/dev/sda1/mnt/udisk
# Cd/mnt/udisk
# Ls