Kernel compiling on PS3

Moderadores: Kravenbcn, largeroliker, pspCaracas, m0skit0

Avatar de Usuario
Moderador Global
Moderador Global
Mensajes: 3079
Registrado: 03 Sep 2009, 03:29
Ubicación: Buenos Aire - Argentina

Kernel compiling on PS3

Mensaje por pspCaracas »



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
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
append="video=ps3fb:mode:3 --"

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: ... en-el-ps3/