Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Installing and booting and OF3 machine from a single empty internal disk, not working
Cool!
>acruhl%gmail.com@localhost wrote:
>
>> I've been working on finding a way to get the install CD to properly
>> prepare an internal disk so it will automatically boot (with the
>> proper firmware boot command, of course) on an OF3 machine. The goal
>> is to be able to have an OF3 Mac with an install CD and end up with a
>> working, booting NetBSD OS.
>>
>> I may not be smart enough about the bootstrap process for OF3 Macs in
>> order to do this, especially with an MSDOS partition, so I'll just say
>> what I've done and see if anyone can help. I'm not finding a lot of
>> info about the exact boot process these Macs use.
>
>With the following labels, my Mac G4 AGP
>http://www.everymac.com/systems/apple/powermac_g4/stats/powermac_g4_400_agp.html
>can load ofwboot.xcf from MSDOSFS (FAT16) on wd1 disk
>and a kernel in wd1a boots fine. (wd0 disk still has MacOS)
>
>---
># uname -mrs
>NetBSD 5.0.1 macppc
># fdisk wd1
>Disk: /dev/rwd1c
>NetBSD disklabel disk geometry:
>cylinders: 38752, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
>total sectors: 39062500
>
>BIOS disk geometry:
>cylinders: 1024, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
>total sectors: 39062500
>
>Partition table:
>0: Primary 'big' DOS, 16-bit FAT (> 32MB) (sysid 6)
> start 63, size 48132 (24 MB, Cyls 0-2), Active
>1: NetBSD (sysid 169)
> start 48195, size 39014305 (19050 MB, Cyls 3-2431/134/43)
> PBR is not bootable: Bad magic number (0x5320)
>2: <UNUSED>
>3: <UNUSED>
>First active partition: 0
>Drive serial number: 527541069 (0x1f71a34d)
># disklabel wd1
># /dev/rwd1c:
>type: ESDI
>disk: WDC WD200BB-75CA
>label: fictitious
>flags:
>bytes/sector: 512
>sectors/track: 63
>tracks/cylinder: 255
>sectors/cylinder: 16065
>cylinders: 2431
>total sectors: 39062500
>rpm: 3600
>interleave: 1
>trackskew: 0
>cylinderskew: 0
>headswitch: 0 # microseconds
>track-to-track seek: 0 # microseconds
>drivedata: 0
>
>8 partitions:
># size offset fstype [fsize bsize cpg/sgs]
> a: 37752750 48195 4.2BSD 1024 8192 16 # (Cyl. 3 - 2352)
> b: 1261555 37800945 swap # (Cyl. 2353 -
> 2431*)
> c: 39062500 0 unused 0 0 # (Cyl. 0 -
> 2431*)
> e: 48132 63 MSDOS # (Cyl. 0*- 2)
># df /
>Filesystem 1K-blocks Used Avail %Cap Mounted on
>/dev/wd1a 18582244 575472 17077660 3% /
># mount /dev/wd1e /mnt
># ls -l /mnt
>-r-xr-xr-x 1 root wheel 59704 Nov 23 01:50 ofwboot.xcf
>#
>---
>
>IIRC, I created MSDOSFS by "newfs_msdos -s 48132 /dev/rwd1e".
>
>Boot messages (mostly typed from screen) are following.
>Note actual typed boot command is "boot ultra1:,ofwboot.xcf -c".
>(-c is specified to pause boot to read messages)
>---
>
>Apple PowerMac3,3 3.4f1 BootROM built on 08/08/00 at 22:02:19
>Copyright 1994-2000 Apple Computer, Inc.
>All Rights Reserved.
>
>Welcome to Open Firmware.
>To continue booting, type "mac-boot" and press return.
>To shut down, type "shut-down" and press return.
>
> ok
>0 > boot ultra1:,ofwboot.xcf -c load-size=e938 adler32=a43122e3
>
>loading XCOFF
>
>tsize=e5f0 dsize=268 bsize=2b30 entry=e00000
>SECTIONS:
>.text 00e00000 00e00000 0000e5f0 000000e0
>.data 00e0f000 00e0f000 00000268 0000e6d0
>.bss 00e0f268 00e0f268 00002b30 00000000
>loading .text, done..
>loading .data, done..
>clearing .bss, done..
>
>>> NetBSD/macppc OpenFirmware Boot, Revision 1.11
>>> (build%b4.netbsd.org@localhost, Fri Mar 20 13:43:57 UTC 2009)
>6980168+353928 [332464+316260]=0x79d2d8
> start=0x100000
>defaulting to USB...console keyboard type: USB
>Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
> 2006, 2007, 2008, 2009
> The NetBSD Foundation, Inc. All rights reserved.
>Copyright (c) 1982, 1986, 1989, 1991, 1993
> The Regents of the University of California. All rights reserved.
>
>NetBSD 5.0.1 (GENERIC) #0: Wed Jul 29. 22:01:27 UTC 2009
>
> :
>
>wdc0 at obio0 offset 0x1f000 irq 19, level triggered: DMA transfer
>atabus0 at wdc0 channel 0
>wdc1 at obio0 offset 0x20000 irq 20, level triggered: DMA transfer
>atabus1 at wdc1 channel 0
>wdc2 at obio0 offset 0x21000 irq 21, level triggered: DMA transfer
>atabus2 at wdc2 channel 0
>
> :
>
>wd0 at atabus0 drive 0: <IBM-DTLA-305020>
>wd0: drive supports 16-sector PIO transfers, LBA addressing
>wd0: 19623 MB, 39870 cyl, 16 head, 63 sec, 512 bytes/sect x 40188960 sectors
>wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
>wd1 at atabus0 drive 1: <WDC WD200BB-75CAA0>
>wd1: drive supports 16-sector PIO transfers, LBA addressing
>wd1: 19073 MB, 38752 cyl, 16 head, 63 sec, 512 bytes/sect x 39062500 sectors
>wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
>wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
>(using DMA)
>wd1(wdc0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
>(using DMA)
>
> :
>
>atapibus0 at atabus1: 2 targets
>cd0 at atapibus0 drive 0: <HITACHI DVD-ROM GD-7000, , 016J> cdrom removable
>cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
>cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA)
>Kernelized RAIDframe activated
>boot device: wd1
>root on wd1a dumps on wd1b
>root file system type: ffs
>
>---
>Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index