linux-2.6.35内核移植—USB驱动的添加
2011-11-15 19:16
627 查看
【实验目的】
在FS2410开发板上进行linux-2.6.22.6内核的移植,这个部分完成USB设备驱动的添加,完成相应的功能。
【实验环境】
1、 Ubuntu 10.10发行版
2、 u-boot-2010.03
3、 FS2410平台
4、 交叉编译器 arm-none-linux-gnueabi-gcc-4.3.2
【实验步骤】
1、 配置内核
Device Drivers --->
SCSI device support --->
<*> SCSI disk support
<*> SCSI generic support
<*> SCSI media changer support
[*] USB support --->
<*> USB Mass Storage support
File systems --->
-*- Native language support --->
<*> Codepage 437 (United States, Canada)
<*> Simplified Chinese charset (CP936, GB2312)
<*> ASCII (United States)
<*> NLS ISO 8859-1 (Latin 1; Western European Languages)
2、 编译内核
$ make zImage
3、 拷贝内核镜像到tftpboot目录下
$ cp arch/arm/boot/zImage /tftpboot
4、 重启系统后插入U盘
显示如下内容:
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
sd 0:0:0:0: [sda] Attached SCSI removable disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
这说明发现了一个usb设备设备名为sda,分区sda1
5、 创建设备节点
# mknod /dev/sda1 b 8 1
6、 挂载U盘
# mount -t vfat /dev/sda1 /mnt
7、 查看U盘内容
# ls /mnt
在FS2410开发板上进行linux-2.6.22.6内核的移植,这个部分完成USB设备驱动的添加,完成相应的功能。
【实验环境】
1、 Ubuntu 10.10发行版
2、 u-boot-2010.03
3、 FS2410平台
4、 交叉编译器 arm-none-linux-gnueabi-gcc-4.3.2
【实验步骤】
1、 配置内核
Device Drivers --->
SCSI device support --->
<*> SCSI disk support
<*> SCSI generic support
<*> SCSI media changer support
[*] USB support --->
<*> USB Mass Storage support
File systems --->
-*- Native language support --->
<*> Codepage 437 (United States, Canada)
<*> Simplified Chinese charset (CP936, GB2312)
<*> ASCII (United States)
<*> NLS ISO 8859-1 (Latin 1; Western European Languages)
2、 编译内核
$ make zImage
3、 拷贝内核镜像到tftpboot目录下
$ cp arch/arm/boot/zImage /tftpboot
4、 重启系统后插入U盘
显示如下内容:
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
sd 0:0:0:0: [sda] Attached SCSI removable disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
这说明发现了一个usb设备设备名为sda,分区sda1
5、 创建设备节点
# mknod /dev/sda1 b 8 1
6、 挂载U盘
# mount -t vfat /dev/sda1 /mnt
7、 查看U盘内容
# ls /mnt
相关文章推荐
- ARM9开发板FL2440移植Linux-3.0内核————添加USB驱动
- linux-2.6.35内核移植—网卡驱动的添加
- linux 2.6.35内核移植- USB camera功能添加
- linux-2.6.35内核移植—Nand flash驱动的添加(分区)
- linux-2.6.35内核移植—LCD驱动的添加
- linux-2.6.35内核移植—SD卡驱动的添加
- Linux-2.6.22.6 内核移植--添加USB设备驱动
- Linux 2.6.35内核配置和网卡驱动添加
- 移植Linux3.4.2版本内核到mini2440(二)--添加网卡、UVC摄像头、LCD驱动
- linux-2.6.35内核配置和网卡驱动添加 .
- Linux-2.6.32.2内核在mini2440上的移植(八)---添加ADC驱动
- S3c6410 linux内核移植(3)--- usb驱动出错解决
- linux-2.6.35内核移植—网卡驱动的移植
- real6410移植linux2.6.39.4内核(2)-添加nand flash驱动及启动cramfs文件系统
- linux gspca usb摄像头驱动添加对新型号的详细移植步骤
- 基于Linux-2.6.35内核的wifi驱动移植
- 【转】 linux内核移植和驱动添加(三)
- (转载) Linux2.6内核usb gadget驱动移植
- Linux2.6内核usb gadget驱动移植
- 【转】LINUX-2.6.31内核移植及添加驱动