On Sun, Nov 04, 2007 at 10:46:28PM +0800, Koh Choon Lin wrote:
> Hi everyone!
>
> Anyone has a success story on installing OBSD on MacBook or MB Pro?
I finally got around to futzing with this after upgrading to 10.5 on my MacBook
Pro. The last time I reinstalled OS 10.4, I created a 2nd partition of type
FAT32 just in case I decided to try OpenBSD on this laptop. The gist of the
process is quite simple, assuming you have the extra partition available. If
not, use BootCamp.
* Install rEFIt within OS X
* Boot into OpenBSD install CD
* When asked if you want to use the whole disk, say "no"
* In fdisk, edit partition 3 and change to A6 (OpenBSD)
* Quit/save changes
* In disklabel, simply do an [a]dd for your root and swap partitions.
In my case, I ended up with a (/), b (swap), c (whole disk), i (EFI),
and j (OS X).
* Continue on as normal...
# sysctl hw
hw.machine=amd64
hw.model=Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz
hw.ncpu=2
hw.byteorder=1234
hw.physmem=2131267584
hw.usermem=2131259392
hw.pagesize=4096
hw.disknames=cd0,wd0
hw.diskcount=2
hw.sensors.cpu0.temp0=63.00 degC
hw.sensors.cpu1.temp0=63.00 degC
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpibat0.volt0=11.10 VDC (voltage)
hw.sensors.acpibat0.volt1=12.11 VDC (current voltage)
hw.sensors.acpibat0.watthour0=45.77 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=0.25 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.10 Wh (low capacity)
hw.sensors.acpibat0.watthour3=26.59 Wh (remaining capacity), OK
hw.sensors.acpibat0.raw0=2 (battery charging), OK
hw.sensors.acpibat0.raw1=62 (rate)
hw.cpuspeed=2327
hw.setperf=100
hw.vendor=Apple Computer, Inc.
hw.product=MacBookPro2,2
hw.version=1.0
hw.serialno=W86460E0X6B
hw.uuid=29649bed-2e50-5c42-b76e-2ece64dd7e6c
# dmesg
OpenBSD 4.2-current (GENERIC.MP) #0: Mon Nov 5 23:37:35 EST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2131267584 (2032MB)
avail mem = 2058149888 (1962MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (40 entries)
bios0: vendor Apple Inc. version "MBP22.88Z.00A5.B07.0708131242" date 08/13/07
bios0: Apple Computer, Inc. MacBookPro2,2
acpi0 at mainbus0: rev 0
acpi0: tables DSDT HPET APIC MCFG ASF! SBST ECDT FACP SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) PXS1(S4) PXS2(S4) USB1(S3) USB2(S3)
USB3(S3) USB4(S3) USB7(S3) EC__(S3)
acpitimer at acpi0 not configured
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz, 2327.92 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz, 2327.50 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEGP)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 3 (RP02)
acpiprt4 at acpi0: bus 4 (RP03)
acpiprt5 at acpi0: bus 12 (PCIB)
acpiec0 at acpi0: EC__
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpiac0 at acpi0: AC unit offline
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model ASMB012 serial type LION012 oem SMPN012
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130e2506000e25
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2333 MHz (1292 mV): speeds: 2333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "Intel 82945GM MCH" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82945GM PCIE" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility X1600" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and Frequency,
rev 0x03) at pci0 dev 7 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: apic 1 int
22 (irq 10)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Sigmatel STAC9221 (rev. 52.1), HDA version 1.0
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02
pci2 at ppb1 bus 2
mskc0 at pci2 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22, Yukon-2 EC
rev. A3 (0x2): apic 1 int 16 (irq 11)
msk0 at mskc0 port A: address 00:17:f2:c8:ad:a4
eephy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02
pci3 at ppb2 bus 3
ath0 at pci3 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 1 int 17 (irq 10)
ath_hal_attach: unable to init EEPROM
ath0: unable to attach hardware; HAL status 22
ppb3 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02
pci4 at ppb3 bus 4
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 23
(irq 11)
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
(irq 11)
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
(irq 11)
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
(irq 11)
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 23
(irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci5 at ppb4 bus 12
"TI TSB82AA2 FireWire" rev 0x01 at pci5 dev 3 function 0 not configured
pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRW GWA4080MA, AE39> SCSI0 5/cdrom
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel
0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 (irq 11) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 1: <FUJITSU MHW2120BH>
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
(irq 11)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
rum0 at uhub0 port 1 "Cisco-Linksys Compact Wireless-G USB Adapter" rev
2.00/0.01 addr 2
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:18:f8:a5:39:67
ugen0 at uhub0 port 4 "Micron Built-in iSight" rev 2.00/1.84 addr 3
uhidev0 at uhub4 port 1 configuration 1 interface 0 "Apple Computer ADB device"
rev 2.00/19.65 addr 2
uhidev0: iclass 3/1
uhidev0: no input interrupt endpoint
uhidev1 at uhub3 port 2 configuration 1 interface 0 "Apple Computer, Inc. IR
Receiver" rev 2.00/1.10 addr 2
uhidev1: iclass 3/0
uhidev1: 38 report ids
uhid0 at uhidev1 reportid 36: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 37: input=4, output=0, feature=0
uhid2 at uhidev1 reportid 38: input=4, output=0, feature=0
uhidev2 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple
Internal Keyboard / Trackpad" rev 2.00/0.13 addr 2
uhidev2: iclass 3/1
ukbd0 at uhidev2: 8 modifier keys, 5 key codes, country code 33
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev3 at uhub1 port 2 configuration 1 interface 1 "Apple Computer Apple
Internal Keyboard / Trackpad" rev 2.00/0.13 addr 2
uhidev3: iclass 3/1
uhidev3: 5 report ids
ums0 at uhidev3 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ums1 at uhidev3 reportid 5
ums1: mouse has no X report
uhidev4 at uhub1 port 2 configuration 1 interface 2 "Apple Computer Apple
Internal Keyboard / Trackpad" rev 2.00/0.13 addr 2
uhidev4: iclass 3/0
uhid3 at uhidev4: input=1, output=0, feature=0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b