-
Notifications
You must be signed in to change notification settings - Fork 31
Getting device tree from TVbox vendor Android
Piotr Oniszczuk edited this page Aug 4, 2023
·
2 revisions
If you want to retrieve Android kernel device-tree, you can do following:
- start device with factory Android
- connect box to computer by USB cable or by Ethernet or by WiFi
- enable Developer Mode in box Android:
- go to Settings > About phone and tap Build number seven times
- Return to the previous screen and find Developer options (usually at the bottom)
- Enter Developer Options then switch ON option USB settings > Connect-disconnect to computer
- go to terminal on computer and type:
- If box is connected by USB cable
./adb devices -l
You should see your box listed as available devices.
- if box is connected by Ethernet or WiFi: type in terminal:
./adb connect <IP address of the Android device>
then accept connection on device (there should be pop-up asking for debugging access)
- When box is connected by ADB, then type in terminal:
./adb shell
su
cat /sys/firmware/fdt > /sdcard/extracted.dtb
exit
- Download extracted.dtb. Im Terminal type:
./adb pull /sdcard/extracted.dtb box.dtb
- Decompile dtb: install DTC and in terminal type:
dtc -I dtb -O dts extracted.dtb -o box.dts