Skip to content

deviljoe9900/Dhollmen_Kernel

Repository files navigation

DhollmenCM kernel for Samsung Tab 2 - Version 3.0.39

Lastly synchronized with CyanogenMod / android_kernel_samsung (_espresso10 & _espresso)

Credits to Kernel Team, Google, CyanogenMod, Samsung and anyone else with merit not listed here.

*** HOW TO COMPILE ***

# Sets environment
export DIRE=$PWD/DhollmenCM
export KERNELDIR=$DIRE/DhollmenCM
export ARCH=arm
export CROSS_DIR=/opt/toolchains/arm-eabi-linaro-4.7/bin
export CROSS_COMPILE=$CROSS_DIR/arm-eabi-
export KERNEL_CROSS_COMPILE=arm-eabi-
export ARM_CROSS_COMPILE=$CROSS_COMPILE

# Create directories
mkdir -p $DIRE
mkdir -p $DIRE/Modules
mkdir -p $DIRE/Zimage 
mkdir -p $DIRE/PowerVRSGX

# Get omaplfb sources
cd $DIRE/PowerVRSGX
git clone git://git.omapzoom.org/repo/graphics/omaplfb.git \
	-b omaplfb-1.9 --depth 1
git clone git://git.omapzoom.org/device/ti/proprietary-open.git \
	-b d-jb-mr1-release --depth 1 

# Get kernel sources
git clone https://github.com/Dhollmen/Dhollmen_Kernel $KERNELDIR 

# Copy config file for your tablet model 
cp ./arch/arm/configs/dhollmen_P51XX_defconfig .config
# or
cp ./arch/arm/configs/dhollmen_P31XX_defconfig .config

# Compile
make ARCH=arm -j<n>      ##  n = CPU cores + 1
	
# Copy kernel image and modules
rm -fr $DIRE/Modules/*
cp ./arch/arm/boot/zImage $DIRE/Zimage/
find . -type f -name *.ko -exec cp {} $DIRE/Modules/ \;

# Compile omaplfb
cd 	$DIRE/PowerVRSGX
			
rm -fr  eurasia_km
tar -xzf proprietary-open/omap4/sgx_src/eurasia_km.tgz
rm -rf eurasia_km/eurasiacon/binary*

cd eurasia_km/eurasiacon/build/linux2/omap4430_android/
make ARCH=arm TARGET_PRODUCT="blaze_tablet" BUILD=release \
	 TARGET_SGX=540 PLATFORM_VERSION=4.0

# Copy module and end
cp  ../../../binary2_540_120_omap4430_android_release/target/pvrsrvkm_sgx540_120.ko \
    $DIRE/Modules
$CROSS_DIR/arm-none-linux-gnueabi-strip --strip-unneeded $DIRE/Modules/*.ko

cd $DIRE

Releases

No releases published

Packages

No packages published