From owner-freebsd-current@FreeBSD.ORG Thu Mar 27 22:51:50 2008 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 CC0221065670 for ; Thu, 27 Mar 2008 22:51:50 +0000 (UTC) (envelope-from lev@nupfel.de) Received: from schatten.darksystem.net (schatten.darksystem.net [88.198.51.7]) by mx1.freebsd.org (Postfix) with ESMTP id 52A1C8FC15 for ; Thu, 27 Mar 2008 22:51:49 +0000 (UTC) (envelope-from lev@nupfel.de) Received: from schatten.darksystem.net (localhost [127.0.0.1]) by schatten.darksystem.net (Postfix) with ESMTP id B8376F5C508; Thu, 27 Mar 2008 23:51:48 +0100 (CET) X-Spam-Status: No, hits=1.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DSBL, RCVD_IN_PBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC X-Spam-Check-By: schatten.darksystem.net Received: from port-212-202-192-115.dynamic.qsc.de (HELO mail.nupfel.de) (212.202.192.115) (smtp-auth username lev, mechanism plain) by schatten.darksystem.net (qpsmtpd/0.32) with ESMTP; Thu, 27 Mar 2008 23:51:28 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.nupfel.de (Postfix) with ESMTP id 0E06D1A214CF; Thu, 27 Mar 2008 23:51:26 +0100 (CET) X-Virus-Scanned: amavisd-new at nupfel.de Received: from mail.nupfel.de ([127.0.0.1]) by localhost (mail.nupfel.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YvCu3NxkFR75; Thu, 27 Mar 2008 23:51:24 +0100 (CET) Received: by mail.nupfel.de (Postfix, from userid 1000) id 611E11A214CC; Thu, 27 Mar 2008 23:51:24 +0100 (CET) Date: Thu, 27 Mar 2008 23:51:24 +0100 From: Tobias Kirschstein To: Maik Ehinger Message-ID: <20080327225124.GC9146@nupfel.de> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7gGkHNMELEOhSGF6" Content-Disposition: inline In-Reply-To: X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.8; amd64-portbld-freebsd8.0) User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-current@freebsd.org Subject: Re: hdaps (accelerator) driver for thinkpads 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: Thu, 27 Mar 2008 22:51:51 -0000 --7gGkHNMELEOhSGF6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hi mike, > here is a new Version from 2006 which depends on the Linux tp_smapi > 0.30 by Shem Multinymous. It works on my T42 nicely. > But there is still no hdaps support for FreeBSD. It only a device > driver for the accelerometer. >=20 > I didn't have a look at it since over a yer now. Use at your own risk. thank you very much! unfortunately compiling the driver didn't work for me: -------------------------------------------- $ make Warning: Object directory not changed from original /usr/home/lev/src/x60t/= thinkpad_ec-030_04092006 @ -> /usr/src/sys machine -> /usr/src/sys/amd64/include awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/kern/device_if.m -h cc -O2 -fno-strict-aliasing -pipe -march=3Dnocona -Werror -D_KERNEL -DKLD_M= ODULE -std=3Dc99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=3D8000= --param inline-unit-growth=3D100 --param large-function-growth=3D1000 -fno= -common -fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone -mfpmath= =3D387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchrono= us-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -W= strict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qua= l -Wundef -Wno-pointer-sign -fformat-extensions -c thinkpad_ec.c cc -O2 -fno-strict-aliasing -pipe -march=3Dnocona -Werror -D_KERNEL -DKLD_M= ODULE -std=3Dc99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=3D8000= --param inline-unit-growth=3D100 --param large-function-growth=3D1000 -fno= -common -fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone -mfpmath= =3D387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchrono= us-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -W= strict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qua= l -Wundef -Wno-pointer-sign -fformat-extensions -c smbios.c cc1: warnings being treated as errors smbios.c: In function 'smbios_find_eps': smbios.c:82: warning: cast to pointer from integer of different size smbios.c:83: warning: cast to pointer from integer of different size smbios.c: In function 'smbios_cksum': smbios.c:101: warning: cast to pointer from integer of different size smbios.c: In function 'smbios_FindStructure': smbios.c:124: warning: cast to pointer from integer of different size smbios.c:126: warning: cast to pointer from integer of different size smbios.c:128: warning: cast to pointer from integer of different size smbios.c:134: warning: cast to pointer from integer of different size smbios.c:136: warning: cast to pointer from integer of different size smbios.c: In function 'smbios_get_string': smbios.c:161: warning: cast to pointer from integer of different size smbios.c:164: warning: cast to pointer from integer of different size smbios.c:167: warning: cast to pointer from integer of different size smbios.c:178: warning: cast to pointer from integer of different size smbios.c: In function 'smbios_init': smbios.c:201: warning: cast to pointer from integer of different size smbios.c:205: warning: cast to pointer from integer of different size smbios.c: In function 'smbios_find_oem_substring': smbios.c:271: warning: cast to pointer from integer of different size *** Error code 1 -------------------------------------------- i had to add CFLAGS +=3D -Wno-error to the Makefile to get it compiled but then loading the first module "thinkpad_ec.ko" crashes my x60t completely :( i haven't looked any further into the code yet, but it seems that it supplies the same functionality (sysctls and some mouse/joystick devices). i had problems using mtx_lock in the driver i sent. commenting this out made at least the sysctls work in my version: -------------------------------------------- $ sysctl hw.accel hw.accel.data: 2 509 511 57 510 511 57 7 128 hw.accel.aps_sensibility: 255 -------------------------------------------- but the devices are still not usable without resulting in a core dump... --=20 ciao, lev --7gGkHNMELEOhSGF6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iGwEARECACwFAkfsJOwlGmh0dHA6Ly93d3cubnVwZmVsLmRlL3BncC9wb2xpY3ku aHRtbAAKCRCkm1fv1t7QAOq7AJ9KidK7fij+FoRFR6t+MrNdavpIfACg2AMYOM8z 7DCW/5S70ZXeYt/rzko= =DTss -----END PGP SIGNATURE----- --7gGkHNMELEOhSGF6--