WIP trying to get adb to work on the z00t.
~ # dmesg | grep -i '\(function\|adb\)'
[    0.972168] [hall_sensor] default report function.
[    1.766641] android_usb gadget: Mass Storage Function, version:
2009/09/11
[   11.983813] functions_store: android_usb: Cannot enable 'adb' (-22)
[   12.486886] rndis_function_bind_config: rndis_function_bind_config
MAC: 00:00:00:00:00:00
That "Cannot enable 'adb'" is maddening...
@@ -44,10 +44,18 @@ in
(
SYS=/sys/class/android_usb/android0
if [ -e "$SYS" ]; then
+ mkdir /dev/usb-ffs/adb
+ mount -t functionfs adb /dev/usb-ffs/adb/
printf "%s" "0" > "$SYS/enable"
printf "%s" "18D1" > "$SYS/idVendor"
printf "%s" "D001" > "$SYS/idProduct"
- printf "%s" "${concatStringsSep "," cfg.usb.features}" > "$SYS/functions"
+ printf "%s" "0" > "$SYS/bDeviceClass"
+ #printf "%s" "adb" > "$SYS/f_ffs/aliases"
+ #printf "%s" "${concatStringsSep "," cfg.usb.features}" > "$SYS/functions"
+ printf "%s" "rndis,adb" > "$SYS/functions"
+ printf "%s" "FIXME" > "$SYS/iManufacturer"
+ printf "%s" "FIXME" > "$SYS/iProduct"
+ printf "%s" "FIXME" > "$SYS/iSerial"
sleep 0.5
printf "%s" "1" > "$SYS/enable"
sleep 1
