歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux內核 >> 移植Linux內核到S3C2410開發板的問題

移植Linux內核到S3C2410開發板的問題

日期:2017/3/1 11:17:35   编辑:Linux內核

問題:

內核配置時使用smdk2410的默認配置. U盤不能掛載!

插拔U盤提示信息為:

$ usb 1-1: USB disconnect, address 2

usb 1-1: new full speed USB device using s3c2410-ohci and address 3

usb 1-1: configuration #1 chosen from 1 choice

辦法:

重新配置內核, 啟用SCSI device support,SCSI相關模塊最好編譯進內核,不要以module形式編譯。

再次插上U盤提示信息為:

插上U盤後,顯示:

usb 1-1: new full speed USB device using s3c2410-ohci and address 3

usb 1-1: configuration #1 chosen from 1 choice

scsi1 : SCSI emulation for USB Mass Storage devices

scsi 1:0:0:0: Direct-Access USB Flash Disk 1.06 PQ: 0 ANSI: 0 CCS

sd 1:0:0:0: [sda] 129312 512-byte hardware sectors (66 MB)

sd 1:0:0:0: [sda] Write Protect is off

sd 1:0:0:0: [sda] Assuming drive cache: write through

sd 1:0:0:0: [sda] 129312 512-byte hardware sectors (66 MB)

sd 1:0:0:0: [sda] Write Protect is off

sd 1:0:0:0: [sda] Assuming drive cache: write through

sda: sda1

sda: p1 exceeds device capacity

sd 1:0:0:0: [sda] Attached SCSI removable disk

U盤的設備名稱為sda1,執行命令掛載:

#mount -t vfat sda1 /mnt

提示錯誤信息:

Unable to load NLS charset cp437

FAT: codepage cp437 not found

mount: mounting sda1 on /mnt failed: Invalid argument

原因是內核缺少cp437字符集。

重新配置內核,在filesystems-->native language support-> 中選擇Codepage 437和其他的一些常用的字符集。

再次執行命令掛載:

#mount -t vfat sda1 /mnt

掛載成功,無任何錯誤信息輸出!

Copyright © Linux教程網 All Rights Reserved