Re: New 12" Retina Macbook (Macbook9,1)

2016-05-18 Thread Ted Unangst
Bryan C. Everly wrote:
> I just received my 12" Retina Macbook (the Macbook9,1) which is the
> latest Skylake version.  I would really like to get OpenBSD running on
> this and am happy to trace any code, build patches, stand on my head,
> etc. if I could get someone interested in working with me to figure
> this thing out.

I would get acquainted with vmware. OS X is then a giant hardware abstraction
layer.



Re: New 12" Retina Macbook (Macbook9,1)

2016-05-18 Thread Mike Larkin
On Wed, May 18, 2016 at 09:32:55AM -0500, joshua stein wrote:
> On Wed, 18 May 2016 at 09:33:36 -0400, Bryan C. Everly wrote:
> > 2.  The keyboard works at the boot prompt, but does not work once the
> > install/upgrade/shell prompt comes up
> 
> The keyboard and trackpad appear to be connected over SPI:
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=99891
> 
> While there may be some short path to keeping the keyboard in a
> legacy mode, I'm sure the trackpad will require an entirely new
> driver to be usable at all.
> 
> > 5.  The internal solid state hard drive is not recognized. This is one
> > of the NVM Express (or some people call them NVMe) drives.  I think I
> > saw a patch floating around on the list to enable the controller to be
> > recognized.  Once I update sources I'll see if I can build a kernel
> > with that patch applied to see if I can get farther.
> 
> Some commits went into Linux to support it, but it still looks buggy
> there:
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=105621
> 
> So with no easy path to a working keyboard or trackpad, practically
> no chance of wireless support nor even the ability to plug in a
> small USB adapter due to the single USB-C port, I doubt this laptop
> will be usable at all under OpenBSD.  And the keyboard sucks.
> 

you forgot skylake video, too.



Re: New 12" Retina Macbook (Macbook9,1)

2016-05-18 Thread joshua stein
On Wed, 18 May 2016 at 09:33:36 -0400, Bryan C. Everly wrote:
> 2.  The keyboard works at the boot prompt, but does not work once the
> install/upgrade/shell prompt comes up

The keyboard and trackpad appear to be connected over SPI:

https://bugzilla.kernel.org/show_bug.cgi?id=99891

While there may be some short path to keeping the keyboard in a
legacy mode, I'm sure the trackpad will require an entirely new
driver to be usable at all.

> 5.  The internal solid state hard drive is not recognized. This is one
> of the NVM Express (or some people call them NVMe) drives.  I think I
> saw a patch floating around on the list to enable the controller to be
> recognized.  Once I update sources I'll see if I can build a kernel
> with that patch applied to see if I can get farther.

Some commits went into Linux to support it, but it still looks buggy
there:

https://bugzilla.kernel.org/show_bug.cgi?id=105621

So with no easy path to a working keyboard or trackpad, practically
no chance of wireless support nor even the ability to plug in a
small USB adapter due to the single USB-C port, I doubt this laptop
will be usable at all under OpenBSD.  And the keyboard sucks.



New 12" Retina Macbook (Macbook9,1)

2016-05-18 Thread Bryan C. Everly
Hello tech@

I just received my 12" Retina Macbook (the Macbook9,1) which is the
latest Skylake version.  I would really like to get OpenBSD running on
this and am happy to trace any code, build patches, stand on my head,
etc. if I could get someone interested in working with me to figure
this thing out.

Here is where things stand with the latest 6.0 snapshot:

1.  It will boot the install60.fs ramdisk image and successfully get
to the Install/Upgrade/Shell prompt

2.  The keyboard works at the boot prompt, but does not work once the
install/upgrade/shell prompt comes up

3.  My USB-C to USB 3.0 hub that I purchased works just fine to boot
USB thumb drives

4.  A USB keyboard plugged into the hub allows me to have a working
keyboard once the installer hits the prompt

5.  The internal solid state hard drive is not recognized. This is one
of the NVM Express (or some people call them NVMe) drives.  I think I
saw a patch floating around on the list to enable the controller to be
recognized.  Once I update sources I'll see if I can build a kernel
with that patch applied to see if I can get farther.

6.  The Broadcom 0x43a3 (I think it is the Broadcom 4350 chipset) WiFi
adapter is not working.  Not surprising given... well... Broadcom.

I was able to get a dmesg out of the thing by ripping out my boot USB
stick and jamming in a MSDOS formatted USB stick.  I've cut and pasted
it below.

Again, anyone willing to help me see if I can get this farther along?


--- snip ---

OpenBSD 6.0-beta (RAMDISK_CD) #1882: Wed May 18 01:18:09 MDT 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
RTC BIOS diagnostic error
fe
real mem = 8468639744 (8076MB)
avail mem = 8210128896 (7829MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x8af1e000 (42 entries)
bios0: vendor Apple Inc. version "MB91.88Z.0154.B00.1603041656" date 03/04/2016
bios0: Apple Inc. MacBook9,1
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP UEFI ECDT HPET APIC MCFG SBST SSDT SSDT SSDT
SSDT SSDT SSDT SSDT SSDT SSDT SSDT DMAR
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) m7-6Y75 CPU @ 1.20GHz, 2894.54 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 23MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus -1 (RP05)
acpiprt4 at acpi0: bus 2 (RP09)
acpiprt5 at acpi0: bus 3 (RP10)
acpicpu at acpi0 not configured
"APP0001" at acpi0 not configured
"ACPI0008" at acpi0 not configured
"ACPI0002" at acpi0 not configured
"APP000D" at acpi0 not configured
"BCM2E7C" at acpi0 not configured
"PNP0C0A" at acpi0 not configured
"ACPI0003" at acpi0 not configured
"PNP0C0D" at acpi0 not configured
"PNP0C0C" at acpi0 not configured
"APP0002" at acpi0 not configured
"PNP0C0E" at acpi0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x190c rev 0x08
vendor "Intel", unknown product 0x191e (class display subclass VGA,
rev 0x07) at pci0 dev 2 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
vendor "Intel", unknown product 0x9d60 (class DASP subclass
miscellaneous, rev 0x21) at pci0 dev 21 function 0 not configured
vendor "Intel", unknown product 0x9d62 (class DASP subclass
miscellaneous, rev 0x21) at pci0 dev 21 function 2 not configured
"Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
vendor "Intel", unknown product 0x9d66 (class DASP subclass
miscellaneous, rev 0x21) at pci0 dev 25 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
pci1 at ppb0 bus 1
vendor "Apple", unknown product 0x2003 (class mass storage subclass
miscellaneous, rev 0x11) at pci1 dev 0 function 0 not configured
ppb1 at pci0 dev 29 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
pci2 at ppb1 bus 2
vendor "Broadcom", unknown product 0x43a3 (class network subclass
miscellaneous, rev 0x05) at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 29 function 1 "Intel 100 Series PCIE" rev 0xf1: msi
pci3 at ppb2 bus 3
"Broadcom BCM15700A2" rev 0x00 at pci3 dev 0