From owner-freebsd-usb@FreeBSD.ORG Sun Apr 25 09:04:47 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBB201065674 for ; Sun, 25 Apr 2010 09:04:46 +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 7DB8F8FC0A for ; Sun, 25 Apr 2010 09:04:46 +0000 (UTC) Received: from localhost (system.jails.se [87.237.210.209]) by system.jails.se (Postfix) with SMTP id BC764BCA3E for ; Sun, 25 Apr 2010 11:04:39 +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 A8F97BCA36; Sun, 25 Apr 2010 11:04:35 +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: Sun, 25 Apr 2010 11:04:39 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201004250951.19561.hselasky@c2i.net> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1078) X-DSPAM-Result: Innocent X-DSPAM-Processed: Sun Apr 25 11:04:39 2010 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 4bd405a716297983785246 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, but, 0.40000, strncmp(sysenv+"MacBookPro1, 0.40000, strncmp(sysenv+"MacBookPro1, 0.40000, not+how, 0.40000, area+for, 0.40000, Received*cipher+AES128, 0.40000, Petter+Selasky, 0.40000, just, 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, >+How, 0.40000, btw, 0.40000, newly+released, 0.40000, pressed+or, 0.40000, or, 0.40000, or, 0.40000 Cc: rpaulo@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Keyboard problem with new MacBook Pro. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2010 09:04:47 -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 How do I print out the sysenv during boot? And when I find it how do I = go about creating a install-cd with the changes on it? (i know how to compile kernel/world = but not how to package it for a CD/DVD) Can I just add the modified part to a already = downloaded cd-image?=