ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2010年8月17日 星期二

worklog - uboot of MCU_P

參考 bsp 下的 makefile, uboot 的 make rule. 可以看到 make $(BDNAME)_config然後去找 BDNAME (是 tt2cb) 在uboot/Makefile找到 tt2cb_config 的 rule : 是 board/vendor/ 下的 一個 shell script,他會去修改 include/config.h 接上 usb... boot uboot 時原來 USB0 Cable is not plugged-in 的 message 消失了。 在 linux host 上 dmesg : [1756640.022407] usb 4-3: USB disconnect, address 9 [1756645.672024] usb 4-3: new high speed USB device using ehci_hcd and address 10 [1756645.808028] hub 4-0:1.0: unable to enumerate USB device on port 3 [1756646.252023] usb 2-1: new full speed USB device using ohci_hcd and address 2 [1756647.500029] hub 2-0:1.0: unable to enumerate USB device on port 1 [1756653.972024] usb 4-3: new high speed USB device using ehci_hcd and address 11 [1756654.105202] usb 4-3: configuration #2 chosen from 1 choice [1756654.110595] usb 4-3: New USB device found, idVendor=105b, idProduct=9030 [1756654.110602] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [1756654.110605] usb 4-3: Product: bd2x0bd [1756654.110608] usb 4-3: Manufacturer: Sxxx [1756654.110610] usb 4-3: SerialNumber: 0 [1756654.363827] cdc_acm: This device cannot do calls on its own. It is no modem. [1756654.364055] cdc_acm 4-3:2.0: ttyACM0: USB ACM device [1756654.366357] usbcore: registered new interface driver cdc_acm[1756654.366365] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters list installed module 來看..多了 cdc_acm 這個 driver/module. 查一下 include/configs/tt2b.h有定義 #define CONFIG_USB_TTY 0 /* Controller USB0 */ #define CONFIG_USB_ETHER 1 /* Controller USB1 */ 所以知道 Rx6 的 usb port 是 usb0 -- 從 uboot 消失的 message 可以知道。所以是 USB_TTY。 所以 driver 是 cdc_acm. 變更一下,把 USB0 改作 ETHER.. 開機dmesg: [1757943.195445] usb 4-3: New USB device found, idVendor=105b, idProduct=9030 [1757943.195451] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [1757943.195454] usb 4-3: Product: bd2x0bd [1757943.195457] usb 4-3: Manufacturer: SiRF [1757943.195459] usb 4-3: SerialNumber: 0 [1757944.330011] usb 4-3: USB disconnect, address 13 [1758205.148026] usb 4-3: new high speed USB device using ehci_hcd and address 14 [1758205.281250] usb 4-3: configuration #1 chosen from 1 choice [1758205.286289] usb 4-3: New USB device found, idVendor=105b, idProduct=9030 [1758205.286296] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [1758205.286299] usb 4-3: Product: bd2x0bd [1758205.286302] usb 4-3: Manufacturer: SiRF [1758205.486224] usb0: register 'cdc_ether' at usb-0000:00:0f.3-3, CDC Ethernet Device, 1e:6e:37:bc:8a:47 [1758205.486251] usbcore: registered new interface driver cdc_ether lsmod 果然就有 cdc_ether,ifconfig 則增加了: usb0 Link encap:Ethernet HWaddr 1e:6e:37:bc:8a:47 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:90 (90.0 B)

沒有留言:

標籤

網誌存檔