Rebuilding a kernel from source for the Origen board for build 214

These are the exact instructions to rebuild a kernel.

# https://android-build.linaro.org/builds/~linaro-android/origen-ics-gcc46-samsunglt-stable-blob/#build=214
mkdir recompile
cd recompile/ 
git clone git://git.linaro.org/landing-teams/working/samsung/kernel
wget --no-check-certificate https://android-build.linaro.org/jenkins/view/Toolchain/job/linaro-android_toolchain-4.6-bzr/lastSuccessfulBuild/artifact/build/out/android-toolchain-eabi-4.6-daily-linux-x86.tar.bz2
tar -jxvf android-toolchain-eabi-4.6-daily-linux-x86.tar.bz2
wget --no-check-certificate https://android-build.linaro.org/jenkins/job/linaro-android_origen-ics-gcc46-samsunglt-stable-blob/214/consoleText

cd kernel
git checkout android 
mkdir out

TARGET_ARCH=arm make -j1 KCFLAGS="-mtune=cortex-a9 -mcpu=cortex-a9 -fno-pic -mno-unaligned-access" "V=1" O=out ARCH=arm CROSS_COMPILE=/home/zpfeffer/tmp/recompile/android-toolchain-eabi/bin/arm-linux-androideabi- defconfig android_origen_defconfig

TARGET_ARCH=arm make "V=1" O=out ARCH=arm CROSS_COMPILE=/home/zpfeffer/tmp/recompile/android-toolchain-eabi/bin/arm-linux-androideabi- KCFLAGS="-mtune=cortex-a9 -mcpu=cortex-a9 -fno-pic -mno-unaligned-access" uImage

download

target/product/origen/boot.tar.bz2
target/product/origen/userdata.tar.bz2
target/product/origen/system.tar.bz2

from:

https://android-build.linaro.org/builds/~linaro-android/origen-ics-gcc46-samsunglt-stable-blob/#build=214

bzr branch lp:linaro-image-tools
dmesg
./linaro-image-tools/linaro-android-media-create --mmc /dev/sdc --dev origen --system system.tar.bz2 --userdata userdata.tar.bz2 --boot boot.tar.bz2

mkdir mnt
sudo mount /dev/sdc2 mnt
sudo cp ../kernel/out/arch/arm/boot/uImage mnt
sync
sudo umount mnt
minicom -D /dev/ttyUSB0 -w -C minicom.txt


CategoryAndroidTips

Platform/Android/ReplaceKernelonOrigenBuild214 (last modified 2013-08-12 07:31:54)