移植linux内核到S3C2410开发板的问题...

问题:

内核配置时使用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

办法:

重新配置内核

配置USB设备支持

Generalsetup--->

[*]Configurestandardkernelfeatures(forsmallsystems)--->

[*]Supportforhot-pluggabledevices(NEW)

DeviceDrivers--->

GenericDriverOptions--->

<*>Userspacefirmwareloadingsupport//(1)

Blockdevices--->

<*>LowPerformanceUSBBlockdriver

SCSIdevicesupport--->

<*>SCSIdevicesupport

<*>SCSIdisksupport

<*>SCSIgenericsupport

USBsupport--->

<*>SupportforHost-sideUSB

[*]USBdevicefilesystem

<*>OHCIHCDsupport

---NOTE:USB_STORAGEenablesSCSI,and'SCSIdisksupport'

---mayalsobeneeded;seeUSB_STORAGEHelpformoreinformation

<*>USBMassStoragesupport

[*]USBMonitor

Filesystems--->

DOS/FAT/NTFilesystems--->

<*>MSDOSfssupport

<*>VFAT(Windows-95)fssupport

(936)DefaultcodepageforFAT

(cp936)DefaultiocharsetforFAT

<>NTFSfilesystemsupport

PartitionTypes--->

[*]PCBIOS(MSDOSpartitiontables)support

NativeLanguageSupport--->

<*>SimplifiedChinesecharset(CP936,GB2312)

<*>NLSUTF8

再次插上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

挂载成功,无任何错误信息输出!

问题:不支持蓝牙

办法:重新配置内核

相信多数人使用的都是2.6的内核了,在2.6的内核中要支持Bluez,只要你的内核版本不是太旧,无需打Patch,直接配置好就OK了,内核里面的代码相对比较稳定了。当然,Bluez对一些Bluetooth协议栈新特性的支持,还是需要更新kernel代码的。你应该确认你使用的kernel版本是否以及包含了对应的支持。

内核的配置,基本上把networking下---Bluetoothsubsystemsupport里的以下几项全部选上即可:

L2CAPprotocolsupport
SCOlinkssupport
RFCOMMprotocolsupport
RFCOMMTTYsupport
BNEPprotocolsupport
HIDPprotocolsupport

此外,在Bluetoothdevicedrivers里选上你所需要支持的Bluetooth设备。根据自己使用的设备接口类型选择,如果你是通过usb接口使用蓝牙适配器,需要选择
HCIUSBdriver

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值