TRACE32 JTAG Bridge for Android | 13
©
1989-2021 Lauterbach GmbH
Test Loop
For communication testing (also for performance tests), you can replace the standard adb and adbd
communication loops with a simple test thread that just transfers data from/to the DCC registers. (E.g., a
test-adbd could “echo” test data generated by a test-adb.)
Send Input to TRACE32/DCC
For Linux, you can type characters manually into a named pipe for testing, e.g.:
You can also use dd to write random data to a pipe, e.g.:
For Windows, you need to create an extra test program for this. Please consult the patch sources for ideas
how and what to do.
Patch breaks USB Debugging [host]
Symptom: After copying the patched adb[.exe] version into the platform-tools directory of the Android SDK,
the target device is not found anymore.
The problem is not the JTAG Bridge patch, but a missing USB Vendor ID. adb[.exe] only USB-connects to
devices from a "known vendor" list. This list is partially built-in, partially it is read from a file with the name
adb_usb.ini (see system/core/adb/usb_vendors.c for more information).
Example for Android 2.2 (froYo) and PandaBoard:
Android 2.2 does not have the Texas Instruments (VID 0x0451), which you need for debugging the
PandaBoard, in the "built-in vendor list" of adb[.exe]. This is how to add the TI to the external list:
On Linux:
On Windows (please note the mandatory quotation marks):
After adding the 0x0451 Vendor ID, an "adb kill-server", then "adb devices" should show the PandaBoard.
user@ws:~$ cat >/tmp/adb-t32
user@ws:~$ dd if=/dev/random of=/tmp/adb-t32 bs=4 count=1000 &
user@ws:~$ echo 0x0451 >>$HOME/.android/adb_usb.ini
E:\> echo 0x0451 >>"%USERPROFILE%\.android\adb_usb.ini"