Editing Debian LiveCD
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= | ||
Line 65: | Line 65: | ||
tasksel install standard | tasksel install standard | ||
aptitude install binutils gcc make git vim openssh-server sudo wireless-tools wpasupplicant libssl | aptitude install binutils gcc make git vim openssh-server sudo wireless-tools wpasupplicant libssl-dev | ||
aptitude install gcc-spu g++-spu newlib-spu spu-tools | aptitude install gcc-spu g++-spu newlib-spu spu-tools | ||
# Make SSH server start at boot so we could ssh to our LiveCD | # Make SSH server start at boot so we could ssh to our LiveCD | ||
Line 76: | Line 75: | ||
rm -f /etc/udev/rules.d/70-persistent-net.rules | rm -f /etc/udev/rules.d/70-persistent-net.rules | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | |||
=Creating Root Filesystem= | =Creating Root Filesystem= | ||
Line 93: | Line 82: | ||
cd /root/livecd | cd /root/livecd | ||
mksquashfs * ../root.sfs | mksquashfs * ../root.sfs | ||
</syntaxhighlight>}} | </syntaxhighlight>}}<br /><br /><br /><br /><br /> | ||
=Modifying Root Filesystem= | =Modifying Root Filesystem= | ||
Line 104: | Line 93: | ||
mksquashfs * ../root-changed.sfs | mksquashfs * ../root-changed.sfs | ||
</syntaxhighlight>}} | </syntaxhighlight>}}<br /><br /><br /><br /><br /><br /><br /><br /><br /> | ||
=Linux 3 Kernel= | =Linux 3 Kernel= | ||
* We need a Linux 3 kernel with overlayfs support so we could create a tmpfs over our read-only base filesystem. | * We need a Linux 3 kernel with overlayfs support so we could create a tmpfs over our read-only base filesystem. | ||
* At the moment overlayfs is not supported on Linux 3.5 so it leaves us with Linux 3.4 which doesn't really matter because all my Linux 3 drivers are supported on Linux 3.4 just fine. | |||
* Furthermore, we want to compile PS3 HDD driver as module because in this case we can easily change HDD region flags. | * Furthermore, we want to compile PS3 HDD driver as module because in this case we can easily change HDD region flags. | ||
Line 114: | Line 104: | ||
* http://gitorious.ps3dev.net/ps3linux/kernel-configs | * http://gitorious.ps3dev.net/ps3linux/kernel-configs | ||
* http://gitorious.ps3dev.net/ps3linux/kernel-patches-34 | * http://gitorious.ps3dev.net/ps3linux/kernel-patches-34 | ||
* http://gitorious.ps3dev.net/ps3linux/livecd | * http://gitorious.ps3dev.net/ps3linux/livecd | ||
Line 145: | Line 133: | ||
mkdir initramfs | mkdir initramfs | ||
cd initramfs | cd initramfs | ||
mkdir -p bin dev etc lib/modules/3. | mkdir -p bin dev etc lib/modules/3.4.10 mnt proc sbin sys usr/bin usr/sbin | ||
cp ~/busybox-1.20.1/busybox bin/ | cp ~/busybox-1.20.1/busybox bin/ | ||
Line 178: | Line 166: | ||
for mod in fat vfat isofs crc-ccitt crc-itu-t lzo_compress udf squashfs overlayfs \ | for mod in fat vfat isofs crc-ccitt crc-itu-t lzo_compress udf squashfs overlayfs \ | ||
ps3_gelic ps3stor_lib sg ps3rom usb-common usbcore ehci-hcd ohci-hcd usb-storage; do | ps3_gelic ps3stor_lib sg ps3rom usb-common usbcore ehci-hcd ohci-hcd usb-storage; do | ||
path=`find /home/glevand/linux-3. | path=`find /home/glevand/linux-3.4.10-build/lib/modules/3.4.10 -name $mod.ko` | ||
cp $path lib/modules/3. | cp $path lib/modules/3.4.9/ | ||
done | done | ||
Line 187: | Line 175: | ||
cd .. | cd .. | ||
cat initramfs.cpio | gzip > initramfs.cpio.gz | cat initramfs.cpio | gzip > initramfs.cpio.gz | ||
</syntaxhighlight>}}<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | |||
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | |||
=Images= | =Images= | ||
* vmlinux-3. | * vmlinux-3.4.10.xz: http://www.multiupload.nl/L69J301LKO (MD5 d2b90a7a40bb8b6e03d2b5fdb8d5270b) | ||
* root.sfs: http://www.multiupload.nl/ | * root.sfs: http://www.multiupload.nl/E2WYM0JZWD (MD5 48935a475b6d42230a6d4034662b8f1f) | ||
* Tools available on the root filesystem: gcc, spu-gcc, spuisofs, spuldrfs, ps3vuart-tools, ps3sed and all my other PS3 Linux drivers. Everything you need to compile and test various PS3 stuff. | * Tools available on the root filesystem: gcc, spu-gcc, spuisofs, spuldrfs, ps3vuart-tools, ps3sed and all my other PS3 Linux drivers. Everything you need to compile and test various PS3 stuff. | ||
* In case someone still hasn't figured it out yet, password for root is root and password for glevand is glevand :) | * In case someone still hasn't figured it out yet, password for root is root and password for glevand is glevand :) | ||
Line 207: | Line 190: | ||
* Your USB drive should be formatted with FAT32 filesystem. | * Your USB drive should be formatted with FAT32 filesystem. | ||
* initramfs | * initramfs.cpio.gz: http://www.multiupload.nl/8AVFVVACTM (MD5 48e5c3a5f0320248c474017e6d8b40f0) | ||
* Create '''debianlive''' directory on your USB drive. | * Create '''debianlive''' directory on your USB drive. | ||
* Put vmlinux-3. | * Put vmlinux-3.4.10 (extract xz archive), initramfs.cpio.gz and root.sfs into this directory. | ||
{{Keyboard|content=<syntaxhighlight lang="bash"> | {{Keyboard|content=<syntaxhighlight lang="bash"> | ||
Line 216: | Line 199: | ||
-rwxr-xr-x 1 root root 6746154 Aug 18 17:44 initramfs.cpio.gz | -rwxr-xr-x 1 root root 6746154 Aug 18 17:44 initramfs.cpio.gz | ||
-rwxr-xr-x 1 root root 249835520 Aug 18 17:15 root.sfs | -rwxr-xr-x 1 root root 249835520 Aug 18 17:15 root.sfs | ||
-rwxr-xr-x 1 root root 7288832 Aug 18 17:31 vmlinux-3. | -rwxr-xr-x 1 root root 7288832 Aug 18 17:31 vmlinux-3.4.10 | ||
$ ls -l /mnt/usb/ | $ ls -l /mnt/usb/ | ||
-rwxr-xr-x 1 root root 188 Aug 18 17:30 kboot.conf | -rwxr-xr-x 1 root root 188 Aug 18 17:30 kboot.conf | ||
Line 224: | Line 207: | ||
<pre> | <pre> | ||
debianlive=/debianlive/vmlinux-3. | debianlive=/debianlive/vmlinux-3.4.9 initrd=/debianlive/initramfs.cpio.gz | ||
</pre> | </pre> | ||
==CDROM== | ==CDROM== | ||
* initramfs.cpio.gz: http://www.multiupload.nl/60CNXOU5U0 (MD5 8aa930e1e2e8b99ed223ad1df02ba54e) | |||
* debianlive.iso.xz: http://www.multiupload.nl/HRJFPL38W8 (MD5 f6c9fa8d179f8da6ee196943a841efe9) | |||
* initramfs | |||
* debianlive.iso: http://www.multiupload.nl/ | |||
{{Keyboard|content=<syntaxhighlight lang="bash"> | {{Keyboard|content=<syntaxhighlight lang="bash"> | ||
mkdir -p iso/debianlive | mkdir -p iso/debianlive | ||
cp root.sfs initramfs.cpio.gz vmlinux-3. | cp root.sfs initramfs.cpio.gz vmlinux-3.4.9 iso/debianlive | ||
echo "debianlive=/debianlive/vmlinux-3. | echo "debianlive=/debianlive/vmlinux-3.4.9 initrd=/debianlive/initramfs.cpio.gz" > iso/kboot.conf | ||
cd iso | cd iso | ||
mkisofs -R -J -l -o ../debianlive.iso . | mkisofs -R -J -l -o ../debianlive.iso . | ||
Line 250: | Line 225: | ||
sudo cdrecord -v dev=/dev/sr0 blank=fast | sudo cdrecord -v dev=/dev/sr0 blank=fast | ||
sudo cdrecord -v dev=/dev/sr0 debianlive.iso | sudo cdrecord -v dev=/dev/sr0 debianlive.iso | ||
</syntaxhighlight>}} | </syntaxhighlight>}}<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | ||
<br /><br /><br /><br /> | |||
=Links= | =Links= | ||
* http://securityfocus.eu/?p=149 | * http://securityfocus.eu/?p=149 | ||