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

简介: 问题: 内核配置时使用smdk2410的默认配置. U盘不能挂载!   插拔U盘提示信息为: $ usb 1-1: USB disconnect, address 2 usb 1-1: new full speed USB device...

问题:

内核配置时使用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设备支持

General setup --->

[*] Configure standard kernel features (for small systems) ---> 

    [*]   Support for hot-pluggable devices (NEW) 

Device Drivers --->

    Generic Driver Options --->

        <*> Userspace firmware loading support //(1)

    Block devices --->

        <*> Low Performance USB Block driver

    SCSI device support --->

        <*> SCSI device support 

        <*> SCSI disk support

        <*> SCSI generic support

    USB support --->

        <*> Support for Host-side USB

        [*]   USB device filesystem

        <*> OHCI HCD 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 Monitor

File systems --->

    DOS/FAT/NT Filesystems --->

        <*> MSDOS fs support 

        <*> VFAT (Windows-95) fs support 

        (936) Default codepage for FAT 

        (cp936) Default iocharset for FAT 

        < > NTFS file system support

    Partition Types --->

        [*]   PC BIOS (MSDOS partition tables) support

    Native Language Support --->

        <*> Simplified Chinese charset (CP936, GB2312)

        <*> NLS UTF8

再次插上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下 --- Bluetooth subsystem support 里的以下几项全部选上即可:

L2CAP protocol support
SCO links support
RFCOMM protocol support
RFCOMM TTY support
BNEP protocol support
HIDP protocol support

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

 

目录
相关文章
|
9天前
|
Linux C语言
Linux内核队列queue.h
Linux内核队列queue.h
|
27天前
|
Shell Linux C语言
【Shell 命令集合 系统设置 】⭐Linux 卸载已加载的内核模块rmmod命令 使用指南
【Shell 命令集合 系统设置 】⭐Linux 卸载已加载的内核模块rmmod命令 使用指南
29 1
|
3天前
|
Linux 编译器 测试技术
嵌入式 Linux 下的 LVGL 移植
嵌入式 Linux 下的 LVGL 移植
|
7天前
|
算法 Linux 调度
深度解析:Linux内核的进程调度机制
【4月更文挑战第12天】 在多任务操作系统如Linux中,进程调度机制是系统的核心组成部分之一,它决定了处理器资源如何分配给多个竞争的进程。本文深入探讨了Linux内核中的进程调度策略和相关算法,包括其设计哲学、实现原理及对系统性能的影响。通过分析进程调度器的工作原理,我们能够理解操作系统如何平衡效率、公平性和响应性,进而优化系统表现和用户体验。
17 3
|
14天前
|
负载均衡 算法 Linux
深度解析:Linux内核调度器的演变与优化策略
【4月更文挑战第5天】 在本文中,我们将深入探讨Linux操作系统的核心组成部分——内核调度器。文章将首先回顾Linux内核调度器的发展历程,从早期的简单轮转调度(Round Robin)到现代的完全公平调度器(Completely Fair Scheduler, CFS)。接着,分析当前CFS面临的挑战以及社区提出的各种优化方案,最后提出未来可能的发展趋势和研究方向。通过本文,读者将对Linux调度器的原理、实现及其优化有一个全面的认识。
|
17天前
|
Linux 内存技术
Linux内核读取spi-nor flash sn
Linux内核读取spi-nor flash sn
13 1
|
17天前
|
Linux 编译器 网络安全
嵌入式Linux移植dropbear
嵌入式Linux移植dropbear
16 3
|
17天前
|
编解码 Ubuntu 算法
【Linux】NUC977移植使用MQTT(基于mosquitto)
【Linux】NUC977移植使用MQTT(基于mosquitto)
|
23天前
|
存储 网络协议 Linux
【Linux 解惑 】谈谈你对linux内核的理解
【Linux 解惑 】谈谈你对linux内核的理解
22 0
|
10天前
|
Web App开发 Linux 网络安全
工作中常用到的Linux命令
工作中常用到的Linux命令