Post: Script: Auto Build And Package Graf’s Latest Kernel For Debian/bootOS
03-09-2011, 02:12 PM #1
kyskidz
Big Sister
(adsbygoogle = window.adsbygoogle || []).push({}); You must login or register to view this content.
User has released a useful script to make your life easier when getting some graf_chokolo’s PS3 Linux kernel update by just using your console. The script works by grabbing the updates directly from the git which means that it will..sucking up my poor server’s bandwidth. Quoted from user’s You must login or register to view this content.

Originally posted by another user
after running this script you should have two deb packages containing binaries of graf’s latest kernel. i’ve tested it on debian (bootos 2.01), ubuntu may work as well.


make_grafs_kernel.sh

    #!/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


install:

dpkg -i linux*.deb

cd /boot
ls -l

look at the files, you should see vmlinux-2.6.38-rc6-graf-XXXXXXX and initrd.img-2.6.38-rc6-XXXXXXX. where XXXXXXX is the latest commit

mv vmlinux-2.6.38-rc6-graf-XXXXXXX vmlinux
mv initrd.img-2.6.38-rc6-XXXXXXX initrd.img

reboot and check it out.

source
You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked kyskidz for this useful post:

Swade
03-09-2011, 02:21 PM #2
wowaka
Former Staff
i dont ****en understand
03-09-2011, 02:34 PM #3
mrcl0wn
Do a barrel roll!
sweet thanks!
03-09-2011, 02:36 PM #4
Swade
The Brain Named Its Self
sweet awesome cool

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo