From owner-freebsd-amd64@FreeBSD.ORG Fri Aug 10 22:01:40 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 D259316A41B for ; Fri, 10 Aug 2007 22:01:40 +0000 (UTC) (envelope-from yrao@force10networks.com) Received: from mx.force10networks.com (corp.force10networks.com [64.186.164.204]) by mx1.freebsd.org (Postfix) with ESMTP id B9FA213C465 for ; Fri, 10 Aug 2007 22:01:40 +0000 (UTC) (envelope-from yrao@force10networks.com) Received: from mx.force10networks.com ([10.11.0.216]) by mx.force10networks.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 10 Aug 2007 15:01:01 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 10 Aug 2007 15:01:03 -0700 Message-ID: <9E2742C54E161041A53F36F9A8DC31BE32498C@EXCH-CLUSTER-04.force10networks.com> In-Reply-To: <46BCD42B.9070403@wenks.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: kldload issue: "Exec format error" with amd64 FreeBSD Thread-Index: Acfbku/dTtNqTXgjR0G5HtqqP+IghQABu/vg References: <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com> <46BCD42B.9070403@wenks.ch> From: "Yong Rao" To: "Fabian Wenk" X-OriginalArrivalTime: 10 Aug 2007 22:01:01.0061 (UTC) FILETIME=[F040DB50:01C7DB99] 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 22:01:40 -0000 Thanks, Fabian, for your useful information!=20 -Yong -----Original Message----- From: Fabian Wenk [mailto:fabian@wenks.ch]=20 Sent: Friday, August 10, 2007 2:10 PM To: Yong Rao Cc: freebsd-amd64@freebsd.org Subject: Re: kldload issue: "Exec format error" with amd64 FreeBSD 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=20 into the follwing folders will help you to find the information=20 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=20 Handbook" [2] probably is also helpful. [1]=20 http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/devicedri vers.html [2]=20 http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.htm l Hope this helps. bye Fabian