Skip to content

Serenity Kernel (Firefly version) for Huawei Mate 9

License

Notifications You must be signed in to change notification settings

ironydelerium/Serenity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

Building

Edit make_image.sh, change:

  • TOOLCHAIN should be set to the full path to the Linaro GCC toolchain.
  • MKBOOTIMAGE should be set to the path of the mkbootimg binary.
  • OUTDIR should be the directory you want the compiled files to go

Run ./make_image.sh. If the compile is successful, you will have $OUTDIR/kernel.img available for fastboot flashing.

make_image.sh

By default, running ./make_image.sh will do a full build and place the resulting kernel.img file into $OUTDIR.

  • ./make_image.sh defconfig -- construct the default configuration
  • ./make_image.sh build -- executes the build
  • ./make_image.sh devbuild -- executes the build, but with 'make -j1' (for easier finding code that broke)
  • ./make_image.sh makeimage -- constructs the kernel.img file
  • ./make_image.sh confiugre -- starts Linux kernel configuration (menuconfig)
  • ./make_image.sh all -- the default: defconfig, build, makeimage

Changes from upstream

  • pie_defconfig, based on serenity_defconfig
  • Huawei livepatching (OASES) disabled.
  • Huawei runtime data recorder (blackbox) disabled.
  • Huawei bootfail monitor disabled.
  • Huawei root checker disabled.
  • Code changes around the disabling of the blackbox and BFM stacks. (Huawei, of course, didn't make these easy to remove; the code didn't account for the options at all.)
  • Mali driver has been patched to allow the use of the HiKey960 Mali driver stack, instead of the Huawei stack.

Known issues

  • Disabled DSS panel shutoff. Pie currently fails to re-enable the display panel once it's been shut off, and ioctl(framebuffer_fd, FBIOBLANK, FB_BLANK_UNBLANK) does not seem to correct this.

Thanks

wirmpolter

About

Serenity Kernel (Firefly version) for Huawei Mate 9

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 86.3%
  • Assembly 9.0%
  • Perl 2.0%
  • C++ 1.4%
  • Objective-C 0.6%
  • Makefile 0.3%
  • Other 0.4%