From owner-freebsd-arm@FreeBSD.ORG Mon Aug 12 03:13:00 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 F13DB249 for ; Mon, 12 Aug 2013 03:12:59 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CF01825D0 for ; Mon, 12 Aug 2013 03:12:59 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r7C3CqxX010118; Mon, 12 Aug 2013 03:12:52 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id hp98d4yijyvt9sd2sqjdkwj4c2; Mon, 12 Aug 2013 03:12:52 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: kldload on arm Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Sun, 11 Aug 2013 20:14:26 -0700 Content-Transfer-Encoding: 7bit Message-Id: References: To: Tom Everett X-Mailer: Apple Mail (2.1283) 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 03:13:00 -0000 On Aug 11, 2013, at 2:07 PM, 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? Yes, it does. "File exists" simply means that the kernel thinks the driver is already loaded. Tim