Linux-2.6.22.6 kernel porting-Add a USB device driver

Source: Internet
Author: User

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.