Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Mike Howard <mike@clove.com>
Subject: Re: kernel sees disk, fdisk doesn't
Date: Mon, 17 Nov 1997 11:32:28 -0500	[thread overview]
Message-ID: <148dbf07b4d7615894c2238032995cdb.axp-list@archive.invalid> (raw)

Just for the record, I have built a working, bootable Linux on an
as255 using SRM console.  This is RH 4.2 installed on /dev/sdb [not
/dev/sda].  Dec UNIX is on /dev/sda.

This has been derived via trial and error, reading this list, the
howto's and the RH doc [lame as it is].  RH tech support was no help;
they didn't even try to fake wrong answers.

Here's what I did.  Your mileage may vary.

0. buy a floppy drive.

1. Create boot and ramdisk floppies by copying the images in the
IMAGES directory of RH cdrom disk1.  use `avanti-s.img' and
`ramdisk.img'.  [the hint here is that the -s extensions refer to SRM
console.]

2. Boot the system as follows:

 a. at the srm prompt:
  >>> boot dva1

  This will boot up `aboot' in interactive mode.  You are supposed to
be able to pass parameters to aboot - and you can - but aboot has to
deduce device names and partitions and this does not always work
correctly.  I've found this is more forgiving of spelling mistakes.

 b. at the aboot prompt, boot the kernel:
  aboot: vmlinux.gz root=/dev/fd0 load_ramdisk=1 prompt_ramdisk=1

 when prompted, load the ramdisk.

 this takes you into the RH install.

3. RH install will use fdisk to partition the disk.  I found that I
could start the first partition a few cylinders in from the start of
the disk.

Important: write down the cylinder, head, and sector numbers.  I found
it convenient to change the fdisk units to blocks and write down the
fdisk table using raw block numbers.  I needed this because I had to
go back and rebuild the disk label using the BSD compatibility mode of
fdisk in order for `aboot' to be able to find things on the disk.

Question: it seems to me that you have to have BOTH an fdisk partition
table and a BSD compatible disk label on the disk in order for things
to work correctly.  Does anyone know if this is really true?

4. Finish the install.

At the end of the install, you are told to remove the floppy and
reboot the system.  This will not work.

5. Insert the floppy and boot the installed system using the floppy.

  a. at the SRM prompt:
  >>> boot dva1

  b. at the aboot prompt:
  >>> vmlinux.gz root=/dev/sdb1
 or wherever you put your system: e.g. /dev/sda1, etc.

6. Create the BSD disk label.  You do this by typing `fdisk /dev/sdb'
or `fdisk /dev/sda' or whatever.  Go to the BSD compatible section and
create your partitions.  I did it like this:

 a. changed the cylinder, head, and sectors/track numbers to match the
fdisk numbers I used.
 b. created an `unused' partition for partition `a' which spanned the
disk blocks I omitted from the `fdisk' partition table.
    created a `b' partition which spanned my Linux Native partition
    created a `c' partition which spans the whole disk - kind of a
      tradition
    created a `d' partition which spans my swap space.
  c. wrote the label to disk and exited.

This clobbers the disk geometry parameters for my `fdisk' partition
table, but it doesn't seem to matter.

7. Install the aboot package.  When I did it, the RH install did not
install aboot.  So:
  a. mount /mnt/cdrom
  b. cd /mnt/cdrom/RedHat/RPMS
  c. rpm -i aboot-0.5-1.axp.rpm

8. Install aboot using swriteboot:

Since my system is on /dev/sdb, I wrote:

 # swriteboot -f1 -f3 -v /dev/sdb /boot/bootlx /vmlinux.gz

You need the -f's in order to `force' overwriting partitions `a' and
`c'.  The -v is just so you can see the messages.

9. sync the disks and reboot.

This time, at the SRM prompt type:
  >>>boot dka1

This should boot `aboot'.  At the aboot prompt, I have to type:
  aboot: 0/vmlinux.gz root=/dev/sdb1

NOTES:

I installed vmlinux.gz in the boot block because that is the only way
aboot can find it other than on a floppy.  This is because I built an
ABNORMAL system by putting Linux on /dev/sdb.  `aboot' knows about
/dev/sda and is (supposed to be to) able to find vmlinux.gz on a
specified partition - read the aboot doc.  This doesn't work if your
system is not on /dev/sda, however - read the code.

Similarly, I have to specify where the root partition is every time.
Maybe I'll build a kernel and hack an aboot, and maybe not.

Hope this helps

-- 
Mike Howard <mike@clove.com>

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-11-17 16:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-17 16:32 Mike Howard [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-11-15 22:41 kernel sees disk, fdisk doesn't Don Kitchen
1997-11-16 14:53 ` Andreas Johansson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox