File:  [NetBSD Developer Wiki] / wikisrc / users / ryoon / how_to_install_netbsd_amd64_to_macbook_air_11_inch.mdwn
Revision 1.6: download - view: text, annotated - select for diffs
Sat Sep 22 16:31:23 2012 UTC (7 years, 1 month ago) by ryoon
Branches: MAIN
CVS tags: HEAD
Add kernel install step.

    1: # How to install NetBSD/amd64 current on MacBook Air 11 inch (mid 2012)
    2: 
    3: For older MacBook, please read [how to install netbsd on an apple macbook with core2duo](http://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_an_apple_macbook_with_core2duo/)
    4: 
    5: This tutorial is based on it.
    6: 
    7: [[!toc	startlevel=2	levels=2]]
    8: 
    9: ## Caution
   10: 
   11: * To follow this tutorial, you must have other NetBSD or other Unix like operating system installation to create no-dkwedge kernel.
   12: 
   13: * With this tutorial, your MacBook Air's default operating system becomes NetBSD! You can boot OS X with Power+option.
   14: 
   15: * Do not try to install NetBSD on dkwedge partition (/dev/dk*) and with dkwedge enabled kernel, I cannot install NetBSD to hybrid MBR disk, so I have gotten "newfs: /dev/rwd0a: open for read: Device busy" error message.
   16:   See [PR/39510](http://gnats.netbsd.org/39510).
   17:   If you can install NetBSD to dkwedge partition, please tell me!
   18:   All my attempts are failed :(
   19: 
   20: * Do not install NetBSD bootselect code in sysinst.
   21: 
   22: * Installing NetBSD/i386 is not tested.
   23: 
   24: * I have not tested modular-xorg (X.org from pkgsrc).
   25: 
   26: 
   27: ## What works and what doesn't
   28: 
   29: ### This stuff all seems to work fine
   30: 
   31: * SATA disk drivers
   32: 
   33: * Keyboard
   34: 
   35: * TrackPad (as one button mouse, no multitouch extension)
   36: 
   37: * USB 2.0/1.0 (no USB 3.0)
   38: 
   39: * FaceTime HD Camera (uvideo device; I have not tested yet)
   40: 
   41: * Keyboard backlight
   42: 
   43: 
   44: ### What Doesn't work
   45: 
   46: * Internal BCM43224 WiFi adapter
   47: 
   48: * Sound (hdaudio seems work, but if you disable boot sound,
   49:   you have no audio from internal speaker)
   50: 
   51: * Bluetooth device (with patches in [PR/46992](http://gnats.netbsd.org/46992), it works)
   52: 
   53: 
   54: ## Creating a new partition for NetBSD
   55: 
   56: Probably you can resize your HFS+ partition with OS X's diskutil command.
   57: But I have not tested.
   58: Default HFS+ partition is journaled, but case insensitive.
   59: If you love case sensitive filesystem like me.
   60: Please follow the steps.
   61: 
   62: ### Create OS X Recovery USB stick
   63: You can create OS X Recovery USB stick with "OS X Recovery Disk Assistant"
   64: utility in OS X.
   65: At first, create OS X Recovery USB stick.
   66: 
   67: ### Boot from OS X Recovery USB Stick
   68: You can boot from the USB stick with Power+option boot.
   69: 
   70: ### Remove OS X partition and create two partitions
   71: First partition is 20GB and prepared for HFS+ (journaled and case sensitive).
   72: Of cource you can choose case insensitive HFS+.
   73: Second partition is remain, about 100GB.
   74: You can create this partition as HFS+.
   75: <em>Caution:</em> In this step, you must select GUID partition mode.
   76: 
   77: ### Install OS X to 20GB partition
   78: OS X fragments are downloaded from Apple's website.
   79: Probably you can restore your OS X image from TimeMachin.
   80: My NAS's TimeMachine functionality is broken and I cannot test it :(
   81: 
   82: ### Prepare Hybrid MBR disk for classic NetBSD install
   83: 
   84: #### On OS X, download and install gdisk (GPT fdisk) utility
   85: You can find GPT fdisk on [http://www.rodsbooks.com/gdisk/](http://www.rodsbooks.com/gdisk/).
   86: 
   87: #### On OS X, create Hybrid MBR with gdisk utility
   88: You can find tutorial in [http://www.rodsbooks.com/gdisk/hybrid.html](http://www.rodsbooks.com/gdisk/hybrid.html).
   89: 
   90: 
   91: ## Prepare NetBSD install USB stick
   92: Download NetBSD current (HEAD) snapshot image from [http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/](http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/).
   93: And write with dd (on Unix like OS) or [rawrite32](http://www.netbsd.org/~martin/rawrite32/) (on Windows).
   94: 
   95: ### Prepare no-dkwedge kernel
   96: Remove dkwedge related stuff (remove all "options DKWEDGE*" lines)
   97: from GENERIC kernel, and build GENERIC kernel.
   98: If you do not know how to build kernel,
   99: please read [How to build a kernel section of NetBSD kernel documentation](http://www.netbsd.org/docs/kernel/#how_to_build_a_kernel) .
  100: 
  101: ### Copy no-dkwedge kernel
  102: Mount USB stick and copy no-dkwedge kernel to it.
  103: 
  104: ## Boot your MacBook Air and install NetBSD with sysinst
  105: In detail, see [The NetBSD Guide](http://www.netbsd.org/docs/guide/en/index.html).
  106: <em>Be careful</em>, you must not install bootselect code to your disk.
  107: 
  108: ### Copy no-dkwedge kernel
  109: Copy /netbsd to your / partition.
  110: 
  111: ## Set NetBSD as default OS
  112: On OS X, open terminal and run
  113: 
  114:    % sudo bless --device /dev/disk0s4 --setBoot --legacy --verbose
  115: 
  116: 
  117: 
  118: ## Appendix
  119: 
  120: ### dmesg
  121: 
  122: With Thunderbolt to Gigabit Ethernet Adapter.
  123: 
  124: <pre>
  125: Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
  126:     2006, 2007, 2008, 2009, 2010, 2011, 2012
  127:     The NetBSD Foundation, Inc.  All rights reserved.
  128: Copyright (c) 1982, 1986, 1989, 1991, 1993
  129:     The Regents of the University of California.  All rights reserved.
  130: 
  131: NetBSD 6.99.11 (NODKWEDGE) #76: Sat Sep 22 17:29:48 JST 2012
  132: 	root@tellurium.elements.tetera.org:/usr/obj/sys/arch/amd64/compile/NODKWEDGE
  133: total memory = 4002 MB
  134: avail memory = 3870 MB
  135: timecounter: Timecounters tick every 10.000 msec
  136: RTC BIOS diagnostic error 0xfd<clock_battery,ROM_cksum,config_unit,memory_size,fixed_disk,invalid_time>
  137: timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
  138: Apple Inc. MacBookAir5,1 (1.0)
  139: mainbus0 (root)
  140: cpu0 at mainbus0 apid 0: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, id 0x306a9
  141: cpu1 at mainbus0 apid 2: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, id 0x306a9
  142: cpu2 at mainbus0 apid 1: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, id 0x306a9
  143: cpu3 at mainbus0 apid 3: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, id 0x306a9
  144: ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 20, 24 pins
  145: acpi0 at mainbus0: Intel ACPICA 20110623
  146: acpi0: X/RSDT: OemId <APPLE , Apple00,00000000>, AslId <    ,01000013>
  147: acpiecdt0 at acpi0: ACPI Embedded Controller via ECDT
  148: acpi0: SCI interrupting at int 9
  149: timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
  150: hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
  151: timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
  152: acpiec0 at acpi0 (EC, PNP0C09-0): using acpiecdt0
  153: acpivga0 at acpi0 (IGPU): ACPI Display Adapter
  154: acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
  155: acpiout1 at acpivga0 (DD02, 0x0400): ACPI Display Output Device
  156: acpiout1: brightness levels: 0 7 13 20 27 33 40 47 53 60 67 73 80 87 93 100
  157: acpiout2 at acpivga0 (DD03, 0x0200): ACPI Display Output Device
  158: acpiout3 at acpivga0 (DD04, 0x0004): ACPI Display Output Device
  159: acpiout4 at acpivga0 (DD05, 0x0005): ACPI Display Output Device
  160: acpiout5 at acpivga0 (DD06, 0x0006): ACPI Display Output Device
  161: acpiout6 at acpivga0 (DD07, 0x0007): ACPI Display Output Device
  162: acpiout7 at acpivga0 (DD08, 0x0008): ACPI Display Output Device
  163: acpivga0: unknown output device acpiout0
  164: acpivga0: unknown output device acpiout2
  165: acpivga0: unknown output device acpiout3
  166: acpivga0: unknown output device acpiout4
  167: acpivga0: unknown output device acpiout5
  168: acpivga0: unknown output device acpiout6
  169: acpivga0: unknown output device acpiout7
  170: acpivga0: connected output devices:
  171: acpivga0:   0x0400 (acpiout1): Unknown Output Device, head 0
  172: FWHD (INT0800) at acpi0 not configured
  173: LDRC (PNP0C02) at acpi0 not configured
  174: attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53
  175: SMC (APP0001) at acpi0 not configured
  176: ALS0 (ACPI0008) at acpi0 not configured
  177: SBS0 (ACPI0002) at acpi0 not configured
  178: PDRC (PNP0C02) at acpi0 not configured
  179: acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery
  180: acpiacad0 at acpi0 (ADP1, ACPI0003): ACPI AC Adapter
  181: acpilid0 at acpi0 (LID0, PNP0C0D): ACPI Lid Switch
  182: acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
  183: PNLF (APP0002) at acpi0 not configured
  184: acpibut1 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
  185: MEM2 (PNP0C01) at acpi0 not configured
  186: pci0 at mainbus0 bus 0: configuration mode 1
  187: pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
  188: pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x0154 (rev. 0x09)
  189: vga0 at pci0 dev 2 function 0: vendor 0x8086 product 0x0166 (rev. 0x09)
  190: wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
  191: wsmux1: connecting to wsdisplay0
  192: drm at vga0 not configured
  193: vendor 0x8086 product 0x1e31 (USB serial bus, interface 0x30, revision 0x04) at pci0 dev 20 function 0 not configured
  194: vendor 0x8086 product 0x1e3a (miscellaneous communications, revision 0x04) at pci0 dev 22 function 0 not configured
  195: ehci0 at pci0 dev 26 function 0: vendor 0x8086 product 0x1e2d (rev. 0x04)
  196: ehci0: interrupting at ioapic0 pin 23
  197: ehci0: EHCI version 1.0
  198: usb0 at ehci0: USB revision 2.0
  199: hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
  200: hdaudio0: interrupting at ioapic0 pin 22
  201: hdafg0 at hdaudio0: vendor 1013 product 4206
  202: hdafg0: ADC00 2ch: Mic In [Built-In]
  203: hdafg0: DAC01 2ch: Speaker [Built-In]
  204: hdafg0: DAC02 2ch: HP Out [Jack]
  205: hdafg0: 2ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 PCM32 AC3
  206: audio0 at hdafg0: full duplex, playback, capture, independent
  207: hdafg1 at hdaudio0: Intel product 2806
  208: hdafg1: duplicate pin in association
  209: hdafg1: duplicate pin in association
  210: hdafg1: 0ch/0ch 48000Hz PCM16*
  211: ppb0 at pci0 dev 28 function 0: vendor 0x8086 product 0x1e10 (rev. 0xc4)
  212: ppb0: PCI Express 2.0 <Root Port of PCI-E Root Complex>
  213: pci1 at ppb0 bus 1
  214: pci1: i/o space, memory space enabled, rd/line, wr/inv ok
  215: ppb1 at pci0 dev 28 function 1: vendor 0x8086 product 0x1e12 (rev. 0xc4)
  216: ppb1: PCI Express 2.0 <Root Port of PCI-E Root Complex>
  217: pci2 at ppb1 bus 2
  218: pci2: i/o space, memory space enabled, rd/line, wr/inv ok
  219: vendor 0x14e4 product 0x4353 (miscellaneous network, revision 0x01) at pci2 dev 0 function 0 not configured
  220: ppb2 at pci0 dev 28 function 4: vendor 0x8086 product 0x1e18 (rev. 0xc4)
  221: ppb2: PCI Express 2.0 <Root Port of PCI-E Root Complex>
  222: pci3 at ppb2 bus 3
  223: pci3: i/o space, memory space enabled, rd/line, wr/inv ok
  224: ppb3 at pci3 dev 0 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
  225: ppb3: PCI Express 2.0 <Upstream Port of PCI-E Switch>
  226: pci4 at ppb3 bus 4
  227: pci4: i/o space, memory space enabled, rd/line, wr/inv ok
  228: ppb4 at pci4 dev 0 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
  229: ppb4: PCI Express 2.0 <Downstream Port of PCI-E Switch>
  230: pci5 at ppb4 bus 5
  231: pci5: i/o space, memory space enabled, rd/line, wr/inv ok
  232: vendor 0x8086 product 0x1547 (miscellaneous system, revision 0x03) at pci5 dev 0 function 0 not configured
  233: ppb5 at pci4 dev 3 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
  234: ppb5: PCI Express 2.0 <Downstream Port of PCI-E Switch>
  235: pci6 at ppb5 bus 6
  236: pci6: i/o space, memory space enabled, rd/line, wr/inv ok
  237: ppb6 at pci6 dev 0 function 0: vendor 0x8086 product 0x1549 (rev. 0x00)
  238: ppb6: PCI Express 2.0 <Upstream Port of PCI-E Switch>
  239: pci7 at ppb6 bus 7
  240: pci7: i/o space, memory space enabled, rd/line, wr/inv ok
  241: ppb7 at pci7 dev 0 function 0: vendor 0x8086 product 0x1549 (rev. 0x00)
  242: ppb7: PCI Express 2.0 <Downstream Port of PCI-E Switch>
  243: pci8 at ppb7 bus 8
  244: pci8: i/o space, memory space enabled, rd/line, wr/inv ok
  245: bge0 at pci8 dev 0 function 0: Broadcom BCM57762 Gigabit Ethernet
  246: bge0: interrupting at ioapic0 pin 19
  247: bge0: ASIC unknown BCM57766 (0x57766000), Ethernet address 40:6c:8f:58:6c:c5
  248: bge0: setting short Tx thresholds
  249: brgphy0 at bge0 phy 1: BCM57765 1000BASE-T media interface, rev. 0
  250: brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
  251: ppb8 at pci4 dev 4 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
  252: ppb8: PCI Express 2.0 <Downstream Port of PCI-E Switch>
  253: pci9 at ppb8 bus 55
  254: pci9: i/o space, memory space enabled, rd/line, wr/inv ok
  255: ppb9 at pci4 dev 5 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
  256: ppb9: PCI Express 2.0 <Downstream Port of PCI-E Switch>
  257: pci10 at ppb9 bus 104
  258: pci10: i/o space, memory space enabled, rd/line, wr/inv ok
  259: ppb10 at pci4 dev 6 function 0: vendor 0x8086 product 0x1547 (rev. 0x03)
  260: ppb10: PCI Express 2.0 <Downstream Port of PCI-E Switch>
  261: pci11 at ppb10 bus 105
  262: pci11: i/o space, memory space enabled, rd/line, wr/inv ok
  263: ehci1 at pci0 dev 29 function 0: vendor 0x8086 product 0x1e26 (rev. 0x04)
  264: ehci1: interrupting at ioapic0 pin 22
  265: ehci1: EHCI version 1.0
  266: usb1 at ehci1: USB revision 2.0
  267: pcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x1e56 (rev. 0x04)
  268: ahcisata0 at pci0 dev 31 function 2: vendor 0x8086 product 0x1e03 (rev. 0x04)
  269: ahcisata0: interrupting at ioapic0 pin 19
  270: ahcisata0: 64-bit DMA
  271: ahcisata0: AHCI revision 1.30, 6 ports, 32 slots, CAP 0xffffffffc730ff45<EMS,PSC,SSC,PMD,ISS=0x3=Gen3,SCLO,SAL,SALP,SNCQ,S64A>
  272: atabus0 at ahcisata0 channel 0
  273: vendor 0x8086 product 0x1e22 (SMBus serial bus, revision 0x04) at pci0 dev 31 function 3 not configured
  274: isa0 at pcib0
  275: com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
  276: pcppi0 at isa0 port 0x61
  277: midi0 at pcppi0: PC speaker
  278: sysbeep0 at pcppi0
  279: attimer1: attached to pcppi0
  280: acpicpu0 at cpu0: ACPI CPU
  281: acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
  282: acpicpu0: C2: FFH, lat 148 us, pow   500 mW
  283: acpicpu0: C3: FFH, lat 198 us, pow   200 mW
  284: acpicpu0: P0: FFH, lat  10 us, pow 17000 mW, 1701 MHz, turbo boost
  285: acpicpu0: P1: FFH, lat  10 us, pow 17000 mW, 1700 MHz
  286: acpicpu0: P2: FFH, lat  10 us, pow 15798 mW, 1600 MHz
  287: acpicpu0: P3: FFH, lat  10 us, pow 14620 mW, 1500 MHz
  288: acpicpu0: P4: FFH, lat  10 us, pow 13467 mW, 1400 MHz
  289: acpicpu0: P5: FFH, lat  10 us, pow 12337 mW, 1300 MHz
  290: acpicpu0: P6: FFH, lat  10 us, pow 11231 mW, 1200 MHz
  291: acpicpu0: P7: FFH, lat  10 us, pow 10150 mW, 1100 MHz
  292: acpicpu0: P8: FFH, lat  10 us, pow  9090 mW, 1000 MHz
  293: acpicpu0: P9: FFH, lat  10 us, pow  8053 mW,  900 MHz
  294: acpicpu0: P10: FFH, lat  10 us, pow  7192 mW,  800 MHz
  295: acpicpu0: P11: FFH, lat  10 us, pow  6199 mW,  700 MHz
  296: acpicpu0: T0: FFH, lat   1 us, pow  6199 mW, 100 %
  297: acpicpu0: T1: FFH, lat   1 us, pow  5785 mW,  94 %
  298: acpicpu0: T2: FFH, lat   1 us, pow  5372 mW,  88 %
  299: acpicpu0: T3: FFH, lat   1 us, pow  4959 mW,  82 %
  300: acpicpu0: T4: FFH, lat   1 us, pow  4545 mW,  75 %
  301: acpicpu0: T5: FFH, lat   1 us, pow  4132 mW,  69 %
  302: acpicpu0: T6: FFH, lat   1 us, pow  3719 mW,  63 %
  303: acpicpu0: T7: FFH, lat   1 us, pow  3306 mW,  57 %
  304: acpicpu0: T8: FFH, lat   1 us, pow  2892 mW,  50 %
  305: acpicpu0: T9: FFH, lat   1 us, pow  2479 mW,  44 %
  306: acpicpu0: T10: FFH, lat   1 us, pow  2066 mW,  38 %
  307: acpicpu0: T11: FFH, lat   1 us, pow  1653 mW,  32 %
  308: acpicpu0: T12: FFH, lat   1 us, pow  1239 mW,  25 %
  309: acpicpu0: T13: FFH, lat   1 us, pow   826 mW,  19 %
  310: acpicpu0: T14: FFH, lat   1 us, pow   413 mW,  13 %
  311: coretemp0 at cpu0: thermal sensor, 1 C resolution
  312: acpicpu1 at cpu1: ACPI CPU
  313: coretemp1 at cpu1: thermal sensor, 1 C resolution
  314: acpicpu2 at cpu2: ACPI CPU
  315: acpicpu3 at cpu3: ACPI CPU
  316: timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
  317: timecounter: Timecounter "TSC" frequency 1696216100 Hz quality 3000
  318: acpiacad0: AC adapter online.
  319: uhub0 at usb0: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
  320: uhub0: 2 ports with 2 removable, self powered
  321: uhub1 at usb1: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
  322: uhub1: 2 ports with 2 removable, self powered
  323: ahcisata0 port 0: device present, speed: 6.0Gb/s
  324: wd0 at atabus0 drive 0
  325: wd0: <APPLE SSD TS128E>
  326: wd0: drive supports 16-sector PIO transfers, LBA48 addressing
  327: wd0: 113 GB, 235097 cyl, 16 head, 63 sec, 512 bytes/sect x 236978176 sectors
  328: wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
  329: wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
  330: uhub2 at uhub1 port 1: vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2
  331: uhub2: single transaction translator
  332: uhub3 at uhub0 port 1: vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2
  333: uhub3: single transaction translator
  334: uhub2: 8 ports with 7 removable, self powered
  335: uhub3: 6 ports with 5 removable, self powered
  336: uhub4 at uhub2 port 8: Standard Microsystems product 0x2512, class 9/0, rev 2.00/b.b3, addr 3
  337: uhub4: multiple transaction translators
  338: uhub4: 2 ports with 0 removable, self powered
  339: uvideo0 at uhub3 port 1 configuration 1 interface 0: Apple Inc. FaceTime HD Camera (Built-in), rev 2.00/80.25, addr 3
  340: video0 at uvideo0: Apple Inc. FaceTime HD Camera (Built-in), rev 2.00/80.25, addr 3
  341: uhub5 at uhub4 port 1: Apple Inc. BRCM20702 Hub, class 9/0, rev 2.00/1.00, addr 4
  342: uhub5: 3 ports with 0 removable, self powered
  343: uhidev0 at uhub5 port 1 configuration 1 interface 0
  344: uhidev0: Apple Computer product 0x820a, rev 2.00/1.00, addr 5, iclass 3/1
  345: uhidev0: 1 report ids
  346: ukbd0 at uhidev0 reportid 1: 8 modifier keys, 6 key codes
  347: wskbd0 at ukbd0: console keyboard, using wsdisplay0
  348: uhidev1 at uhub5 port 2 configuration 1 interface 0
  349: uhidev1: Apple Computer product 0x820b, rev 2.00/1.00, addr 6, iclass 3/1
  350: uhidev1: 2 report ids
  351: ums0 at uhidev1 reportid 2: 3 buttons
  352: wsmouse0 at ums0 mux 0
  353: ubt0 at uhub5 port 3
  354: ubt0: Apple Inc. Bluetooth USB Host Controller, rev 2.00/0.86, addr 7
  355: uhidev2 at uhub4 port 2 configuration 1 interface 0
  356: uhidev2: Apple Inc. Apple Internal Keyboard / Trackpad, rev 2.00/2.19, addr 8, iclass 3/1
  357: uhidev2: 9 report ids
  358: ukbd1 at uhidev2 reportid 1: 8 modifier keys, 6 key codes, apple fn key
  359: wskbd1 at ukbd1 mux 1
  360: wskbd1: connecting to wsdisplay0
  361: uhid0 at uhidev2 reportid 9: input=0, output=0, feature=3
  362: uhidev3 at uhub4 port 2 configuration 1 interface 1
  363: uhidev3: Apple Inc. Apple Internal Keyboard / Trackpad, rev 2.00/2.19, addr 8, iclass 3/0
  364: uhidev3: 68 report ids
  365: uhid1 at uhidev3 reportid 68: input=511, output=0, feature=0
  366: uhidev4 at uhub4 port 2 configuration 1 interface 2
  367: uhidev4: Apple Inc. Apple Internal Keyboard / Trackpad, rev 2.00/2.19, addr 8, iclass 3/1
  368: uhidev4: 2 report ids
  369: ums1 at uhidev4 reportid 2: 3 buttons
  370: wsmouse1 at ums1 mux 0
  371: Kernelized RAIDframe activated
  372: pad0: outputs: 44100Hz, 16-bit, stereo
  373: audio1 at pad0: half duplex, playback, capture
  374: boot device: wd0
  375: root on wd0a dumps on wd0b
  376: root file system type: ffs
  377: clock: unknown CMOS layout
  378: wsdisplay0: screen 1 added (80x25, vt100 emulation)
  379: wsdisplay0: screen 2 added (80x25, vt100 emulation)
  380: wsdisplay0: screen 3 added (80x25, vt100 emulation)
  381: wsdisplay0: screen 4 added (80x25, vt100 emulation)
  382: </pre>
  383: 
  384: ### /etc/X11/xorg.conf for native X.org
  385: With this xorg.conf, you can find one problem.
  386: Real display size is 1366x768, but detected one is 1368x768 :(
  387: 
  388: <pre><code>
  389: Section "ServerLayout"
  390: 	Identifier     "X.org Configured"
  391: 	Screen      0  "Screen0" 0 0
  392: 	InputDevice    "Mouse0" "CorePointer"
  393: 	InputDevice    "Keyboard0" "CoreKeyboard"
  394: EndSection
  395: 
  396: Section "Files"
  397: 	ModulePath   "/usr/X11R7/lib/modules"
  398: 	FontPath     "/usr/X11R7/lib/X11/fonts/misc/"
  399: 	FontPath     "/usr/X11R7/lib/X11/fonts/TTF/"
  400: 	FontPath     "/usr/X11R7/lib/X11/fonts/Type1/"
  401: 	FontPath     "/usr/X11R7/lib/X11/fonts/75dpi/"
  402: 	FontPath     "/usr/X11R7/lib/X11/fonts/100dpi/"
  403: 	FontPath     "/usr/pkg/lib/X11/fonts/local/"
  404: 	FontPath     "/usr/pkg/lib/X11/fonts/TTF/"
  405: EndSection
  406: 
  407: Section "Module"
  408: 	Load  "dbe"
  409: 	Load  "dri"
  410: 	Load  "dri2"
  411: 	Load  "extmod"
  412: 	Load  "glx"
  413: 	Load  "record"
  414: 	Load  "shadow"
  415: EndSection
  416: 
  417: Section "InputDevice"
  418: 	Identifier  "Keyboard0"
  419: 	Driver      "kbd"
  420: 	Option	"XkbOptions"	"ctrl:nocaps"
  421: EndSection
  422: 
  423: Section "InputDevice"
  424: 	Identifier  "Mouse0"
  425: 	Driver      "mouse"
  426: 	Option	    "Protocol" "wsmouse"
  427: 	Option	    "Device" "/dev/wsmouse"
  428: #	Option	    "ZAxisMapping" "4 5 6 7"
  429: EndSection
  430: 
  431: Section "Monitor"
  432: 	Identifier   "Monitor0"
  433: 	VendorName   "Monitor Vendor"
  434: 	ModelName    "Monitor Model"
  435: EndSection
  436: 
  437: Section "Device"
  438:         ### Available Driver options are:-
  439:         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  440:         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
  441:         ### <percent>: "<f>%"
  442:         ### [arg]: arg optional
  443:         #Option     "ShadowFB"           	# [<bool>]
  444:         #Option     "DefaultRefresh"     	# [<bool>]
  445:         #Option     "ModeSetClearScreen" 	# [<bool>]
  446: 	Identifier  "Card0"
  447: 	Driver      "vesa"
  448: 	BusID       "PCI:0:2:0"
  449: EndSection
  450: 
  451: Section "Screen"
  452: 	Identifier "Screen0"
  453: 	Device     "Card0"
  454: 	Monitor    "Monitor0"
  455: 	SubSection "Display"
  456: 		Viewport   0 0
  457: 		Depth     1
  458: 	EndSubSection
  459: 	SubSection "Display"
  460: 		Viewport   0 0
  461: 		Depth     4
  462: 	EndSubSection
  463: 	SubSection "Display"
  464: 		Viewport   0 0
  465: 		Depth     8
  466: 	EndSubSection
  467: 	SubSection "Display"
  468: 		Viewport   0 0
  469: 		Depth     15
  470: 	EndSubSection
  471: 	SubSection "Display"
  472: 		Viewport   0 0
  473: 		Depth     16
  474: 	EndSubSection
  475: 	SubSection "Display"
  476: 		Viewport   0 0
  477: 		Depth     24
  478: 	EndSubSection
  479: EndSection
  480: </code></pre>

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb