How to install NetBSD/amd64 current on MacBook Air 11 inch (mid 2012)

For older MacBook, please read how to install netbsd on an apple macbook with core2duo

This tutorial is based on it.

  1. This stuff all seems to work fine
  2. What Doesn't work
  3. Creating NetBSD installation image USB stick
  4. Boot NetBSD from the USB stick
  5. Create new partitions for NetBSD and EFI
  6. Prepare the partitions
  7. Install rEFInd
  8. Install NetBSD
  9. Create nodes in /dev
  10. Setup /etc/rc.conf and /etc/fstab
  11. Run gdisk utility and enable legacy BIOS emulation mode
    1. Install OS X to the USB stick
    2. Create Hybrid MBR
  12. Clear NVRAM of MacBook Air
    1. Disable boot sound
  13. Boot NetBSD
  14. dmesg
  15. /etc/X11/xorg.conf for native X.org

Caution

What works and what doesn't

This stuff all seems to work fine

What Doesn't work

Setup NetBSD

Creating NetBSD installation image USB stick

Download http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/(date_and_time)/images/NetBSD-6.99.43-amd64-install.img.gz and write it to your USB stick.

If you have Unix-like OS machine (including out-of-the-box MacBook Air), you can use gunzip(1) and dd(1). If you have Microsoft Windows machine, you can use Rawrite32 from http://www.netbsd.org/~martin/rawrite32/index.html. gunzip is not needed.

Boot NetBSD from the USB stick

Connect the USB stick, push power button, and press and hold Option key to Startup Manager (builtin boot selector). See http://support.apple.com/kb/HT1948?viewlocale=en_US. Select USB stick icon, and NetBSD is booted. Then you will see sysinst's blue screen.

Create new partitions for NetBSD and EFI

sysinst does not support GPT installation yet. You should create partitions manually. Press Ctrl+c and get shell prompt.

# gpt show wd0
(Current GPT map is shown.)
# gpt destroy wd0
(All partition has been removed.)
# gpt create wd0
(New GPT headers and tables has been created.)
# gpt add -s (your EFI partition size) -t efi -l EFI wd0
# gpt add -s (your FFSv2 root partition size) -t ffs -l ROOT wd0
# gpt add -s (your Swap partition size) -t swap -l SWAP wd0

# gpt biosboot -i 2 wd0
(GPT biosboot is installed.)

Reboot your MacBook Air, and get shell prompt again.

Prepare the partitions

You should run newfs(8) to create NetBSD FFSv2 partition, and run newfs_msdos(8) to create EFI partition.

# newfs -O2 /dev/dk1
# newfs_msdos /dev/dk0

Install rEFInd

rEFInd is good boot loader for out Hybrid MBR installation. Download latest rEFInd zip archive from http://www.rodsbooks.com/refind/getting.html. But you have no web browser now. You can download rEFInd zip archive from ftp.jaist.ac.jp (sourceforge.net ftp mirror site)

# cd /
# ftp ftp.jaist.ac.jp

Connected to ftp.jaist.ac.jp.
220 (vsFTPd 3.0.2)
Name (ftp.jaist.ac.jp:ryo_on): ftp
331 Please specify the password.
Password:
230-Welcome to JAIST Public Mirror Service (ftp.jaist.ac.jp).
230-If you have any problem, please contact ftp-admin@jaist.ac.jp.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.

ftp> get pub/sourceforge/r/re/refind/0.8.2/refind-bin-0.8.2.zip
# unzip refind-bin-0.8.2.zip
# mount_msdos /dev/dk0 /mnt2
# cd /mnt2
# mkdir -p EFI/BOOT
# cd EFI/BOOT
# cp -r /refind-bin-0.8.2/refind/drivers_x64 .
# cp -r /refind-bin-0.8.2/refind/tools_x64 .
# cp -r /refind-bin-0.8.2/refind/icons .
# cp /refind-bin-0.8.2/refind/refind_x64.efi bootx64.efi
# cp /refind-bin-0.8.2/refind/refind.conf.sample refind.conf

Install NetBSD

Un-tar NetBSD distribution tarballs in the USB stick.

# mount -o log /dev/dk1 /mnt
# cd /mnt
# mkdir proc kern
# tar zxvfp amd64/binary/sets/base.tgz
# tar zxvfp amd64/binary/sets/comp.tgz
# tar zxvfp amd64/binary/sets/comp.tgz
# tar zxvfp amd64/binary/sets/etc.tgz
# tar zxvfp amd64/binary/sets/games.tgz
# tar zxvfp amd64/binary/sets/kern-GENERIC.tgz
# tar zxvfp amd64/binary/sets/man.tgz
# tar zxvfp amd64/binary/sets/misc.tgz
# tar zxvfp amd64/binary/sets/modules.tgz
# tar zxvfp amd64/binary/sets/tests.tgz
# tar zxvfp amd64/binary/sets/text.tgz
# tar zxvfp amd64/binary/sets/xbase.tgz
# tar zxvfp amd64/binary/sets/xcomp.tgz
# tar zxvfp amd64/binary/sets/xetc.tgz
# tar zxvfp amd64/binary/sets/xfont.tgz
# tar zxvfp amd64/binary/sets/xserver.tgz

Create nodes in /dev

You should have nodes in /dev. If you have no node in /dev, tmpfs is used. It is annoying for me.

# cd dev
# ./MAKEDEV all

Setup /etc/rc.conf and /etc/fstab

To boot your NetBSD properly, you should write etc/rc.conf and etc/fstab.

# cat etc/rc.conf

rc_configured=YES
wscons=YES
hostname="hostname.example.com"
powerd=YES
sshd=YES
# cat etc/fstab

NAME=ROOT       /       ffs     rw,log  1 1
NAME=SWAP       none    swap    sw,dp   0 0
kernfs          /kern   kernfs  rw
ptyfs           /dev/pts        ptyfs   rw
procfs          /proc   procfs  rw
tmpfs   /var/shm        tmpfs   rw,-m1777,-sram%25

Run gdisk utility and enable legacy BIOS emulation mode

To create Hybrid MBR, gdisk (GPT fdisk) utility is required. gdisk is ported to OS X and Linux. Hopefully, Linux version may work fine. But I have no Linux version experience.

To disable boot sound, you can use OS X's environment setting panel. I have no idea about another Linux utility to disable the sound.

Install OS X to the USB stick

Boot you MacBook Air, and press and hold Command and R keys. And you will get the Internet restore menu. See http://support.apple.com/kb/HT4718?viewlocale=en_US.

It takes long time, if you use WiFi for network connection. Using Thunderbolt to Gigabit Ethernet adapter is recommended.

And reboot pressing and holding Option key, and get Startup Manager and select OS in the USB stick.

Create Hybrid MBR

NetBSD has no UEFI boot support yet. If you select to use GPT partitions to host NetBSD, you should boot you MacBook Air with legacy BIOS emulation mode. To enable legacy BIOS emulation mode, you should have the disk that has MBR or Hybrid MBR.

Download and extarct gdisk utility from http://sourceforge.net/projects/gptfdisk/.

Run Terminal application under OS X, and follow these steps. In detail, see http://www.rodsbooks.com/gdisk/hybrid.html.

# gdisk /dev/disk0
GPT fdisk (gdisk) version 0.7.2

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): r

recovery/transformation command (m for help): h

WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
just hit the Enter key at the below prompt and your MBR partition table will
be untouched.

Type from one to three GPT partition numbers, separated by spaces, to be
added to the hybrid MBR, in sequence: 1
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

Creating entry for partition #1
Enter an MBR hex code (default AF): af (be default)
Set the bootable flag? (Y/N): y

Unused partition space(s) found. Use one to protect more partitions? (Y/N): y
Enter an MBR hex code (EE is EFI GPT, but may confuse MacOS): EE

Clear NVRAM of MacBook Air

Now your MacBook Air is configured to boot OS X from the USB stick. You should reset NVRAM with the steps described in http://support.apple.com/kb/HT1379?viewlocale=en_US. If NVRAM is not cleared, it takes long time to boot NetBSD from internal SSD.

Disable boot sound

After NVRAM is reset, volume of the internal speaker is cleared. You can disable boot sound in OS X's enviromnet setting panel. Set sound volume to zero. Be sure to power-on with pressing and holding Option key.

Boot NetBSD

Disconnect the OS X USB stick from your MacBook Air, and boot your MacBook Air normally.

Appendix

dmesg

xhci is disabled, and i915drmkms and drmkms are enabled.

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
    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 6.99.43 (DTRACE2) #31: Fri Jun  6 17:28:03 JST 2014
    ryo_on@tellurium.elements.tetera.org:/usr/obj/amd64/sys/arch/amd64/compile/DTRACE2
