Linux Boot Images for sparc64
Ever wantet to make a custom boot image for linux/sparc64? Here's the way.
The easiest way ist to take an existing boot image and to
alter it to fit your needs. Lets say you want to use a new, custom
built kernel along with a Debian netist. You've downloaded the image
to /tmp/debian-testing-sparc-netinst.iso
Since the ISO-9660 cannot be written directly we have to make the
contents available in a temporary local, writable drirectory (/tmp/sparc64/
):
- Mount the image:
mount -o loop -t iso9660 /tmp/debian-testing-sparc-netinst.iso /mnt/
- Copy the data preserving the owners etc.:
tar -cf - . | (cd /tmp/sparc64/ && tar -xpf - )
Now we have our writable copy of the image and can do whatever we want to. For instance place our new kernel:
- Copy our pre-built kernel:
cp /share/gretel/vmlinux /tmp/sparc64/boot/sparc64
We're almost done. Creating the bootable image is all what's left to do:
mkisofs -G /tmp/sparc64/boot/isofs.b -B ... -r -o /tmp/boot.img /tmp/sparc64/
The image /tmp/boot.img
can now be burnt onto a CD-ROM
to boot your SUN with.
Resources
- README.SILO_ISOFS
- mkisofs(8)