Requisites
First of all you will need some special packages for compiling a kernel, because you’ll do it the Debian’s way:
Código: Seleccionar todo
aptitude install build-essential libncurses5-dev kernel-package
Kernel compiling
Now you have to download the kernel 2.6.29’s sources (or a higher one), extract them and make the symbolic link /usr/src/linux folder that point out to the directory you just have extracted, thus:
Código: Seleccionar todo
cd /usr/src
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2
tar xjfv linux-2.6.29.tar.bz2
ln -sf linux-2.6.29 linux
cd linux
Now, you have to delete any .config file and clean up any object file from previous compilations:
Código: Seleccionar todo
make mrproper
In order to choose all PS3 options available on the kernel, just type this command:
Código: Seleccionar todo
make ps3_defconfig
This will create a .config file with all PS3’s features enabled, such as the new VRAM access option. If you want to enable other options (for instance I always select the OSS sound modules), you can choose them by using the ncurses interface program menuconfig:
Código: Seleccionar todo
make menuconfig
It’s kernel compiling time! You can compile the kernel’s image and headers (the latter are needed for compiling other programs on Linux without the kernel’s sources), just type the following:
Código: Seleccionar todo
make-kpkg clean
make-kpkg --revision ccs1 --initrd kernel_image kernel_headers
Installing the new kernel
This compilation procedure will create some . deb files in the /usr/src folder. To install them you can use the dpkg program as you would do with any other Debian’s package:
Código: Seleccionar todo
dpkg -i /usr/src/linux-image-2.6.29_ccs1_powerpc.deb
Setting Petitboot (the boot manager)
Petitboot reads kboot or yaboot setting files. For instance, you can add the following lines to the /etc/yaboot.conf file to enable the compiled image:
Código: Seleccionar todo
image= /boot/vmlinux-2.6.29
label=Debian-2.6.29-ccs1
initrd=/boot/initrd.img-2.6.29
initrd-size=16076
append="video=ps3fb:mode:3 --"
read-only
If you’re using kboot, add the following lines to the /etc/kboot.conf file:
Código: Seleccionar todo
debian='/boot/vmlinux-2.6.29 root=/dev/ps3sda1 initrd=/boot/initrd.img-2.6.29\
append=video=ps3fb:mode:3 --'
If you compiled the kernel 2.6.29 version, at boot you will see Tuz, the mascot as is shown on the above picture.
Reference: http://lgallardo.com/en/2009/03/30/comp ... en-el-ps3/