Giter Club home page Giter Club logo

botnana-kernel's Introduction

Requirements

  • ARM Cross Compiler: GCC

ARM Cross Compiler: GCC

This is a pre-built (32bit) version of Linaro GCC that runs on generic linux, so 64bit users need to make sure they have installed the 32bit libraries for their distribution.

Debian OS 7,8

dpkg --add-architecture i386
apt-get update
apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

Download and extract:

wget -c https://releases.linaro.org/14.09/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
tar xf gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
export CC=`pwd`/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-

First Configure:

make ARCH=arm CROSS_COMPILE=${CC} distclean
make ARCH=arm CROSS_COMPILE=${CC} singlecore-omap2plus_defconfig

The .config file will be generated.

Build kernel image, modules, device tree:

make ARCH=arm CROSS_COMPILE=${CC} -j4 LOADADDR=0x80008000 zImage dtbs modules   

Install kernel image:

sudo cp -v ./arch/arm/boot/zImage /media/rootfs/boot/zImage   

Install modules

mkdir -p /tmp/deploy
make -s ARCH=arm CROSS_COMPILE="${CC}" modules_install INSTALL_MOD_PATH=/tmp/deploy

cd /tmp/deploy
tar --create --gzip --file 3.14.26-modules.tar.gz *
sudo tar vxzf 3.14.26-modules.tar.gz -C /media/rootfs/

cd ..
rm -rf /tmp/deploy   

Install Firmware

mkdir -p /tmp/deploy
make -s ARCH=arm CROSS_COMPILE="${CC}" firmware_install INSTALL_FW_PATH=/tmp/deploy

cd /tmp/deploy
tar --create --gzip --file 3.14.26-firmware.tar.gz *
sudo tar vxzf 3.14.26-firmware.tar.gz -C /media/rootfs/lib/firmware

cd ..
rm -rf /tmp/deploy   

Install Device Tree

sudo cp -v ./arch/arm/boot/dts/am335x-botbone.dtb /media/rootfs/boot/

botnana-kernel's People

Contributors

felixshen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.