Linux 3 on PS3: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
Line 48: Line 48:
</pre>
</pre>


=Precompiled Linux 3 Kernel=
=Precompiled Linux 3 Kernels=


* spuisofs and spuldrfs included as modules.
* spuisofs and spuldrfs included as modules.
* linux-3.4.9-build.tar.xz: http://www.multiupload.nl/Y23SCCE8YN
* linux-3.5.2-build.tar.xz: http://www.multiupload.nl/W25QMPUHE2
* linux-3.5.2-build.tar.xz: http://www.multiupload.nl/W25QMPUHE2

Revision as of 20:04, 16 August 2012

Introduction

Linux 3 Kernel Patches

TODO: upload my Linux3 kernel patches for PS3

Cross-Compiling

linux-3.4.9
------------

http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.4.9.tar.bz2

tar xvjf linux-3.4.9.tar.bz2
cd linux-3.4.9
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- ps3_defconfig
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- menuconfig
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- LOCALVERSION="-test"
mkdir -p $HOME/linux-3.4.9-build/boot
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3.4.9-build/boot LOCALVERSION="-test"
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3.4.9-build LOCALVERSION="-test"
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3.4.9-build/usr LOCALVERSION="-test"

linux-3.5.2
------------

http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.2.tar.bz2

tar xvjf linux-3.5.2.tar.bz2
cd linux-3.5.2
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- ps3_defconfig
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- menuconfig
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- LOCALVERSION="-test"
mkdir -p $HOME/linux-3.5.2-build/boot
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3.5.2-build/boot LOCALVERSION="-test"
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3.5.2-build LOCALVERSION="-test"
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3.5.2-build/usr LOCALVERSION="-test"

Install new kernel on target machine
-------------------------------------

cp linux-3.4.9-build/boot/vmlinux /boot/vmlinux-3.4.9-test
cp linux-3.4.9-build/boot/System.map /boot/System.map-3.4.9-test
rm -rf /lib/modules/3.4.9-test
cp -r linux-3.4.9-build/lib/modules/3.4.9-test /lib/modules/

Precompiled Linux 3 Kernels