#!/bin/bash
#
# make_grafs_kernel.sh
#
#
# download graf chokolo's latest kernel,
# compile and create deb packages
#
#
# Tested on:
# PS3 running debian (installed with bootos installer 2.01)
#
# Required packages:
# kernel-package libncurses5-dev fakeroot wget bzip2 build-essential
#
# How to install req. packages:
# apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential
#
# WARNING:
# PROVIDED WITHOUT ANY WARRENTY
# clean-up
rm -r linux-2.6-HEAD-*
# get kernel and unpack
wget -O linux-2.6.tar.gz https://git.dukio.com/gitweb.cgi?p=linux-2.6\;a=snapshot\;h=HEAD\;sf=tgz
tar xfvz linux-2.6.tar.gz
rm linux-2.6.tar.gz
# get asbestos patches
wget -O patch1 https://git.marcansoft.com/?p=ps3-linux.git\;a=patch\;h=09dea663d36503b172cfcf2335cc629b3b90b5e3
wget -O patch2 https://git.marcansoft.com/?p=ps3-linux.git\;a=patch\;h=4fa7c83d30bb4848416e6dcf7dc991450249527c
# get commit
TEMP_VER=`ls -l | egrep -n -i 'linux-2.6-head-'`
COMMIT=${TEMP_VER
-7)}
# patch
cd linux-2.6*
patch -p1 < ../patch1
patch -p1 < ../patch2
# enable ps3dmproxy debugging by hand
# line to add: CFLAGS_ps3dmproxy.o := -DDEBUG
#vi drivers/char/Makefile
# clean
make clean
make-kpkg clean
# config
cp /boot/config-`uname -r` ./.config
make oldconfig
# compile
fakeroot make-kpkg --initrd --append-to-version=-graf-$COMMIT kernel_image kernel_headers
Copyright © 2026, NextGenUpdate.
All Rights Reserved.