Skip to content

iamsubhranil/hybris-boot

This branch is 1 commit ahead of adeen-s/hybris-boot:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

31ef1b7 · Aug 8, 2016
Dec 5, 2014
Mar 21, 2016
Feb 4, 2014
Jul 9, 2014
Mar 21, 2016
Jan 25, 2016
Aug 8, 2016
Mar 21, 2016
Sep 22, 2015

Repository files navigation

hybris-boot

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/main.mk to include hybris/Android.mk; that then includes any additional Android.mk 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 https://github.com/mer-hybris/hybris-boot
$ 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 192.168.2.15

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 59.7%
  • Makefile 39.0%
  • Python 1.3%