From owner-freebsd-embedded@FreeBSD.ORG Wed Mar 26 21:48:11 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E17F9A4D; Wed, 26 Mar 2014 21:48:11 +0000 (UTC) Received: from mail-oa0-x233.google.com (mail-oa0-x233.google.com [IPv6:2607:f8b0:4003:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 93D74B4; Wed, 26 Mar 2014 21:48:11 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id i4so3362289oah.38 for ; Wed, 26 Mar 2014 14:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=dhIs9ATkYT7shaF2Jf4GhdTAth5bI+QiKB3sGIOXtR4=; b=m8xOIm3ffKIvHEB5EM/ejMfMzkg4wDHeU/8qeXJ8qmdhK/hcMpqg7TdVIA077YjZSL lWYDSHi2ty6cLV6nelFDRStB1qPJRAV/UdTrtDP1aOJ3mIo0Z2MiIdptlP8x+ZBQd8OH cap6ooqbAw+mPvK2qUArnG7Juv+zb4zeYrxczz3oH8rtJWzdrMvio4XYHKTVrcYietF/ x5HgxqqY39KHC6tfmUFi38ooqCbY8TTXYeBR73M3oGq4Vfd/Rs6Tpm9xIoG2ksqxs/Zi Hw2unKg7kiQG3QTZtjToscJY7hKbAp6EofRsjeDl86puQ/nBi/tN81Ej4EbK9SFsX6Um LOUQ== MIME-Version: 1.0 X-Received: by 10.182.33.6 with SMTP id n6mr18203249obi.48.1395870490992; Wed, 26 Mar 2014 14:48:10 -0700 (PDT) Received: by 10.60.227.194 with HTTP; Wed, 26 Mar 2014 14:48:10 -0700 (PDT) Date: Wed, 26 Mar 2014 18:48:10 -0300 Message-ID: Subject: Cross-compiling a kernel module? From: Martin Galvan To: freebsd-arm@freebsd.org, freebsd-drivers@freebsd.org, freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2014 21:48:12 -0000 Hi everyone! I'm trying to cross-compile a simple Hello World module for the A10 Cubieboard (which is ARM/Allwinner10 based) but I'm not sure of how to write my makefile. What I'm using to test it (on an amd64) is: KMOD=hello SRCS=hello.c .include I've been browsing the mailing list a bit and so far I've found a way but it involves rebuilding the whole kernel, and I just want to compile this module to load/unload in runtime. Also, before you answer this: try and be as specific as you can, since I'm kind of a newbie at this. Stuff like where should I put/look for files, run commands, etc would be appreciated.