Annotation of wikisrc/users/ryoon/how_to_install_netbsd_amd64_to_macbook_air_11_inch.mdwn, revision 1.11

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

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