Linux-2.6.22.6 内核移植--添加USB设备驱动
2011-10-15 20:42
567 查看
【实验目的】
在FS2410开发板上进行linux-2.6.22.6内核的移植,这个部分完成USB设备驱动的添加,完成相应的功能。
【实验环境】
1、Ubuntu10.10发行版
2、FS2410平台以及开发板中移植好的u-boot-1.3.1
3、交叉编译器 arm-linux-gnu-gcc (ver:3.4.5)
【实验步骤】
(1) 配置2.6.22.6支持u盘
1.
SCSI device support --->
<*> SCSI disk support
<*> SCSI generic support
<*> SCSI media changer support
[*] Probe all LUNs on each SCSI device
这些配置是对host端和device端的支持.
2. USB support --->
<*> USB Mass Storage support
这是对U盘的SCSI类型的支持
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 Languages)
支持相应的语言
(2) 启动开发板
插入U盘[靠近SD卡的USB口],出现一下信息:
[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)验证一下
# mkdir -p /mnt/udisk
# mount -t vfat -o codepage=936,iocharset=cp936 /dev/sda1 /mnt/udisk
#cd /mnt/udisk
# ls
在FS2410开发板上进行linux-2.6.22.6内核的移植,这个部分完成USB设备驱动的添加,完成相应的功能。
【实验环境】
1、Ubuntu10.10发行版
2、FS2410平台以及开发板中移植好的u-boot-1.3.1
3、交叉编译器 arm-linux-gnu-gcc (ver:3.4.5)
【实验步骤】
(1) 配置2.6.22.6支持u盘
1.
SCSI device support --->
<*> SCSI disk support
<*> SCSI generic support
<*> SCSI media changer support
[*] Probe all LUNs on each SCSI device
这些配置是对host端和device端的支持.
2. USB support --->
<*> USB Mass Storage support
这是对U盘的SCSI类型的支持
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 Languages)
支持相应的语言
(2) 启动开发板
插入U盘[靠近SD卡的USB口],出现一下信息:
[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)验证一下
# mkdir -p /mnt/udisk
# mount -t vfat -o codepage=936,iocharset=cp936 /dev/sda1 /mnt/udisk
#cd /mnt/udisk
# ls
相关文章推荐
- linux-2.6.35内核移植—USB驱动的添加
- ARM9开发板FL2440移植Linux-3.0内核————添加USB驱动
- Linux 2.6.22.6移植到S3C2440之通过nfs启动qt并添加USB鼠标支持
- 移植Linux3.4.2版本内核到mini2440(二)--添加网卡、UVC摄像头、LCD驱动
- linux-2.6.35内核移植—网卡驱动的添加
- fl2440——移植USB驱动、内核添加USB支持、U盘挂载
- linux 2.6.35内核移植- USB camera功能添加
- linux-2.6.35内核移植—Nand flash驱动的添加(分区)
- Linux-2.6.32.2内核在mini2440上的移植(七)---添加ADC驱动
- real6410移植linux2.6.39.4内核(2)-添加nand flash驱动及启动cramfs文件系统
- linux4.10.8 内核移植(四)---字符设备驱动_led驱动程序
- linux 2.4内核下自定义USB设备驱动编写
- 基于linux-2.6.38.8内核的SDIO/wifi驱动分析&&android 平台USB wifi驱动移植及使用 SDIOwifi
- linux-2.6.35内核移植—LCD驱动的添加
- linux驱动入门-hello设备驱动程序编写及内核的更新(网卡的添加)
- Linux2.6内核usb gadget驱动移植
- 【转】LINUX-2.6.31内核移植及添加驱动
- Linux内核添加设备驱动方法
- linux gspca usb摄像头驱动添加对新型号的详细移植步骤
- S3c6410 linux内核移植(9)---添加adc驱动、电池电量检测之文件修改