Allgemein
...
Vorbereitung/Download
mkdir -p $HOME/Apps/toolchains
mkdir -p $HOME/Apps/odroid
cd $HOME/Apps/toolchains
wget https://releases.linaro.org/13.04/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux.tar.bz2 tar -xf gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux.tar.bz2 -C $HOME/Apps/toolchains/
cd $HOME/Apps/odroid/ wget http://www.odroid.in/ubuntu_14.04lts/ubuntu-14.04.2lts-lubuntu-odroid-c1-20150401.img.xz unxz ubuntu-14.04.1lts-minimal-odroid-c1-20150131.img.xz
git clone https://github.com/hardkernel/linux.git -b odroidc-3.10.y
apt-get install u-boot-tools bc lzop
Ab hier bei jedem Kompilierungsvorgang ausführen
dd if=$HOME/Apps/odroid/ubuntu-14.04.1lts-minimal-odroid-c1-20150131.img of=/dev/sdb bs=1M
cd $HOME/Apps/odroid/linux
git pull
cd $HOME/Apps/odroid export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf- export PATH=$HOME/Apps/toolchains/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin:$PATH mkdir -p $HOME/Apps/odroid/linux/mount
cd $HOME/Apps/odroid/linux make odroidc_defconfig make menuconfig make modules make uImage -j8 make dtbs # boot kernelversion=`cat $HOME/Apps/odroid/linux/include/config/kernel.release`
mkinitramfs -c gzip -o $HOME/Apps/odroid/linux/initramfs-$kernelversion $kernelversion
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d $HOME/Apps/odroid/linux/initramfs-$kernelversion $HOME/Apps/odroid/linux/uInitrd
mount /dev/sdb1 $HOME/Apps/odroid/linux/mount
cp $HOME/Apps/odroid/linux/arch/arm/boot/uImage $HOME/Apps/odroid/linux/mount
cp $HOME/Apps/odroid/linux/arch/arm/boot/dts/meson8b_odroidc.dtb $HOME/Apps/odroid/linux/mount
cp $HOME/Apps/odroid/linux/arch/arm/boot/dts/meson8b_odroidc.dts $HOME/Apps/odroid/linux/mount
cp $HOME/Apps/odroid/linux/uInitrd $HOME/Apps/odroid/linux/mount
sync umount $HOME/Apps/odroid/linux/mount # root mount /dev/sdb2 $HOME/Apps/odroid/linux/mount make modules_install ARCH=arm INSTALL_MOD_PATH=$HOME/Apps/odroid/linux/mount sync umount $HOME/Apps/odroid/linux/mount
# clear rm -rf $HOME/Apps/odroid/linux/mount