Skip to content

DexLV/android_kernel_volla_mt6763

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

572,119 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android kernel (v4.4.146) for the Volla Phone

Branches

  • android-9.0 — Android 9 kernel source with many build fixes and some cleanup
  • halium-9.0 — Same as android-9.0, but with Halium 9 patches for e.g. Ubuntu Touch

Building

Environment

The currently used & tested working build env consists of:

  • An x86-64 Ubuntu 18.04 (-based) distro
  • binutils 2.30
  • GCC 7.5.0

Dependencies

sudo apt install -y build-essential gcc-aarch64-linux-gnu kmod libssl-dev bc python curl mkbootimg

Kernel build

alias make="/usr/bin/make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=out"
alias mka="make -j$(nproc)"

make k63v2_64_bsp_defconfig
mka

Halium ramdisk

curl -L https://github.com/Halium/initramfs-tools-halium/releases/download/continuous/initrd.img-touch-arm64 -o halium-ramdisk.tar.gz

NOTE: Replace /dev/null below with halium-ramdisk.tar.gz (make sure your branch is halium-9.0!)

Android bootimg

mkbootimg --kernel 'out/arch/arm64/boot/Image.gz-dtb' \
          --ramdisk '/dev/null' \
          --cmdline 'bootopt=64S3,32N2,64N2 systempart=/dev/disk/by-partlabel/system' \
          --base '0x40078000' \
          --kernel_offset '0x8000' \
          --ramdisk_offset '0x14f88000' \
          --tags_offset '0x13f88000' \
          --pagesize '2048' \
          -o boot.img

Packaging kernel modules

make INSTALL_MOD_PATH=rootfs modules_install

MODULES=out/rootfs/lib/modules
KVER=$(ls $MODULES | head -1)
FILES=$(find $MODULES/$KVER/ -type f -name *.ko)
FILES=$(ls $FILES $MODULES/$KVER/{modules.alias,modules.dep})

mkdir /tmp/kernel_modules
for f in $FILES; do
  cp $f /tmp/kernel_modules/
done
tar -C /tmp/kernel_modules -czvf kernel-modules.tar.gz .
rm -r /tmp/kernel_modules

NOTE: The created kernel-modules.tar.gz should be extracted to /system/lib/modules replacing modules for the default kernel!

Links

About

Volla Phone's 4.4 Android (9) kernel source with linux-stable merged in

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 94.2%
  • Assembly 2.9%
  • C++ 1.8%
  • Objective-C 0.4%
  • Makefile 0.4%
  • Perl 0.1%
  • Other 0.2%