From owner-freebsd-arm@FreeBSD.ORG Mon Aug 12 13:06:11 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B3501A65 for ; Mon, 12 Aug 2013 13:06:11 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8A7132BF2 for ; Mon, 12 Aug 2013 13:06:11 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1V8rp4-0001H2-43; Mon, 12 Aug 2013 13:06:10 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r7CD67WR034803; Mon, 12 Aug 2013 07:06:07 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/3zJs8u1L/n4qg7fr5Y0M7 Subject: Re: kldload on arm From: Ian Lepore To: Tom Everett In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Mon, 12 Aug 2013 07:06:06 -0600 Message-ID: <1376312766.3320.180.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 13:06:11 -0000 On Sun, 2013-08-11 at 15:07 -0600, Tom Everett wrote: > Good afternoon mailing list. I'm attempting to write my first driver. > I've got a very basic driver which I am attempting to load. The source > code is here: > > https://github.com/teverett/pi-iic > > When I attempt to load the driver I get this: > > root@lureen:/home/tom/pi-iic/pi-iic # make install > install -o root -g wheel -m 555 bcm2835_iic.ko /boot/kernel > kldxref /boot/kernel > kldxref: Skipping /boot/kernel/kernel.gz.tramp: not dynamically-linked > root@lureen:/home/tom/pi-iic/pi-iic # make load > /sbin/kldload -v /home/tom/pi-iic/pi-iic/bcm2835_iic.ko > kldload: can't load /home/tom/pi-iic/pi-iic/bcm2835_iic.ko: File exists > *** Error code 1 > > > Does kldload work properly on arm? > > Usually "file exists" means that the driver is either already loaded, or is compiled into the kernel. "kldstat -v" will show the latter. Also, sometimes the kldload messages are not helpful, but there'll be more info in dmesg. -- Ian