新聞中心

EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > AM335x(TQ335x)學(xué)習(xí)筆記——USB驅(qū)動(dòng)移植

AM335x(TQ335x)學(xué)習(xí)筆記——USB驅(qū)動(dòng)移植

作者: 時(shí)間:2016-11-28 來(lái)源:網(wǎng)絡(luò) 收藏
對(duì)于AM335x來(lái)講,TI維護(hù)的USB驅(qū)動(dòng)已經(jīng)非常完善了,本文稱之為移植,實(shí)際上僅僅是配置內(nèi)核選項(xiàng)使能USB HOST/OTG功能。廢話少說(shuō),直接動(dòng)手開(kāi)啟AM335x的USB驅(qū)動(dòng)配置項(xiàng)。

Step1. 配置內(nèi)核支持USB

本文引用地址:http://m.butianyuan.cn/article/201611/322825.htm

默認(rèn)的配置項(xiàng)沒(méi)有配置USB相關(guān)的選項(xiàng),但是DTS已經(jīng)配置好了,我們不需要對(duì)DTS作任何修改,詳細(xì)的內(nèi)核配置項(xiàng)如下:

  1. DeviceDrivers--->
  2. [*]USBsupport--->
  3. [*]OTGsupport
  4. <*>EHCIHCD(USB2.0)support
  5. [*]ImprovedTransactionTranslatorscheduling(NEW)
  6. <*>EHCIsupportforOMAP3andlaterchips(NEW)
  7. <*>OHCIHCD(USB1.1)support
  8. <*>OHCIsupportforOMAP3andlaterchips(NEW)
  9. <*>InventraHighspeedDualRoleController(TI,ADI,...)
  10. MUSBModeSelection(DualRolemode)--->
  11. <*>PlatformGlueLayer(TIDSPSplatforms)--->
  12. MUSBDMAmode(DisableDMA(alwaysusePIO))--->
Step2. 編譯內(nèi)核

編譯內(nèi)核的指令如下:

  1. makeARCH=armCROSS_COMPILE=arm-linux-gnueabi--j8
Step3.測(cè)試

