Halium/hybris-boot

Name: hybris-boot

Owner: Halium

Description: null

Forked from: mer-hybris/hybris-boot

Created: 2017-05-23 14:15:12.0

Updated: 2018-05-22 09:35:26.0

Pushed: 2018-05-22 09:35:23.0

Homepage: null

Size: 192

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.