Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / doc / genisoimage / README.sparcboot
1 # @(#)README.sparcboot  1.1 99/12/12 joerg
2 # Edited for program name change by Eduard Bloch, 2006
3
4 The sparc boot feature does allow you to create your own Sun sparc boot disk.
5 This will allow you to create modified Solaris install disks or to create
6 installation CD's for other OS that run on sparc systems.
7
8 A CD that is bootable on a Sun sparc system has a Sun disk label on sector 0
9 and some Sun sparc disk partitions behind the ISO-9660 filesystem image.
10
11 The layout of a sparc boot CD:
12
13 ----------------------------------------------------------------------------------------------------
14 |Sun disk label| Iso 9660 filesystem |Generic sun4 boot|sun4c boot|sun4m boot|sun4d boot|sun4e boot|
15 ----------------------------------------------------------------------------------------------------
16
17 On older system CD's all boot partition contain a full UFS miniroot filesystem.
18 On newer CD's the images on slice 2 and above only contain boot redirects to
19 slice 1.
20
21 To create a CD that is bootable on Sun sparc systems you need to have the
22 boot images for the apropriate sparc architecture.
23
24 A boot image file usually is a UFS filesystem image that contains the 
25 primary boot image at byte offset 512 ... 8191.
26
27 You may get such boot images by extracting partitions 1..5 from a Sun Solaris install CD,
28 but any bootable image should work.
29
30 Here is an expample how to do this with the Solaris 7 install CD.
31
32 dd if=/vol/dev/dsk/c0t6/sol_7_sparc_sun_srvr/s1 of=sun4
33 dd if=/vol/dev/dsk/c0t6/sol_7_sparc_sun_srvr/s2 of=sun4c
34 dd if=/vol/dev/dsk/c0t6/sol_7_sparc_sun_srvr/s3 of=sun4m
35 dd if=/vol/dev/dsk/c0t6/sol_7_sparc_sun_srvr/s4 of=sun4d
36 dd if=/vol/dev/dsk/c0t6/sol_7_sparc_sun_srvr/s5 of=sun4e
37
38
39 genisoimage -R -sparc-boot sun4,sun4c,sun4m,sun4d,sun4e -o boot.img /mnt/install
40
41 Will create the bootable image in boot.img.
42
43 If you like to make the boot images smaller, you may call 'fstyp -v'
44 on the images and use the 'size' value to get the needed minimal 
45 boot image size in kB.
46
47 The result for the S7 boot CD is:
48
49 ufs
50 magic   11954   format  dynamic time    Wed Oct  7 00:00:30 1998
51 sblkno  8       cblkno  12      iblkno  16      dblkno  252
52 sbsize  2048    cgsize  2048    cgoffset 20     cgmask  0xfffffff0
53 ncg     7       size    25704   blocks  23987
54                         ^^^^^
55                         This is the number of interest.
56 bsize   8192    shift   13      mask    0xffffe000
57 fsize   2048    shift   11      mask    0xfffff800
58 frag    4       shift   2       fsbtodb 2
59 minfree 10%     maxbpg  2048    optim   time
60 maxcontig 256   rotdelay 0ms    rps     90
61 csaddr  252     cssize  2048    shift   9       mask    0xfffffe00
62 ntrak   14      nsect   72      spc     1008    ncyl    102
63 cpg     16      bpg     1008    fpg     4032    ipg     3776
64 nindir  2048    inopb   64      nspf    4
65 nbfree  1768    ndir    667     nifree  24329   nffree  9
66 cgrotor 2       fmod    0       ronly   0
67
68 So you should call:
69
70 dd if=/vol/dev/dsk/c0t6/sol_7_sparc_sun_srvr/s1 of=sun4 bs=1k count=25704
71
72 To modify this filesystem, you can mount it using the fbk driver:
73
74 chmod +t ./sun4         # Need to do this to avoid vm cache aliasing problems
75
76 mount -F fbk -o rw,type=ufs /dev/fbk0:sun4 /mnt
77