Subject: Re: Whoa doggies! was: sysinst changes to handle Apple Disk Partition Map
To: port-macppc <port-macppc@netbsd.org>
From: Makoto Fujiwara <makoto@ki.nu>
List: port-macppc
Date: 11/02/2002 18:53:07
I have patched the Bob Nestor's patch (being sent separately 
with uuencoded), cause the original mail was corrupted on 
the patch part.

I have applied the patch to -current cvs tree,
( -D 20021028-UTC )  and did ./build.sh to get the release(7) 
and did make under distrib/cdrom to mkisofs.

With this CDROM I did following,

(1) Use MacOS 9.2 Drive setup to partition 38G disk
          32M HFS ( not HFS+)
         200M A/UX Root
        1000M swap
        1000M A/UX Usr
       35794M A/UX Free 1
(2) Boot from cdrom burned with above release(7),
 with patched sysinst.

(3) Select 1. Install NetBSD on the startup screen,
and select wd1 to be installed.

(4)Everything went fine on sysinst, and I rebooted with
   boot cd:,ofwboot.xcf ultra1:0/netbsd

(5) It boots fine. But pdisk only shows following parts. 
---------------------------------------------------------------
ttyp0:root@quick  20:25:09/021102(/home/makoto)# pdisk /dev/wd1c
Edit /dev/wd1c -
Command (? for help): P

Partition map (with 512 byte blocks) on '/dev/wd1c'
 #:                type name       length   base       ( size )
 1: Apple_partition_map Apple           2 @ 1         
 2:       NetBSD/macppc*NetBSD 2147483647 @ 4          (1024.0G)

Device block size=512, Number of Blocks=78165360 (37.3G)
DeviceType=0x0, DeviceId=0x0
Drivers-
1:  23 @ 64, type=0x1
2:  36 @ 118, type=0xffff
3:  21 @ 192, type=0x701
4:  34 @ 246, type=0xf8ff

Command (? for help): 

The disk label shows following, and no HFS are here.

ttyp0:root@quick  20:44:38/021102(/home/makoto)# disklabel wd1
# /dev/rwd1c:
---------------------------------------------------------------
and disklabel wd1 shows following
( sysinst showed this organization and I said OK to that).
---------------------------------------------------------------
8 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:     66528         0     4.2BSD   1024  8192    90   # (Cyl.    0 - 65)
 b:   8390592     66528       swap                      # (Cyl.   66 - 8389)
 c:  78165360         0     unused      0     0         # (Cyl.    0 - 77544)
 g:  69708240   8457120     4.2BSD   1024  8192    86   # (Cyl. 8390 - 77544)
ttyp0:root@quick  20:44:45/021102(/home/makoto)# 
---------------------------------------------------------------
Did I do something wrong ?

# To read back above mail, my real question is:
# Is 'Select 1. Install NetBSD' right ?
# The target machine is G4/800 MP
---
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.