From owner-freebsd-current@FreeBSD.ORG Mon Apr 26 19:32:05 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F17B41065675 for ; Mon, 26 Apr 2010 19:32:04 +0000 (UTC) (envelope-from peter@pean.org) Received: from system.jails.se (unknown [IPv6:2001:16d8:cc1e:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 933448FC19 for ; Mon, 26 Apr 2010 19:32:03 +0000 (UTC) Received: from localhost (system.jails.se [87.237.210.209]) by system.jails.se (Postfix) with SMTP id 1CF7CB6244 for ; Mon, 26 Apr 2010 21:31:57 +0200 (CEST) Received: from pi.pean.org (c-ae06e155.166-7-64736c14.cust.bredbandsbolaget.se [85.225.6.174]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by system.jails.se (Postfix) with ESMTPSA id 0DA4DB6237; Mon, 26 Apr 2010 21:31:52 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=iso-8859-1 From: =?iso-8859-1?Q?Peter_Ankerst=E5l?= In-Reply-To: <201004250951.19561.hselasky@c2i.net> Date: Mon, 26 Apr 2010 21:31:56 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <660B95EC-08D5-4D7B-B5C2-9E8AC97462C7@pean.org> References: <201004250951.19561.hselasky@c2i.net> To: Hans Petter Selasky , freebsd-current@freebsd.org X-Mailer: Apple Mail (2.1078) X-DSPAM-Result: Innocent X-DSPAM-Processed: Mon Apr 26 21:31:56 2010 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 4bd5ea2c16291482959872 X-DSPAM-Factors: 27, solved+by, 0.40000, keymap, 0.40000, keymap, 0.40000, >>+choose, 0.40000, using+the, 0.40000, >>+installed, 0.40000, but, 0.40000, strncmp(sysenv+"MacBookPro1, 0.40000, strncmp(sysenv+"MacBookPro1, 0.40000, area+for, 0.40000, Received*cipher+AES128, 0.40000, Petter+Selasky, 0.40000, looks, 0.40000, Message-Id*<660B95EC+08D5, 0.40000, Cc*rpaulo+freebsd.org, 0.40000, Mime-Version*Message, 0.40000, Date*Apr, 0.40000, the+keyboard, 0.40000, the+keyboard, 0.40000, made, 0.40000, btw, 0.40000, newly+released, 0.40000, pressed+or, 0.40000, or, 0.40000, or, 0.40000, 13"+(7, 0.40000, ctrl+and, 0.40000 X-Mailman-Approved-At: Mon, 26 Apr 2010 19:51:08 +0000 Cc: Matthew Seaman , rpaulo@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Keyboard problem with new MacBook Pro. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2010 19:32:05 -0000 On 25 apr 2010, at 09.51, Hans Petter Selasky wrote: > On Sunday 25 April 2010 09:30:12 Peter Ankerst=E5l wrote: >> Hi, >>=20 >> I have the newly released macbook pro 13" (7,1). (swedish keyboard) = And it >> seems that I have some problem with the USB-keyboard driver. The = keyboard >> seems to work more or less in the boot meny, I can type and so on. = But >> when the system is booted the keyboard dosent work. It seems like = ctrl is >> constantly pressed or something like that. Nothing that I've done = gives me >> normal characters on screen. Its the FreeBSD 7.3 amd64 version i have >> installed btw. (8.0 or 9.0 freeezes during boot due to some = acpi-problem >> = http://wiki.freebsd.org/AppleMacbook#head-083ebc072fcd20e07a74a11565fc41af= >> b2ca099b) >>=20 >> I have got the keyboard to partially work when using the fixit cd. If = I >> choose US UNIX keymap first and then switch to some other keymap, say = US >> ISO och Swedish ISO it works to type but shift, ctrl and so on doesnt >> work. >=20 > Hi, >=20 > In 8-stable and 9-current, we have made several patches in the USB = keyboard=20 > area for Apple Keyboards, like supporting the eject key, swapping = keys, etc. >=20 > Regaring the boot issue with Mac, I think it can be solved by adding a = quirk=20 > in the kernel: >=20 > amd64/machdep.c: if (strncmp(sysenv, "MacBook1,1", 10) = =3D=3D 0 || > amd64/machdep.c: strncmp(sysenv, "MacBook3,1", 10) = =3D=3D 0 || > amd64/machdep.c: strncmp(sysenv, "MacBookPro1,1", = 13) =3D=3D 0=20 > || > amd64/machdep.c: strncmp(sysenv, "MacBookPro1,2", = 13) =3D=3D 0=20 > || > amd64/machdep.c: strncmp(sysenv, "MacBookPro3,1", = 13) =3D=3D 0=20 > || > amd64/pmap.c: if (strncmp(sysenv, "MacBook5,1", 10) = =3D=3D 0 || > amd64/pmap.c: strncmp(sysenv, "MacBookPro5,5", = 13) =3D=3D 0=20 > || >=20 > Similar for i386. >=20 > Could you print out your sysenv during boot and try adding your = MacBook to the=20 > quirk list? >=20 > --HPS >=20 Hi! I managed to get the boot-process past the ACPI-part by adding=20 similar lines like above (MacBookPro7,1) to the FreeBSD HEAD branch (as = of 26 April 19:00 CEST). Made a release iso like this: = http://romana.now.ie/writing/customfreebsdiso.html But now the boot-process panics at a later stage in the process and it = looks like this: http://www.pean.org/macbook_boot.jpg Any pointers?=20=