From owner-freebsd-arm@FreeBSD.ORG Mon Aug 12 00:12:33 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 D50B6954 for ; Mon, 12 Aug 2013 00:12:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A3C3E2E60 for ; Mon, 12 Aug 2013 00:12:33 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id e14so7495945iej.29 for ; Sun, 11 Aug 2013 17:12:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=qc6QXVH1MPNIh3pCa/6L/K+rB5nGoHrAbMgbzAPgCVg=; b=OgHX4EEeJIQmNGLFOd6RtbDZIX88WB+PGEZYYwqzZLL6Q+D1gKK6AOF3A4Vse3r1RA gSYFEc0C+0WbgaM2O6Rd1qcOGdH7T8CJZhmJPly6bB0/eUJHVeFUZVve7HCgiJPjfEgj GThlamySisBP++bBR66lDH13Oug3EUxx5pyS568JHdhTKdNVGafyeO3U57KwV9nGd7MH 6zm8zp47U5wKuDac8NyZ+MLYGqipmZpm8KJMsgPgee8ybcJ89ETdjkT02vQdoRGTmNDY TV6ItCO5N2W/7NvIcKZMyXEt9BRDIBnvgIpO8YlcCQ98Ex8yXTcagfF3P9RkwkqEaj5S E8Pg== X-Gm-Message-State: ALoCoQmr1ENeutJRfk98fwVROnk88lfx2L10H9QbBmKIblVOHmoPmgI3hq2BkE4PhCN2Jbgt40yV X-Received: by 10.43.78.196 with SMTP id zn4mr8624682icb.55.1376266347708; Sun, 11 Aug 2013 17:12:27 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id jg5sm19498910igb.0.2013.08.11.17.12.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 11 Aug 2013 17:12:26 -0700 (PDT) Sender: Warner Losh Subject: Re: kldload on arm Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Sun, 11 Aug 2013 18:12:26 -0600 Content-Transfer-Encoding: 7bit Message-Id: <23528934-2E41-4B45-93A5-219544971305@bsdimp.com> References: To: Tom Everett X-Mailer: Apple Mail (2.1085) 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 00:12:33 -0000 On Aug 11, 2013, at 3: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? What does dmesg say. Warmer