rofl0r edited this page May 18, 2017 · 10 revisions






rc.modules: http://dpaste.com/767857/ (link is dead, use the default kernel config from efika kernel repo, then go s/=m$/=y/ on the whole file to buid all modules statically into the kernel, so you dont have to mess with kernel modules loading!)


create 2 primary partitions on your sd card

msdos partition table is fine, first (/boot) partition should be at least 16MB, better 32

run mkfs on them (ext2 for boot, ext4 for root)


git clone git://crux-arm.nu/crux-arm/uboot.git
cd uboot

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/boot.scr

rootfs ( available here http://ftp.barfooze.de/pub/sabotage/ )

cd $ROOT
tar xf ~/Downloads/arm-bin/sabotage-rootfs.tar

kernel: compile with crosscompiler (this one should work https://bitbucket.org/GregorR/musl-cross/downloads/crossx86-arm-linux-musleabi-0.9.2.tar.xz )

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

cp -r dist/* $ROOT/
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.