total memory = 4002 MB
avail memory = 3869 MB
timecounter: Timecounters tick every 10.000 msec
RTC BIOS diagnostic error 0xff
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Apple Inc. MacBookAir5,1 (1.0)
mainbus0 (root)
ACPI: RSDP 0xfe020 000024 (v02 APPLE )
ACPI: XSDT 0x8ad8e1c0 0000B4 (v01 APPLE   Apple00 00000000      01000013)
ACPI: FACP 0x8ad8c000 0000F4 (v04 APPLE   Apple00 00000000 Loki 0000005F)
ACPI: DSDT 0x8ad82000 004708 (v01 APPLE  MacBookA 00050001 INTL 20100915)
ACPI: FACS 0x8ad1c000 000040
ACPI: HPET 0x8ad8b000 000038 (v01 APPLE   Apple00 00000001 Loki 0000005F)
ACPI: APIC 0x8ad8a000 0000BC (v02 APPLE   Apple00 00000001 Loki 0000005F)
ACPI: SBST 0x8ad88000 000030 (v01 APPLE   Apple00 00000001 Loki 0000005F)
ACPI: ECDT 0x8ad87000 000053 (v01 APPLE   Apple00 00000001 Loki 0000005F)
ACPI: SSDT 0x8ad7f000 0001EE (v01 APPLE  SataAhci 00001000 INTL 20100915)
ACPI: SSDT 0x8ad7e000 000024 (v01 APPLE   SmcDppt 00001000 INTL 20100915)
ACPI: SSDT 0x8ad79000 000D68 (v01 APPLE    UsbPpt 00001000 INTL 20100915)
ACPI: SSDT 0x8ad77000 000159 (v02 APPLE     IGHda 00001000 INTL 20100915)
ACPI: SSDT 0x8ad75000 000032 (v01 APPLE    SsdtS3 00001000 INTL 20100915)
ACPI: SSDT 0x8ad73000 0015EB (v02 APPLE  SsdtIGPU 00001000 INTL 20100915)
ACPI: SSDT 0x8ad72000 000FAA (v01 APPLE   PcieTbt 00001000 INTL 20100915)
ACPI: SSDT 0x8ad6d000 0004EC (v01  PmRef  Cpu0Ist 00003000 INTL 20100915)
ACPI: SSDT 0x8ad6c000 000B3D (v01  PmRef    CpuPm 00003000 INTL 20100915)
ACPI: SSDT 0x8ad6b000 000315 (v01  PmRef  Cpu0Tst 00003000 INTL 20100915)
ACPI: SSDT 0x8ad6a000 00037A (v01  PmRef    ApTst 00003000 INTL 20100915)
ACPI: DMAR 0x8ad69000 000088 (v01 APPLE      IVB  00000001 AAPL 00000001)
ACPI: MCFG 0x8ad89000 00003C (v01 APPLE   Apple00 00000001 Loki 0000005F)
ACPI: All ACPI Tables successfully acquired
cpu0 at mainbus0 apid 0: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, id 0x306a9
cpu1 at mainbus0 apid 2: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, id 0x306a9
cpu2 at mainbus0 apid 1: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, id 0x306a9
cpu3 at mainbus0 apid 3: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, id 0x306a9
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x20, 24 pins
acpi0 at mainbus0: Intel ACPICA 20131218
acpi0: X/RSDT: OemId , AslId <    ,01000013>
acpiecdt0 at acpi0: ACPI Embedded Controller via ECDT
ACPI: SSDT 0x8ad17190 0008AD (v01  PmRef  Cpu0Cst 00003001 INTL 20100915)
ACPI: SSDT 0x0 0008AD (v01  PmRef  Cpu0Cst 00003001 INTL 20100915)
ACPI: SSDT 0x8ad18710 0003A4 (v01  PmRef    ApIst 00003000 INTL 20100915)
ACPI: SSDT 0x0 0003A4 (v01  PmRef    ApIst 00003000 INTL 20100915)
ACPI: SSDT 0x8ad16d90 000119 (v01  PmRef    ApCst 00003000 INTL 20100915)
ACPI: SSDT 0x0 000119 (v01  PmRef    ApCst 00003000 INTL 20100915)
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (EC, PNP0C09-0): using acpiecdt0
acpivga0 at acpi0 (IGPU): ACPI Display Adapter
acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
acpiout1 at acpivga0 (DD02, 0x0400): ACPI Display Output Device
acpiout1: brightness levels: 0 7 13 20 27 33 40 47 53 60 67 73 80 87 93 100
acpiout2 at acpivga0 (DD03, 0x0200): ACPI Display Output Device
acpiout3 at acpivga0 (DD04, 0x0004): ACPI Display Output Device
acpiout4 at acpivga0 (DD05, 0x0005): ACPI Display Output Device
acpiout5 at acpivga0 (DD06, 0x0006): ACPI Display Output Device
acpiout6 at acpivga0 (DD07, 0x0007): ACPI Display Output Device
acpiout7 at acpivga0 (DD08, 0x0008): ACPI Display Output Device
acpivga0: unknown output device acpiout0
acpivga0: unknown output device acpiout2
acpivga0: unknown output device acpiout3
acpivga0: unknown output device acpiout4
acpivga0: unknown output device acpiout5
acpivga0: unknown output device acpiout6
acpivga0: unknown output device acpiout7
acpivga0: connected output devices:
acpivga0:   0x0400 (acpiout1): Unknown Output Device, head 0
FWHD (INT0800) [Intel Firmware Hub Device] at acpi0 not configured
LDRC (PNP0C02) [Motherboard Register Resources] at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53
SMC (APP0001) at acpi0 not configured
ALS0 (ACPI0008) [Ambient Light Sensor] at acpi0 not configured
SBS0 (ACPI0002) [Smart Battery Subsystem] at acpi0 not configured
PDRC (PNP0C02) [Motherboard Register Resources] at acpi0 not configured
acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery
acpiacad0 at acpi0 (ADP1, ACPI0003): ACPI AC Adapter
acpilid0 at acpi0 (LID0, PNP0C0D): ACPI Lid Switch
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
PNLF (APP0002) at acpi0 not configured
acpibut1 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
MEM2 (PNP0C01) [System Board] at acpi0 not configured
ACPI: Enabled 3 GPEs in block 00 to 3F
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20131218/hwxface-646)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-646)
acpi0: [MADT] LAPIC          : CPU ID 1, LAPIC ID 0, FLAGS 0x01
acpi0: [MADT] LAPIC          : CPU ID 2, LAPIC ID 2, FLAGS 0x01
acpi0: [MADT] LAPIC          : CPU ID 3, LAPIC ID 1, FLAGS 0x01
acpi0: [MADT] LAPIC          : CPU ID 4, LAPIC ID 3, FLAGS 0x01
acpi0: [MADT] LAPIC          : CPU ID 5, LAPIC ID 255, FLAGS 0x00
acpi0: [MADT] LAPIC          : CPU ID 6, LAPIC ID 255, FLAGS 0x00
acpi0: [MADT] LAPIC          : CPU ID 7, LAPIC ID 255, FLAGS 0x00
acpi0: [MADT] LAPIC          : CPU ID 8, LAPIC ID 255, FLAGS 0x00
acpi0: [MADT] I/O APIC       : ID 2, GSI 0, ADDR 0xFEC00000
acpi0: [MADT] INTR OVERRIDE  : BUS 0, IRQ 0, GSI 2, FLAGS 0x00
acpi0: [MADT] INTR OVERRIDE  : BUS 0, IRQ 9, GSI 9, FLAGS 0x0D
acpi0: [MADT] LAPIC NMI      : CPU ID 1, LINT 1, FLAGS 0x05
acpi0: [MADT] LAPIC NMI      : CPU ID 2, LINT 1, FLAGS 0x05
acpi0: [MADT] LAPIC NMI      : CPU ID 3, LINT 1, FLAGS 0x05
acpi0: [MADT] LAPIC NMI      : CPU ID 4, LINT 1, FLAGS 0x05
acpi0: [MADT] LAPIC NMI      : CPU ID 5, LINT 1, FLAGS 0x05
acpi0: [MADT] LAPIC NMI      : CPU ID 6, LINT 1, FLAGS 0x05
acpi0: [MADT] LAPIC NMI      : CPU ID 7, LINT 1, FLAGS 0x05
acpi0: [MADT] LAPIC NMI      : CPU ID 8, LINT 1, FLAGS 0x05
acpi0: [FADT] FACS           : 0x000000008AD1C000
acpi0: [FADT] DSDT           : 0x000000008AD82000
acpi0: [FADT] INT_MODEL      : 0x0000000000000000
acpi0: [FADT] PM_PROFILE     : 0x0000000000000002
acpi0: [FADT] SCI_INT        : 0x0000000000000009
acpi0: [FADT] SMI_CMD        : 0x00000000000000B2
acpi0: [FADT] ACPI_ENABLE    : 0x00000000000000F0
acpi0: [FADT] ACPI_DISABLE   : 0x00000000000000F1
acpi0: [FADT] S4BIOS_REQ     : 0x0000000000000000
acpi0: [FADT] PSTATE_CNT     : 0x0000000000000000
acpi0: [FADT] PM1a_EVT_BLK   : 0x0000000000000400
acpi0: [FADT] PM1b_EVT_BLK   : 0x0000000000000000
acpi0: [FADT] PM1a_CNT_BLK   : 0x0000000000000404
acpi0: [FADT] PM1b_CNT_BLK   : 0x0000000000000000
acpi0: [FADT] PM2_CNT_BLK    : 0x0000000000000450
acpi0: [FADT] PM_TMR_BLK     : 0x0000000000000408
acpi0: [FADT] GPE0_BLK       : 0x0000000000000420
acpi0: [FADT] GPE1_BLK       : 0x0000000000000000
acpi0: [FADT] PM1_EVT_LEN    : 0x0000000000000004
acpi0: [FADT] PM1_CNT_LEN    : 0x0000000000000002
acpi0: [FADT] PM2_CNT_LEN    : 0x0000000000000001
acpi0: [FADT] PM_TMR_LEN     : 0x0000000000000004
acpi0: [FADT] GPE0_BLK_LEN   : 0x0000000000000010
acpi0: [FADT] GPE1_BLK_LEN   : 0x0000000000000000
acpi0: [FADT] GPE1_BASE      : 0x0000000000000010
acpi0: [FADT] CST_CNT        : 0x0000000000000085
acpi0: [FADT] P_LVL2_LAT     : 0x0000000000000065
acpi0: [FADT] P_LVL3_LAT     : 0x00000000000003E9
acpi0: [FADT] FLUSH_SIZE     : 0x0000000000000000
acpi0: [FADT] FLUSH_STRIDE   : 0x0000000000000000
acpi0: [FADT] DUTY_OFFSET    : 0x0000000000000001
acpi0: [FADT] DUTY_WIDTH     : 0x0000000000000003
acpi0: [FADT] DAY_ALRM       : 0x000000000000000D
acpi0: [FADT] MON_ALRM       : 0x0000000000000000
acpi0: [FADT] CENTURY        : 0x0000000000000032
acpi0: [FADT] IAPC_BOOT_ARCH : 0x0000000000000001
acpi0: [FADT] RESET_VALUE    : 0x0000000000000006
acpi0: [FADT] WBINVD         : 0x0000000000000001
acpi0: [FADT] WBINVD_FLUSH   : 0x0000000000000000
acpi0: [FADT] PROC_C1        : 0x0000000000000004
acpi0: [FADT] P_LVL2_UP      : 0x0000000000000000
acpi0: [FADT] PWR_BUTTON     : 0x0000000000000000
acpi0: [FADT] SLP_BUTTON     : 0x0000000000000020
acpi0: [FADT] FIX_RTC        : 0x0000000000000000
acpi0: [FADT] RTC_S4         : 0x0000000000000080
acpi0: [FADT] TMR_VAL_EXT    : 0x0000000000000000
acpi0: [FADT] DCK_CAP        : 0x0000000000000000
acpi0: [FADT] RESET_REG_SUP  : 0x0000000000000400
acpi0: [FADT] SEALED_CASE    : 0x0000000000000000
acpi0: [FADT] HEADLESS       : 0x0000000000000000
acpi0: [FADT] CPU_SW_SLP     : 0x0000000000000000
acpi0: [FADT] PCI_EXP_WAK    : 0x0000000000004000
acpi0: [FADT] PLATFORM_CLK   : 0x0000000000008000
acpi0: [FADT] S4_RTC_STS     : 0x0000000000000000
acpi0: [FADT] REMOTE_POWER   : 0x0000000000000000
acpi0: [FADT] APIC_CLUSTER   : 0x0000000000000000
acpi0: [FADT] APIC_PHYSICAL  : 0x0000000000000000
acpi0: [\   ] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [CPU0] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [CPU1] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [CPU2] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [CPU3] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [CPU4] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [CPU5] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [CPU6] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [CPU7] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [_SB ] HID -          UID -    STA 0xFFFFFFFF ADR -
acpi0: [PCI0] HID PNP0A08    UID 0    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [MCHC] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [P0P2] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000010000
acpi0: [PEG2] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000010002
acpi0: [SATA] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [PRT0] HID -          UID -    STA 0xFFFFFFFF ADR 0x000000000000FFFF
acpi0: [IGPU] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000020000
acpi0: [DD01] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000100
acpi0: [DD02] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000400
acpi0: [DD03] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000200
acpi0: [DD04] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000004
acpi0: [DD05] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000005
acpi0: [DD06] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000006
acpi0: [DD07] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000007
acpi0: [DD08] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000008
acpi0: [SATA] HID -          UID -    STA 0xFFFFFFFF ADR 0x00000000001F0002
acpi0: [PRT0] HID -          UID -    STA 0xFFFFFFFF ADR 0x000000000000FFFF
acpi0: [SBUS] HID -          UID -    STA 0xFFFFFFFF ADR 0x00000000001F0003
acpi0: [BUS0] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [MKY0] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [BUS1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000001
acpi0: [LPCB] HID -          UID -    STA 0xFFFFFFFF ADR 0x00000000001F0000
acpi0: [DMAC] HID PNP0200    UID -    STA 0xFFFFFFFF ADR -
acpi0: [FWHD] HID INT0800    UID -    STA 0xFFFFFFFF ADR -
acpi0: [HPET] HID PNP0103    UID -    STA 0x0000000F ADR -
acpi0: [IPIC] HID PNP0000    UID -    STA 0xFFFFFFFF ADR -
acpi0: [MATH] HID PNP0C04    UID -    STA 0xFFFFFFFF ADR -
acpi0: [LDRC] HID PNP0C02    UID 2    STA 0xFFFFFFFF ADR -
acpi0: [RTC ] HID PNP0B00    UID -    STA 0xFFFFFFFF ADR -
acpi0: [TIMR] HID PNP0100    UID -    STA 0xFFFFFFFF ADR -
acpi0: [SMC ] HID APP0001    UID -    STA 0x0000000B ADR -
acpi0: [ALS0] HID ACPI0008   UID -    STA 0x0000000F ADR -
acpi0: [EC  ] HID PNP0C09    UID 0    STA 0xFFFFFFFF ADR -
acpi0: [SMB0] HID ACPI0001   UID -    STA 0x00000000 ADR -
acpi0: [SBS0] HID ACPI0002   UID -    STA 0xFFFFFFFF ADR -
acpi0: [HDEF] HID -          UID -    STA 0xFFFFFFFF ADR 0x00000000001B0000
acpi0: [RP02] HID -          UID -    STA 0x0000000F ADR 0x00000000001C0001
acpi0: [ARPT] HID -          UID -    STA 0x0000000F ADR 0x0000000000000000
acpi0: [RP05] HID -          UID -    STA 0xFFFFFFFF ADR 0x00000000001C0004
acpi0: [UPSB] HID -          UID -    STA 0x0000000F ADR 0x0000000000000000
acpi0: [DSB0] HID -          UID -    STA 0x0000000F ADR 0x0000000000000000
acpi0: [NHI0] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [DSB1] HID -          UID -    STA 0x0000000F ADR 0x0000000000030000
acpi0: [UPS0] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [UPS1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000010000
acpi0: [UPS2] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000020000
acpi0: [UPS3] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000030000
acpi0: [UPS4] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000040000
acpi0: [UPS5] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000050000
acpi0: [UPS6] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000060000
acpi0: [DSB2] HID -          UID -    STA 0x0000000F ADR 0x0000000000040000
acpi0: [UPS0] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [UPS1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000010000
acpi0: [UPS2] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000020000
acpi0: [UPS3] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000030000
acpi0: [UPS4] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000040000
acpi0: [UPS5] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000050000
acpi0: [UPS6] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000060000
acpi0: [DSB3] HID -          UID -    STA 0x00000009 ADR 0x0000000000050000
acpi0: [DSB4] HID -          UID -    STA 0x00000009 ADR 0x0000000000060000
acpi0: [PDRC] HID PNP0C02    UID 1    STA 0xFFFFFFFF ADR -
acpi0: [EHC1] HID -          UID -    STA 0xFFFFFFFF ADR 0x00000000001D0000
acpi0: [RHUB] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [PRT1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000001
acpi0: [PRT1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000001
acpi0: [PRT2] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000002
acpi0: [PRT3] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000003
acpi0: [PRT8] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000008
acpi0: [PRT1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000001
acpi0: [PRT2] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000002
acpi0: [PRT3] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000003
acpi0: [EHC2] HID -          UID -    STA 0xFFFFFFFF ADR 0x00000000001A0000
acpi0: [RHUB] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [PRT1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000001
acpi0: [PRT1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000001
acpi0: [PRT2] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000002
acpi0: [PRT3] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000003
acpi0: [XHC1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000140000
acpi0: [RHUB] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000000
acpi0: [PRT1] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000001
acpi0: [PRT2] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000002
acpi0: [PRT3] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000003
acpi0: [PRT4] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000004
acpi0: [LNKA] HID PNP0C0F    UID 1    STA 0x0000000B ADR -
acpi0: [LNKB] HID PNP0C0F    UID 2    STA 0x0000000B ADR -
acpi0: [LNKC] HID PNP0C0F    UID 3    STA 0x00000009 ADR -
acpi0: [LNKD] HID PNP0C0F    UID 4    STA 0x0000000B ADR -
acpi0: [LNKE] HID PNP0C0F    UID 5    STA 0x00000009 ADR -
acpi0: [LNKF] HID PNP0C0F    UID 6    STA 0x00000009 ADR -
acpi0: [LNKG] HID PNP0C0F    UID 7    STA 0x0000000B ADR -
acpi0: [LNKH] HID PNP0C0F    UID 8    STA 0x0000000B ADR -
acpi0: [BAT0] HID PNP0C0A    UID 0    STA 0x0000001F ADR -
acpi0: [ADP1] HID ACPI0003   UID -    STA 0xFFFFFFFF ADR -
acpi0: [LID0] HID PNP0C0D    UID -    STA 0xFFFFFFFF ADR -
acpi0: [PWRB] HID PNP0C0C    UID -    STA 0xFFFFFFFF ADR -
acpi0: [PNLF] HID APP0002    UID 14   STA 0x0000000B ADR 0x0000000000000000
acpi0: [SLPB] HID PNP0C0E    UID -    STA 0x0000000B ADR -
acpi0: [MEM2] HID PNP0C01    UID 2    STA 0xFFFFFFFF ADR -
acpi0: [_TZ ] HID -          UID -    STA 0xFFFFFFFF ADR -

\     [06] []
    CPU0  [12] []
    CPU1  [12] []
    CPU2  [12] []
    CPU3  [12] []
    CPU4  [12] []
    CPU5  [12] []
    CPU6  [12] []
    CPU7  [12] []
    _SB   [06] []
        PCI0  [06] [] (PCI) @ 0x00:0x00:0x00:0x00 [R] [B] -> 0x00:0x00
            MCHC  [06] [] (PCI) @ 0x00:0x00:0x00:0x00
            P0P2  [06] [] (PCI) @ 0x00:0x00:0x01:0x00
            PEG2  [06] [] (PCI) @ 0x00:0x00:0x01:0x02
                SATA  [06] []
                    PRT0  [06] []
            IGPU  [06] []  (PCI) @ 0x00:0x00:0x02:0x00
                DD01  [06] [] 
                DD02  [06] [] 
                DD03  [06] [] 
                DD04  [06] [] 
                DD05  [06] [] 
                DD06  [06] [] 
                DD07  [06] [] 
                DD08  [06] [] 
            SATA  [06] [] (PCI) @ 0x00:0x00:0x1F:0x02
                PRT0  [06] []
            SBUS  [06] [] (PCI) @ 0x00:0x00:0x1F:0x03
                BUS0  [06] []
                    MKY0  [06] []
                BUS1  [06] []
            LPCB  [06] [] (PCI) @ 0x00:0x00:0x1F:0x00
                DMAC  [06] []
                FWHD  [06] []
                HPET  [06] []
                IPIC  [06] []
                MATH  [06] []
                LDRC  [06] []
                RTC   [06] []
                TIMR  [06] [] 
                SMC   [06] []
                ALS0  [06] []
                EC    [06] [] 
                    SMB0  [06] []
                        SBS0  [06] []
            HDEF  [06] [] (PCI) @ 0x00:0x00:0x1B:0x00
            RP02  [06] [] (PCI) @ 0x00:0x00:0x1C:0x01 [B] -> 0x00:0x02
                ARPT  [06] [] (PCI) @ 0x00:0x02:0x00:0x00
            RP05  [06] [] (PCI) @ 0x00:0x00:0x1C:0x04 [B] -> 0x00:0x03
                UPSB  [06] [] (PCI) @ 0x00:0x03:0x00:0x00 [B] -> 0x00:0x04
                    DSB0  [06] [] (PCI) @ 0x00:0x04:0x00:0x00 [B] -> 0x00:0x05
                        NHI0  [06] [] (PCI) @ 0x00:0x05:0x00:0x00
                    DSB1  [06] [] (PCI) @ 0x00:0x04:0x03:0x00 [B] -> 0x00:0x06
                        UPS0  [06] [] (PCI) @ 0x00:0x06:0x00:0x00
                        UPS1  [06] [] (PCI) @ 0x00:0x06:0x01:0x00
                        UPS2  [06] [] (PCI) @ 0x00:0x06:0x02:0x00
                        UPS3  [06] [] (PCI) @ 0x00:0x06:0x03:0x00
                        UPS4  [06] [] (PCI) @ 0x00:0x06:0x04:0x00
                        UPS5  [06] [] (PCI) @ 0x00:0x06:0x05:0x00
                        UPS6  [06] [] (PCI) @ 0x00:0x06:0x06:0x00
                    DSB2  [06] [] (PCI) @ 0x00:0x04:0x04:0x00 [B] -> 0x00:0x37
                        UPS0  [06] [] (PCI) @ 0x00:0x37:0x00:0x00
                        UPS1  [06] [] (PCI) @ 0x00:0x37:0x01:0x00
                        UPS2  [06] [] (PCI) @ 0x00:0x37:0x02:0x00
                        UPS3  [06] [] (PCI) @ 0x00:0x37:0x03:0x00
                        UPS4  [06] [] (PCI) @ 0x00:0x37:0x04:0x00
                        UPS5  [06] [] (PCI) @ 0x00:0x37:0x05:0x00
                        UPS6  [06] [] (PCI) @ 0x00:0x37:0x06:0x00
                    DSB3  [06] []
                    DSB4  [06] []
            PDRC  [06] []
            EHC1  [06] [] (PCI) @ 0x00:0x00:0x1D:0x00
                RHUB  [06] []
                    PRT1  [06] []
                        PRT1  [06] []
                        PRT2  [06] []
                        PRT3  [06] []
                        PRT8  [06] []
                            PRT1  [06] []
                            PRT2  [06] []
                            PRT3  [06] []
            EHC2  [06] [] (PCI) @ 0x00:0x00:0x1A:0x00
                RHUB  [06] []
                    PRT1  [06] []
                        PRT1  [06] []
                        PRT2  [06] []
                        PRT3  [06] []
            XHC1  [06] [] (PCI) @ 0x00:0x00:0x14:0x00
                RHUB  [06] []
                    PRT1  [06] []
                    PRT2  [06] []
                    PRT3  [06] []
                    PRT4  [06] []
        LNKA  [06] []
        LNKB  [06] []
        LNKC  [06] []
        LNKD  [06] []
        LNKE  [06] []
        LNKF  [06] []
        LNKG  [06] []
        LNKH  [06] []
        BAT0  [06] [] 
        ADP1  [06] [] 
        LID0  [06] [] 
        PWRB  [06] [] 
        PNLF  [06] []
        SLPB  [06] [] 
        MEM2  [06] []
    _TZ   [06] []
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x0154 (rev. 0x09)
i915drmkms0 at pci0 dev 2 function 0: vendor 0x8086 product 0x0166 (rev. 0x09)
drmkms0 at i915drmkms0
drm: Memory usable by graphics device = 2048M
drm: Supports vblank timestamp caching Rev 1 (10.10.2010).
drm: Driver supports precise vblank timestamp query.
drmkms0: interrupting at ioapic0 pin 16 (i915)
drm: GMBUS [i915 gmbus vga] timed out, falling back to bit banging on pin 2
i915drmkms0: framebuffer at 0xffff800047287000, size 1366x768, depth 32, stride 5504
wsdisplay0 at i915drmkms0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
drmkms0: info: registered panic notifier
vendor 0x8086 product 0x1e31 (USB serial bus, xHCI, revision 0x04) at pci0 dev 20 function 0 not configured
vendor 0x8086 product 0x1e3a (miscellaneous communications, revision 0x04) at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0: vendor 0x8086 product 0x1e2d (rev. 0x04)
ehci0: interrupting at ioapic0 pin 23
ehci0: EHCI version 1.0
usb0 at ehci0: USB revision 2.0
hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 22
hdafg0 at hdaudio0: vendor 0x1013 product 0x4206
hdafg0: ADC00 2ch: Mic In [Built-In]
hdafg0: DAC01 2ch: Speaker [Built-In]
hdafg0: DAC02 2ch: HP Out [Jack]
hdafg0: 2ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 PCM32 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
hdafg1 at hdaudio0: Intel product 0x2806
hdafg1: duplicate pin in association
hdafg1: duplicate pin in association
hdafg1: 0ch/0ch 48000Hz PCM16*
ppb0 at pci0 dev 28 function 0: vendor 0x8086 product 0x1e10 (rev. 0xc4)
ppb0: PCI Express 2.0  x1 @ 5.0Gb/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 28 function 1: vendor 0x8086 product 0x1e12 (rev. 0xc4)
ppb1: PCI Express 2.0  x1 @ 5.0Gb/s
ppb1: link is x1 @ 2.5Gb/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 0x14e4 product 0x4353 (miscellaneous network, revision 0x01) at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 4: vendor 0x8086 product 0x1e18 (rev. 0xc4)
ppb2: PCI Express 2.0  x4 @ 5.0Gb/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ppb3 at pci3 dev 0 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
ppb3: PCI Express 2.0 
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
ppb4 at pci4 dev 0 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
ppb4: PCI Express 2.0  x4 @ 2.5Gb/s
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 0x8086 product 0x1547 (miscellaneous system, revision 0x03) at pci5 dev 0 function 0 not configured
ppb5 at pci4 dev 3 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
ppb5: PCI Express 2.0  x4 @ 2.5Gb/s
pci6 at ppb5 bus 6
pci6: i/o space, memory space enabled, rd/line, wr/inv ok
ppb6 at pci4 dev 4 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
ppb6: PCI Express 2.0  x4 @ 2.5Gb/s
pci7 at ppb6 bus 55
pci7: i/o space, memory space enabled, rd/line, wr/inv ok
ppb7 at pci4 dev 5 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
ppb7: PCI Express 2.0  x4 @ 2.5Gb/s
pci8 at ppb7 bus 104
pci8: i/o space, memory space enabled, rd/line, wr/inv ok
ppb8 at pci4 dev 6 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
ppb8: PCI Express 2.0  x4 @ 2.5Gb/s
pci9 at ppb8 bus 105
pci9: i/o space, memory space enabled, rd/line, wr/inv ok
ehci1 at pci0 dev 29 function 0: vendor 0x8086 product 0x1e26 (rev. 0x04)
ehci1: interrupting at ioapic0 pin 22
ehci1: EHCI version 1.0
usb1 at ehci1: USB revision 2.0
ichlpcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x1e56 (rev. 0x04)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO timer reboot disabled by hardware; hope SMBIOS properly handles it.
ichlpcib0: TCO (watchdog) timer configured.
ahcisata0 at pci0 dev 31 function 2: vendor 0x8086 product 0x1e03 (rev. 0x04)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.30, 6 ports, 32 slots, CAP 0xc730ff45
atabus0 at ahcisata0 channel 0
ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x1e22 (rev. 0x04)
ichsmb0: interrupting at ioapic0 pin 18
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat 148 us, pow   500 mW
acpicpu0: C3: FFH, lat 198 us, pow   200 mW
acpicpu0: P0: FFH, lat  10 us, pow 17000 mW, 1701 MHz, turbo boost
acpicpu0: P1: FFH, lat  10 us, pow 17000 mW, 1700 MHz
acpicpu0: P2: FFH, lat  10 us, pow 15798 mW, 1600 MHz
acpicpu0: P3: FFH, lat  10 us, pow 14620 mW, 1500 MHz
acpicpu0: P4: FFH, lat  10 us, pow 13467 mW, 1400 MHz
acpicpu0: P5: FFH, lat  10 us, pow 12337 mW, 1300 MHz
acpicpu0: P6: FFH, lat  10 us, pow 11231 mW, 1200 MHz
acpicpu0: P7: FFH, lat  10 us, pow 10150 mW, 1100 MHz
acpicpu0: P8: FFH, lat  10 us, pow  9090 mW, 1000 MHz
acpicpu0: P9: FFH, lat  10 us, pow  8053 mW,  900 MHz
acpicpu0: P10: FFH, lat  10 us, pow  7192 mW,  800 MHz
acpicpu0: T0: FFH, lat   1 us, pow  7192 mW, 100 %
acpicpu0: T1: FFH, lat   1 us, pow  6712 mW,  94 %
acpicpu0: T2: FFH, lat   1 us, pow  6233 mW,  88 %
acpicpu0: T3: FFH, lat   1 us, pow  5753 mW,  82 %
acpicpu0: T4: FFH, lat   1 us, pow  5274 mW,  75 %
acpicpu0: T5: FFH, lat   1 us, pow  4794 mW,  69 %
acpicpu0: T6: FFH, lat   1 us, pow  4315 mW,  63 %
acpicpu0: T7: FFH, lat   1 us, pow  3835 mW,  57 %
acpicpu0: T8: FFH, lat   1 us, pow  3356 mW,  50 %
acpicpu0: T9: FFH, lat   1 us, pow  2876 mW,  44 %
acpicpu0: T10: FFH, lat   1 us, pow  2397 mW,  38 %
acpicpu0: T11: FFH, lat   1 us, pow  1917 mW,  32 %
acpicpu0: T12: FFH, lat   1 us, pow  1438 mW,  25 %
acpicpu0: T13: FFH, lat   1 us, pow   958 mW,  19 %
acpicpu0: T14: FFH, lat   1 us, pow   479 mW,  13 %
coretemp0 at cpu0: thermal sensor, 1 C resolution
acpicpu1 at cpu1: ACPI CPU
coretemp1 at cpu1: thermal sensor, 1 C resolution
acpicpu2 at cpu2: ACPI CPU
acpicpu3 at cpu3: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 1696254480 Hz quality 3000
acpiacad0: AC adapter online.
acpilid0: lid closed.
uhub0 at usb0: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ahcisata0 port 0: device present, speed: 6.0Gb/s
drm: Enabling RC6 states: RC6 on, RC6p on, RC6pp off
wd0 at atabus0 drive 0
wd0: 
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 113 GB, 235097 cyl, 16 head, 63 sec, 512 bytes/sect x 236978176 sectors
wd0: GPT GUID: 0de7ba53-f76d-11e2-a888-406c8f586cc5
dk0 at wd0: EFI
dk0: 524288 blocks at 64, type: msdos
dk1 at wd0: ROOT
dk1: 2097152 blocks at 524352, type: ffs
dk2 at wd0: SWAP
dk2: 16777216 blocks at 2621504, type: swap
dk3 at wd0: USR
dk3: 134217728 blocks at 19398720, type: ffs
dk4 at wd0: HOME
dk4: 83361695 blocks at 153616448, type: ffs
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
uhub2 at uhub1 port 1: vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2
uhub2: single transaction translator
uhub3 at uhub0 port 1: vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2
uhub3: single transaction translator
uhub3: 6 ports with 5 removable, self powered
uhub2: 8 ports with 7 removable, self powered
uplcom0 at uhub2 port 2
uplcom0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 3
ucom0 at uplcom0
uvideo0 at uhub3 port 1 configuration 1 interface 0: Apple Inc. FaceTime HD Camera (Built-in), rev 2.00/80.25, addr 3
video0 at uvideo0: Apple Inc. FaceTime HD Camera (Built-in), rev 2.00/80.25, addr 3
uhub4 at uhub2 port 8: vendor 0x0424 product 0x2512, class 9/0, rev 2.00/b.b3, addr 4
uhub4: multiple transaction translators
uhub4: 2 ports with 0 removable, self powered
uhub5 at uhub4 port 1: Apple Inc. BRCM20702 Hub, class 9/0, rev 2.00/1.00, addr 5
uhub5: 3 ports with 0 removable, self powered
uhidev0 at uhub5 port 1 configuration 1 interface 0
uhidev0: vendor 0x05ac product 0x820a, rev 2.00/1.00, addr 6, iclass 3/1
uhidev0: 1 report ids
ukbd0 at uhidev0 reportid 1: 8 modifier keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub5 port 2 configuration 1 interface 0
uhidev1: vendor 0x05ac product 0x820b, rev 2.00/1.00, addr 7, iclass 3/1
uhidev1: 2 report ids
ums0 at uhidev1 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ubt0 at uhub5 port 3
ubt0: Apple Inc. Bluetooth USB Host Controller, rev 2.00/1.31, addr 8
uhidev2 at uhub4 port 2 configuration 1 interface 0
uhidev2: Apple Inc. Apple Internal Keyboard / Trackpad, rev 2.00/2.19, addr 9, iclass 3/1
uhidev2: 9 report ids
ukbd1 at uhidev2 reportid 1: 8 modifier keys, 6 key codes, apple fn key
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhid0 at uhidev2 reportid 9: input=0, output=0, feature=3
uhidev3 at uhub4 port 2 configuration 1 interface 1
uhidev3: Apple Inc. Apple Internal Keyboard / Trackpad, rev 2.00/2.19, addr 9, iclass 3/0
uhidev3: 68 report ids
uhid1 at uhidev3 reportid 68: input=511, output=0, feature=0
uhidev4 at uhub4 port 2 configuration 1 interface 2
uhidev4: Apple Inc. Apple Internal Keyboard / Trackpad, rev 2.00/2.19, addr 9, iclass 3/1
uhidev4: 2 report ids
ums1 at uhidev4 reportid 2: 3 buttons
wsmouse1 at ums1 mux 0
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
boot device: wd0
root on dk1 dumps on dk2
root file system type: ffs
clock: unknown CMOS layout
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)

/etc/X11/xorg.conf for native X.org

With this xorg.conf, you can use i915 video device with intel driver.


Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/X11R7/lib/modules"
    FontPath     "/usr/X11R7/lib/X11/fonts/misc/"
    FontPath     "/usr/X11R7/lib/X11/fonts/TTF/"
    FontPath     "/usr/X11R7/lib/X11/fonts/Type1/"
    FontPath     "/usr/X11R7/lib/X11/fonts/75dpi/"
    FontPath     "/usr/X11R7/lib/X11/fonts/100dpi/"
    FontPath     "/usr/pkg/lib/X11/fonts/local/"
    FontPath     "/usr/pkg/lib/X11/fonts/TTF/"
EndSection

Section "Module"
    Load  "dbe"
    Load  "dri"
    Load  "dri2"
    Load  "extmod"
    Load  "glx"
    Load  "record"
    Load  "shadow"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option  "XkbOptions"    "ctrl:nocaps"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "wsmouse"
    Option      "Device" "/dev/wsmouse"
#   Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### [arg]: arg optional
        #Option     "ShadowFB"              # []
        #Option     "DefaultRefresh"        # []
        #Option     "ModeSetClearScreen"    # []
    Identifier  "Card0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection
It would be awesome if you could elaborate the part when you boot from the USB. I have tried multiple options and just cannot get my Macbook Air to boot.
Comment by Simon Wednesday night, February 5th, 2014

I've had a go at installing NetBSD on a Macbook Pro (mid 2012 model). I'm using NetBSD current as of 2016-10-25.

The NetBSD installer from current can install to the whole disk, but it doesn't use GPT. Regardless, it boots ok after a ~20 second delay. In order to remove the delay, I've followed the above instructions.

I had issues with running newfs_msdos from NetBSD. I rebooted to MacOS recovery ran newfs_msdos and then did the rEFInd install.

Assuming that rEFInd has been installed, when changing to hybrid mode, GPT fdisk now has a EFI module that can be copied to the EFI/tools directory. Then you can run gdisk directly from rEFInd. There is, now, no need to install MacOS to a USB stick.

The instructions seem to leave out installing the bootloader on the NetBSD slice.

Comment by Patrick at midnight, October 27th, 2016