Skip to content

Instantly share code, notes, and snippets.

@michealbenedict
Created September 6, 2011 19:30
Show Gist options
  • Select an option

  • Save michealbenedict/1198709 to your computer and use it in GitHub Desktop.

Select an option

Save michealbenedict/1198709 to your computer and use it in GitHub Desktop.
android linux
# To make kernel
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:~/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin
#Pull kernel config from running phone
adb pull /proc/config.gz ~/android/sources/kernel/
cd ~/android/sources/kernel/
gunzip config.gz
# boot image
./extract-kernel.pl boot.img
./extract-ramdisk.pl boot.img
rm boot.img-kernel
cp zImage boot.img-kernel
./mkbootfs boot.img-ramdisk | gzip > ramdisk-boot
./mkbootimg --kernel boot.img-kernel --ramdisk ramdisk-boot --cmdline "no_console_suspend=1 console=null" -o newBoot.img --base 0x19200000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment