From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 17 08:04:16 2015 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 16E74133; Fri, 17 Apr 2015 08:04:16 +0000 (UTC) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C545368A; Fri, 17 Apr 2015 08:04:15 +0000 (UTC) Received: from th-04.cs.huji.ac.il ([132.65.80.125]) by kabab.cs.huji.ac.il with esmtp id 1Yj1Fu-0000b7-5R; Fri, 17 Apr 2015 11:04:06 +0300 From: Daniel Braniss Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: help with coding a loadable kernel module Date: Fri, 17 Apr 2015 11:04:04 +0300 Message-Id: Cc: freeBSD-arm@freebsd.org To: hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) X-Mailer: Apple Mail (2.2070.6) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2015 08:04:16 -0000 Hi, I know I=E2=80=99m embarking on a dangerous trip, but I want to use a = Raspberry Pi and or a BeagleBone to read (and write) RFID cards. Since a driver is needed to use the spibus, I have 2 options while developing: 1- write a conventional driver module means cross compiling, generating a new kernel, making a new image, writing a SD card, etc, etc 2- make it a loadable module cross compile,via NFS load/unload=20 2 seems the logical path, but I=E2=80=99m getting entangled trying to = use the spibus, while with 1 there are several drivers I can use to learn from. So before I give up on option 2, is there some examples/help? I should point out that I have no experience (yet) with arm/spi/fdt and so option 2 will make the trial and error faster :-) thanks danny