Filed under: Downloads, PS3 Scene, Tips & Trick Script: Auto Build And Package Graf’s Latest Kernel For Debian/bootOS

by dukio on Mar 9th, 2011

Tags Share Comments (4)
YOU ARE VIEWING AN ARCHIVED PAGE OF OLD PS3CRUNCH NEWS, PLEASE VISIT OUR HOME PAGE FOR THE LATEST NEWS

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 post.

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

[code]#!/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 http://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 http://git.marcansoft.com/?p=ps3-linux.git\;a=patch\;h=09dea663d36503b172cfcf2335cc629b3b90b5e3
wget -O patch2 http://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[/code]

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.

Leave a Comment »4 Comments
  • anon March 10, 2011

    All of Graf’s work so far has been with JB 3.41 right? This work with 3.55?

    • kim March 10, 2011

      yes this script is for debian/bootos 2.1

  • bearmon2010 March 10, 2011

    I have JB 3.41 and how do I install the linux ? Thanks.

    • kim March 11, 2011

      atm you must update to 3.55 kmeaw to use linux.

YOU ARE VIEWING AN ARCHIVED PAGE OF OLD PS3CRUNCH NEWS, PLEASE VISIT OUR HOME PAGE FOR THE LATEST NEWS

Optimized by SEO Ultimate