ccHDtv測試
更新記錄
item | note |
---|---|
20150721 | 第一版 |
目錄
it9300 driver native
driver test
- 使用RX Board
記得使用EEPROM Editor將RX Board的9035改原本的9036,如此才能使用linux driver
目前測試,使用EEPROM Editor查看RX Board的ID為0x22,但linux driver probe訊息如下
Device_ID為65531 ??
(採用rx mapping方式修正,就正常)
1 | ====================================================== |
RX ID Mapping
- 使用EEPROM Editor設定RXID Mapping(打開)
1 | # usb 1-1.1: new high-speed USB device number 12 using hiusb-ehci |
比較修正前後EEPROM值
只差在 [0x0-0x1] check sumb及 [0x50] rx id mapping
it930x driver native
- IT930x_Driver
1 | static struct usb_driver IT930x_Driver = { |
check eeprom value
Two reference register addresses and their default values are listed in Table 6 and the user can verify the bus integrity by reading these two registers.
driver 讀到訊息如下
- chip_version_7_0 = 0x1222
- EEPROM - BR Chip Version is 1, BR Chip Type is 0x9306
1 | ///read chip type |
目前hi3535使用kernel版本 3.4.35
- GetReturnChannelPackets_toVirtualCom()
- RETURNCHANNEL_PID: 0x201
it930x_driver_native
1 | usb_fill_bulk_urb( |
[Rx_urbs_completion][10]
it930x_driver_native/it930x-core.c
GetReturnChannelPackets_toVirtualCom(dev, br_chip->urbs[context->index]->transfer_buffer, BR_URB_BUFSIZE);
- it930x-core.h
1 | #define URB_COUNT 4 |
RX ID Check
- 第一個板子 RXID -> 65535,34.. -> 0,1,2,3
- 第二個板子 RXID -> 65531,30.. -> 4,5,6,7
1 | ====================================================== |