Skip to content
No description, website, or topics provided.
Shell Makefile Python
Branch: master
Clone or download
mkosola Merge pull request #168 from mer-hybris/jb46519
[mermaid] Add Sony Xperia 10 Plus to fixup-mountpoints
Latest commit e35f7b1 Jul 9, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
initramfs [udhcpd] Set subnet option so device is always reachable. Fixes: NB#780 Dec 5, 2014
Makefile [all][boot] set to historical default ip Jul 9, 2014
assert-device [updater] use ota device name stored in Mar 21, 2016
fixup-mountpoints [mermaid] Add Sony Xperia 10 Plus to fixup-mountpoints Jul 9, 2019
init-script [hybris-boot] Check /sys/class/android_usb/android0 to determine whic… Jul 19, 2018
updater-script [updater] use ota device name stored in Mar 21, 2016


This project enables the building of boot images for Google Android fastboot based devices.

It can be built either in the android build tree as part of the normal kernel/android pre-requisited build or in a Mer SDK as a standalone package

Android Build

We need to extend subdir_makefiles in build/core/ to include hybris/; that then includes any additional files in subdirs

Note the default boot.img is created by $(INSTALLED_BOOTIMAGE_TARGET) target in build/core/Makefile and that is used for inspiration.

Add as a normal make/mka target: $ mka hybris-boot hybris-recovery

SDK Building

In the SDK you'll need the kernel, module and static busybox packages available

$ git clone
$ cd hybris-boot
$ make <device>

Operating System Bootstrap

The initramfs boots into a Mer derived OS installation by loading first the default Android /data partition and then bind mounting a root filesystem under /data/media/0/.stowaways/sffe. This behaviour is easily modified by editing the ./initramfs/init shell script.

Initial RAM FS Debug Console

With your device booted to fastboot, boot the boot.img in debug mode:

$ sudo fastboot boot boot.img -c bootmode=debug

Wait for your host computer to pick up DHCP lease from usb network device:

$ telnet
You can’t perform that action at this time.