Port-macppc archive

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

Re: installing 8.1rc1 on mac mini fails



oskar%fessel.org@localhost wrote:

> So how do I format the needed hfs partition without being able to
> install hformat and hcopy from pkgsrc?
> 
> My attempts to cross-compile on amd64 failed while build.sh
> distribution.  Is there a static build of hfsutils for macppc
> available?  If so, where?

Mini's OFW groks FAT, which you can also mount in netbsd normally.
Just don't use Apple partitioning at all(!), make it plain MBR.
E.g. from my test mini:

$ fdisk 
Disk: /dev/rwd0c
[...]
Partition table:
0: Primary DOS with 32 bit FAT (sysid 11)
    start 63, size 4195233 (2048 MB, Cyls 0-261/36/63)
1: NetBSD (sysid 169)
    start 4195296, size 191176272 (93348 MB, Cyls 261/37/1-12161/80/63)
        PBR is not bootable: Bad magic number (0x7365)
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)

$ disklabel wd0
[...]
16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 182787696   4195296     4.2BSD   2048 16384     0  # (Cyl.   4162 - 185498)
 b:   8388576 186982992       swap                     # (Cyl. 185499 - 193820)
 c: 195371568         0     unused      0     0        # (Cyl.      0 - 193820)
 h:   4195233        63      MSDOS                     # (Cyl.      0*-   4161)

$ mount | grep /boot
/dev/wd0h on /boot type msdos (local)
$ ls /boot/
ofwboot      ofwboot.xcf  ofwnew.xcf   ofwxxx.xcf
ofwboot.elf  ofwnew.elf   ofwxxx.elf

$ eeprom 2> /dev/null | grep 'boot-\(command\|device\)'
boot-device=hd:,\ofwboot.elf
boot-command=." hello" cr " screen" output boot

-uwe



Home | Main Index | Thread Index | Old Index