用新編譯好的內(nèi)核啟動(dòng)開(kāi)發(fā)板,可以看到如下Log:

  1. Startingkernel...
  2. [0.000000]BootingLinuxonphysicalCPU0x0
  3. [0.000000]Linuxversion3.17.2(lilianrong@smarter)(gccversion4.7.3(Ubuntu/Linaro4.7.3-12ubuntu1))#96SMPFriDec2622:28:21CST2014
  4. [0.000000]CPU:ARMv7Processor[413fc082]revision2(ARMv7),cr=10c5387d
  5. [0.000000]CPU:PIPT/VIPTnonaliasingdatacache,VIPTaliasinginstructioncache
  6. [0.000000]Machinemodel:TIAM335xEVM
  7. [0.000000]cma:Reserved16MiBat9e800000
  8. [0.000000]Memorypolicy:Datacachewriteback
  9. [0.000000]HighMemzone:1048574pagesexceedsfreesize0
  10. [0.000000]CPU:AllCPU(s)startedinSVCmode.
  11. [0.000000]AM335XES2.1(sgxneon)
  12. [0.000000]PERCPU:Embedded9pages/cpu@dfa99000s14336r8192d14336u36864
  13. [0.000000]Built1zonelistsinZoneorder,mobilitygroupingon.Totalpages:129792
  14. [0.000000]Kernelcommandline:console=ttyO0,115200n8root=/dev/mmcblk0p2rwrootfstype=ext3rootwait
  15. [0.000000]PIDhashtableentries:2048(order:1,8192bytes)
  16. [0.000000]Dentrycachehashtableentries:65536(order:6,262144bytes)
  17. [0.000000]Inode-cachehashtableentries:32768(order:5,131072bytes)
  18. [0.000000]Memory:483980K/523264Kavailable(6184Kkernelcode,668Krwdata,2468Krodata,410Kinit,8215Kbss,39284Kreserved,0Khighmem)
  19. [0.000000]Virtualkernelmemorylayout:
  20. [0.000000]vector:0xffff0000-0xffff1000(4kB)
  21. [0.000000]fixmap:0xffc00000-0xffe00000(2048kB)
  22. [0.000000]vmalloc:0xe0800000-0xff000000(488MB)
  23. [0.000000]lowmem:0xc0000000-0xe0000000(512MB)
  24. [0.000000]pkmap:0xbfe00000-0xc0000000(2MB)
  25. [0.000000]modules:0xbf000000-0xbfe00000(14MB)
  26. [0.000000].text:0xc0008000-0xc087b564(8654kB)
  27. [0.000000].init:0xc087c000-0xc08e2800(410kB)
  28. [0.000000].data:0xc08e4000-0xc098b330(669kB)
  29. [0.000000].bss:0xc098b330-0xc1190f60(8216kB)
  30. [0.000000]HierarchicalRCUimplementation.
  31. [0.000000]RCUrestrictingCPUsfromNR_CPUS=2tonr_cpu_ids=1.
  32. [0.000000]RCU:Adjustinggeometryforrcu_fanout_leaf=16,nr_cpu_ids=1
  33. [0.000000]NR_IRQS:16nr_irqs:1616
  34. [0.000000]IRQ:FoundanINTCat0xfa200000(revision5.0)with128interrupts
  35. [0.000000]Totalof128interruptson1activecontroller
  36. [0.000000]OMAPclockeventsource:timer2at24000000Hz
  37. [0.000014]sched_clock:32bitsat24MHz,resolution41ns,wrapsevery178956969942ns
  38. [0.000064]OMAPclocksource:timer1at24000000Hz
  39. [0.000795]Console:colourdummydevice80x30
  40. [0.000845]Lockdependencyvalidator:Copyright(c)2006RedHat,Inc.,IngoMolnar
  41. [0.000853]...MAX_LOCKDEP_SUBCLASSES:8
  42. [0.000861]...MAX_LOCK_DEPTH:48
  43. [0.000869]...MAX_LOCKDEP_KEYS:8191
  44. [0.000876]...CLASSHASH_SIZE:4096
  45. [0.000884]...MAX_LOCKDEP_ENTRIES:32768
  46. [0.000890]...MAX_LOCKDEP_CHAINS:65536
  47. [0.000898]...CHAINHASH_SIZE:32768
  48. [0.000905]memoryusedbylockdependencyinfo:5167kB
  49. [0.000913]pertask-structmemoryfootprint:1152bytes
  50. [0.000956]Calibratingdelayloop...996.14BogoMIPS(lpj=4980736)
  51. [0.079037]pid_max:default:32768minimum:301
  52. [0.079443]SecurityFrameworkinitialized
  53. [0.079567]Mount-cachehashtableentries:1024(order:0,4096bytes)
  54. [0.079580]Mountpoint-cachehashtableentries:1024(order:0,4096bytes)
  55. [0.081764]CPU:Testingwritebuffercoherency:ok
  56. [0.082949]CPU0:thread-1,cpu0,socket-1,mpidr0
  57. [0.083077]Settingupstaticidentitymapfor0x805dbb70-0x805dbbe0
  58. [0.086307]Broughtup1CPUs
  59. [0.086326]SMP:Totalof1processorsactivated.
  60. [0.086336]CPU:AllCPU(s)startedinSVCmode.
  61. [0.088948]devtmpfs:initialized
  62. [0.097822]VFPsupportv0.3:implementor41architecture3part30variantcrev3
  63. [0.133146]omap_hwmod:tptc0usingbrokendtdatafromedma
  64. [0.133495]omap_hwmod:tptc1usingbrokendtdatafromedma
  65. [0.133823]omap_hwmod:tptc2usingbrokendtdatafromedma
  66. [0.141643]omap_hwmod:debugss:_wait_target_disablefailed
  67. [0.199665]pinctrlcore:initializedpinctrlsubsystem
  68. [0.202194]regulator-dummy:noparameters
  69. [0.232293]NET:Registeredprotocolfamily16
  70. [0.240857]DMA:preallocated256KiBpoolforatomiccoherentallocations
  71. [0.243121]cpuidle:usinggovernorladder
  72. [0.243149]cpuidle:usinggovernormenu
  73. [0.255109]OMAPGPIOhardwareversion0.1
  74. [0.270370]omap-gpmc50000000.gpmc:couldnotfindpctldevfornode/pinmux@44e10800/nandflash_pins_s0,deferringprobe
  75. [0.270413]platform50000000.gpmc:Driveromap-gpmcrequestsprobedeferral
  76. [0.274914]hw-breakpoint:debugarchitecture0x4unsupported.
  77. [0.320324]edma-dma-engineedma-dma-engine.0:TIEDMADMAenginedriver
  78. [0.321686]vbat:5000mV
  79. [0.322450]lis3_reg:noparameters
  80. [0.325863]SCSIsubsysteminitialized
  81. [0.326622]usbcore:registerednewinterfacedriverusbfs
  82. [0.326782]usbcore:registerednewinterfacedriverhub
  83. [0.330704]usbcore:registerednewdevicedriverusb
  84. [0.331558]omap_i2c44e0b000.i2c:couldnotfindpctldevfornode/pinmux@44e10800/pinmux_i2c0_pins,deferringprobe
  85. [0.331597]platform44e0b000.i2c:Driveromap_i2crequestsprobedeferral
  86. [0.331654]omap_i2c4802a000.i2c:couldnotfindpctldevfornode/pinmux@44e10800/pinmux_i2c1_pins,deferringprobe
  87. [0.331677]platform4802a000.i2c:Driveromap_i2crequestsprobedeferral
  88. [0.332863]AdvancedLinuxSoundArchitectureDriverInitialized.
  89. [0.336272]Switchedtoclocksourcetimer1
  90. [0.489380]NET:Registeredprotocolfamily2
  91. [0.491239]TCPestablishedhashtableentries:4096(order:2,16384bytes)
  92. [0.491422]TCPbindhashtableentries:4096(order:5,147456bytes)
  93. [0.492785]TCP:Hashtablesconfigured(established4096bind4096)
  94. [0.492955]TCP:renoregistered
  95. [0.492981]UDPhashtableentries:256(order:2,20480bytes)
  96. [0.493170]UDP-Litehashtableentries:256(order:2,20480bytes)
  97. [0.494207]NET:Registeredprotocolfamily1
  98. [0.496281]RPC:RegisterednamedUNIXsockettransportmodule.
  99. [0.496304]RPC:Registeredudptransportmodule.
  100. [0.496314]RPC:Registeredtcptransportmodule.
  101. [0.496323]RPC:RegisteredtcpNFSv4.1backchanneltransportmodule.
  102. [0.498147]hwperfevents:enabledwitharmv7_cortex_a8PMUdriver,5countersavailable
  103. [0.502301]futexhashtableentries:256(order:2,16384bytes)
  104. [0.507875]VFS:Diskquotasdquot_6.5.2
  105. [0.508024]Dquot-cachehashtableentries:1024(order0,4096bytes)
  106. [0.510137]NFS:Registeringtheid_resolverkeytype
  107. [0.510482]Keytypeid_resolverregistered
  108. [0.510497]Keytypeid_legacyregistered
  109. [0.510654]jffs2:version2.2.(NAND)(SUMMARY)漏2001-2006RedHat,Inc.
  110. [0.511074]msgmnihasbeensetto977
  111. [0.516250]ioschedulernoopregistered
  112. [0.516287]ioschedulerdeadlineregistered
  113. [0.516358]ioschedulercfqregistered(default)
  114. [0.518591]pinctrl-single44e10800.pinmux:142pinsatpaf9e10800size568
  115. [0.523698]backlightsupplypowernotfound,usingdummyregulator
  116. [0.527040]Serial:8250/16550driver,4ports,IRQsharingenabled
  117. [0.533191]omap_uart44e09000.serial:nowakeirqforuart0
  118. [0.533803]44e09000.serial:ttyO0atMMIO0x44e09000(irq=88,base_baud=3000000)isaOMAPUART0
  119. [1.234091]console[ttyO0]enabled
  120. [1.243201]omap_rng48310000.rng:OMAPRandomNumberGeneratorver.20
  121. [1.250887][drm]Initializeddrm1.1.020060810
  122. [1.264563][drm]SupportsvblanktimestampcachingRev2(21.10.2013).
  123. [1.271671][drm]Nodriversupportforvblanktimestampquery.
  124. [1.331494]Console:switchingtocolourframebufferdevice100x30
  125. [1.342552]tilcdc4830e000.lcdc:fb0:framebufferdevice
  126. [1.348442]tilcdc4830e000.lcdc:registeredpanicnotifier
  127. [1.354341][drm]Initializedtilcdc1.0.020121205onminor0
  128. [1.390556]brd:moduleloaded
  129. [1.408704]loop:moduleloaded
  130. [1.414966]mtdoops:mtddevice(mtddev=name/number)mustbesupplied
  131. [1.425658]usbcore:registerednewinterfacedriverasix
  132. [1.431555]usbcore:registerednewinterfacedriverax88179_178a
  133. [1.438078]usbcore:registerednewinterfacedrivercdc_ether
  134. [1.444343]usbcore:registerednewinterfacedriversmsc95xx
  135. [1.450493]usbcore:registerednewinterfacedrivernet1080
  136. [1.456543]usbcore:registerednewinterfacedrivercdc_subset
  137. [1.462850]usbcore:registerednewinterfacedriverzaurus
  138. [1.468911]usbcore:registerednewinterfacedrivercdc_ncm
  139. [1.475931]ehci_hcd:USB2.0EnhancedHostController(EHCI)Driver
  140. [1.482939]ehci-omap:OMAP-EHCIHostControllerdriver
  141. [1.488833]ohci_hcd:USB1.1OpenHostController(OHCI)Driver
  142. [1.495347]ohci-omap3:OHCIOMAP3driver
  143. [1.500021]usbcore:registerednewinterfacedrivercdc_wdm
  144. [1.506178]usbcore:registerednewinterfacedriverusb-storage
  145. [1.512631]usbcore:registerednewinterfacedriverusbtest
  146. [1.521522]47401300.usb-physupplyvccnotfound,usingdummyregulator
  147. [1.533165]musb-hdrcmusb-hdrc.0.auto:MUSBHDRChostdriver
  148. [1.543455]musb-hdrcmusb-hdrc.0.auto:newUSBbusregistered,assignedbusnumber1
  149. [1.562104]usbusb1:NewUSBdevicefound,idVendor=1d6b,idProduct=0002
  150. [1.569359]usbusb1:NewUSBdevicestrings:Mfr=3,Product=2,SerialNumber=1
  151. [1.576955]usbusb1:Product:MUSBHDRChostdriver
  152. [1.582140]usbusb1:Manufacturer:Linux3.17.2musb-hcd
  153. [1.587820]usbusb1:SerialNumber:musb-hdrc.0.auto
  154. [1.599603]hub1-0:1.0:USBhubfound
  155. [1.605078]hub1-0:1.0:1portdetected
  156. [1.622178]47401b00.usb-physupplyvccnotfound,usingdummyregulator
  157. [1.632793]musb-hdrcmusb-hdrc.1.auto:MUSBHDRChostdriver
  158. [1.640700]musb-hdrcmusb-hdrc.1.auto:newUSBbusregistered,assignedbusnumber2
  159. [1.651379]usbusb2:NewUSBdevicefound,idVendor=1d6b,idProduct=0002
  160. [1.658617]usbusb2:NewUSBdevicestrings:Mfr=3,Product=2,SerialNumber=1
  161. [1.666213]usbusb2:Product:MUSBHDRChostdriver
  162. [1.671397]usbusb2:Manufacturer:Linux3.17.2musb-hcd
  163. [1.677083]usbusb2:SerialNumber:musb-hdrc.1.auto
  164. [1.686595]hub2-0:1.0:USBhubfound
  165. [1.690986]hub2-0:1.0:1portdetected
  166. [1.701609]mousedev:PS/2mousedevicecommonforallmice
  167. [1.711782]omap_rtc44e3e000.rtc:rtccore:registered44e3e000.rtcasrtc0
  168. [1.720055]i2c/deventriesdriver
  169. [1.723788]Driverfor1-wireDallasnetworkprotocol.
  170. [1.736318]omap_wdt:OMAPWatchdogTimerRev0x01:initialtimeout60sec
  171. [1.755078]omap_hsmmc48060000.mmc:unabletogetvmmcregulator-517
  172. [1.762557]platform48060000.mmc:Driveromap_hsmmcrequestsprobedeferral
  173. [1.772215]ledtrig-cpu:registeredtoindicateactivityonCPUs
  174. [1.779192]usbcore:registerednewinterfacedriverusbhid
  175. [1.785014]usbhid:USBHIDcoredriver
  176. [1.795167]davinci_evmsound:ASoC:CODEC(null)notregistered
  177. [1.801977]davinci_evmsound:snd_soc_register_cardfailed(-517)
  178. [1.808594]platformsound:Driverdavinci_evmrequestsprobedeferral
  179. [1.816440]oprofile:usingarm/armv7
  180. [1.821115]TCP:cubicregistered
  181. [1.824592]InitializingXFRMnetlinksocket
  182. [1.829340]NET:Registeredprotocolfamily17
  183. [1.834075]NET:Registeredprotocolfamily15
  184. [1.839198]Keytypedns_resolverregistered
  185. [1.843920]omap_voltage_late_init:Voltagedriversupportnotadded
  186. [1.850660]sr_dev_init:Novoltagedomainspecifiedforsmartreflex0.Cannotinitialize
  187. [1.859152]sr_dev_init:Novoltagedomainspecifiedforsmartreflex1.Cannotinitialize
  188. [1.868786]ThumbEECPUextensionsupported.
  189. [1.873392]RegisteringSWP/SWPBemulationhandler
  190. [1.878502]SmartReflexClass3initialized
  191. [1.891065]omap-gpmc50000000.gpmc:GPMCrevision6.0
  192. [1.898216]nand:devicefound,ManufacturerID:0xec,ChipID:0xd3
  193. [1.904865]nand:SamsungNAND1GiB3,3V8-bit
  194. [1.909588]nand:1024MiB,SLC,pagesize:2048,OOBsize:64
  195. [1.915591]nand:usingOMAP_ECC_BCH8_CODE_HWECCscheme
  196. [1.921433]10ofpartpartitionsfoundonMTDdeviceomap2-nand.0
  197. [1.927825]Creating10MTDpartitionson"omap2-nand.0":
  198. [1.933473]0x000000000000-0x000000020000:"NAND.SPL"
  199. [1.947581]0x000000020000-0x000000040000:"NAND.SPL.backup1"
  200. [1.958288]0x000000040000-0x000000060000:"NAND.SPL.backup2"
  201. [1.967696]0x000000060000-0x000000080000:"NAND.SPL.backup3"
  202. [1.978978]0x000000080000-0x0000000c0000:"NAND.u-boot-spl"
  203. [1.989074]0x0000000c0000-0x0000001c0000:"NAND.u-boot"
  204. [2.000439]0x0000001c0000-0x0000001e0000:"NAND.u-boot-env"
  205. [2.010926]0x0000001e0000-0x000000200000:"NAND.u-boot-env.backup1"
  206. [2.022841]0x000000200000-0x000000a00000:"NAND.kernel"
  207. [2.038984]0x000000a00000-0x000010000000:"NAND.file-system"
  208. [2.332279]tps659100-002d:Nointerruptsupport,nocoreIRQ
  209. [2.349898]vrtc:1800mV
  210. [2.353264]vrtc:suppliedbyvbat
  211. [2.360422]vio:at1500mV
  212. [2.363696]vio:suppliedbyvbat
  213. [2.370657]vdd_mpu:912<-->1312mVat1325mV
  214. [2.375794]vdd_mpu:suppliedbyvbat
  215. [2.384999]vdd_core:912<-->1150mVat1137mV
  216. [2.390404]vdd_core:suppliedbyvbat
  217. [2.397288]vdd3:5000mV
  218. [2.402667]vdig1:at1800mV
  219. [2.406225]vdig1:suppliedbyvbat
  220. [2.412538]vdig2:at1800mV
  221. [2.415945]vdig2:suppliedbyvbat
  222. [2.422351]vpll:at1800mV
  223. [2.425662]vpll:suppliedbyvbat
  224. [2.432822]vdac:at1800mV
  225. [2.436335]vdac:suppliedbyvbat
  226. [2.443361]vaux1:at1800mV
  227. [2.446899]vaux1:suppliedbyvbat
  228. [2.453342]vaux2:at3300mV
  229. [2.456846]vaux2:suppliedbyvbat
  230. [2.463190]vaux33:at3300mV
  231. [2.466775]vaux33:suppliedbyvbat
  232. [2.473172]vmmc:1800<-->3300mVat3300mV
  233. [2.478237]vmmc:suppliedbyvbat
  234. [2.484283]vbb:at3000mV
  235. [2.487872]vbb:suppliedbyvbat
  236. [2.495458]omap_i2c44e0b000.i2c:bus0rev0.11at400kHz
  237. [2.503173]usb2-1:newhigh-speedUSBdevicenumber2usingmusb-hdrc
  238. [2.517638]omap_i2c4802a000.i2c:bus1rev0.11at100kHz
  239. [2.568304]wm89600-001a:Noplatformdatasupplied
  240. [2.644805]mmc0:hostdoesnotsupportreadingread-onlyswitch.assumingwrite-enable.
  241. [2.654108]usb2-1:NewUSBdevicefound,idVendor=1a40,idProduct=0101
  242. [2.661182]usb2-1:NewUSBdevicestrings:Mfr=0,Product=1,SerialNumber=0
  243. [2.668663]usb2-1:Product:USB2.0Hub
  244. [2.675544]hub2-1:1.0:USBhubfound
  245. [2.681178]hub2-1:1.0:4portsdetected
  246. [2.690227]mmc0:newhighspeedSDHCcardataddressaaaa
  247. [2.699372]mmcblk0:mmc0:aaaaSL16G14.8GiB
  248. [2.710574]mmcblk0:p1p2
  249. [2.723345]davinci_evmsound:wm8960-hifi<->4803c000.mcaspmappingok
  250. [2.806163]davinci_mdio4a101000.mdio:davincimdiorevision1.6
  251. [2.812552]davinci_mdio4a101000.mdio:detectedphymaskffffffde
  252. [2.825370]libphy:4a101000.mdio:probed
  253. [2.829704]davinci_mdio4a101000.mdio:phy[0]:device4a101000.mdio:00,driverunknown
  254. [2.838093]davinci_mdio4a101000.mdio:phy[5]:device4a101000.mdio:05,driverunknown
  255. [2.847649]cpsw4a100000.ethernet:DetectedMACID=c4:ed:ba:88:b5:e4
  256. [2.859600]input:gpio_keyad@0as/devices/gpio_keyad@0/input/input0
  257. [2.869505]omap_rtc44e3e000.rtc:settingsystemclockto2000-01-0100:00:00UTC(946684800)
  258. [2.878657]sr_init:NoPMIChooktoinitsmartreflex
  259. [2.884274]sr_init:platformdriverregisterfailedforSR
  260. [2.907467]lis3_reg:disabling
  261. [2.910975]ALSAdevicelist:
  262. [2.914075]#0:AM335x-EVM
  263. [3.008783]kjournaldstarting.Commitinterval5seconds
  264. [3.017395]EXT3-fs(mmcblk0p2):usinginternaljournal
  265. [3.025475]EXT3-fs(mmcblk0p2):recoverycomplete
  266. [3.030554]EXT3-fs(mmcblk0p2):mountedfilesystemwithordereddatamode
  267. [3.037888]VFS:Mountedroot(ext3filesystem)ondevice179:2.
  268. [3.047778]devtmpfs:mounted
  269. [3.051614]Freeingunusedkernelmemory:408K(c087c000-c08e2000)
  270. ----------mountall..........
  271. ----------Startingmdev......
  272. PleasepressEntertoactivatethisconsole.
  273. @tq335x#[11.296192]usb2-1.2:newhigh-speedUSBdevicenumber3usingmusb-hdrc
  274. [11.419745]usb2-1.2:devicev0951p1665isnotsupported
  275. [11.425483]usb2-1.2:NewUSBdevicefound,idVendor=0951,idProduct=1665
  276. [11.432693]usb2-1.2:NewUSBdevicestrings:Mfr=1,Product=2,SerialNumber=3
  277. [11.440342]usb2-1.2:Product:DataTraveler2.0
  278. [11.445163]usb2-1.2:Manufacturer:Kingston
  279. [11.449729]usb2-1.2:SerialNumber:50E549C20268FE41491C17E1
  280. [11.458198]usb-storage2-1.2:1.0:USBMassStoragedevicedetected
  281. [11.476650]scsihost0:usb-storage2-1.2:1.0
  282. [12.768968]scsi0:0:0:0:Direct-AccessKingstonDataTraveler2.01.00PQ:0ANSI:4
  283. [12.785085]sd0:0:0:0:[sda]30233588512-bytelogicalblocks:(15.4GB/14.4GiB)
  284. [12.806457]sd0:0:0:0:[sda]WriteProtectisoff
  285. [12.817312]sd0:0:0:0:[sda]Writecache:disabled,readcache:enabled,doesntsupportDPOorFUA
  286. [12.840718]sda:sda4
  287. [12.850713]sd0:0:0:0:[sda]AttachedSCSIremovabledisk
  288. [13.265222]usb2-1.2:USBdisconnect,devicenumber3
末尾是拔插U盤的效果。

Step4. 配置其它USB設(shè)備驅(qū)動(dòng)

如果需要配置其它USB設(shè)備驅(qū)動(dòng)可以繼續(xù)在menuconfig配置列表中進(jìn)行配置,這里就不一一介紹了。

注:

不知道是我的開(kāi)發(fā)板硬件問(wèn)題還是其它問(wèn)題,我自己移植的Linux-3.17.2只有中間的一個(gè)USB端口可用,另外兩個(gè)USB端口沒(méi)有任何作用。使用官方提供的內(nèi)核鏡像也存在這樣的問(wèn)題,下周一跟天嵌售后確認(rèn)下此問(wèn)題。如果看到本文的朋友手頭上也有TQ3358開(kāi)發(fā)板,請(qǐng)幫忙測(cè)試下,多謝。



評(píng)論


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

關(guān)閉