~ubuntu-branches/ubuntu/lucid/silo/lucid

« back to all changes in this revision

Viewing changes to first-isofs/README.SILO_ISOFS

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2007-10-25 09:28:08 UTC
  • mfrom: (15.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071025092808-1yhj12t7s4zqsfu5
Tags: 1.4.13a+git20070930-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Build with -fno-stack-protector.
  - Change silo.postinst to automatically update the boot block without
    invoking siloconfig and keep asking questions on upgrades.
  - Convert silo.conf to use /dev/disk/by-uuid.
  - Ubuntu maintainer foobar.
  - Fix debian/rules call to dh_installdocs.
  - Drop the requirement of gcc-4.1 and start using default gcc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
                HOW TO MAKE A SPARC BOOTABLE CDROM (NEW)
 
2
 
 
3
SILO may be used to create a bootable CDROM for sparc. At the moment it will
 
4
support booting on sun4c, sun4m, sun4d and sun4u machines only.
 
5
 
 
6
INTRO
 
7
=====
 
8
 
 
9
A CDROM is booted on Sparc by issuing following commands in the PROM
 
10
(depending on PROM version - v0 is PROM with major versions 0, found
 
11
on sun4c only, v2 is PROM with major versions 2 or 3, found on some newer
 
12
sun4c and all sun4m and sun4d machines) and the same applies to P1275 PROMs
 
13
found in the 64bit UltraSparc machines:
 
14
 
 
15
v0:
 
16
 
 
17
b sd(0,6,0)
 
18
 
 
19
v2:
 
20
 
 
21
boot cdrom
 
22
 
 
23
(cdrom is actually alias to /iommu/sbus/espdma/esp/sd@0,6:d or something
 
24
similar)
 
25
 
 
26
As Solaris has different kernels for each architecture, the PROM boots by
 
27
default from different "partitions" on the CD depending on the
 
28
architecture of the machine (that's e.g. the :d in the cdrom alias on v2
 
29
PROM). That partition table is stored in the first 512 bytes of the CD
 
30
(with exactly the same format as partition tables on Sparc disks), so you
 
31
can use SparcLinux fdisk program to look into that partition table.
 
32
SparcLinux bootable CDROMs have a partition table where all partitions
 
33
point to the main iso9660 image, starting from offset 0 to the end of the
 
34
image.  The only value PROM looks at is starting offset, so that it will
 
35
boot on all machines correctly.  In the boot process PROM finds start of
 
36
the boot partition (in SILO's case it is always 0) and loads 7680 bytes
 
37
from offset 512 in that partition.  Fortunately iso9660 has the first 32KB
 
38
(16 sectors) reserved for OS use, so that the partition table and
 
39
bootblock can be safely stored there. As SILO is longer in size than those
 
40
32KB (eventhough it is compressed), it puts its first stage loader in
 
41
there and puts its second stage loader somewhere in the iso9660
 
42
filesystem.
 
43
 
 
44
SILO 1.3.0 and up now uses the new isofs.b boot block for CD's. The old
 
45
boot block required a patched mkisofs. This new boot block can be passed
 
46
to stock mkisofs as the generic boot block. Adding the sparc-boot option
 
47
will ensure that mkisofs adds the needed sun partition table.
 
48
 
 
49
STEP BY STEP
 
50
============
 
51
 
 
52
You should first prepare the tree you'd like to have on the CD. The only
 
53
requirement is that you put boot/second.b from SILO distribution into
 
54
/boot in the tree and edit the appropriate /boot/silo.conf in the tree. The
 
55
isofs.b boot block does not need to be in the CD tree.
 
56
 
 
57
This is VERY important. The isofs.b boot block is hard wired to look for
 
58
second.b in /boot on the iso9660 image. The silo.conf has to be located in
 
59
/boot aswell, since isofs.b will tell second.b that is the location.
 
60
 
 
61
Note, you also need to make sure that you enable RockRidge extensions so
 
62
that normal path lookups work. This has always been true for SILO's usage
 
63
of iso9660.
 
64
 
 
65
Once the tree is prepared, just do:
 
66
 
 
67
mkisofs -G /boot/isofs.b -B ... -r -o IMAGENAME DIRECTORY_TREE
 
68
 
 
69
and you're done. The "..." to the -B option tells it to make the generic
 
70
isofs.b boot block the only image for all sparc-boot partition pointers.
 
71
 
 
72
If you have any problems, mail silo-general@lists.sparc-boot.org