Remastering Debian Netinstall CD for PS3: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:OtherOS]] | |||
=Introduction= | =Introduction= | ||
Line 9: | Line 10: | ||
{{Keyboard|content=<syntaxhighlight lang="bash"> | {{Keyboard|content=<syntaxhighlight lang="bash"> | ||
mkdir netinst | |||
cd netinst | |||
losetup /dev/loop1 ./debian-6.0.5-powerpc-netinst.iso | |||
mount /dev/loop1 /mnt/iso | |||
cp -r /mnt/iso /root/netinst/ | |||
ls -l iso/install/powerpc64/ | |||
total 22636 | |||
-r--r--r-- 1 root root 4414184 Sep 8 13:30 initrd.gz | |||
-r--r--r-- 1 root root 11384603 Sep 8 13:30 vmlinux | |||
-r--r--r-- 1 root root 7375128 Sep 8 13:30 vmlinuz-chrp.initrd | |||
# we have to modify initrd.gz and replace vmlinux with our PS3 Linux kernel | |||
# remaster initrd | |||
cat iso/install/powerpc64/initrd.gz | gunzip > initrd.cpio | |||
mkdir initrd | |||
cpio -i -d -H newc --no-absolute-filenames < ../initrd.cpio | |||
rm -rf lib/modules/2.6.32-5-powerpc64 | |||
cp -r /home/glevand/linux-3.5.3-build/lib/modules/3.5.3 lib/modules/ | |||
depmod -b /root/netinst/initrd 3.5.3 | |||
find . | cpio -H newc -o > ../initrd.cpio | |||
cd .. | |||
cat initrd.cpio | gzip > iso/install/powerpc64/initrd.gz | |||
cp /home/glevand/linux-3.5.3-build/boot/vmlinux iso/install/powerpc64/vmlinux | |||
/opt/powerpc64-linux-gcc-4.6.2/bin/powerpc64-linux-strip iso/install/powerpc64/vmlinux | |||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{Linux}}<noinclude>[[Category:Main]]</noinclude> |
Latest revision as of 02:04, 3 February 2014
Introduction[edit | edit source]
- Unfortunately, we cannot use official Debian netinstall CD with PS3 OtherOS++ because of the vanilla ps3disk HDD driver.
- We have to modify it and replace the Linux kernel on the netinstall CD with our PS3 Linux kernel.
Remastering[edit | edit source]
- Grab the official powerpc Debian netinst CD from here: http://www.debian.org/CD/netinst/
mkdir netinst cd netinst losetup /dev/loop1 ./debian-6.0.5-powerpc-netinst.iso mount /dev/loop1 /mnt/iso cp -r /mnt/iso /root/netinst/ ls -l iso/install/powerpc64/ total 22636 -r--r--r-- 1 root root 4414184 Sep 8 13:30 initrd.gz -r--r--r-- 1 root root 11384603 Sep 8 13:30 vmlinux -r--r--r-- 1 root root 7375128 Sep 8 13:30 vmlinuz-chrp.initrd # we have to modify initrd.gz and replace vmlinux with our PS3 Linux kernel # remaster initrd cat iso/install/powerpc64/initrd.gz | gunzip > initrd.cpio mkdir initrd cpio -i -d -H newc --no-absolute-filenames < ../initrd.cpio rm -rf lib/modules/2.6.32-5-powerpc64 cp -r /home/glevand/linux-3.5.3-build/lib/modules/3.5.3 lib/modules/ depmod -b /root/netinst/initrd 3.5.3 find . | cpio -H newc -o > ../initrd.cpio cd .. cat initrd.cpio | gzip > iso/install/powerpc64/initrd.gz cp /home/glevand/linux-3.5.3-build/boot/vmlinux iso/install/powerpc64/vmlinux /opt/powerpc64-linux-gcc-4.6.2/bin/powerpc64-linux-strip iso/install/powerpc64/vmlinux