Linux 3 on PS3: Difference between revisions
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
<pre> | <pre> | ||
linux-3.4. | linux-3.4.12 | ||
------------ | ------------- | ||
http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.4. | http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.4.12.tar.bz2 | ||
tar xvjf linux-3.4. | tar xvjf linux-3.4.12.tar.bz2 | ||
cd linux-3.4. | cd linux-3.4.12 | ||
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.12-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.12-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.12-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.12-build/usr | ||
linux-3.5. | linux-3.5.5 | ||
------------ | ------------ | ||
http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5. | http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.5.tar.bz2 | ||
tar xvjf linux-3.5. | tar xvjf linux-3.5.5.tar.bz2 | ||
cd linux-3.5. | cd linux-3.5.5 | ||
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- LOCALVERSION="-test" | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- LOCALVERSION="-test" | ||
mkdir -p $HOME/linux-3.5. | mkdir -p $HOME/linux-3.5.5-build/boot | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3.5. | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3.5.5-build/boot LOCALVERSION="-test" | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3.5. | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3.5.5-build LOCALVERSION="-test" | ||
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3.5. | make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3.5.5-build/usr LOCALVERSION="-test" | ||
Install new kernel on target machine | Install new kernel on target machine | ||
------------------------------------- | ------------------------------------- | ||
cp linux-3.4. | cp linux-3.4.12-build/boot/vmlinux /boot/vmlinux-3.4.12 | ||
cp linux-3.4. | cp linux-3.4.12-build/boot/System.map /boot/System.map-3.4.12 | ||
rm -rf /lib/modules/3.4. | rm -rf /lib/modules/3.4.12 | ||
cp -r linux-3.4. | cp -r linux-3.4.12-build/lib/modules/3.4.12 /lib/modules/ | ||
depmod -a 3.4. | depmod -a 3.4.12 | ||
</pre> | </pre> | ||
Revision as of 07:30, 3 October 2012
Introduction
- Linux 2.6 is EOL, which means no new features and no bugfixes.
- 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
See my GIT repos: http://gitorious.ps3dev.net/ps3linux
Cross-Compiling
linux-3.4.12 ------------- http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.4.12.tar.bz2 tar xvjf linux-3.4.12.tar.bz2 cd linux-3.4.12 make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- ps3_defconfig make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- menuconfig make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- mkdir -p $HOME/linux-3.4.12-build/boot make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3.4.12-build/boot make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3.4.12-build make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3.4.12-build/usr linux-3.5.5 ------------ http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.5.tar.bz2 tar xvjf linux-3.5.5.tar.bz2 cd linux-3.5.5 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.5-build/boot make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- install INSTALL_PATH=$HOME/linux-3.5.5-build/boot LOCALVERSION="-test" make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- modules_install INSTALL_MOD_PATH=$HOME/linux-3.5.5-build LOCALVERSION="-test" make ARCH=powerpc CROSS_COMPILE=powerpc64-linux- headers_install INSTALL_HDR_PATH=$HOME/linux-3.5.5-build/usr LOCALVERSION="-test" Install new kernel on target machine ------------------------------------- cp linux-3.4.12-build/boot/vmlinux /boot/vmlinux-3.4.12 cp linux-3.4.12-build/boot/System.map /boot/System.map-3.4.12 rm -rf /lib/modules/3.4.12 cp -r linux-3.4.12-build/lib/modules/3.4.12 /lib/modules/ depmod -a 3.4.12
Precompiled Linux 3 Kernels
- Tested by me on PS3 Slim with OtherOS++.
- spuisofs and spuldrfs included as modules.
- linux-3.4.10-build.tar.xz: http://www.multiupload.nl/9SG19DPP85 (MD5 dd464d568f9761cec75b4e1c492c890c)
- linux-3.5.4-build.tar.xz: http://www.multiupload.nl/QKF64GZDS3 (MD5 17632a9a4b6bea01c50aa2d5cfe2cf1d)
- linux-2.6.39.4-build.tar.xz: http://www.multiupload.nl/DVMOI1FW1E (MD5 1a35d9daf01e22e64da27817d7236536)
- linux-3.2.29-libusb-build.tar.xz: http://www.multiupload.nl/UTGFQHCI7W (MD5 11c9c3f45b5aa76709107917f8574dc5)