Tips:
To enable GPS support
Code: Select all
Odroid Settings> Misc settings> Enable GPS (Most of USB GPS modules is Plug and Play)
If your GPS is connected to UART or not detected you need set proper GPS serial node manually.
Change this lines according your GPS dongle in /vendor/build.prop (adb remount)
Code: Select all
ro.kernel.android.gps=ttyS1
ro.kernel.android.gps.speed=9600
How to configure usb_modeswitch
After Beta-v0.2 you can find usb_modeswitch.conf sample config file in /odm/ partition.
Change this file depending your hardware, run usb_modeswitch and check logcat is everything ok
Code: Select all
usb_modeswitch -c /odm/usb_modeswitch.conf
If configuration working lets enable auto trigger usb_modeswitch via prop
Code: Select all
setprop persist.usbmodem_vidpid 12d1:1f01
Value 12d1:1f01 is VID/PID of device which need monitored.
If your device after switching return with ssame VID/PID to avoid loop set
Code: Select all
setprop persist.usbmodem_vidpid_same true
In this case every second device attach event will be ignored .
List of custom properties introduced by me
Disable Bluetooth service globally. If you don't have a compatible USB Bluetooth dongle BT service keep crashing.
So disable it by default.
Code: Select all
persist.disable_bluetooth true|false default:true
Enable/Disable Bluetooth A2DP Sink support
Code: Select all
persist.service.bt.a2dp.sink true|false default:false
Enable/Disable GPS support
Code: Select all
persist.disable_location true|false default:false
Enable/Disable WiFi power saving. Most of USB WiFi modules have a problems with power saving mode.
So Disable it by default.
Code: Select all
persist.enable_wlan_ps true|false default:false
Some AP have a wrong timestamp and Android framework filter out this AP.
If You non't see your AP in WiFi scan results set this property true.
Code: Select all
persist.wifi_fixts true|false default:false
WiFi Linkstats is feature depending driver implementation, at this moment almost all USB drivers does not implement this feature.
Some of them have Linkstats support but it working wrong and crash whole WiFi service.
So i disable it by default.
Code: Select all
persist.disable_wifi_linkstats true|false default:true
Enable/Disable Shutdown without confirmation feature.
Set it true if you want shutdown your Board without confirmation by POWER button long press.
Code: Select all
persist.pwbtn.shutdown true|false default:false
Device tree tricks
We can modify our dtbs from bootloader to Enable/Disable or change configuration of dtb nodes.
We can add those commands to boot.ini before bootm command.
Enable UART_EE_A(ttyS1) port on 40Pin Header (disabled by default)
Code: Select all
fdt set /serial@ffd24000 status "okay"
Enable GPIO Buttons (by default 4 GPIO keys konfigured as F7-F10 keys)
You can remap them at boot stage by changing "linux,code" value.
In this example we are change Button1 and Button2 to function as Volume UP/DOWN.
And at the last line we need Enable GPIO buttons (disabled by default)
Code: Select all
fdt set /gpio_keys_polled/button@1 "linux,code" "<115>"
fdt set /gpio_keys_polled/button@2 "linux,code" "<114>"
fdt set /gpio_keys_polled status "okay"
List of Linux keycodes
https://github.com/hardkernel/linux/blo ... des.h#L189