Express ufsboot

Express ufsboot

Post by Beard » Sat, 24 Jan 2004 16:00:00



OK, every experienced Solaris Sysadmin has a weak moment. My turn...

I am trying to get SX 01/04 to boot an Ultra 1 using Rainer's suggestion
that only the kernel source for ufsboot and inetboot does the checking
for UltraSPARCI and rejects it.

I downloaded the SX 01/04 ISO's and wanted to freak in the ufsboot from
11/03 (b44) to create a UltraSPARCI-friendly b48. Lofiadm went OK and
HSFS mount, but couldn't find the way to s1.

I know I am an idiot, but how can I get to ufsboot in this image?

Apols for the stoopidity :-(

(I suspect that Joerg may have the answer...)

BTW: If this is all crap, please flame me - I deserve it and its only
06:55 from the night before ;-)

 
 
 

Express ufsboot

Post by Peter Bunclar » Sat, 24 Jan 2004 16:42:31



> OK, every experienced Solaris Sysadmin has a weak moment. My turn...

> I am trying to get SX 01/04 to boot an Ultra 1 using Rainer's
> suggestion that only the kernel source for ufsboot and inetboot does
> the checking for UltraSPARCI and rejects it.

> I downloaded the SX 01/04 ISO's and wanted to freak in the ufsboot
> from 11/03 (b44) to create a UltraSPARCI-friendly b48. Lofiadm went OK
> and HSFS mount, but couldn't find the way to s1.

> I know I am an idiot, but how can I get to ufsboot in this image?

> Apols for the stoopidity :-(

> (I suspect that Joerg may have the answer...)

> BTW: If this is all crap, please flame me - I deserve it and its only
> 06:55 from the night before ;-)
> This should help:

http://www.docbert.org/Solaris/Jumpstart/Sol9/Sol9EA-iso.html

Pete.

 
 
 

Express ufsboot

Post by Thomas Na » Sat, 24 Jan 2004 18:27:59


| OK, every experienced Solaris Sysadmin has a weak moment. My turn...
|
| I am trying to get SX 01/04 to boot an Ultra 1 using Rainer's suggestion
| that only the kernel source for ufsboot and inetboot does the checking
| for UltraSPARCI and rejects it.
|
| I downloaded the SX 01/04 ISO's and wanted to freak in the ufsboot from
| 11/03 (b44) to create a UltraSPARCI-friendly b48. Lofiadm went OK and
| HSFS mount, but couldn't find the way to s1.
|
| I know I am an idiot, but how can I get to ufsboot in this image?
|
| Apols for the stoopidity :-(
|
| (I suspect that Joerg may have the answer...)
|
| BTW: If this is all crap, please flame me - I deserve it and its only
| 06:55 from the night before ;-)
|

I attached a little perl script which splits the ISO image of CD1 into
slices s0 s1 ... Quick and dirty but works ok for me. The single argument
is the name of the ISO image file. This one _ONLY_ works for SPARC images

Hope that helps,

Thomas

----- snip ----- snip ----- snip ----- snip ----- snip ----- snip -----

#!/usr/bin/perl

# setup unbuffered output and some constants
select(STDOUT); $| = 1;
$unit = 512;
$copyjunk = 1024*1024;

# open image and skip unneeded stuff at the beginning
open(INPUT, "<$ARGV[0]") || die "cannot open $ARGV[0]\n";
seek(INPUT, 0x1b0, SEEK_SET);
read(INPUT, $buf, 8);

# get geometry
($cyl, $acyl, $head, $sec) = unpack('SSSS', $buf);

# get partition info
for $p (0..7) {
        seek(INPUT, 0x1bc +8 * $p, SEEK_SET);
        read(INPUT, $buf, 8);
        ($tf, $first, $size) = unpack('SSI', $buf);
        $first *= ($head *$sec);
        next unless ($size);

        $file = "s$p";
        if (-f $file) {
                print STDERR "file $file already exists; skipped...\n";
                next;
        }

        if (!open(OUT, ">$file")) {
                print STDERR "cannot open $file for writing; skipped...\n";
                next;
        }
        print "writing $file ";
        seek(INPUT, $first *$unit, SEEK_SET);
        $size *= $unit;
        while ($size) {
                print ".";
                $length = ($size > $copyjunk ? $copyjunk : $size);
                read(INPUT, $buf, $length);
                syswrite(OUT, $buf, $length);
                $size -= $length;
        }
        print "\n";
        close(OUT);

Quote:}

close(INPUT);

----- snip ----- snip ----- snip ----- snip ----- snip ----- snip -----

-----------------------------------------------------------------
PGP fingerprint: B1 EE D2 39 2C 82 26 DA  A5 4D E0 50 35 75 9E ED
Phone:           +49 731 50 22464
FAX:             +49 731 50 22471

 
 
 

Express ufsboot

Post by Scott Howar » Sat, 24 Jan 2004 19:02:29



> http://www.docbert.org/Solaris/Jumpstart/Sol9/Sol9EA-iso.html

Now also available as Sun SRDB 50566 at
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsrdb%2F50566

  Scott