Raspberry Pi Kernel


All Steps are Shell Code

mkdir rpiker
cd rpikir
export MyWork=$PWD
git clone --depth 1 git://github.com/raspberrypi/linux.git
export KERNEL_SRC=$MyWork/linux/
git clone git://github.com/raspberrypi/tools.git
export CCPREFIX=$MyWork/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-
scp pi@10.10.6.3:/proc/config.gz linux/
cd $MyWork/linux/
make mrproper
zcat config.gz > .config
ARCH=arm CROSS_COMPILE=${CCPREFIX} make menuconfig
ARCH=arm CROSS_COMPILE=${CCPREFIX} make oldconfig
ARCH=arm CROSS_COMPILE=${CCPREFIX} make -j5
cd $MyWork
mkdir modules
export MODULES_TEMP=$MyWork/modules/
cd $MyWork/linux/
ARCH=arm CROSS_COMPILE=${CCPREFIX} INSTALL_MOD_PATH=${MODULES_TEMP} make modules_install
cd $MyWork
cd tools/mkimage/
./imagetool-uncompressed.py ${KERNEL_SRC}/arch/arm/boot/zImage

Copy "zImage" to the /boot folder in the SDcard

Comments

Popular posts from this blog

How To Make IoT Messaging with BashShell

How To Make IoT Tweet with Python