From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 02:27:20 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2F63106564A for ; Tue, 1 Apr 2008 02:27:20 +0000 (UTC) (envelope-from olihc17@yahoo.com) Received: from web53807.mail.re2.yahoo.com (web53807.mail.re2.yahoo.com [206.190.36.202]) by mx1.freebsd.org (Postfix) with SMTP id 78EEA8FC16 for ; Tue, 1 Apr 2008 02:27:20 +0000 (UTC) (envelope-from olihc17@yahoo.com) Received: (qmail 26940 invoked by uid 60001); 1 Apr 2008 02:00:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=0Gf2C1jAXktr5YZBpE/LgbiA6slg9fyg31I+5MfqSEE0AtDGM+W8/DYwbNetsCuJ1VMt8xUBw8itwg6YnvjHvwDKMhNm6+KFn5UO6SD9sQj3dFZn6a9TknsqHZKdcRwq/7vk/hSboSJnPI2QOZiv7//QadM8Z14mPYlMNTK8l/8=; X-YMail-OSG: QjOU.8MVM1kdGxHZ8v4imIlVTZwasbnWLn2ILTmqm8MLyZENOCODiDUW55onWiloJhg3A0TiFdLKSh7Gziu0ri8RPnqGUpgGXlYheDtBqWSe_YaSztMWjzK6G3fJM1zrMV2irFU7z.9Qk6kzo1ntb5rxTQ-- Received: from [202.73.172.6] by web53807.mail.re2.yahoo.com via HTTP; Mon, 31 Mar 2008 19:00:38 PDT X-Mailer: YahooMailRC/902.40 YahooMailWebService/0.7.185 Date: Mon, 31 Mar 2008 19:00:38 -0700 (PDT) From: chilo To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Message-ID: <642248.23341.qm@web53807.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Adaptec AIC-9405/9410 SAS controller driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 02:27:21 -0000 Hi guys does anybody know where I can download a driver for this Adaptec for Freebsd 7.0? Thnx ____________________________________________________________________________________ Like movies? Here's a limited-time offer: Blockbuster Total Access for one month at no cost. http://tc.deals.yahoo.com/tc/blockbuster/text4.com From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 05:13:58 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB56B1066191; Tue, 1 Apr 2008 05:13:51 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id AD0A28FC14; Tue, 1 Apr 2008 05:13:50 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id 979A54D5672; Tue, 1 Apr 2008 13:07:44 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id 4A97555E43D for ; Fri, 28 Mar 2008 05:06:18 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 64A27163C07; Thu, 27 Mar 2008 21:05:38 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 1BCE510656F9; Thu, 27 Mar 2008 21:05:36 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 333B41065671 for ; Thu, 27 Mar 2008 21:05:25 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by mx1.freebsd.org (Postfix) with ESMTP id 04F868FC20 for ; Thu, 27 Mar 2008 21:05:24 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so4031809wfa.7 for ; Thu, 27 Mar 2008 14:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=hEJiW4kRPyNTGzHFYFkojk4UZOp9Wc3JtQGZ5dDmPLQ=; b=fAJS2JCJqcrmfbddTZ1oKoJzpn4gExn7EPiZf3NUbV0wv5FI80+zIAD6uM+/8LKf6bP/lgRZaNNJr8Cw/ol5WLEeY7Q50qPEq7EBu+EShTt4p97s/Se60qDrCtBZNrKGXwhmpoIrBN7lqlKDuL8qG3pL9QQ5DBBIJQQvWNccwp4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aUOZYWTL1TREI6izI9/WnOurmfQ8yj7w09Q4xZaiubY/kQ6G0WbW4qrnWD99Lui1kjEcrr8HF4X14OQ57QjIC1hU7zNhyRR2oKBmM9fJlUU582Sy8kEkdK8q6fQDDVjlPiov8q43jPSyOJSO4D26HuYZlys9bMqiVzC1+3/5kHo= Received: by 10.142.43.7 with SMTP id q7mr1816811wfq.67.1206651924605; Thu, 27 Mar 2008 14:05:24 -0700 (PDT) Received: by 10.142.147.6 with HTTP; Thu, 27 Mar 2008 14:05:24 -0700 (PDT) Message-ID: <3c0b01820803271405r2351cbbwb20b8b35c5621dcb@mail.gmail.com> Date: Thu, 27 Mar 2008 17:05:24 -0400 From: "Alexander Sack" To: pluknet In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3c0b01820803270851x24bfe739pea0bd4fb0ebecfb0@mail.gmail.com> <47EBF498.9090409@elischer.org> <3c0b01820803271252m488159ebi2af2255461f10358@mail.gmail.com> X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-hackers@freebsd.org Errors-To: owner-freebsd-hackers@freebsd.org Cc: freebsd-hackers@freebsd.org, Julian Elischer , freebsd-drivers@freebsd.org Subject: Re: Stupid driver build/debug questions X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 05:13:58 -0000 On Thu, Mar 27, 2008 at 4:39 PM, pluknet wrote: > > On 27/03/2008, Alexander Sack wrote: > > On Thu, Mar 27, 2008 at 3:25 PM, Julian Elischer wrote: > > > Alexander Sack wrote: > > > > Hello: > > > > > > > > New to the FreeBSD kernel and I'm investigating a driver problem > > > > (wasn't sure what list this should go on). > > > > > > > > I was wondering how to make a driver statically built instead of a > > > > loadable module? Is this an artifact of the driver source build or > > > > the generic kernel configuration mechanism via options etc.? i.e. > > > > does a driver need to use something different than the bsd.kmod.mk > > > > template make file to build a static driver. > > > > > > > > What I am trying to do is break at attach time more easily than > > > > stepping through driver_probe_and_attach()/driver_attach_child() until > > > > the attach routine gets called. I realize I can add a kdb_enter() but > > > > I was trying to do this on a live system without rebuilding the kernel > > > > (I understand this contradicts my first question but I still want to > > > > know how to build drivers statically). > > > > > > put the filennames in /sys/conf/files or files.i386 (or whatever) > > > > > > at one stage you could also have a files.{CONFIGNAME} but I haven't > > > tried that for a long time. > > > > > > Thanks for the response. I will try this but I do have an obvious > > question, the build scripts do not need to be edited at all with the > > extra directory/files? It will just pickup my driver directory and > > link against the kernel automagically? > > Yes, It will if you add them to standard files list (see conf/files). > (Otherwise if you want it as options directive in your kernel config > than you should mark its module name in conf/files and also put > an appropriate record into conf/options). Thank you very much, that is what I thought regarding it as an options directive instead of a driver - I just wanted some validation before going down that path. Again, thanks guys, -aps -- "What lies behind us and what lies in front of us is of little concern to what lies within us." -Ralph Waldo Emerson _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 05:18:53 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F3B61065969; Tue, 1 Apr 2008 05:18:53 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id 8053E8FC1D; Tue, 1 Apr 2008 05:18:52 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id 486E54D4A38; Tue, 1 Apr 2008 13:11:31 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id 7A94055E491 for ; Fri, 28 Mar 2008 03:25:39 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 57A021A79B4; Thu, 27 Mar 2008 19:25:25 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 8820410656D4; Thu, 27 Mar 2008 19:25:24 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BABC7106564A for ; Thu, 27 Mar 2008 19:25:13 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outF.internet-mail-service.net (outf.internet-mail-service.net [216.240.47.229]) by mx1.freebsd.org (Postfix) with ESMTP id A838B8FC17 for ; Thu, 27 Mar 2008 19:25:13 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Thu, 27 Mar 2008 17:47:27 -0700 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 241992D6004; Thu, 27 Mar 2008 12:25:12 -0700 (PDT) Message-ID: <47EBF498.9090409@elischer.org> Date: Thu, 27 Mar 2008 12:25:12 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Alexander Sack References: <3c0b01820803270851x24bfe739pea0bd4fb0ebecfb0@mail.gmail.com> In-Reply-To: <3c0b01820803270851x24bfe739pea0bd4fb0ebecfb0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-hackers@freebsd.org Errors-To: owner-freebsd-hackers@freebsd.org Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: Stupid driver build/debug questions X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 05:18:53 -0000 Alexander Sack wrote: > Hello: > > New to the FreeBSD kernel and I'm investigating a driver problem > (wasn't sure what list this should go on). > > I was wondering how to make a driver statically built instead of a > loadable module? Is this an artifact of the driver source build or > the generic kernel configuration mechanism via options etc.? i.e. > does a driver need to use something different than the bsd.kmod.mk > template make file to build a static driver. > > What I am trying to do is break at attach time more easily than > stepping through driver_probe_and_attach()/driver_attach_child() until > the attach routine gets called. I realize I can add a kdb_enter() but > I was trying to do this on a live system without rebuilding the kernel > (I understand this contradicts my first question but I still want to > know how to build drivers statically). put the filennames in /sys/conf/files or files.i386 (or whatever) at one stage you could also have a files.{CONFIGNAME} but I haven't tried that for a long time. > > Thanks! > > -aps > _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 05:27:35 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2BB41065676 for ; Tue, 1 Apr 2008 05:27:35 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id 41EC08FC14 for ; Tue, 1 Apr 2008 05:27:35 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id 558D14D5453; Tue, 1 Apr 2008 12:42:29 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id D10DC55E462 for ; Thu, 27 Mar 2008 23:53:35 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 6A7151A633B; Thu, 27 Mar 2008 15:51:23 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 6527D1065719; Thu, 27 Mar 2008 15:51:23 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23C001065670 for ; Thu, 27 Mar 2008 15:51:16 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.191]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB968FC26 for ; Thu, 27 Mar 2008 15:51:15 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by ti-out-0910.google.com with SMTP id j2so1548129tid.3 for ; Thu, 27 Mar 2008 08:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; bh=NZ84DYFA+TzW19phcJ5dQkgfqKqwyvLYjfmUAg77SuQ=; b=us8lChY4cfKcc2zuOYPf6+UB+kcS/iMB/TpQm/ICRvWnmz9MfHdhtIu+tUsd54J8ZKZ9z6/zCzB7TvTZCiJttTgY4k/cklOLQ9ZZTRDdJkvijLEzmUwVRgQkrz9vLEYdMoEKvOQKmLKoTMgxE8RxSGWj9bg1F/+aH9I1oO3ebHU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=XvHes/q1oTdOIZJInb7gtrUAaPjH+Ahn7vy61ERzdcwGRPyrpDNI3bs1Exejnrudo3siDE+IOUoX8LenW2GHsJHqB5/hBPgWz4PInbZ9GQW2CMZ09sJs4KLutHZAyxuJzV23ZPszERuM2BVXcsJh9ghK7blslhyYoms1UEQ6IqQ= Received: by 10.150.201.13 with SMTP id y13mr881740ybf.100.1206633072120; Thu, 27 Mar 2008 08:51:12 -0700 (PDT) Received: by 10.150.230.16 with HTTP; Thu, 27 Mar 2008 08:51:12 -0700 (PDT) Message-ID: <3c0b01820803270851x24bfe739pea0bd4fb0ebecfb0@mail.gmail.com> Date: Thu, 27 Mar 2008 11:51:12 -0400 From: "Alexander Sack" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-hackers@freebsd.org Errors-To: owner-freebsd-hackers@freebsd.org Cc: freebsd-drivers@freebsd.org Subject: Stupid driver build/debug questions X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 05:27:36 -0000 Hello: New to the FreeBSD kernel and I'm investigating a driver problem (wasn't sure what list this should go on). I was wondering how to make a driver statically built instead of a loadable module? Is this an artifact of the driver source build or the generic kernel configuration mechanism via options etc.? i.e. does a driver need to use something different than the bsd.kmod.mk template make file to build a static driver. What I am trying to do is break at attach time more easily than stepping through driver_probe_and_attach()/driver_attach_child() until the attach routine gets called. I realize I can add a kdb_enter() but I was trying to do this on a live system without rebuilding the kernel (I understand this contradicts my first question but I still want to know how to build drivers statically). Thanks! -aps -- "What lies behind us and what lies in front of us is of little concern to what lies within us." -Ralph Waldo Emerson _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 05:29:04 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBC92106568F; Tue, 1 Apr 2008 05:29:04 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id D210A8FC16; Tue, 1 Apr 2008 05:29:03 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id 3E79A4D5A01; Tue, 1 Apr 2008 13:20:55 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id ED08755E487 for ; Fri, 28 Mar 2008 03:53:08 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 823C2175C98; Thu, 27 Mar 2008 19:52:49 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id AE7E510656A3; Thu, 27 Mar 2008 19:52:46 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E4A51065676 for ; Thu, 27 Mar 2008 19:52:39 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.237]) by mx1.freebsd.org (Postfix) with ESMTP id ECC698FC13 for ; Thu, 27 Mar 2008 19:52:38 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by qb-out-0506.google.com with SMTP id a10so7949535qbd.7 for ; Thu, 27 Mar 2008 12:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=v3fLq7AcFlwF1CfhZs5TIQX/3aS1ipFqOlYKh1b94z8=; b=KVrKl+ktO03zeyJ++KHA0cBDXTjAV891RTWQHFLuVaBHdMB9nN7qUoXvWzzvktQcztdtWwNj1eDhbu9ESAmeeaZ18VcDmGsKdvgDprHUAaGNkJQhS2FONR4fzmB5ncc3PEV+QdpK0px/D0U0OggFQx+8Y9LgvtOsp5K+YPis1Ss= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tZRD/IjlO+7bifnQjjV/oZBbFHhH8aEH4N9IAFUpm5Jql2uDwRZtN8Wbi+MulRxDPQuulWVbvMFCghHxKYXyR5eUHz4cn1+q0yOLb34pD60bAeHpEnLTV/KBIztyNZD+y5hudPpOZ9JRi9e9HkdPr86hWCjopfQ5kgPRx001r6g= Received: by 10.142.172.12 with SMTP id u12mr1739497wfe.16.1206647557589; Thu, 27 Mar 2008 12:52:37 -0700 (PDT) Received: by 10.142.147.6 with HTTP; Thu, 27 Mar 2008 12:52:37 -0700 (PDT) Message-ID: <3c0b01820803271252m488159ebi2af2255461f10358@mail.gmail.com> Date: Thu, 27 Mar 2008 15:52:37 -0400 From: "Alexander Sack" To: "Julian Elischer" In-Reply-To: <47EBF498.9090409@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3c0b01820803270851x24bfe739pea0bd4fb0ebecfb0@mail.gmail.com> <47EBF498.9090409@elischer.org> X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-hackers@freebsd.org Errors-To: owner-freebsd-hackers@freebsd.org Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: Stupid driver build/debug questions X-BeenThere: freebsd-drivers@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 05:29:05 -0000 On Thu, Mar 27, 2008 at 3:25 PM, Julian Elischer wrote: > Alexander Sack wrote: > > Hello: > > > > New to the FreeBSD kernel and I'm investigating a driver problem > > (wasn't sure what list this should go on). > > > > I was wondering how to make a driver statically built instead of a > > loadable module? Is this an artifact of the driver source build or > > the generic kernel configuration mechanism via options etc.? i.e. > > does a driver need to use something different than the bsd.kmod.mk > > template make file to build a static driver. > > > > What I am trying to do is break at attach time more easily than > > stepping through driver_probe_and_attach()/driver_attach_child() until > > the attach routine gets called. I realize I can add a kdb_enter() but > > I was trying to do this on a live system without rebuilding the kernel > > (I understand this contradicts my first question but I still want to > > know how to build drivers statically). > > put the filennames in /sys/conf/files or files.i386 (or whatever) > > at one stage you could also have a files.{CONFIGNAME} but I haven't > tried that for a long time. Thanks for the response. I will try this but I do have an obvious question, the build scripts do not need to be edited at all with the extra directory/files? It will just pickup my driver directory and link against the kernel automagically? -aps -- "What lies behind us and what lies in front of us is of little concern to what lies within us." -Ralph Waldo Emerson _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 14:34:27 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A6D9106566C for ; Tue, 1 Apr 2008 14:34:27 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 06A578FC3B for ; Tue, 1 Apr 2008 14:34:26 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id B79D020008B; Tue, 1 Apr 2008 07:34:26 -0700 (PDT) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02423-04; Tue, 1 Apr 2008 07:34:26 -0700 (PDT) Received: from [10.47.1.30] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 0D1A4200089; Tue, 1 Apr 2008 07:34:26 -0700 (PDT) Message-ID: <47F247F1.9080202@miralink.com> Date: Tue, 01 Apr 2008 07:34:25 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: chilo References: <642248.23341.qm@web53807.mail.re2.yahoo.com> In-Reply-To: <642248.23341.qm@web53807.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Apr 1 07:34:26 2008 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 47f247f2234041813820934 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.499 X-Spam-Level: Cc: freebsd-drivers@freebsd.org Subject: Re: Adaptec AIC-9405/9410 SAS controller driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 14:34:27 -0000 chilo wrote: > Hi guys does anybody know where I can download a driver for this Adaptec for Freebsd 7.0? > > Thnx > > > > Looking over HEAD and RELENG_7, I don't think that card is supported at this time. Sean From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 17:37:21 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDA4A1065687 for ; Tue, 1 Apr 2008 17:37:21 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [66.90.103.179]) by mx1.freebsd.org (Postfix) with ESMTP id 78AEF8FC22 for ; Tue, 1 Apr 2008 17:37:21 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.mthelicon.com (host81-159-202-207.range81-159.btcentralplus.com [81.159.202.207]) (authenticated bits=0) by hercules.mthelicon.com (8.14.2/8.14.2) with ESMTP id m31HH1wi003780 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Tue, 1 Apr 2008 17:17:02 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc cleaft Organization: Feathers To: freebsd-drivers@freebsd.org Date: Tue, 1 Apr 2008 18:16:52 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804011816.52919.ken@mthelicon.com> Subject: DDK X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 17:37:21 -0000 Hello everyone, I am interested in writing a device driver for a CANBus controller card. I am famillier with driver writing on other platforms but have never attempted it on FreeBSD (dispite using FreeBSD for about 14 years). Is there any good refernce, or a DDK, or maybe even a book that describes the various kernel interfaces I will need? (PCI configuration, getting call-backs from the OS, etc) I have taken a look at the "Writing drivers" section of the handbook, but found the information to be rather thin. Any help and direction would be greatly appreciated Ken From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 1 21:24:02 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A218106566C for ; Tue, 1 Apr 2008 21:24:02 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 3B2888FC16 for ; Tue, 1 Apr 2008 21:24:02 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (t99i1mz2b3e7ez04@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id m31L8TqI012955; Tue, 1 Apr 2008 14:08:29 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id m31L8TPD012954; Tue, 1 Apr 2008 14:08:29 -0700 (PDT) (envelope-from jmg) Date: Tue, 1 Apr 2008 14:08:29 -0700 From: John-Mark Gurney To: Pegasus Mc cleaft Message-ID: <20080401210829.GL82555@funkthat.com> Mail-Followup-To: Pegasus Mc cleaft , freebsd-drivers@freebsd.org References: <200804011816.52919.ken@mthelicon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804011816.52919.ken@mthelicon.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hydrogen.funkthat.com [127.0.0.1]); Tue, 01 Apr 2008 14:08:30 -0700 (PDT) Cc: freebsd-drivers@freebsd.org Subject: Re: DDK X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 21:24:02 -0000 Pegasus Mc cleaft wrote this message on Tue, Apr 01, 2008 at 18:16 +0100: > I am interested in writing a device driver for a CANBus controller card. I am > famillier with driver writing on other platforms but have never attempted it > on FreeBSD (dispite using FreeBSD for about 14 years). Is there any good > refernce, or a DDK, or maybe even a book that describes the various kernel > interfaces I will need? (PCI configuration, getting call-backs from the OS, > etc) I have taken a look at the "Writing drivers" section of the handbook, > but found the information to be rather thin. > > Any help and direction would be greatly appreciated I did a presentation a couple years ago at BSDcan talking about some of the interfaces that the FreeBSD kernel provides: http://people.freebsd.org/~jmg/drivers/ The handout is a good quick reference. Good luck! -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-drivers@FreeBSD.ORG Wed Apr 2 02:08:02 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60D5B106566B for ; Wed, 2 Apr 2008 02:08:02 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) Received: from imo-m19.mx.aol.com (imo-m19.mx.aol.com [64.12.137.11]) by mx1.freebsd.org (Postfix) with ESMTP id EAA3F8FC14 for ; Wed, 2 Apr 2008 02:08:01 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) Received: from demetrioussharpe@netscape.net by imo-m19.mx.aol.com (mail_out_v38_r9.3.) id n.d18.25933856 (57869); Tue, 1 Apr 2008 21:57:42 -0400 (EDT) Received: from FWM-D16 (fwm-d16.webmail.aol.com [205.188.160.208]) by air-ia01.mail.aol.com (v121.4) with ESMTP id MAILINIA13-e20d47f2e81626; Tue, 01 Apr 2008 21:57:42 -0400 To: freebsd-drivers@freebsd.org, tech@openbsd.org, tech-x11@netbsd.org Date: Tue, 01 Apr 2008 21:57:42 -0400 X-MB-Message-Source: WebUI X-AOL-IP: 71.51.47.48 X-MB-Message-Type: User MIME-Version: 1.0 From: demetrioussharpe@netscape.net X-Mailer: AIM WebMail 35304-STANDARD Received: from 71.51.47.48 by FWM-D16.sysops.aol.com (205.188.160.208) with HTTP (WebMailUI); Tue, 01 Apr 2008 21:57:42 -0400 Message-Id: <8CA627C12AFD996-2F0-1804@FWM-D16.sysops.aol.com> X-Spam-Flag: NO Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: agpgart driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 02:08:02 -0000 Hello, My name is Dee Sharpe.? I am currently researching the *BSD agpgart driver as well as the one from Linux and any other OS's driver that I can find.? From reading the source code agp.c, it seems as though agp_generic_bind_memory() allocates memory from the OS.? Why is this the case?? Shouldn't this function be solely focused on binding the memory that is provided in the agp_memory structure?? Also, shouldn't agp_generic_alloc_memory() be the only part of the driver that worries about memory allocation?? I am asking these questions out of interest and I'm looking for understanding, because I would like to port your driver to Syllable.? Syllable has a relatively primitive memory management system, so a lot of the techniques used by the *BSD OS's will not be usable by us.? Also, any help or guidance that you can give me to help me bring this driver to life is greatly appreciated. -Dee Sharpe P.S.? This email was sent to mailing lists belonging to FreeBSD, OpenBSD, and NetBSD. From owner-freebsd-drivers@FreeBSD.ORG Wed Apr 2 02:09:03 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CED0106566C for ; Wed, 2 Apr 2008 02:09:03 +0000 (UTC) (envelope-from olihc17@yahoo.com) Received: from web53801.mail.re2.yahoo.com (web53801.mail.re2.yahoo.com [206.190.36.196]) by mx1.freebsd.org (Postfix) with SMTP id 522168FC19 for ; Wed, 2 Apr 2008 02:09:03 +0000 (UTC) (envelope-from olihc17@yahoo.com) Received: (qmail 69159 invoked by uid 60001); 2 Apr 2008 02:09:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:To:MIME-Version:Content-Type:Message-ID; b=TqYbJQsAHXGhrITGwWNUFaOtnLJ1ZZZXzvTptLVLECyWmFs5e3UvdRpD1rzS/eeB72ZiF2/7XI3TcKKb9qZpxk2q082thX2DCr9ULuio9IAc3YW3FGjICRsC5QM9CO0NQ1ZU/9yYf1NFlvCdIS8Be30DFldzTejg58LzhXZaJ94=; X-YMail-OSG: wX.G86EVM1ndV369KJGqyNWwN0ueDK6_dk6ZmBRDMHSTcvKQyvllPpfa42nTngmVZPuQopUE1e417_oR7JPrL2fIfvNrlkLRUg4ssOrKRl3He5gTy_YGKSFO5zXq Received: from [202.73.172.6] by web53801.mail.re2.yahoo.com via HTTP; Tue, 01 Apr 2008 19:09:01 PDT X-Mailer: YahooMailRC/902.40 YahooMailWebService/0.7.185 Date: Tue, 1 Apr 2008 19:09:01 -0700 (PDT) From: chilo To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Message-ID: <517845.68981.qm@web53801.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: (no subject) X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 02:09:03 -0000 Hi guys would anyone know if these device would work on freebsd 7.0 I've looked on this as my reference http://www.freebsd.org/releases/7.0R/hardware.html I'm just having second thought if they would work because on the hardware release they're having a little difference LSI 1068E Serial-Attached SCSI (SAS) - - on the hardware release it's only LSI 1068 LSI 1064E Serial-Attached SCSI (SAS) - - on the hardware release it's only LSI 1064 And Intel "Ophir" 82571EB - -on the hardware release it's only Intel 82571 I'll highlight the difference just to be sure. Thanks in advance ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com From owner-freebsd-drivers@FreeBSD.ORG Wed Apr 2 20:07:00 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10DD31065681 for ; Wed, 2 Apr 2008 20:07:00 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from parsely.rain.com (parsely.rain.com [199.26.172.196]) by mx1.freebsd.org (Postfix) with ESMTP id 744E18FC16 for ; Wed, 2 Apr 2008 20:06:59 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by parsely.rain.com (8.11.4/8.11.4) with UUCP id m32JViV37730 for freebsd-drivers@freebsd.org; Wed, 2 Apr 2008 12:31:44 -0700 (PDT) (envelope-from freebsd@sopwith.solgatos.com) Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id TAA03574; Wed, 2 Apr 2008 19:27:46 GMT Message-Id: <200804021927.TAA03574@sopwith.solgatos.com> To: freebsd-drivers@freebsd.org Date: Wed, 02 Apr 2008 12:27:46 +0100 From: Dieter Subject: trying atausb instead of umass X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 20:07:00 -0000 FreeBSD 7.0 amd64 Deleted device umass and added atausb instead. The bridge shows up, but the disk does not. (sata hard drive, not a CD/DVD drive) atausb0: on uhub1 The kernel moved the chipset-connected SATA drives from ad4,6,8,10 to ad6,8,10,12 despite: options ATA_STATIC_ID # Static device numbering Should I expect the USB disk to show up as ad* or is there some other device name I need to add to the config file? Is there anything else I need to change in the config file besides comment out umass and add atausb? How do I get (non-USB) device names to really stay put? From owner-freebsd-drivers@FreeBSD.ORG Thu Apr 3 16:40:42 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D0761065676; Thu, 3 Apr 2008 16:40:42 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from parsely.rain.com (parsely.rain.com [199.26.172.196]) by mx1.freebsd.org (Postfix) with ESMTP id C1DC08FC16; Thu, 3 Apr 2008 16:40:26 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by parsely.rain.com (8.11.4/8.11.4) with UUCP id m33GeNA38620; Thu, 3 Apr 2008 09:40:23 -0700 (PDT) (envelope-from freebsd@sopwith.solgatos.com) Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id QAA02025; Thu, 3 Apr 2008 16:38:27 GMT Message-Id: <200804031638.QAA02025@sopwith.solgatos.com> To: freebsd-drivers@freebsd.org, freebsd-questions@freebsd.org Date: Thu, 03 Apr 2008 09:38:27 +0100 From: Dieter Cc: Subject: trying atausb instead of umass, part 2 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 16:40:42 -0000 [ no replies from -drivers, so added -questions ] > FreeBSD 7.0 amd64 > > Deleted device umass and added atausb instead. > > The bridge shows up, but the disk does not. (sata hard drive, > not a CD/DVD drive) > atausb0: on uhub1 > > The kernel moved the chipset-connected SATA drives from ad4,6,8,10 to ad6,8,10,12 > despite: > options ATA_STATIC_ID # Static device numbering > > Should I expect the USB disk to show up as ad* or is there some > other device name I need to add to the config file? Is there > anything else I need to change in the config file besides comment > out umass and add atausb? > > How do I get (non-USB) device names to really stay put? It looks like the device numbers moved because the controller numbers moved. # dmesg | grep atausb atausb0: on uhub1 atausb0: using SCSI over Bulk-Only ata2: on atausb0 without atausb: ata2: on atapci1 In NetBSD, I can lock things down with: sd0 at scsibus0 target 0 lun 0 sd1 at scsibus0 target 1 lun 0 sd2 at scsibus0 target 2 lun 0 sd3 at scsibus0 target 3 lun 0 atabus0 at satalink0 atabus1 at satalink0 wd0 at atabus0 drive 0 flags 0x0000 wd1 at atabus1 drive 0 flags 0x0000 but FreeBSD's config doesn't accept this, or perhaps I haven't found the correct syntax. I haven't found anything like this in FreeBSD's config documentation. Is there something like options ATA_STATIC_ID # Static device numbering to lock down controller numbers? ----- # dmesg | grep ata2 ata2: on atausb0 So the drive isn't getting attached. From owner-freebsd-drivers@FreeBSD.ORG Fri Apr 4 04:21:57 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BE87106564A for ; Fri, 4 Apr 2008 04:21:57 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp10.yandex.ru (smtp10.yandex.ru [213.180.223.92]) by mx1.freebsd.org (Postfix) with ESMTP id A49768FC12 for ; Fri, 4 Apr 2008 04:21:56 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:49407 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5866866AbYDDEVt (ORCPT ); Fri, 4 Apr 2008 08:21:49 +0400 X-Yandex-Spam: 1 X-Yandex-Front: smtp10 X-Yandex-TimeMark: 1207282909 X-MsgDayCount: 2 X-Comment: RFC 2476 MSA function at smtp10.yandex.ru logged sender identity as: bu7cher Message-ID: <47F5ACDB.7050808@yandex.ru> Date: Fri, 04 Apr 2008 08:21:47 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: freebsd@sopwith.solgatos.com References: <200804021927.TAA03574@sopwith.solgatos.com> In-Reply-To: <200804021927.TAA03574@sopwith.solgatos.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: trying atausb instead of umass X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 04:21:57 -0000 Dieter wrote: > The bridge shows up, but the disk does not. (sata hard drive, > not a CD/DVD drive) > atausb0: on uhub1 > How do I get (non-USB) device names to really stay put? Can you boot in verbose mode and show verbose dmesg? -- WBR, Andrey V. Elsukov From owner-freebsd-drivers@FreeBSD.ORG Sat Apr 5 18:01:29 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D6C01065670 for ; Sat, 5 Apr 2008 18:01:29 +0000 (UTC) (envelope-from nslay@comcast.net) Received: from QMTA09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mx1.freebsd.org (Postfix) with ESMTP id B977F8FC14 for ; Sat, 5 Apr 2008 18:01:28 +0000 (UTC) (envelope-from nslay@comcast.net) Received: from OMTA05.westchester.pa.mail.comcast.net ([76.96.62.43]) by QMTA09.westchester.pa.mail.comcast.net with comcast id 9q671Z0010vyq2s590Du00; Sat, 05 Apr 2008 17:49:44 +0000 Received: from LIGHTBULB.LOCAL ([68.35.224.189]) by OMTA05.westchester.pa.mail.comcast.net with comcast id 9trS1Z00145o48c3R00000; Sat, 05 Apr 2008 17:51:27 +0000 X-Authority-Analysis: v=1.0 c=1 a=26M6HwpVVxEA:10 a=Je3QHf6rl_8A:10 a=Pns_BpMpAAAA:8 a=-QR5d-TvvEGG3OSV27cA:9 a=yxarzY3HIW-QFjH_s4eL19tqRo8A:4 a=b8hG5vVbyAkA:10 a=evZnwLbNcu5r3UvcFI0A:9 a=06_lVmeu3BXuJjE2KHUA:7 a=XLNY7HUqgvRvkkNHdCs0L81itRUA:4 a=PxHhwJ9AYXMA:10 a=cKoO-q72gq7WG9RTfGwA:9 a=yqTZqZtdOy0rkPp7D3r2GU42H14A:4 a=Hh7NdPsCZosA:10 Message-ID: <47F7BC0D.1090907@comcast.net> Date: Sat, 05 Apr 2008 13:51:09 -0400 From: Nathan Lay User-Agent: Thunderbird 2.0.0.12 (X11/20080313) MIME-Version: 1.0 To: freebsd-drivers@freebsd.org, freebsd-x11@freebsd.org Content-Type: multipart/mixed; boundary="------------090803010606010008020202" Cc: Subject: Xbox controller S causes SIGFPE in Xorg X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2008 18:01:29 -0000 This is a multi-part message in MIME format. --------------090803010606010008020202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hey everybody, I have a bunch of these Xbox Controller S gamepads lying around and got a break-away <-> USB adapter. I plugged it in and at first, uhid did not recognize the controller so I googled and found some information about it here: http://euc.jp/periphs/xbox-controller.ja.html I grabbed the report descriptor there and made it into a C struct (attached) much like the xbox360 gamepad has. I added the following #defines in usb.h #define UICLASS_XBOXS 0x58 #define UISUBCLASS_XBOXS_CONTROLLER 0x42 #define UIPROTO_XBOXS_GAMEPAD 0x00 I added a few lines of code uhid.c's match and attach functions (similar to the 360 case) and voila, it attached as uhid. So I setup an InputDevice section in xorg.conf for the joystick and added the SendCoreEvents line to ServerLayout as noted in joystick(4x). Everytime I launch Xorg, as soon as I touch the controller, Xorg dies due to a SIGFPE. To make sure everything works, I wrote a simple C program to read from uhid (attached) and everything seems to work correctly. Where might I look to find the SIGFPE problem? Best Regards, Nathan Lay --------------090803010606010008020202 Content-Type: text/plain; name="uxbgp_rdesc.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="uxbgp_rdesc.h" static const uByte uhid_xbgp_report_descr[] = { 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x05, /* Usage (Game Pad) */ 0xA1, 0x01, /* Collection (Application) */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x3A, /* Usage (Counted Buffer) ;XXX */ 0xA1, 0x02, /* Collection (Logical) */ /* ; padding */ 0x75, 0x08, /* Report Size (8) */ 0x95, 0x01, /* Report Count (1) */ 0x81, 0x01, /* Input (Constant) */ /* ; byte count */ 0x75, 0x08, /* Report Size (8) */ 0x95, 0x01, /* Report Count (1) */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x3B, /* Usage (Byte Count) ;XXX */ 0x81, 0x01, /* Input (Constant) */ /* ; D-pad */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x01, /* Usage (Pointer) */ 0xA1, 0x00, /* Collection (Physical) */ 0x75, 0x01, /* Report Size (1) */ 0x15, 0x00, /* Logical Minimum (0) */ 0x25, 0x01, /* Logical Maximum (1) */ 0x35, 0x00, /* Physical Minimum (0) */ 0x45, 0x01, /* Physical Maximum (1) */ 0x95, 0x04, /* Report Count (4) */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x90, /* Usage (D-pad Up) */ 0x09, 0x91, /* Usage (D-pad Down) */ 0x09, 0x93, /* Usage (D-pad Left) */ 0x09, 0x92, /* Usage (D-pad Right) */ 0x81, 0x02, /* Input (Data,Variable,Absolute) */ 0xC0, /* End Collection */ /* ; start, back, stick press */ 0x75, 0x01, /* Report Size (1) */ 0x15, 0x00, /* Logical Minimum (0) */ 0x25, 0x01, /* Logical Maximum (1) */ 0x35, 0x00, /* Physical Minimum (0) */ 0x45, 0x01, /* Physical Maximum (1) */ 0x95, 0x04, /* Report Count (4) */ 0x05, 0x09, /* Usage Page (Button) */ 0x19, 0x07, /* Usage Minimum (Button 7) */ 0x29, 0x0A, /* Usage Maximum (Button 10) */ 0x81, 0x02, /* Input (Data,Variable,Absolute) */ /* ; reserved */ 0x75, 0x01, /* Report Size (1) */ 0x95, 0x08, /* Report Count (8) */ 0x81, 0x01, /* Input (Constant) */ /* ; analog buttons */ 0x75, 0x08, /* Report Size (8) */ 0x15, 0x00, /* Logical Minimum (0) */ 0x26, 0xFF, 0x00, /* Logical Maximum (255) */ 0x35, 0x00, /* Physical Minimum (0) */ 0x46, 0xFF, 0x00, /* Physical Maximum (255) */ 0x95, 0x06, /* Report Count (6) */ 0x05, 0x09, /* Usage Page (Button) */ 0x19, 0x01, /* Usage Minimum (Button 1) */ 0x29, 0x06, /* Usage Minimum (Button 6) */ 0x81, 0x02, /* Input (Data,Variable,Absolute) */ /* ; triggers */ 0x75, 0x08, /* Report Size (8) */ 0x15, 0x00, /* Logical Minimum (0) */ 0x26, 0xFF, 0x00, /* Logical Maximum (255) */ 0x35, 0x00, /* Physical Minimum (0) */ 0x46, 0xFF, 0x00, /* Physical Maximum (255) */ 0x95, 0x02, /* Report Count (2) */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x32, /* Usage (Z) */ 0x09, 0x35, /* Usage (Rz) */ 0x81, 0x02, /* Input (Data,Variable,Absolute) */ /* ; sticks */ 0x75, 0x10, /* Report Size (16) */ 0x16, 0x00, 0x80, /* Logical Minimum (-32768) */ 0x26, 0xFF, 0x7F, /* Logical Maximum (32767) */ 0x36, 0x00, 0x80, /* Physical Minimum (-32768) */ 0x46, 0xFF, 0x7F, /* Physical Maximum (32767) */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x01, /* Usage (Pointer) */ 0xA1, 0x00, /* Collection (Physical) */ 0x95, 0x02, /* Report Count (2) */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x30, /* Usage (X) */ 0x09, 0x31, /* Usage (Y) ;north positive */ 0x81, 0x02, /* Input (Data,Variable,Absolute) */ 0xC0, /* End Collection */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x01, /* Usage (Pointer) */ 0xA1, 0x00, /* Collection (Physical) */ 0x95, 0x02, /* Report Count (2) */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x33, /* Usage (Rx) */ 0x09, 0x34, /* Usage (Ry) ;north positive */ 0x81, 0x02, /* Input (Data,Variable,Absolute) */ 0xC0, /* End Collection */ 0xC0, /* End Collection */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x3A, /* Usage (Counted Buffer) ;XXX */ 0xA1, 0x02, /* Collection (Logical) */ /* ; padding */ 0x75, 0x08, /* Report Size (8) */ 0x95, 0x01, /* Report Count (1) */ 0x91, 0x01, /* Output (Constant) */ /* ; byte count */ 0x75, 0x08, /* Report Size (8) */ 0x95, 0x01, /* Report Count (1) */ 0x05, 0x01, /* Usage Page (Generic Desktop) */ 0x09, 0x3B, /* Usage (Byte Count) ;XXX */ 0x91, 0x01, /* Output (Constant) */ /* ; padding */ 0x75, 0x08, /* Report Size (8) */ 0x95, 0x01, /* Report Count (1) */ 0x91, 0x01, /* Output (Constant) */ /* ; left actuator */ 0x75, 0x08, /* Report Size (8) */ 0x15, 0x00, /* Logical Minimum (0) */ 0x26, 0xFF, 0x00, /* Logical Maximum (255) */ 0x35, 0x00, /* Physical Minimum (0) */ 0x46, 0xFF, 0x00, /* Physical Maximum (255) */ 0x95, 0x01, /* Report Count (1) */ 0x06, 0x00, 0xFF, /* Usage Page (vendor-defined) */ 0x09, 0x01, /* Usage (1) */ 0x91, 0x02, /* Output (Data,Variable,Absolute) */ /* ; padding */ 0x75, 0x08, /* Report Size (8) */ 0x95, 0x01, /* Report Count (1) */ 0x91, 0x01, /* Output (Constant) */ /* ; right actuator */ 0x75, 0x08, /* Report Size (8) */ 0x15, 0x00, /* Logical Minimum (0) */ 0x26, 0xFF, 0x00, /* Logical Maximum (255) */ 0x35, 0x00, /* Physical Minimum (0) */ 0x46, 0xFF, 0x00, /* Physical Maximum (255) */ 0x95, 0x01, /* Report Count (1) */ 0x06, 0x00, 0xFF, /* Usage Page (vendor-defined) */ 0x09, 0x02, /* Usage (2) */ 0x91, 0x02, /* Output (Data,Variable,Absolute) */ 0xC0, /* End Collection */ 0xC0 /* End Collection */ }; --------------090803010606010008020202 Content-Type: text/plain; name="xbox.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xbox.c" #include #include #define ARROWUP 0x01 #define ARROWDOWN 0x02 #define ARROWLEFT 0x04 #define ARROWRIGHT 0x08 #define START 0x10 #define BACK 0x20 #define LEFTJOY 0x40 #define RIGHTJOY 0x80 #define ABUTTON 4 #define BBUTTON 5 #define XBUTTON 6 #define YBUTTON 7 #define BLACKBUTTON 8 #define WHITEBUTTON 9 #define LEFTTRIGGER 10 #define RIGHTTRIGGER 11 #define LEFTJOYX 12 #define RIGHTJOYX 16 #define DEBUG int main( int argc, char **argv ) { unsigned long i; uint8_t buf[20]; FILE *file = fopen( "/dev/uhid0", "r" ); if ( file == NULL ) { perror( "fopen" ); return -1; } while ( !feof( file ) ) { fread( buf, 1, sizeof(buf), file ); #ifdef DEBUG for ( i = 0; i < sizeof(buf); ++i ) printf( "0x%02x ", buf[i] ); printf( "\n" ); #else if ( buf[2] & ARROWUP ) printf( "UP is pressed.\n" ); if ( buf[2] & ARROWDOWN ) printf( "DOWN is pressed.\n" ); if ( buf[2] & ARROWLEFT ) printf( "LEFT is pressed.\n" ); if ( buf[2] & ARROWRIGHT ) printf( "RIGHT is pressed.\n" ); if ( buf[2] & START ) printf( "START is pressed.\n" ); if ( buf[2] & BACK ) printf( "BACK is pressed.\n" ); if ( buf[2] & LEFTJOY ) printf( "LEFTJOY is pressed.\n" ); if ( buf[2] & RIGHTJOY ) printf( "RIGHTJOY is pressed.\n" ); if ( buf[ABUTTON] ) printf( "ABUTTON is pressed with force %d.\n", buf[ABUTTON] ); if ( buf[BBUTTON] ) printf( "BBUTTON is pressed with force %d.\n", buf[BBUTTON] ); if ( buf[XBUTTON] ) printf( "XBUTTON is pressed with force %d.\n", buf[XBUTTON] ); if ( buf[YBUTTON] ) printf( "YBUTTON is pressed with force %d.\n", buf[YBUTTON] ); if ( buf[BLACKBUTTON] ) printf( "BLACKBUTTON is pressed with force %d.\n", buf[BLACKBUTTON] ); if ( buf[WHITEBUTTON] ) printf( "WHITEBUTTON is pressed with force %d.\n", buf[WHITEBUTTON] ); if ( buf[LEFTTRIGGER] ) printf( "LEFTTRIGGER is pressed with force %d.\n", buf[LEFTTRIGGER] ); if ( buf[RIGHTTRIGGER] ) printf( "RIGHTTRIGGER is pressed with force %d.\n", buf[RIGHTTRIGGER] ); printf( "LEFTJOY X = %d\tY = %d\n", *(int16_t *)(buf+LEFTJOYX), *(int16_t *)(buf+LEFTJOYX+2) ); printf( "RIGHTJOY X = %d\tY = %d\n", *(int16_t *)(buf+RIGHTJOYX), *(int16_t *)(buf+RIGHTJOYX+2) ); #endif } return 0; } --------------090803010606010008020202--