Android device configuration [ANSWERED]

Moderators: Oren.R, Eran.M

Posts: 16
Joined: Fri Aug 26, 2016 10:20 pm
Location: Madison, WI USA

Android device configuration [ANSWERED]

Postby PeterSteinberg » Mon Jun 12, 2017 8:01 pm

I would like to have a single Android image with multiple device trees (DTB's) that could be selected by u-boot based on the value of GPIO lines or I2C register reads.

Under Linux I can modify u-boot to set the "fdt_file" environment variable appropriately, but it looks like Android just stores a binary copy of the DTB file in the boot image (boot.img) file that gets created.

We'd like to easily support multiple display / touch screen /orientations with a single image.

Peter Steinberg

Posts: 52
Joined: Tue Nov 01, 2016 10:25 am

Re: Android device configuration

Postby varigigi » Wed Jun 21, 2017 9:36 am

Hi Peter,
What you need is technically feasible, but you cannot rely on Android boot system and need to switch to a Linux like boot system.
Android uboot uses booti command to load a binary blob containing:
- kernel
- dtb
- ramdisk
You can reorganise the boot (but also recovery!) partition to have them separately accessible (maybe as a FAT16) and add all of your dtbs, then modify uboot to manage the choosing logic.


Return to “Android”

Who is online

Users browsing this forum: No registered users and 3 guests