中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > linux下USB驅(qū)動(dòng)移植

        linux下USB驅(qū)動(dòng)移植

        作者: 時(shí)間:2011-05-12 來(lái)源:網(wǎng)絡(luò) 收藏
        3、加入了MSDOS fs和VFAT fs的支持。
        │ │ 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

        本文引用地址:http://www.antipu.com.cn/article/150748.htm

        做完這些后,插入u盤(pán)后,內(nèi)核應(yīng)該可以識(shí)別到u盤(pán),出現(xiàn):
        usb 1-1: new full speed device using s3c2410-ohci and address 3
        ub(1.3): GetMaxLUN returned 0, using 1 LUNs

        但是,還有下面一句出錯(cuò)提示:
        /dev/ub/a: unknown partition table

        再次查看了貼子上大蝦們的討論,提到:“使能CONFIG_MSDOS_PARTITION選項(xiàng)”,再仔細(xì)查找,發(fā)現(xiàn)配置選項(xiàng)如下:
        │ │ File systems --->
        │ │ Partition Types --->
        │ │ [*] PC BIOS (MSDOS partition tables) support
        加上這個(gè)后應(yīng)該就可以掛載usb上的MSDOS分區(qū)了

        以下是我的內(nèi)核插入u盤(pán)后的提示信息:
        usb 1-1: new full speed device using s3c2410-ohci and 2
        ub(1.2): GetMaxLUN returned 0, using 1 LUNs
        /dev/ub/a: p1
        表示usb設(shè)備已經(jīng)掛載到/dev/ub/a/part1目錄下

        4. 加入中文字體庫(kù)(可惜在我的板上還是沒(méi)能正常顯示中文~_~,知道的朋友麻煩告訴我一聲,大家一起探討)
        │ │ Native Language Support --->
        │ │*> Simplified Chinese charset (CP936, GB2312)
        │ │*> NLS UTF8

        以下是掛載usb設(shè)備后的顯示:
        [root@luofuchong /]# mount -t vfat -o iocharset=cp936 /dev/ub/a/part1 /mnt
        [root@luofuchong /]# ls /mnt
        cramfs-1.1.tar.gz netkit-base-0.17.tar.gz thttpd-2.25b.tar.gz
        lfc settings.dat . . I. .. . .txt

        三、一點(diǎn)心得

        1. 如果想知道內(nèi)核有沒(méi)有識(shí)別出u盤(pán)的話可以執(zhí)行命令:cat /proc/partitions ,看看插入前后分區(qū)信息有什么不同就知道了。
        2. 另外,如果想讓內(nèi)核把它當(dāng)成SCSI設(shè)備來(lái)處理的話,只要把上面:
          │ │ Device Drivers --->
          │ │ Block devices --->
          │ │ *> Low Performance USB Block driver
          的 Low Performance USB Block driver這個(gè)選項(xiàng)去掉,然后把:
          │ │ Device Drivers --->
          │ │ SCSI device support --->
          │ │ *>SCSI disk support
          的SCSI disk support這個(gè)選項(xiàng)選上,重新編譯內(nèi)核就行。
          注:
          個(gè)人覺(jué)得使用usb設(shè)備的話Low Performance USB Block driver比SCSI disk要好,自己看著辦吧^_^
        3. 最后,一般都會(huì)新建一個(gè)/dev/sda1的鏈接指向usb設(shè)備的掛載點(diǎn)的,可以在啟動(dòng)文件中使用命令ln -s xxx xxx來(lái)建立這個(gè)鏈接。
        linux操作系統(tǒng)文章專題:linux操作系統(tǒng)詳解(linux不再難懂)

        上一頁(yè) 1 2 下一頁(yè)

        關(guān)鍵詞: 移植 驅(qū)動(dòng) USB linux

        評(píng)論


        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