From owner-freebsd-arm@FreeBSD.ORG Fri Nov 29 14:35:56 2013 Return-Path: Delivered-To: freebsd-arm@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 A18CF9DE for ; Fri, 29 Nov 2013 14:35:56 +0000 (UTC) Received: from m13-72.163.com (m13-72.163.com [220.181.13.72]) by mx1.freebsd.org (Postfix) with ESMTP id DFF041A19 for ; Fri, 29 Nov 2013 14:35:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Subject:Content-Type: MIME-Version:Message-ID; bh=SueLAeZ3yguZFZ80LeEH7YD0DrlxaHAWuyTx MMlDKlQ=; b=DggPsxogF02bHZc09oMYobbQLMme0O27J6CD5LKbq8bNQJwiOh3P DCAQ1yU+Ru0wG0lasd8fFvLwSPfveqK4sf9Pl34SkTBVMIU0PniLk/iin1UWaYud cPk0JoyXl4H8ByX6nnI+dujFvQDP4xyBrtx2ZZm+ue8Qmkj4AcxcFGY= Received: from cengzm07$163.com ( [166.111.33.98] ) by ajax-webmail-wmsvr72 (Coremail) ; Fri, 29 Nov 2013 22:35:53 +0800 (CST) X-Originating-IP: [166.111.33.98] Date: Fri, 29 Nov 2013 22:35:53 +0800 (CST) From: =?GBK?B?ztLKx9XRw/c=?= To: "freebsd-arm ml" Subject: BeagleBone ports and kernel module X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20131012(23719.5622.5618) Copyright (c) 2002-2013 www.mailtech.cn 163com X-CM-CTRLDATA: 4z73aGZvb3Rlcl9odG09MjI1OTo4MQ== MIME-Version: 1.0 Message-ID: <256ae6b8.f077.142a4498ebe.Coremail.cengzm07@163.com> X-CM-TRANSID: SMGowAA3h41KpphS44UMAA--.7067W X-CM-SenderInfo: pfhqw6rpqxqiywtou0bp/1tbiWwjkdlD+Qsvz+AABss X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Nov 2013 14:35:56 -0000 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: 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 ; 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 ; 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 ) 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 To: =?iso-2022-jp?Q?=1B=24B2f=40=27=3E=3CL=40=1B=28B?= 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 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Nov 2013 15:10:50 -0000 On Fri, 2013-11-29 at 22:35 +0800, 我是昭明 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