From owner-freebsd-amd64@FreeBSD.ORG Fri Aug 10 21:10:21 2007 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1FD816A419 for ; Fri, 10 Aug 2007 21:10:21 +0000 (UTC) (envelope-from fabian@wenks.ch) Received: from batman.home4u.ch (6to4.home4u.ch [IPv6:2002:d908:d3e2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 71C6113C457 for ; Fri, 10 Aug 2007 21:10:21 +0000 (UTC) (envelope-from fabian@wenks.ch) Received: from flashback.wenks.ch (flashback.wenks.ch [IPv6:2002:3e02:55b4:2:20a:95ff:fe8f:6586]) (authenticated bits=0) by batman.home4u.ch (8.13.1/8.13.1) with ESMTP id l7ALA9tj017952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Aug 2007 23:10:10 +0200 (CEST) (envelope-from fabian@wenks.ch) Message-ID: <46BCD42B.9070403@wenks.ch> Date: Fri, 10 Aug 2007 23:10:03 +0200 From: Fabian Wenk User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Yong Rao References: <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com> In-Reply-To: <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-amd64@freebsd.org Subject: Re: kldload issue: "Exec format error" with amd64 FreeBSD X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 21:10:22 -0000 Hello Yong Yong Rao wrote: > Is there example makefile(device driver code set) we can refer to? I don't know much about programming, but probably having a look into the follwing folders will help you to find the information needed: /usr/src/sys/ here is a Makefile for the whole kernel, I guess /usr/src/sys/dev/ device drivers which could be in the kernel /usr/src/sys/dev/em/ eg. here are the files of the Intel NIC driver /usr/src/sys/modules/em/Makefile the Makefile for the Intel NIC kernel modul? The chapter "II. Device Drivers" [1] in the "FreeBSD Architecture Handbook" [2] probably is also helpful. [1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/devicedrivers.html [2] http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html Hope this helps. bye Fabian