配置内核


1.配置usb host


Device Drivers  --->
  SCSI device support  ---> 
      <*>   SCSI disk support 
  USB support  ---> 
      <*> Support for Host-side USB                                                                                    
     [*]   USB verbose debug messages                                                                            
    ---   Miscellaneous USB options                                                                                  
    [ ]   USB device filesystem                                                                                       
     [ ]   Enforce USB bandwidth allocation (EXPERIMENTAL)                                                            
    [ ]   Dynamic USB minor allocation (EXPERIMENTAL)                                                                  
    ---   USB Host Controller Drivers                                                                                
     <*>   EHCI HCD (USB 2.0) support                                                                                 
    [ ]     Full speed ISO transactions (EXPERIMENTAL)                                                                 
    [ ]     Root Hub Transaction Translators (EXPERIMENTAL)                                                           
    <*>   Intel ixp435/ixp465 on-chip EHCI HCD support                                                                 
     < >   ISP116X HCD support                                                                                        
    < >   OHCI HCD support                                                                                          
     < >   UHCI HCD (most Intel and VIA) support                                                                      
    < >   SL811HS HCD support                                                                                       
    ---   USB Device Class drivers                                                                                 
    < >   USB Modem (CDC ACM) support                                                                                 
    < >   USB Printer support                                                                                      
    --- NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'                                                   
     --- may also be needed; see USB_STORAGE Help for more information                                               
     <*> USB Mass Storage support                                                                             

    [*]   USB Mass Storage verbose debug    


2  配置SD卡


   MMC/SD Card support  --->
    <*> MMC support                                                                                                   
           [*]   MMC debugging                                                                                           

          <*>   MMC block device driver 


3.配置usb和sd卡支持的文件系统(一般usb都以vfat格式,所以此处选择支持vfat)


File systems  --->  
    DOS/FAT/NT Filesystems  --->
        <*> MSDOS fs support                                                                                           
         <*> VFAT (Windows-95) fs support                                                                            
          (437) Default codepage for FAT                                                                               
         (iso8859-1) Default iocharset for FAT                                                                        
         <*> NTFS file system support                                                                                
         [ ]   NTFS debugging support                                                                           

         [*]   NTFS write support 


4  重新编译内核,


      make zImage


5  烧写新内核到开发板,用DNW的USB下载


6.重启开发板,进入文件系统后,在/dev下面建立两个设备节点:


mknod /dev/sdb1 b 8 17(usb)
mknod /dev/sda1 b 8 1 (sd)

在我的系统linux-2.6.12,u盘被识别为/dev/sda1,然后使用命令mount  /dev/sda1   /mnt 挂载,

cd  /mnt  

ls -l

就会看到你U盘里的所有文件 

Logo

更多推荐