Today's Page Hits: 306
I have more hair and it isn't so grey. :->
This page validates as XHTML 1.0, and will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device. It was created using techniques detailed at glish.com/css/.
So I got the Nevada b35 image for Sparc. I really should burn it first and make sure my new DVD drives work, but I really, really want a Kanigix DVD.
I've mounted the ISO:
# lofiadm -a /isos/sparc/images/solarisdvd.iso /dev/lofi/1
# prtvtoc /dev/lofi/1
* /dev/lofi/1 (volume "lofi") partition map
*
* Dimensions:
* 512 bytes/sector
* 600 sectors/track
* 1 tracks/cylinder
* 600 sectors/cylinder
* 10961 cylinders
* 10961 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 0 01 0 6576600 6576599
# mount -F hsfs -o ro /dev/lofi/1 /isos/mnt/sparc
# ls -la /isos/mnt/sparc
total 934
dr-xr-xr-x 2 root sys 2048 Mar 6 15:32 .
drwxr-xr-x 3 tdh staff 512 Mar 17 16:35 ..
-r--r--r-- 1 root root 93 Feb 18 01:27 .cdtoc
drwxr-xr-x 5 root root 2048 Mar 6 15:32 .install
lrwxrwxrwx 1 root root 33 Mar 6 15:30 .install_config -> ./Solaris_11/Misc/.install_config
-r--r--r-- 1 root root 472 Mar 2 17:33 .slicemapfile
-r--r--r-- 1 root root 17 Mar 2 17:33 .volume.inf
-r--r--r-- 1 root root 19 Mar 6 14:23 .volume.inf.2
-r--r--r-- 1 root root 19 Mar 6 14:23 .volume.inf.3
-r--r--r-- 1 root root 19 Mar 6 14:24 .volume.inf.4
-r--r--r-- 1 root root 6851 Mar 2 17:33 Copyright
-r--r--r-- 1 root root 459760 Mar 2 17:33 JDS-THIRDPARTYLICENSEREADME
drwxr-xr-x 8 root root 2048 Mar 6 15:32 Solaris_11
-rwxr-xr-x 1 root root 257 Mar 6 14:24 installer
The first question, is what is on the slices? I tried to use prtvtoc to see that, but it was a wash. Do I have to create a DVD? No, not yet, lets check the contents of the DVD:
# cat /isos/mnt/sparc/.slicemapfile # # @(#) sparc.dot.slicemapfile 1.13@(#) # # # # a slice map file for install CD boot slices - maps platform (or not) # or karch to an install boot slice. # # entries are one of: # x "" <`uname -i`> exclude platform (must preceed "m" entries) # used if the platform is not really in a karch # p<`uname -i`> platform token entry (must preceed "m" entries) # m <`uname -m`> karch entry # m 2 sun4c m 3 sun4m m 4 sun4d m 5 sun4u m 5 sun4us m 6 sun4v
So, I already know that grub is not being used and I need to pull out slice information to get this to work. But unlike the x86 case, I've got a lot of relevant literature to fall back on.
One thing which might save me are some modifications to mkisofs. Look in these newsgoup articles for comp.unix.solaris:
I'd really love to pull the slice information off the ISO and not burn a copy.
And google is great. So, here is Jumpstart server from ISO’s. Lets see if we can get it to work. That process only does slice 0 and we want the ones for the different architectures, so on to Cyril Plisko's sextract v0.2.
Well, it turns out that sextract is not large file aware. I.e., I'm sure it works okay on CDs, but not DVDs. I hate extending other people's code - especially if I've never worked with them before.
The first 512 bytes of the ISO have all of the information I need. I need to think about other ways to pull this apart. Hmm, you know, I could just suck down the first b35 CD. It has all of the information I need. Remember, the DVD is just a cat of the 4-5 CDs.
Okay, that worked. One thing that doesn't come across is there is a 30 minute gap between each sentance above and a couple of hours between paragraphs. And I have no clue if this will work.
ultralord:> ~/sextract-0.2/sextract -1 solaris_1.iso Time spent in user mode (CPU seconds) : 0.00s Time spent in kernel mode (CPU seconds) : 15.32s Total time : 2:16.63s CPU utilisation (percentage) : 11.2% ultralord:> ~/sextract-0.2/sextract -2 solaris_1.iso ultralord:> ls -la total 8904282 drwxr-xr-x 2 tdh staff 512 Mar 17 22:30 . drwxr-xr-x 3 tdh staff 512 Mar 17 15:58 .. -rw-r--r-- 1 tdh staff 459407360 Mar 17 22:30 s1 -rw-r--r-- 1 tdh staff 1310720 Mar 17 22:30 s2 -rwxr-xr-x 1 tdh staff 728760320 Mar 17 22:20 solaris_1.iso -rwxr-xr-x 1 tdh staff 3367239680 Mar 17 16:12 solarisdvd.iso ultralord:> ~/sextract-0.2/sextract -3 solaris_1.iso ultralord:> ~/sextract-0.2/sextract -4 solaris_1.iso ultralord:> ~/sextract-0.2/sextract -5 solaris_1.iso ultralord:> ~/sextract-0.2/sextract -6 solaris_1.iso ultralord:> ls -la total 8914586 drwxr-xr-x 2 tdh staff 512 Mar 17 22:31 . drwxr-xr-x 3 tdh staff 512 Mar 17 15:58 .. -rw-r--r-- 1 tdh staff 459407360 Mar 17 22:30 s1 -rw-r--r-- 1 tdh staff 1310720 Mar 17 22:30 s2 -rw-r--r-- 1 tdh staff 1310720 Mar 17 22:30 s3 -rw-r--r-- 1 tdh staff 1310720 Mar 17 22:30 s4 -rw-r--r-- 1 tdh staff 1310720 Mar 17 22:30 s5 -rw-r--r-- 1 tdh staff 1310720 Mar 17 22:31 s6 -rwxr-xr-x 1 tdh staff 728760320 Mar 17 22:20 solaris_1.iso -rwxr-xr-x 1 tdh staff 3367239680 Mar 17 16:12 solarisdvd.iso
Lets build up the work area:
[tdh@ultralord ~]> sudo su - Sun Microsystems Inc. SunOS 5.10 Generic January 2005 # cd /isos/mnt/sparc # # find . -depth -print | cpio -pudm /export/home/tdh/kanigix
Lets burn that puppy!
# mkisofs -R -d -L -l -r -D -U -sparc-boot s1,s2,s3,s4,s5,s6 -o kanigix_sp.iso # /export/home/tdh/kanigix mkisofs: The option '-L' is reserved by POSIX.1-2001. mkisofs: The option '-L' means 'follow all symbolic links'. mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'. mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior. Warning: creating filesystem that does not conform to ISO-9660. ...Warnings about name translations... 2.79% done, estimate finish Fri Mar 17 23:33:00 2006 3.04% done, estimate finish Fri Mar 17 23:33:42 2006 ... 87.95% done, estimate finish Fri Mar 17 23:39:41 2006 88.20% done, estimate finish Fri Mar 17 23:39:41 2006 Total translation table size: 0 Total rockridge attributes bytes: 13599688 Total directory bytes: 107595776 Path table size(bytes): 777940 Total extents including sparc boot = 1972640 Max brk space used 7c28000 1972790 extents written (3853 MB) # ls -la *iso -rw-r--r-- 1 root root 4040273920 Mar 17 23:40 kanigix_sp.iso -rwxr-xr-x 1 tdh staff 3367239680 Mar 17 16:12 solarisdvd.iso # cdrw -d /cdrom/cdrom -i kanigix_sp.iso Cannot find device /cdrom/cdrom. No CD writers found or no media in the drive. # cdrw -d /dev/rdsk/c0t2d0 -i kanigix_sp.iso Cannot find device /dev/rdsk/c0t2d0. No CD writers found or no media in the drive. # cdrw -d /dev/rdsk/c0t2d0 -i kanigix_sp.iso Cannot find device /dev/rdsk/c0t2d0. No CD writers found or no media in the drive. # cdrw -i kanigix_sp.iso Looking for CD devices... Initializing device...done. Preparing to write DVD Writing track 1....done. Finalizing (Can take several minutes)...done. ultralord:> df | grep cdrom /cdrom/cdrom/s6 (/vol/dev/dsk/c0t2d0/cdrom/s6): 58 blocks 7676 files /cdrom/cdrom/s5 (/vol/dev/dsk/c0t2d0/cdrom/s5): 58 blocks 7676 files /cdrom/cdrom/s4 (/vol/dev/dsk/c0t2d0/cdrom/s4): 58 blocks 7676 files /cdrom/cdrom/s3 (/vol/dev/dsk/c0t2d0/cdrom/s3): 58 blocks 7676 files /cdrom/cdrom/s2 (/vol/dev/dsk/c0t2d0/cdrom/s2): 58 blocks 7676 files /cdrom/cdrom/s1 (/vol/dev/dsk/c0t2d0/cdrom/s1): 42264 blocks 194343 files /cdrom/cdrom/s0 (/vol/dev/dsk/c0t2d0/cdrom/s0): 0 blocks 0 files
I think this is fragged. Well, I did read an entry which said I would see the slices. Time to reboot. And I'm glad to be at least partly, if not fully, wrong!
ok boot cdrom Resetting ... Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz), No Keyboard OpenBoot 3.31, 512 MB (60 ns) memory installed, Serial #10934813. Ethernet address 8:0:20:a6:da:1d, Host ID: 80a6da1d. Rebooting with command: boot cdrom Boot device: /pci@1f,0/pci@1,1/ide@3/cdrom@2,0:f File and args: SunOS Release 5.11 Version snv_35 64-bit Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Well at least sandman can boot off of it! The install is going fine as well.
So, I wasn't that big of The Ramones fan growing up - just a tad too young and they didn't do MTV very well. I did buy Loud, Fast Ramones: Their Toughest Hits on a lark for my iPod Nano.
So I'm zoning out to We're A Happy Family:
"We're A Happy Family" We're a happy family We're a happy family We're a happy family Me mom and daddy Siting here in Queens Eating refried beans We're in all the magazines Gulpin' down thorazines We ain't got no friends Our troubles never end No Christmas cards to send Daddy likes men Daddy's telling lies Baby's eating flies Mommy's on pills Baby's got the chills I'm friends with the President I'm friends with the Pope We're all making a fortune Selling Daddy's dope
Perhaps it is the ability to stand apart from the times, but the line "Daddy likes men" had to be a bombshell at the time. You still have to be pretty subtle about homosexuality and that must have been considered very socially deviant.
The title is to help people searching for this topic area. I found a lot of good resources up in the Sun Blueprints for creating a Jumpstart CD/DVD for both Sparc and x86 systems. However, they are not geared towards the new grub offerings.
There are other blueprints which might apply and I'm sure John Howard will provide an update. But, in the meantime, if you want to create an x86 based Jumpstart CD/DVD and it is a grub based install media, then you can follow the instructions I provided to cooking up Kanigix.
I want to script it up, but for now, the key material comes from Kanigix - An experiment in packaging 5. You might have to scan back in the blog entries to figure out how I did some steps.
I'd like to say I don't want to burn 5 CDs per drop of Nevada, but the reality is that I could mount the ISO images and netboot. No, I want the DVDs such that I can test burning my own Sparc DVD distros. I went ahead and got DVD drives from NewEgg.com.
The Ultra 10 was easy to modify, the only difficulty was attaching the IDE cable. It is a tight fit and I had to apply some light.
The Ultra 5 was much harder. I had to pull the floppy drive out, and then the inner most screw could not be reached by a nornmal screwdriver. I suppose I could have pulled the cage out - but instead I used a small ratchet screwdriver I've had for ages.
So the original CD drive was labled as being made in 1998. It was a good 3/4" longer than the replacement and smoothly rectangular. The replacement didn't want to go in. I checked and both the height and width were acceptable. It just stuck like there was a serious blockage. I was able to easily replace the orginal, so it wasn't some latch I didn't know about. What I had to do was pull up on the newer drive as I inserted it.
Both drives can read a DVD - I'll check installing from them as soon as I construct a Sparc version of Kanigix.
I had a shipment coming in from NewEgg.com and I thought it would be here today. Wrong, it showed up last night:
Track Order Tracking number 1Z04WF350336XXXXX Date/Time Status State City 03/16/2006 17:51:00 DELIVERED[D] OK TULSA 03/15/2006 18:59:00 UNLOAD SCAN[I] OK OKLAHOMA CITY 03/15/2006 14:43:00 ARRIVAL SCAN[I] OK OKLAHOMA CITY 03/15/2006 03:51:00 DEPARTURE SCAN[I] TN MEMPHIS 03/14/2006 18:51:00 ORIGIN SCAN[I] TN MEMPHIS 03/14/2006 16:18:50 BILLING INFORMATION RECEIVED[M]
We were all out at soccer practice. The box sat there overnight. We come in the garage on those nights. Here is what it looked like this morning:
The contents look okay, mainly DVD drives for my Sparc boxes. But if this had been hard drives or expensive, I would be a bit more upset.
So I found a couple of really interesting reads:
I have the last two because I'm getting smarter about what is going on. I read the first and thought, "Wait, what about grub?" Sure enough, I'm pretty sure grub complicates things. Lets look at the root of the Nevada b35 DVD:
# ls -la total 946 dr-xr-xr-x 2 root sys 4096 Mar 6 15:24 . drwxr-xr-x 3 root nobody 512 Mar 16 21:30 .. -r--r--r-- 1 root root 2048 Mar 6 15:25 .catalog -r--r--r-- 1 root root 92 Feb 18 01:27 .cdtoc dr-xr-xr-x 5 root root 2048 Mar 6 15:24 .install lr-xr-xr-x 1 root root 33 Mar 6 15:23 .install_config -> ./Solaris_11/Misc/.install_config -r--r--r-- 1 root root 419 Mar 2 17:33 .slicemapfile -r--r--r-- 1 root root 15 Mar 2 17:33 .volume.inf -r--r--r-- 1 root root 17 Mar 6 14:34 .volume.inf.2 -r--r--r-- 1 root root 17 Mar 6 14:36 .volume.inf.3 -r--r--r-- 1 root root 17 Mar 6 14:37 .volume.inf.4 -r--r--r-- 1 root root 6851 Mar 2 17:33 Copyright -r--r--r-- 1 root root 459760 Mar 2 17:33 JDS-THIRDPARTYLICENSEREADME dr-xr-xr-x 8 root root 2048 Mar 6 15:24 Solaris_11 dr-xr-xr-x 3 root root 2048 Mar 6 15:24 boot -r-xr-xr-x 1 root root 257 Mar 6 14:37 installer
And lets now look at the root of a Solaris 10 CD. I think this was the first official release:
[tdh@adept cdrecorder]> ls -la total 1911 drwxr-xr-x 3 root bin 2048 Jan 22 2005 . drwxr-xr-x 3 root root 4096 Mar 15 00:29 .. -rw-r--r-- 2 root bin 1474560 Jan 22 2005 .bootimage -r--r--r-- 1 root bin 2048 Jan 22 2005 .catalog -r--r--r-- 2 root root 87 Jan 6 2005 .cdtoc -r--r--r-- 2 root root 6308 Jan 6 2005 Copyright lrwxrwxrwx 1 root bin 33 Jan 22 2005 .install_config -> ./Solaris_10/Misc/.install_config -r--r--r-- 2 root root 459760 Jan 6 2005 JDS-THIRDPARTYLICENSEREADME -r--r--r-- 2 root root 419 Jan 6 2005 .slicemapfile drwxr-xr-x 7 root root 2048 Jan 22 2005 Solaris_10 -r--r--r-- 2 root root 19 Jan 6 2005 .volume.inf [tdh@adept cdrecorder]> more .slicemapfile # # @(#) i386.dot.slicemapfile 1.4@(#) # # # # a slice map file for install CD boot slices - maps platform (or not) # or karch to an install boot slice. # # entries are one of: # x "" <`uname -i`> exclude platform (must preceed "m" entries) # used if the platform is not really in a karch # p<`uname -i`> platform token entry (must preceed "m" entries) # m <`uname -m`> karch entry # m 0 i86pc
If you've been paying attention, you might realize that adept is my Linux desktop. If I put this CD in wont, my Nevada b35 system, it will consistently panic. I've got a core file to submit a bug later.
Right off the bat, we can see that the Solaris 10 system has a .bootimage file and the Nevada b35 does not. According to Creating a Customized Boot CD/DVD for the Solaris Operating System for x86 Platforms, there should be a .bootimage file. Since there is not, I'm going to skip the experiment of creating one.
I think I've got to use installgrub to make the DVD bootable.
I think my options are to either:
I've done a lot of googling and I should have gone to the source: Making a GRUB bootable CD-ROM. And I can find the stage2_eltorito file here:
# cd /boot/grub/ # ls -la total 1246 drwxr-xr-x 3 root sys 512 Mar 16 00:08 . drwxr-xr-x 5 root sys 512 Mar 16 00:08 .. drwxr-xr-x 2 root sys 512 Mar 15 23:33 bin -r--r--r-- 1 root sys 10 Mar 3 15:11 default -rw-r--r-- 1 root sys 8500 Mar 3 15:11 e2fs_stage1_5 -rw-r--r-- 1 root sys 8228 Mar 3 15:11 fat_stage1_5 -rw-r--r-- 1 root sys 7508 Mar 3 15:11 ffs_stage1_5 -rw-r--r-- 1 root sys 496 Mar 3 15:11 install_menu -rw-r--r-- 1 root sys 7608 Mar 3 15:11 iso9660_stage1_5 -rw-r--r-- 1 root sys 8996 Mar 3 15:11 jfs_stage1_5 -rw-r--r-- 1 root sys 1633 Mar 16 00:08 menu.lst -rw-r--r-- 1 root sys 7700 Mar 3 15:11 minix_stage1_5 -rw-r--r-- 1 root sys 118288 Mar 3 15:11 nbgrub -rw-r--r-- 1 root sys 119312 Mar 3 15:11 pxegrub -rw-r--r-- 1 root sys 9940 Mar 3 15:11 reiserfs_stage1_5 -rw-r--r-- 1 root sys 8772 Mar 3 15:11 splash.xpm.gz -rw-r--r-- 1 root sys 512 Mar 3 15:11 stage1 -rw-r--r-- 1 root sys 118896 Mar 3 15:11 stage2 -rw-r--r-- 1 root sys 118896 Mar 3 15:11 stage2_eltorito -rw-r--r-- 1 root sys 7784 Mar 3 15:11 ufs2_stage1_5 -rw-r--r-- 1 root sys 7380 Mar 3 15:11 ufs_stage1_5 -rw-r--r-- 1 root sys 7124 Mar 3 15:11 vstafs_stage1_5 -rw-r--r-- 1 root sys 9820 Mar 3 15:11 xfs_stage1_5
Note: From the BigAdmin articles, I want to use Sun supplied files, they have made changes to grub which may not yet be back-ported.
# mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -R -d -L -l -r -D -U -boot-info-table -o /isos/kanigix.iso /kanigix Using ".mkisofsrc" mkisofs: The option '-L' is reserved by POSIX.1-2001. mkisofs: The option '-L' means 'follow all symbolic links'. mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'. mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior. Warning: creating filesystem that does not conform to ISO-9660. Using TopicSelectors$Subscri000.class for /kanigix/Solaris_11/Product/SUNWiqdoc/reloc/usr/demo/imq/jms/TopicSelectors$Subscriber$MultipleListener.class (TopicSelectors$Subscriber.class) Using MessageHeadersTopic$He000.class for /kanigix/Solaris_11/Product/SUNWiqdoc/reloc/usr/demo/imq/jms/MessageHeadersTopic$HeaderPublisher.class (MessageHeadersTopic$HeaderSubscriber.class) Using DurableSubscriberExamp000.class for /kanigix/Solaris_11/Product/SUNWiqdoc/reloc/usr/demo/imq/jms/DurableSubscriberExample$1.class (DurableSubscriberExample$DurableSubscriber$TextListener.class) Using DurableSubscriberExamp001.class for /kanigix/Solaris_11/Product/SUNWiqdoc/reloc/usr/demo/imq/jms/DurableSubscriberExample$DurableSubscriber$TextListener.class (DurableSubscriberExample$DurableSubscriber.class) Using DurableSubscriberExamp002.class for /kanigix/Solaris_11/Product/SUNWiqdoc/reloc/usr/demo/imq/jms/DurableSubscriberExample$DurableSubscriber.class (DurableSubscriberExample$MultiplePublisher.class) Using AsynchTopicExample$Asy000.class for /kanigix/Solaris_11/Product/SUNWiqdoc/reloc/usr/demo/imq/jms/AsynchTopicExample$AsynchSubscriber$TextListener.class (AsynchTopicExample$AsynchSubscriber.class) Using AckEquivExample$Asynch000.class for /kanigix/Solaris_11/Product/SUNWiqdoc/reloc/usr/demo/imq/jms/AckEquivExample$AsynchSubscriber$TextListener.class (AckEquivExample$AsynchSubscriber.class) Using NamedPipeSocketFactory000.class for /kanigix/companion/Solaris_sparc/components/sparc/Packages/SFWmyjdb/reloc/sfw/mysql/share/jdbc/com/mysql/jdbc/NamedPipeSocketFactory$RandomAccessFileOutputStream.class (NamedPipeSocketFactory$RandomAccessFileInputStream.class) Using NamedPipeSocketFactory000.class for /kanigix/companion/Solaris_x86/components/i386/Packages/SFWmyjdb/reloc/sfw/mysql/share/jdbc/com/mysql/jdbc/NamedPipeSocketFactory$RandomAccessFileOutputStream.class (NamedPipeSocketFactory$RandomAccessFileInputStream.class) Size of boot image is 4 sectors -> No emulation 3.30% done, estimate finish Thu Mar 16 23:49:50 2006 3.60% done, estimate finish Thu Mar 16 23:50:25 2006 3.90% done, estimate finish Thu Mar 16 23:50:55 2006 4.20% done, estimate finish Thu Mar 16 23:50:57 2006 4.50% done, estimate finish Thu Mar 16 23:51:21 2006 4.80% done, estimate finish Thu Mar 16 23:51:21 2006 ... 99.82% done, estimate finish Thu Mar 16 23:55:21 2006 Total translation table size: 2048 Total rockridge attributes bytes: 12099008 Total directory bytes: 106348544 Path table size(bytes): 772046 Max brk space used 6aba000 1667923 extents written (3257 MB) # ls -la /isos/kanigix.iso -rw-r--r-- 1 root root 3415906304 Mar 16 23:55 /isos/kanigix.iso
Okay, it booted - which is what I wanted to accomplish. Lets see if it will install. I've gotten it past doing the layout of the disk and now it is putting packages on. The key will be some of the Java class stuff, i.e., the translation warnings I got from mkisofs.
And it installed and then booted again. (Next goal is to be able to install the Solaris Software Companion Stuff before this reboot.) Hmm, I guess I also need to get some branding in place.
So the Solaris Software Companion bits are installing okay. My next step is to put together a script to automate this creation. I'll be putting that up on kanigix.org. By the way, the DVD has fancy artwork - I'll try to capture an image with the diffuse day light sometime in the day.