linux 2 6 35核心移植 USB驅動的新增

2021-06-01 20:36:15 字數 2293 閱讀 1308

【實驗目的】

在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

Ubuntu安裝Linux2 6 35核心編譯

sudo tar xvf linux 2.6.35.tar.xz c usr src cd usr src 第二步 安裝編譯核心時需要的工具 sudo apt install sudo apt get install build essential kernel package libncurses...

Linux 2 6 35 新增特性 RPS RFS

本帖最後由 lenky0401 於 2010 08 15 23 02 編輯 懶得拷貝了 主要是試了拷貝,竟然拷貝不了,突然感覺還是qq空間發表日誌時的貼上功能強大,連文字帶圖一起拷貝過去了,之後還提示是否要把給抓取過來存到qq相簿 原文 linux 2.6.35於2010年8月1號發布,新增特性比較...

linux核心移植

1.基本開發環境 u boot版本 u boot 2012.04.01 假設u boot已經移植好 linux平台 虛擬機器下ubuntu 14.04 交叉編譯工具 gcc 4.4.3 arm開發板 mini2440 cpu s3c2440 sdram 64m,nor flash 2m,nand f...