Openembedded Core Discussions
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Add support for fastboot images
@ 2015-08-26 15:48 Nicolas Dechesne
  2015-08-26 15:48 ` [RFC PATCH 1/2] android-tools: import android-tools from meta-smartphone into oe-core Nicolas Dechesne
  2015-08-26 15:48 ` [RFC PATCH 2/2] image_types.bbclass: add support for fastboot image type Nicolas Dechesne
  0 siblings, 2 replies; 14+ messages in thread
From: Nicolas Dechesne @ 2015-08-26 15:48 UTC (permalink / raw)
  To: openembedded-core; +Cc: Nicolas Dechesne

Some (many?) embedded SBCs and Android devices (such as Nexus devices) come with
Android bootloaders/BSP by default, and often the fastboot protocol may be even
the only way we can flash the device. So this RFC series is an attempt to be
able to easily use such devices while building OE images. I believe the use case
is common enough so that we can have this feature in OE Core.

First we import the android-tools recipe from meta-smartphone. That provides
make_ext4fs utility that can be used to create sparse images suitable for
fastboot. The original android-tools recipe had support for adb (and adbd) which
has been removed during the import since it's huge, and not strictly needed for
building the images. Alternatively I found a standalone fork for make_ext4fs at
[1], from the OpenWrt project, but it is quite new, and i have not tested it
yet. I would appreciate any feedback on that.

Then we add a new image type called ext4.fastboot that uses make_ext4fs to
create the appropriate images. A specific variable can be used to set the image
size which defaults to 16MB.

These patches have been tested on various devices such as IFC6410, DragonBoard
410c, and a few other Qualcomm based devices.

I understand these patches would break meta-smartphone, but this is an RFC, so
let's discuss how to best handle that.

[1] http://git.openwrt.org/?p=project/make_ext4fs.git;a=summary

Nicolas Dechesne (2):
  android-tools: import android-tools from meta-smartphone into oe-core
  image_types.bbclass: add support for fastboot image type

 meta/classes/image_types.bbclass                   |  16 +++
 .../android-tools/disable-selinux-support.patch    | 137 +++++++++++++++++++++
 .../android-tools/reboot-syscall.patch             |  25 ++++
 .../android-tools/remove-libselinux.patch          |  13 ++
 .../android-tools/android-tools_4.2.2.bb           |  51 ++++++++
 5 files changed, 242 insertions(+)
 create mode 100644 meta/recipes-devtools/android-tools/android-tools/disable-selinux-support.patch
 create mode 100644 meta/recipes-devtools/android-tools/android-tools/reboot-syscall.patch
 create mode 100644 meta/recipes-devtools/android-tools/android-tools/remove-libselinux.patch
 create mode 100644 meta/recipes-devtools/android-tools/android-tools_4.2.2.bb

-- 
2.3.5



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-08-31 15:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-26 15:48 [RFC PATCH 0/2] Add support for fastboot images Nicolas Dechesne
2015-08-26 15:48 ` [RFC PATCH 1/2] android-tools: import android-tools from meta-smartphone into oe-core Nicolas Dechesne
2015-08-28  4:00   ` Khem Raj
2015-08-28 14:13   ` Otavio Salvador
2015-08-28 20:39   ` Burton, Ross
2015-08-29 12:36     ` Richard Purdie
2015-08-31 13:38       ` Nicolas Dechesne
2015-08-31 14:12         ` Otavio Salvador
2015-08-31 14:28           ` Nicolas Dechesne
2015-08-31 15:07             ` Yi Qingliang
2015-08-31 15:15               ` Nicolas Dechesne
2015-08-26 15:48 ` [RFC PATCH 2/2] image_types.bbclass: add support for fastboot image type Nicolas Dechesne
2015-08-26 20:31   ` Andre McCurdy
2015-08-27  7:56     ` Nicolas Dechesne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox