Skip to content

msm8916-mainline/gen-uboot-img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gen-uboot-img: msm8916 bootchain packaging helper

This is a quick experimental tool that allows one to build a EFI capable bootchain for msm8916-based devices using lk2nd and experimental u-boot build.

Warning

This bootchain is experimental and relies on WIP code.

All devices supported by lk2nd and msm8916-mainline should be supported.

Installation

You can get a prebuilt package from releases page. See installation instruction below:

Installation using the stock bootloader

Install combined.img into your boot partition:

  • Fastboot: fastboot flash boot combined.img
  • Samsung: heimdall flash --BOOT combined.img

Installation via existing lk2nd:

fastboot flash lk2nd lk2nd.img
fastboot flash qhypstub qhypstub.bin
fastboot flash boot thirdstage.ext2

Building

You will need to collect a selection of projects to build the bootchain.

Build system expects those repositories to exist in the parent dir of the project. See Makefile on how to override the path.

After collecting and checking out desired branches on these repositories, run:

make -j$(nproc)

This will builds all the projects and place artifacts in build/.

Usage

U-boot should launch /boot/efi/bootaa64.efi from the storage if it finds it. This should be sufficient to boot most generic EFI capable system images.

About

Generate lk2nd and U-Boot based bootchain for msm8916 devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published