On Tue, Jun 12, 2012 at 09:30:44AM +0200, Jan Stary wrote:
> On Jun 11 19:54:21, Miod Vallat wrote:
> > > I understand that "hd" and "cd" are just devaliases; in my case,
> > > 
> > >   hd      /pci@f4000000/ata-6@d/disk@0
> > >   cd      /pci@f4000000/ata-6@d/disk@1
> > > 
> > > Does that mean that those device aliases are somehow mixed up?
> > 
> > Well, given the dmesg says...
> > 
> > > cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-R UJ-825, DAND> ATAPI 
> > > 5/cdrom removable
> > > wd0 at wdc1 channel 0 drive 1: <ST9808211A>
> > 
> > 
> > ... I'd say they are.
> > 
> > > Obviously, I would like to boot the /bsd I installed on disk.
> > > Isuppose this is an Open Firmware problem rather then an OpenBSD
> > > problem. Namely, Idon't know how to address the harddisk I installed
> > > on from within open firmware. Can someone enlighten me please?
> > 
> > Try:
> >     setenv boot-device /pci@f4000000/ata-6@d/disk@1:,ofwboot
> 
>   setenv boot-device /pci@f4000000/ata-6@d/disk@1:,ofwboot
>   boot
> 
>   MAC-PARTS: bad partition can't OPEN: /pci@f4000000/ata-6@d/disk@1:,ofwboot
>   Can't open device or file.
> 
> 
> According to devalias, the above cevice is aliased to 'cd'.
> So running this is equivalent to running
> 
>   boot cd:,ofwboot
> 
> - right? It fails the same way.
> 
> 
> I guess I need to understand how the ofwboot works.
> This is my first ppc machine, so please bare with me.
> 
> During the installation, when I select MBR partitioning,
> two partitions get created: a 1MB DOS partitition at the
> beginning of the disk, and one big OpenBSD coverning the rest.
> What is the role of this MSDOS partition? It is flagged bootable in fdisk
> - is that intended? Is this where the 'ofwboot' file is supposed to be found?
> It doesn't seem to really be an msdos partition: I cannot fsck_msdos it
> or mount_msdos it.  Could this be my problem?

The MSDOS partition must contain the ofwboot file. OpenFirmware cannot
boot from OpenBSD/ffs partitions.

If the partition does not exist or does not contain ofwboot then the
install process did not work for some reason.

On my macmini I see

$ sudo disklabel wd0
Password:
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: ST9808211A      
duid: c96b25db075011e2
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 156301488
boundstart: 3024
boundend: 156301488
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:           409248             3024  4.2BSD   2048 16384  328 # /
  b:          2097648           412272    swap                   # none
  c:        156301488                0  unused                   
  d:           409248          2509920  4.2BSD   2048 16384  328 # /tmp
  e:           409248          2919168  4.2BSD   2048 16384  328 # /var
  g:         20971440          3328416  4.2BSD   2048 16384  328 # /usr
  h:        132001631         24299856  4.2BSD   2048 16384  328 # /home
  i:             2048                1   MSDOS                   
$ sudo mount /dev/wd0i /mnt
$ ls -l /mnt
total 124
-rwxr-xr-x  1 root  wheel  63460 Jun  8 15:32 ofwboot
$ sudo fdisk wd0
Disk: wd0       geometry: 155061/16/63 [156301488 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*0: 06      0   0   2 -      2   0  33 [           1:        2048 ] DOS > 32MB  
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 3: A6      3   0   1 - 155060  15  63 [        3024:   156298464 ] OpenBSD     
$ 

What do you see?

.... Ken

Reply via email to