Skip to content
rofl0r edited this page Jul 6, 2012 · 10 revisions

BOOT=/mnt/sdcard_part1_ext2 ROOT=/mnt/sdcard_part2_ext4

http://crux-arm.nu/gitweb?p=uboot.git;a=summary clone, then:

make mkimage
cd devices/efikamx/
nano boot-mmc.script
#(change the tty there to tty1 and remove baudrate)
make bootscr

cp work/boot-mmc.scr $BOOT

kernel:

git clone git://github.com/genesi/linux-legacy.git
cd linux-legacy/

make ARCH=arm CROSS_COMPILE=arm-linux-musleabi- -j7 mx51_efikamx_defconfig
# will create .config
make ARCH=arm CROSS_COMPILE=arm-linux-musleabi- menuconfig
# set ext4 and ext2 to built-in

export PATH=$PATH:/home/rofl/apps/arm-linux-musleabi-gcc471/bin/

make ARCH=arm CROSS_COMPILE=arm-linux-musleabi- -j7
#this'll create vmlinux and a ton of kernel modules

export PATH=$PATH:/media/3T/git-mirror/uboot/work/u-boot-2011.12/tools/
make ARCH=arm CROSS_COMPILE=arm-linux-musleabi- uImage

#this'll create uImage
cp arch/arm/boot/uImage $BOOT/


mkdir -p dist/lib/firmware #otherwise below command will fail with an invalid make target
make ARCH=arm CROSS_COMPILE=arm-linux-musleabi- INSTALL_MOD_PATH=/media/3T/git-mirror/linux-legacy/dist/ modules_install