From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 11 07:04:56 2010 Return-Path: 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 5CDFE106566B for ; Thu, 11 Feb 2010 07:04:56 +0000 (UTC) (envelope-from julian@elischer.org) Received: from nlpi101.prodigy.net (nlpi101.prodigy.net [207.115.36.117]) by mx1.freebsd.org (Postfix) with ESMTP id 14A168FC19 for ; Thu, 11 Feb 2010 07:04:56 +0000 (UTC) X-ORBL: [75.5.243.60] Received: from julian-mac.elischer.org (adsl-75-5-243-60.dsl.scrm01.sbcglobal.net [75.5.243.60]) by nlpi101.prodigy.net (8.13.8 out.ldap.dk.spool/8.13.8) with ESMTP id o1B74ApC003498; Thu, 11 Feb 2010 01:04:11 -0600 Message-ID: <4B73AC11.7070809@elischer.org> Date: Wed, 10 Feb 2010 23:04:49 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: james toy References: <11dbd75e1002101825u78d90ef0ufe6015045ecf788a@mail.gmail.com> In-Reply-To: <11dbd75e1002101825u78d90ef0ufe6015045ecf788a@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers , David Hemmendinger Subject: Re: KLD hello.ko: depends on kernel - not available or version mismatch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2010 07:04:56 -0000 james toy wrote: > Hello Hackers, > > I am working on learning to write FreeBSD drivers; however, I have > some practice writing IOKit drivers for MacOSX (they are entirely > different I know!). The code I am working with can be found here: > > http://pastebin.com/m2bbb393c > > and I am getting the error: > > dontpanic# kldload ./hello.ko > kldload: can't load ./hello.ko: Exec format error > > dmesg reads: > > dontpanic# kldload ./hello.ko > kldload: can't load ./hello.ko: Exec format error > > and finally uname -a: > > FreeBSD dontpanic.union.edu 9.0-CURRENT FreeBSD 9.0-CURRENT #1 > r198859: Wed Feb 10 09:59:54 EST 2010 > james@dontpanic.union.edu:/usr/obj/usr/src_klog/sys/DONTPANIC amd64 > > any information pointing me to being able to load this driver would be > greatly appreciated. > That error is a sort of catch-all. But the kernel linker should put some more specific information out in the kernel console/dmseg. so 'dmesg' may help you if you have something like a bad symbol. > respectfully, > > james toy > _______________________________________________ > 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"