Editing Linux 3 on PS3
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[Category: | [[Category:Linux]] | ||
=Introduction= | =Introduction= | ||
* Linux 2.6 | * Linux 2.6 is EOL, which means no new features and no bugfixes. | ||
* Linux 3 is stable and works on PS3 Slim without problems. | * Linux 3 is stable and works on PS3 Slim without problems. | ||
* I stopped Linux 2.6 development, new drivers are available only on Linux 3. | |||
= | =Linux 3 Kernel Patches= | ||
TODO: upload my Linux3 kernel patches for PS3 | |||
=Cross-Compiling= | =Cross-Compiling= | ||
<pre> | <pre> | ||
linux-3.4. | linux-3.4.9 | ||
------------ | |||
http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.4. | http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.4.9.tar.bz2 | ||
tar xvjf linux-3.4. | tar xvjf linux-3.4.9.tar.bz2 | ||
cd linux-3.4. | cd linux-3.4.9 | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- ps3_defconfig | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- ps3_defconfig | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- menuconfig | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- menuconfig | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- | ||
mkdir -p $HOME/linux-3.4. | mkdir -p $HOME/linux-3.4.9-build/boot | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3.4. | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3.4.9-build/boot | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3.4. | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3.4.9-build | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3.4. | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3.4.9-build/usr | ||
linux-3. | linux-3.5.2 | ||
------------ | ------------ | ||
http://www.kernel.org/pub/linux/kernel/v3.0/linux-3. | http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.2.tar.bz2 | ||
tar xvjf linux-3. | tar xvjf linux-3.5.2.tar.bz2 | ||
cd linux-3. | cd linux-3.5.2 | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- ps3_defconfig | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- ps3_defconfig | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- menuconfig | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- menuconfig | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- | ||
mkdir -p $HOME/linux-3. | mkdir -p $HOME/linux-3.5.2-build/boot | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3. | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3.5.2-build/boot | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3. | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3.5.2-build | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3. | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3.5.2-build/usr | ||
Install new kernel on target machine | Install new kernel on target machine | ||
------------------------------------- | ------------------------------------- | ||
cp linux-3. | cp linux-3.4.9-build/boot/vmlinux /boot/vmlinux-3.4.9 | ||
cp linux-3. | cp linux-3.4.9-build/boot/System.map /boot/System.map-3.4.9 | ||
rm -rf /lib/modules/3. | rm -rf /lib/modules/3.4.9 | ||
cp -r linux-3. | cp -r linux-3.4.9-build/lib/modules/3.4.9 /lib/modules/ | ||
depmod -a 3. | depmod -a 3.4.9 | ||
</pre> | </pre> | ||
Line 72: | Line 57: | ||
* Tested by me on PS3 Slim with OtherOS++. | * Tested by me on PS3 Slim with OtherOS++. | ||
* spuisofs and spuldrfs included as modules. | * spuisofs and spuldrfs included as modules. | ||
* linux-3.4.9-build.tar.xz: http://www.multiupload.nl/Y23SCCE8YN (MD5 8da38f7a4073a39ec89c71c35daf8990) | |||
* linux-3.5.2-build.tar.xz: http://www.multiupload.nl/W25QMPUHE2 (MD5 54f1651d7644d337f68217571bcde1a7) | |||
* linux-3.4. | |||
* linux-3.5 | |||