Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2013 22:35:53 +0800 (CST)
From:      =?GBK?B?ztLKx9XRw/c=?= <cengzm07@163.com>
To:        "freebsd-arm ml" <freebsd-arm@freebsd.org>
Subject:   BeagleBone ports and kernel module
Message-ID:  <256ae6b8.f077.142a4498ebe.Coremail.cengzm07@163.com>

next in thread | raw e-mail | index | archive | help
SSBoYXZlIGJ1aWx0IHRoZSBrZXJuZWwgYW5kIHRoZSByb290IGZpbGUgc3lzdGVtIGZyb20gdGhl
IHNvdXJjZSB0cmVlIGF0IHN2bjovL3N2bi5mcmVlYnNkLm9yZy9iYXNlL3Byb2plY3RzL2FybXY2
LyBhbmQgbWFrZSB0aGUgZnJlZWJzZCBzeXN0ZW0gYm9vdCBzdWNjZXNzZnVsbHkgb24gdGhlIEJl
YWdsZUJvbmUgYm9hcmQuIEFuZCB0aGUgbmV4dCBzdGVwIGlzIHRvIG1ha2Ugc29tZSBjaGFuZ2Vz
IHRvIHRoZSBrZXJuZWwuIEkgd2FudCB0byBtYWtlIHNvbWUgbW9kdWxlcyB0byBzZXJ2ZSB0aGlz
IHB1cnBvc2UuIFRoZSBmcmVlQlNEIHN5c3RlbSBwb3J0ZWQgdG8gdGhlIEJlYWdsZUJvbmUgc29t
ZWhvdyBjYW5ub3QgbWFrZSB0aGUgbW9kdWxlLCBpdCBzYXlzIGNhbm5vdCBmaW5kIHRoZSBzb3Vy
Y2UgdHJlZS4gU28gSSB0cmllZCB0byBtYWtlIHRoZSBtb2R1bGUgb24gdGhlIGZyZWVCU0QgOS4x
IHJ1bm5pbmcgb24gdGhlIHZpcnR1YWwgYm94IDQuMi42LiBUaGUgdmlydHVhbCBib3ggcnVucyBv
biBpMzg2IFBDLiBJIHRyaWVkIHRvIGNoYW5nZSBpbnRvIGNyb3NzIGNvbXBpbGUgdGhyb3VnaDoK
Y2QgIC91c3Ivc3JjCm1ha2UgVEFSR0VUPWFybSBUQVJHRVRfQVJDSD1hcm0gYnVpbGRlbnYKbWFr
ZSAtRE5PX0NMRUFOIGtlcm5lbC10b29sY2hhaW4KYW5kIHRoZSBtb2R1bGUgYnVpbHQgY2FuIG5v
dCBiZWVuIGxvYWRlZCB0aHJvdWdoIGtsZGxvYWQgb24gdGhlIHBvcnRlZCBmcmVlYnNkLCBhbmQg
dGhlIGVycm9yIHN1Z2dlc3RzIHRoZSByZWFzb24gaXMgdGhhdCB0aGUgdmVyc2lvbiBvZiB0aGUg
dHdvIGZyZWVCU0Qgc3lzdGVtIGlzIG5vdCB0aGUgc2FtZSwgaG93IGNhbiBJIHNvbHZlIHRoaXMg
cHJvYmxlbT8gcGxlYXNlIGhlbHAuCgoKYmVzdCByZWdhcmRzCmNlbmd6bTA3CgoKCg==
From owner-freebsd-arm@FreeBSD.ORG  Fri Nov 29 15:10:50 2013
Return-Path: <owner-freebsd-arm@FreeBSD.ORG>
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 ESMTPS id C4932557
 for <freebsd-arm@FreeBSD.org>; Fri, 29 Nov 2013 15:10:50 +0000 (UTC)
Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 96CB71C1C
 for <freebsd-arm@FreeBSD.org>; Fri, 29 Nov 2013 15:10:50 +0000 (UTC)
Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52]
 helo=damnhippie.dyndns.org)
 by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256)
 (Exim 4.72) (envelope-from <ian@FreeBSD.org>)
 id 1VmPiT-000JOJ-1n; Fri, 29 Nov 2013 15:10:49 +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 rATFAiNU010191;
 Fri, 29 Nov 2013 08:10:44 -0700 (MST) (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+/R9wYA+W/eHV5sPbL+3UI
Subject: Re: BeagleBone ports and kernel module
From: Ian Lepore <ian@FreeBSD.org>
To: =?iso-2022-jp?Q?=1B=24B2f=40=27=3E=3CL=40=1B=28B?= <cengzm07@163.com>
In-Reply-To: <256ae6b8.f077.142a4498ebe.Coremail.cengzm07@163.com>
References: <256ae6b8.f077.142a4498ebe.Coremail.cengzm07@163.com>
Content-Type: text/plain; charset="iso-2022-jp"
Date: Fri, 29 Nov 2013 08:10:44 -0700
Message-ID: <1385737844.58852.15.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 ml <freebsd-arm@FreeBSD.org>
X-BeenThere: freebsd-arm@freebsd.org
X-Mailman-Version: 2.1.16
Precedence: list
List-Id: "Porting FreeBSD to ARM processors." <freebsd-arm.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm/>;
List-Post: <mailto:freebsd-arm@freebsd.org>
List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Nov 2013 15:10:50 -0000

On Fri, 2013-11-29 at 22:35 +0800, $B2f@'><L@(B wrote:
> I have built the kernel and the root file system from the source tree at svn://svn.freebsd.org/base/projects/armv6/ and make the freebsd system boot successfully on the BeagleBone board. And the next step is to make some changes to the kernel. I want to make some modules to serve this purpose. The freeBSD system ported to the BeagleBone somehow cannot make the module, it says cannot find the source tree. So I tried to make the module on the freeBSD 9.1 running on the virtual box 4.2.6. The virtual box runs on i386 PC. I tried to change into cross compile through:
> cd  /usr/src
> make TARGET=arm TARGET_ARCH=arm buildenv
> make -DNO_CLEAN kernel-toolchain
> and the module built can not been loaded through kldload on the ported freebsd, and the error suggests the reason is that the version of the two freeBSD system is not the same, how can I solve this problem? please help.
> 

The source code at projects/armv6 is very out of date; everything from
that branch was merged into head months ago.  Use either stable/10 or
head (best support is currently on head).

When cross-building for Beaglebone use TARGET_ARCH=armv6

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?256ae6b8.f077.142a4498ebe.Coremail.cengzm07>