- Back to Home »
- Library »
- Build linux-fusion-9.0.2
Saturday, October 3, 2015
export PATH=$PATH:/opt/FriendlyARM/toolschain/4.4.3/bin
export CROSS=arm-none-linux-gnueabi-
export HOST=arm-none-linux-gnueabi
export CC=${CROSS}gcc
export STRIP=${CROSS}strip
export AR=${CROSS}ar
export AS=${CROSS}as
export CXX=${CROSS}g++
export CPP=${CROSS}cpp
export LD=${CROSS}ld
export RANLIB=${CROSS}ranlib
export ARCH=arm
export PREFIX=/friendlyarm
requirement:
- build linux kernel modules ok
- for example: ${PREFIX}/lib/modules/2.6.32.2-FriendlyARM
open linux-fusion Makefile and edit:
KERNEL_VERSION = 2.6.32.2-FriendlyARM
INSTALL_MOD_PATH = ${PREFIX}
KERNELDIR = $(INSTALL_MOD_PATH)/lib/modules/$(KERNEL_VERSION)/build
FUSIONCORE = single
ONECORE = single
- make
- make install
install fusion.ko and linux-one.ko to ${PREFIX}/lib/modules/2.6.32.2-FriendlyARM/drivers/char/fusion
fusion.h and one.h to ${PREFIX}/usr/include/linux
-runtime: insmod fusion.ko, insmod linux-one.ko