Date: Sat, 31 Aug 2013 01:42:09 +0200 From: "Lundberg, Johannes" <johannes@brilliantservice.co.jp> To: Alfred Perlstein <bright@mu.org> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: 2013 MacBook Air Project Message-ID: <CAASDrV=BKgU4kUA3wVFvWrXt=wttU5FCOHYrVKvpdgxxhnW7OQ@mail.gmail.com> In-Reply-To: <522110CB.5050501@mu.org> References: <CAASDrVkA-F-gmZW0CGxkRkSaBEDix4ni_jkJVGt41qtzTRx6uw@mail.gmail.com> <522110CB.5050501@mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Thanks :) No github but I will attach the patches in this mail. Remember, the diskgeom patch is a ugly hack.... Johannes Lundberg BRILLIANTSERVICE CO., LTD. <http://www.brilliantservice.co.jp> On Fri, Aug 30, 2013 at 11:38 PM, Alfred Perlstein <bright@mu.org> wrote: > This is so cool! > > Do you have a repo on github with these patches? > > > On 8/30/13 9:25 AM, Lundberg, Johannes wrote: > >> Hi >> >> I thought I'd give a progress report on running FreeBSD 10 on a MacBook >> Air >> 11" 2013 model. >> >> PCI-E SSD DRIVE >> - Added device ID to device list. Should be committed to head already. >> - Failed to write partition table due to weird characters at the end in >> the >> SSD's identifier key. Solved by ugly hack (cutting off the ident string in >> the middle), fix not committed. >> >> SMP >> - No problem when booting from usb memory stick. However, have to disable >> smp in /boot/loader.conf with kern.smp.disabled="1" to boot from the SSD. >> >> USB >> - Reverted sys/dev/usb/controller/xhci* to 243780 to make it work. >> >> WIFI >> - Seems like this one is gonna be difficult due to Broadcom's proprietary >> driver.... >> >> ETHERNET >> - Thunderbolt adapter works fine but hot-plugging not supported so you >> need >> to connect it before booting. >> >> BLUETOOTH >> - Added device to usbdevs and ng_ubt.c. Device is recognised and ubt0 >> created but when running "service bluetooth start ubt0" I get "Unable to >> setup Bluetooth stack for device ubt0". Works fine with other generic >> bluetooth 4.0 usb dongle. No debugging done. >> >> Will install Xorg next week so report about that coming later. >> >> Best Regards >> >> Johannes Lundberg >> BRILLIANTSERVICE CO., LTD. <http://www.brilliantservice.**co.jp<http://www.brilliantservice.co.jp> >> > >> ______________________________**_________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/**mailman/listinfo/freebsd-**current<http://lists.freebsd.org/mailman/listinfo/freebsd-current> >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@** >> freebsd.org <freebsd-current-unsubscribe@freebsd.org>" >> >> > > -- > Alfred Perlstein > > [-- Attachment #2 --] Index: sys/geom/geom_disk.c =================================================================== --- sys/geom/geom_disk.c (revision 254924) +++ sys/geom/geom_disk.c (working copy) @@ -429,7 +429,7 @@ struct disk *dp; struct g_disk_softc *sc; char *buf; - int res = 0; +// int res = 0; sc = gp->softc; if (sc == NULL || (dp = sc->dp) == NULL) @@ -448,6 +448,7 @@ buf = g_malloc(DISK_IDENT_SIZE, M_WAITOK); bp = g_alloc_bio(); bp->bio_disk = dp; +/* bp->bio_attribute = "GEOM::ident"; bp->bio_length = DISK_IDENT_SIZE; bp->bio_data = buf; @@ -454,6 +455,8 @@ res = dp->d_getattr(bp); sbuf_printf(sb, "%s<ident>%s</ident>\n", indent, res == 0 ? buf: dp->d_ident); +*/ + sbuf_printf(sb, "%s<ident>0</ident>\n", indent); bp->bio_attribute = "GEOM::lunid"; bp->bio_length = DISK_IDENT_SIZE; bp->bio_data = buf; [-- Attachment #3 --] Index: sys/i386/i386/machdep.c =================================================================== --- sys/i386/i386/machdep.c (revision 254924) +++ sys/i386/i386/machdep.c (working copy) @@ -277,6 +277,7 @@ strncmp(sysenv, "MacBookPro1,1", 13) == 0 || strncmp(sysenv, "MacBookPro1,2", 13) == 0 || strncmp(sysenv, "MacBookPro3,1", 13) == 0 || + strncmp(sysenv, "MacBookAir6,1", 13) == 0 || strncmp(sysenv, "Macmini1,1", 10) == 0) { if (bootverbose) printf("Disabling LEGACY_USB_EN bit on " [-- Attachment #4 --] Index: sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c =================================================================== --- sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c (revision 254924) +++ sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c (working copy) @@ -437,6 +437,10 @@ USB_IFACE_CLASS(UICLASS_VENDOR), USB_IFACE_SUBCLASS(UDSUBCLASS_RF), USB_IFACE_PROTOCOL(UDPROTO_BLUETOOTH) }, + + /* MacBookAir6,1 */ + { USB_VPI(0x05ac, 0x828f, 0) }, + }; /* [-- Attachment #5 --] Index: sys/dev/usb/usbdevs =================================================================== --- sys/dev/usb/usbdevs (revision 255073) +++ sys/dev/usb/usbdevs (working copy) @@ -1078,6 +1078,7 @@ product APPLE MOUSE 0x0301 Mouse M4848 product APPLE OPTMOUSE 0x0302 Optical mouse product APPLE MIGHTYMOUSE 0x0304 Mighty Mouse +product APPLE BT_USB 0x828f Bluetooth USB Host Controller product APPLE KBD_HUB 0x1001 Hub in Apple USB Keyboard product APPLE EXT_KBD_HUB 0x1003 Hub in Apple Extended USB Keyboard product APPLE SPEAKERS 0x1101 Speakers
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAASDrV=BKgU4kUA3wVFvWrXt=wttU5FCOHYrVKvpdgxxhnW7OQ>
