[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changing boot order in OBP.



Thanks.

On 21/11/2007, Sébastien Bernard <seb@frankengul.org> wrote:
> Chris Andrew a écrit :
> > Thanks, Sébastien,
> >
> > I managed to boot the Linux partition by typing:
> >
> > boot disk1
> >
> > I'm a little confused at the moment with OBP/ show-disks/ devalias/ nvalias.
> >
> > If anyone could take me through this step-by-step, I'd really appreciate it.
> >
> > Cheers,
> >
> > Chris.
> >
> > On 21/11/2007, Sébastien Bernard <seb@frankengul.org> wrote:
> >> Chris Andrew a écrit :
> >>> Hi, all.
> >>>
> >>> My Sparcstation is booting from the 2nd HDD, anyone remember how to
> >>> set OBP to boot from first disk?
> >>>
> >>> Cheers,
> >>>
> >>> Chris.
> >>>
> >> Stop-a during boot (or send a break on serial-line)
> >>
> >> setenv boot disk
> >>
> >> printenv to check the env variable is correctly set
> >>
> >>
> >
> >
> Get a obp manual for yourself.
>
> Quickly,
> the obp sets a number of alias for all the devices of the openprom tree (which lists all devices).
> Those are seen with devalias.
>
> in the list you should get something like :
>         disk /pci@4000/scsi@6...
>
> Those are convenient aliases to use instead of the Openprom path.
> The path says :
>         The pci controler at adress 4000 on which is the scsi at the pci address xxxx on which the channel is 6, the target is 3 and the
> lun is 0 is the device you must use when someone use the name disk.
>
> If you see the devaliases, you should see that there are several disk defined :
>         disk0, disk1, disk etc...
>
> disk means the current disk.
> disk0 means the first disk, disk1 the second, etc...
>
> but you can define the alias to point to any device. use nvedit to change the aliases. The editor is quite terrible.
> And set the use-nvramrc? parameter to 1.
>
> Last you can gives the boot disk:f which means the 6th partition on the disk.
>
> See the obp manual for further explanation.
>
>         Seb
>


-- 
Reasons why you may want to try GNU/Linux:

http://www.getgnulinux.org/

A great GNU/Linux distro:

http://wiki.gnewsense.org/



Reply to: