From owner-freebsd-arm@FreeBSD.ORG Mon Sep 26 11:06:57 2011 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F95B106566B for ; Mon, 26 Sep 2011 11:06:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6E3C68FC19 for ; Mon, 26 Sep 2011 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8QB6vWA088083 for ; Mon, 26 Sep 2011 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8QB6u7e088081 for freebsd-arm@FreeBSD.org; Mon, 26 Sep 2011 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 26 Sep 2011 11:06:56 GMT Message-Id: <201109261106.p8QB6u7e088081@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arm@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Sep 2011 11:06:57 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o arm/160431 arm [patch] Disable interrupts during busdma cache sync op o arm/158950 arm arm/sheevaplug fails fsx when mmap operations are enab o arm/156814 arm OpenRD Ultimate does not boot on DB-88F6XXX or SHEEVAP o arm/156496 arm [patch] Minor bugfixes and enhancements to mmc and mmc o arm/155894 arm [patch] Enable at91 booting from SDHC (high capacity) o arm/155214 arm [patch] MMC/SD IO slow on Atmel ARM with modern large o arm/154227 arm [geli] using GELI leads to panic on ARM o arm/154189 arm lang/perl5.12 doesn't build on arm o arm/153380 arm Panic / translation fault with wlan on ARM o arm/150581 arm [irq] Unknown error generates IRQ address decoding err o arm/149288 arm mail/dovecot causes panic during configure on Sheevapl o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2 p arm/134338 arm [patch] Lock GPIO accesses on ixp425 13 problems total. From owner-freebsd-arm@FreeBSD.ORG Mon Sep 26 22:30:12 2011 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E6BF106564A for ; Mon, 26 Sep 2011 22:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 28A918FC24 for ; Mon, 26 Sep 2011 22:30:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8QMUBOs016401 for ; Mon, 26 Sep 2011 22:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8QMUBWQ016400; Mon, 26 Sep 2011 22:30:11 GMT (envelope-from gnats) Resent-Date: Mon, 26 Sep 2011 22:30:11 GMT Resent-Message-Id: <201109262230.p8QMUBWQ016400@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Naoyuki Tai Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DF1E106566B for ; Mon, 26 Sep 2011 22:25:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 6DFAE8FC0C for ; Mon, 26 Sep 2011 22:25:10 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8QMPAdQ073552 for ; Mon, 26 Sep 2011 22:25:10 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p8QMPAdt073551; Mon, 26 Sep 2011 22:25:10 GMT (envelope-from nobody) Message-Id: <201109262225.p8QMPAdt073551@red.freebsd.org> Date: Mon, 26 Sep 2011 22:25:10 GMT From: Naoyuki Tai To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: arm/161044: devel/icu does not build on arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Sep 2011 22:30:12 -0000 >Number: 161044 >Category: arm >Synopsis: devel/icu does not build on arm >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 26 22:30:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Naoyuki Tai >Release: FreeBSD 8.2-RELEASE >Organization: >Environment: FreeBSD scarabee 8.2-RELEASE FreeBSD 8.2-RELEASE #3: Sun Sep 25 20:00:09 EDT 2011 /usr/obj/arm/usr/src/sys/DREAMPLUG arm >Description: "make" of /usr/ports/devel/icu fails in following fashion. As you can imagine, many ports don't work without ICU library. stream { TestStream ---[OK] TestStreamEOF ---[OK] } } / (./iotest) ((4.0s)) [All tests passed successfully...] Elapsed Time: 00:00:04.005 # Performing the cintltst test gmake -C /usr/ports/devel/icu/work/icu/source/test gmake: Entering directory `/usr/ports/devel/icu/work/icu/source/test' gmake[0]: Making `all' in `testdata' gmake[1]: Entering directory `/usr/ports/devel/icu/work/icu/source/test/testdata' LD_LIBRARY_PATH=../../lib:../../stubdata:../../tools/ctestfw:$LD_LIBRARY_PATH MAKEFLAGS= ../../bin/pkgdata -q -c -s /usr/ports/devel/icu/work/icu/source/test/testdata/out/build/icudt48l -T ../../test/testdata/out/build -d ../../test/testdata/out -s ../../test/testdata/out/build -p testdata -m common ../../test/testdata/out/build/testdata.lst gmake[1]: Leaving directory `/usr/ports/devel/icu/work/icu/source/test/testdata' gmake[0]: Making `all' in `intltest' gmake[1]: Entering directory `/usr/ports/devel/icu/work/icu/source/test/intltest' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/usr/ports/devel/icu/work/icu/source/test/intltest' gmake[0]: Making `all' in `iotest' gmake[1]: Entering directory `/usr/ports/devel/icu/work/icu/source/test/iotest' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/usr/ports/devel/icu/work/icu/source/test/iotest' gmake[0]: Making `all' in `cintltst' gmake[1]: Entering directory `/usr/ports/devel/icu/work/icu/source/test/cintltst' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/usr/ports/devel/icu/work/icu/source/test/cintltst' gmake[1]: Entering directory `/usr/ports/devel/icu/work/icu/source/test' gmake[1]: Nothing to be done for `all-local'. gmake[1]: Leaving directory `/usr/ports/devel/icu/work/icu/source/test' gmake: Leaving directory `/usr/ports/devel/icu/work/icu/source/test' cd /usr/ports/devel/icu/work/icu/source/test/cintltst && /usr/bin/env LD_LIBRARY_PATH=/usr/ports/devel/icu/work/icu/source/lib:/usr/ports/devel/icu/work/icu/source/tools/ctestfw ./cintltst Default locale for this run is en_US_POSIX (./cintltst) { tsconv { ucnvseltst { TestSelector *** Signal 10 Stop in /usr/ports/devel/icu. *** Error code 1 Stop in /usr/ports/devel/icu. Run cintltst under gdb scarabee# cd /usr/ports/devel/icu/work/icu/source/test/cintltst scarabee# setenv LD_LIBRARY_PATH /usr/ports/devel/icu/work/icu/source/lib:/usr/ports/devel/icu/work/icu/source/tools/ctestfw scarabee# gdb cintltst GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "arm-marcel-freebsd"...(no debugging symbols found)... (gdb) r Starting program: /usr/ports/devel/icu/work/icu/source/test/cintltst/cintltst (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Default locale for this run is en_US_POSIX (/usr/ports/devel/icu/work/icu/source/test/cintltst/cintltst) { tsconv { ucnvseltst { TestSelector Program received signal SIGBUS, Bus error. 0x20557790 in uset_openEmpty_48 () at uset.cpp:32 32 uset_openEmpty() { Current language: auto; currently c++ (gdb) bt #0 0x20557790 in uset_openEmpty_48 () at uset.cpp:32 #1 0x000288f0 in getResultsManually () #2 0x00029038 in TestSelector () #3 0x20198dc8 in iterateTestsWithLevel () from /usr/ports/devel/icu/work/icu/source/tools/ctestfw/libicutest.so.48 #4 0x20199080 in iterateTestsWithLevel () from /usr/ports/devel/icu/work/icu/source/tools/ctestfw/libicutest.so.48 #5 0x20199080 in iterateTestsWithLevel () from /usr/ports/devel/icu/work/icu/source/tools/ctestfw/libicutest.so.48 #6 0x20199080 in iterateTestsWithLevel () from /usr/ports/devel/icu/work/icu/source/tools/ctestfw/libicutest.so.48 #7 0x201992dc in runTests () from /usr/ports/devel/icu/work/icu/source/tools/ctestfw/libicutest.so.48 #8 0x20199928 in runTestRequest () from /usr/ports/devel/icu/work/icu/source/tools/ctestfw/libicutest.so.48 #9 0x00038024 in main () This is built with # cc --version cc (GCC) 4.2.1 20070719 [FreeBSD] >How-To-Repeat: 1 - Install FreeBSD 8.2 Release on a ARM machine 2 - go to /usr/ports/devel/icu and "make" >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-arm@FreeBSD.ORG Wed Sep 28 07:59:33 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C8C6106564A for ; Wed, 28 Sep 2011 07:59:33 +0000 (UTC) (envelope-from nitw.satish@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 1C1D08FC19 for ; Wed, 28 Sep 2011 07:59:32 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R8okZ-0004HG-Jh for freebsd-arm@freebsd.org; Wed, 28 Sep 2011 00:40:15 -0700 Date: Wed, 28 Sep 2011 00:40:15 -0700 (PDT) From: satish kondapalli To: freebsd-arm@freebsd.org Message-ID: <1317195615589-4848235.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: How to cross compile a kernel module? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 07:59:33 -0000 Hi, I have written one simple character module which works on x86 FreeBSD. Now I want to do a cross compilation for arm. For my arm board I am able to build the kernel and file system with the "make buildworld/installworld/buildkernel/installkernel ...." commands. Please tell me how to cross compile a simple module for arm. Thanks Sateesh -- View this message in context: http://freebsd.1045724.n5.nabble.com/How-to-cross-compile-a-kernel-module-tp4848235p4848235.html Sent from the freebsd-arm mailing list archive at Nabble.com. From owner-freebsd-arm@FreeBSD.ORG Wed Sep 28 10:34:06 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B553D106566C for ; Wed, 28 Sep 2011 10:34:06 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 751268FC17 for ; Wed, 28 Sep 2011 10:34:06 +0000 (UTC) Received: from [192.168.99.1] (helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1R8rSm-000259-6M; Wed, 28 Sep 2011 13:34:04 +0300 Date: Wed, 28 Sep 2011 13:34:48 +0300 From: Aleksandr Rybalko To: satish kondapalli Message-Id: <20110928133448.65441459.ray@dlink.ua> In-Reply-To: <1317195615589-4848235.post@n5.nabble.com> References: <1317195615589-4848235.post@n5.nabble.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: How to cross compile a kernel module? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 10:34:06 -0000 On Wed, 28 Sep 2011 00:40:15 -0700 (PDT) satish kondapalli wrote: >> Hi, >> >> I have written one simple character module which works on x86 >> FreeBSD. Now I want to do a cross compilation for arm. >> >> For my arm board I am able to build the kernel and file system with >> the "make buildworld/installworld/buildkernel/installkernel ...." >> commands. >> >> Please tell me how to cross compile a simple module for arm. >> >> Thanks >> Sateesh >> >> >> -- >> View this message in context: >> http://freebsd.1045724.n5.nabble.com/How-to-cross-compile-a-kernel-module-tp4848235p4848235.html >> Sent from the freebsd-arm mailing list archive at Nabble.com. >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm To >> unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" Hi, add makeoptions MODULES_OVERRIDE="module1 module2" into kernel config file. WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-arm@FreeBSD.ORG Wed Sep 28 21:40:06 2011 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9CAE1065676 for ; Wed, 28 Sep 2011 21:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AE8DC8FC13 for ; Wed, 28 Sep 2011 21:40:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SLe6Cx091887 for ; Wed, 28 Sep 2011 21:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8SLe6Jn091886; Wed, 28 Sep 2011 21:40:06 GMT (envelope-from gnats) Resent-Date: Wed, 28 Sep 2011 21:40:06 GMT Resent-Message-Id: <201109282140.p8SLe6Jn091886@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Naoyuki Tai Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08A071065674 for ; Wed, 28 Sep 2011 21:37:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id ECF648FC15 for ; Wed, 28 Sep 2011 21:37:07 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SLb7B2082149 for ; Wed, 28 Sep 2011 21:37:07 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p8SLb7Hs082148; Wed, 28 Sep 2011 21:37:07 GMT (envelope-from nobody) Message-Id: <201109282137.p8SLb7Hs082148@red.freebsd.org> Date: Wed, 28 Sep 2011 21:37:07 GMT From: Naoyuki Tai To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: arm/161110: /usr/src/sys/arm/include/signal.h is bad X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 21:40:07 -0000 >Number: 161110 >Category: arm >Synopsis: /usr/src/sys/arm/include/signal.h is bad >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 28 21:40:06 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Naoyuki Tai >Release: 8.2-RELEASE >Organization: >Environment: FreeBSD 8.2-RELEASE arm >Description: The header file arm/include/signal.h contains the sigcontext data structure with no fields. GCC does not like the empty struct, reports "syntax error" from the compiler, causing the build to fail. Because of this, sparc64's struct definition ( /usr/src/sys/sparc64/include/signal.h) contains one "_dummy" in it. >How-To-Repeat: Compile a program with cc and the source code includes #include >Fix: I could imagine that, similar to sparc64, it needs a dummy member field in the sigcontex, but I'm not an export. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-arm@FreeBSD.ORG Thu Sep 29 09:56:09 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5E12106566B for ; Thu, 29 Sep 2011 09:56:09 +0000 (UTC) (envelope-from nitw.satish@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id A60F38FC17 for ; Thu, 29 Sep 2011 09:56:09 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R9DLd-00084u-2I for freebsd-arm@freebsd.org; Thu, 29 Sep 2011 02:56:09 -0700 Date: Thu, 29 Sep 2011 02:56:09 -0700 (PDT) From: satish kondapalli To: freebsd-arm@freebsd.org Message-ID: <1317290169064-4852474.post@n5.nabble.com> In-Reply-To: <20110928133448.65441459.ray@dlink.ua> References: <1317195615589-4848235.post@n5.nabble.com> <20110928133448.65441459.ray@dlink.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: How to cross compile a kernel module? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 09:56:09 -0000 Thanks Aleksandr, After adding "MODULES_OVERRIDE" option in the kernel config, my module got compiled. But every time while building my module, the entire kernel also compiled. is there any better mechanism to just cross compile the module with out building the entire Kernel. Thanks Sateesh -- View this message in context: http://freebsd.1045724.n5.nabble.com/How-to-cross-compile-a-kernel-module-tp4848235p4852474.html Sent from the freebsd-arm mailing list archive at Nabble.com. From owner-freebsd-arm@FreeBSD.ORG Thu Sep 29 10:12:14 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16B491065672 for ; Thu, 29 Sep 2011 10:12:14 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id CCA278FC08 for ; Thu, 29 Sep 2011 10:12:13 +0000 (UTC) Received: from [192.168.99.1] (helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1R9Db6-0003y8-9u; Thu, 29 Sep 2011 13:12:09 +0300 Date: Thu, 29 Sep 2011 13:12:56 +0300 From: Aleksandr Rybalko To: satish kondapalli Message-Id: <20110929131256.28cf6240.ray@dlink.ua> In-Reply-To: <1317290169064-4852474.post@n5.nabble.com> References: <1317195615589-4848235.post@n5.nabble.com> <20110928133448.65441459.ray@dlink.ua> <1317290169064-4852474.post@n5.nabble.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: How to cross compile a kernel module? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 10:12:14 -0000 On Thu, 29 Sep 2011 02:56:09 -0700 (PDT) satish kondapalli wrote: >> Thanks Aleksandr, >> After adding "MODULES_OVERRIDE" option in the kernel config, my >> module got compiled. >> >> But every time while building my module, the entire kernel also >> compiled. is there any better mechanism to just cross compile the >> module with out building the entire Kernel. To avoid recompile all things - do make KERNFAST=configname kernel. Maybe someone also show better way to cross compile one module, but I don't know. >> >> Thanks >> Sateesh >> >> -- >> View this message in context: >> http://freebsd.1045724.n5.nabble.com/How-to-cross-compile-a-kernel-module-tp4848235p4852474.html >> Sent from the freebsd-arm mailing list archive at Nabble.com. >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm To >> unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Alexandr Rybalko aka Alex RAY From owner-freebsd-arm@FreeBSD.ORG Thu Sep 29 15:50:12 2011 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D54371065672 for ; Thu, 29 Sep 2011 15:50:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B35B28FC18 for ; Thu, 29 Sep 2011 15:50:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TFoCDk032810 for ; Thu, 29 Sep 2011 15:50:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8TFoC98032809; Thu, 29 Sep 2011 15:50:12 GMT (envelope-from gnats) Resent-Date: Thu, 29 Sep 2011 15:50:12 GMT Resent-Message-Id: <201109291550.p8TFoC98032809@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Naoyuki Tai Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CE7B106567C for ; Thu, 29 Sep 2011 15:43:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D77598FC21 for ; Thu, 29 Sep 2011 15:43:45 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TFhjOk009712 for ; Thu, 29 Sep 2011 15:43:45 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p8TFhj06009701; Thu, 29 Sep 2011 15:43:45 GMT (envelope-from nobody) Message-Id: <201109291543.p8TFhj06009701@red.freebsd.org> Date: Thu, 29 Sep 2011 15:43:45 GMT From: Naoyuki Tai To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: arm/161128: gcc 4.2.1 ARM produces bad code with -fstack-protector X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 15:50:13 -0000 >Number: 161128 >Category: arm >Synopsis: gcc 4.2.1 ARM produces bad code with -fstack-protector >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 29 15:50:12 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Naoyuki Tai >Release: FreeBSD 8.2 Release >Organization: >Environment: FreeBSD 8.2 Release ARM >Description: This is first manifested as arm/154189, but any application or library that uses -fstack-protector causes crash due to the compiler bug. So far, I discovered this in lang/perl5.xx and net/avahi-app. Here is one of manifestation from perl5.10. This is the assembler output of locale.c in perl5.10, with no -fstack-protector. Perl_new_collate: @ args = 0, pretend = 0, frame = 104 @ frame_needed = 1, uses_anonymous_args = 0 mov ip, sp stmfd sp!, {r4, r5, r6, fp, ip, lr, pc} sub fp, ip, #4 sub sp, sp, #104 ldr r6, .L48 .LPIC2: add r6, pc, r6 subs r5, r0, #0 bne .L31 ldr r3, .L48+4 And the data segment .L48 is L48: .word _GLOBAL_OFFSET_TABLE_-(.LPIC2+8) .word PL_collation_name(GOT) Here is the assembler output of locale.c with the -fstack-protector. Perl_new_collate: @ args = 0, pretend = 0, frame = 104 @ frame_needed = 1, uses_anonymous_args = 0 mov ip, sp stmfd sp!, {r4, r5, r6, fp, ip, lr, pc} sub fp, ip, #4 sub sp, sp, #104 ldr r6, .L49 .LPIC2: add r6, pc, r6 ldr r3, .L49+4 And the data segment is .L49: .word _GLOBAL_OFFSET_TABLE_-(.LPIC2+8) .word __stack_chk_guard(GOT) .word PL_collation_name(GOT) Notice the last "ldr r3, .L49+4". It is loading r3 register from __stack_chk_guard(GOT) instead of PL_collation_name(GOT). So, I think that the arm backend has a bug that it is producing wrong offsets in the data segment when the stack protector is used. After noticing this, I took out the "-fstack-protector" from build and the build succeeds. It may be the problem that the combination of -fPIC and -fstack-protector is used. In any case, it is clear that the GCC's arm backend has a bug. cc --version cc (GCC) 4.2.1 20070719 [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. >How-To-Repeat: Method 1: Build lang/perl.5.12 on arm. Method 2: Build net/avahi-app on arm and run. avahi-daemon crashes. >Fix: Obviously, the correct fix is to fix the compiler, and I have no idea how. If you need these ports to run without crash, after "make configure", take out the -fstack-protector from the Makefiles and what not under expanded "work" directory. Alternatively, modify the C compiler to ignore -fstack-protector directive. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-arm@FreeBSD.ORG Thu Sep 29 23:45:16 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF4311065673 for ; Thu, 29 Sep 2011 23:45:16 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate.funkthat.com [70.36.235.232]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB9B8FC1D for ; Thu, 29 Sep 2011 23:45:16 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id p8TNTa4D045022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Sep 2011 16:29:36 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id p8TNTYqS045021; Thu, 29 Sep 2011 16:29:34 -0700 (PDT) (envelope-from jmg) Date: Thu, 29 Sep 2011 16:29:33 -0700 From: John-Mark Gurney To: Aleksandr Rybalko Message-ID: <20110929232933.GC14645@funkthat.com> Mail-Followup-To: Aleksandr Rybalko , satish kondapalli , freebsd-arm@freebsd.org References: <1317195615589-4848235.post@n5.nabble.com> <20110928133448.65441459.ray@dlink.ua> <1317290169064-4852474.post@n5.nabble.com> <20110929131256.28cf6240.ray@dlink.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110929131256.28cf6240.ray@dlink.ua> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Thu, 29 Sep 2011 16:29:36 -0700 (PDT) Cc: freebsd-arm@freebsd.org, satish kondapalli Subject: Re: How to cross compile a kernel module? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 23:45:16 -0000 Aleksandr Rybalko wrote this message on Thu, Sep 29, 2011 at 13:12 +0300: > On Thu, 29 Sep 2011 02:56:09 -0700 (PDT) > satish kondapalli wrote: > > >> Thanks Aleksandr, > >> After adding "MODULES_OVERRIDE" option in the kernel config, my > >> module got compiled. > >> > >> But every time while building my module, the entire kernel also > >> compiled. is there any better mechanism to just cross compile the > >> module with out building the entire Kernel. > > To avoid recompile all things - do make KERNFAST=configname kernel. > > Maybe someone also show better way to cross compile one module, but I > don't know. I haven't tested this in a long time, but if you do: make buildenv from the root of your tree, it should setup your path w/ all the necessary cross-tools in your path, etc... Then you can go into the module directory and do a make manually.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arm@FreeBSD.ORG Fri Sep 30 09:09:00 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B719C106566C for ; Fri, 30 Sep 2011 09:09:00 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 445DA8FC0C for ; Fri, 30 Sep 2011 09:08:59 +0000 (UTC) Received: from [192.168.99.1] (helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1R9Z5I-0005az-Qd; Fri, 30 Sep 2011 12:08:46 +0300 Date: Fri, 30 Sep 2011 12:09:37 +0300 From: Aleksandr Rybalko To: John-Mark Gurney Message-Id: <20110930120937.fee3590e.ray@dlink.ua> In-Reply-To: <20110929232933.GC14645@funkthat.com> References: <1317195615589-4848235.post@n5.nabble.com> <20110928133448.65441459.ray@dlink.ua> <1317290169064-4852474.post@n5.nabble.com> <20110929131256.28cf6240.ray@dlink.ua> <20110929232933.GC14645@funkthat.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, satish kondapalli Subject: Re: How to cross compile a kernel module? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 09:09:00 -0000 On Thu, 29 Sep 2011 16:29:33 -0700 John-Mark Gurney wrote: >> Aleksandr Rybalko wrote this message on Thu, Sep 29, 2011 at 13:12 >> +0300: >> > On Thu, 29 Sep 2011 02:56:09 -0700 (PDT) >> > satish kondapalli wrote: >> > >> > >> Thanks Aleksandr, >> > >> After adding "MODULES_OVERRIDE" option in the kernel config, my >> > >> module got compiled. >> > >> >> > >> But every time while building my module, the entire kernel also >> > >> compiled. is there any better mechanism to just cross compile >> > >> the module with out building the entire Kernel. >> > >> > To avoid recompile all things - do make KERNFAST=configname kernel. >> > >> > Maybe someone also show better way to cross compile one module, >> > but I don't know. >> >> I haven't tested this in a long time, but if you do: >> make buildenv >> >> from the root of your tree, it should setup your path w/ all the >> necessary cross-tools in your path, etc... Then you can go into the >> module directory and do a make manually.. Yep, indeed, worked! SRC=/usr/src OBJ=/usr/obj cd ${SRC} make TARGET=arm TARGET_ARCH=armeb TARGET_CPU=xscale buildenv # There is check ${PATH} to have toolchain in that dirs if [ ! -x ${OBJ}/${TARGET}.${TARGET_ARCH}/${SRC}/tmp/usr/bin/cc ]; then make kernel-toolchain fi # Or just do make -DNO_CLEAN kernel-toolchain cd sys/modules/module/you/need make Thank you John-Mark! >> >> -- >> John-Mark Gurney Voice: +1 415 225 >> 5579 >> >> "All that I will do, has been done, All that I have, has not." -- Alexandr Rybalko aka Alex RAY From owner-freebsd-arm@FreeBSD.ORG Fri Sep 30 10:06:15 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B773106566C for ; Fri, 30 Sep 2011 10:06:15 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from outbound.icp-osb-irony-out7.iinet.net.au (outbound.icp-osb-irony-out7.iinet.net.au [203.59.1.108]) by mx1.freebsd.org (Postfix) with ESMTP id E577D8FC18 for ; Fri, 30 Sep 2011 10:06:14 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBABeThU58lKqT/2dsb2JhbAAMNasBAQEBAQIBJxFAARALDQEKCRYPCQMCAQIBRQYKAwEFAgEBh3cGrjWJAYJLToQHBJNchUSMCw X-IronPort-AV: E=Sophos;i="4.68,466,1312128000"; d="scan'208";a="43689198" Received: from unknown (HELO [192.168.15.65]) ([124.148.170.147]) by outbound.icp-osb-irony-out7.iinet.net.au with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 30 Sep 2011 18:06:12 +0800 Message-ID: <4E85949F.1000004@swin.edu.au> Date: Fri, 30 Sep 2011 20:06:23 +1000 From: Mattia Rossi Organization: Swinburne University of Technology User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Naoyuki Tai References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> <20110920173523.4043c0be.ray@dlink.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mrossi@swin.edu.au List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 10:06:15 -0000 On 21/09/11 00:42, Naoyuki Tai wrote: > On Tue, 20 Sep 2011 10:35:23 -0400, Aleksandr Rybalko wrote: > >> On Tue, 20 Sep 2011 10:12:07 -0400 >> "Naoyuki Tai" wrote: >> >>>> On Tue, 20 Sep 2011 09:05:44 -0400, Aleksandr Rybalko >>>> wrote: >>>> >>>> > On Tue, 20 Sep 2011 01:37:10 -0400 >>>> > Naoyuki Tai wrote: >>>> > >>>> >>> Hello, >>>> >>> >>>> >>> I'm new to the FreeBSD/arm, bought a DreamPlug from GlobalScale, >>>> >>> hoping to turn it into a FreeBSD file server. >>>> >>> >>>> >>> I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and >>>> >>> created kernel.bin. After giving it a "go", it hangs. >>>> >>> >>>> >>> I must have built the kernel.bin wrong but I have no clue as to >>>> >>> what I did wrong. >>>> >>> Any clue/help is appreciated. >>>> >>> >>>> >>> Thanks! >>>> >>> >>>> >>> -- Tai >>>> >>> >>>> >>> U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) >>>> >>> Marvell-DreamPlug >>>> >>> >>>> >>> SoC: Kirkwood 88F6281_A0 >>>> >>> CPU running @ 1200Mhz L2 running @ 400Mhz >>>> >>> SysClock = 400Mhz , TClock = 200Mhz >>>> >>> DRAM: 512 MiB >>>> >>> SF: Detected MX25L1606 with page size 256, total 1 MiB >>>> >>> In: serial >>>> >>> Out: serial >>>> >>> Err: serial >>>> >>> Net: egiga0, egiga1 >>>> >>> 88E1116 Initialized on egiga0 >>>> >>> 88E1116 Initialized on egiga1 >>>> >>> Hit any key to stop autoboot: 0 >>>> >>> Marvell>> setenv serverip 192.168.10.3 >>>> >>> Marvell>> setenv ipaddr 192.168.10.55 >>>> >>> Marvell>> tftpboot 6400000 arm/kernel.bin >>>> >>> Using egiga0 device >>>> >>> TFTP from server 192.168.10.3; our IP address is 192.168.10.55 >>>> >>> Filename 'arm/kernel.bin'. >>>> >>> Load address: 0x6400000 >>>> >>> Loading: >>>> >>> ################################################################# >>>> >>> ################################################################# >>>> >>> ################################################################# >>>> >>> ############################ >>>> >>> done >>>> >>> Bytes transferred = 3272884 (31f0b4 hex) >>>> >>> Marvell>> go 0x6400000 >>>> >>> ## Starting application at 0x06400000 ... >>>> >>> >>>> > >>>> > Hi, >>>> > >>>> > Did you try address 0x900000 instead of 6400000? >>>> > >>>> > WBW >>>> >>>> I tried 90000 and it works. >>>> Thanks. >>>> >>>> I don't understand the memory space allocation. 640000 is used >>>> for the linux, and I imagined that's the base address for kernel. >>>> >>>> Where can I learn the reason why it's 90000? >> >> 0x00000000 is physical memory location, so if MMU turned off, memory >> operations not translated (virtual <--> physical). Physical memory >> location may vary between different ARM CPUs, IIRC. >> But for Kirkwood - this is true. >> >> And also important which base we set in kernel while compiling, >> because code may start to work on every location, but first jump will >> call some black hole :) >> >> >>>> Thanks! >>>> >>>> -- Tai > > > Got it. It is mentioned in > > /usr/src/sys/arm/mv/kirkwood/std.kirkwood > > makeoptions KERNPHYSADDR=0x00900000 > > Thanks. > I don't know.. it just doesn't work for me. U-Boot 2011.06-02334-g8f495d9-dirty (Mar 28 2011 - 05:21:06) Marvell-DreamPlug SoC: Kirkwood 88F6281_A0 DRAM: 512 MiB SF: Detected MX25L1606 with page size 256, total 1 MiB In: serial Out: serial Err: serial Net: egiga0, egiga1 88E1121 Initialized on egiga0 88E1121 Initialized on egiga1 Hit any key to stop autoboot: 0 Marvell>> set ipaddr 192.168.12.80 Marvell>> set serverip 192.168.12.81 Marvell>> tftpboot 0x900000 kernel.bin No link on egiga0 Using egiga1 device TFTP from server 192.168.12.81; our IP address is 192.168.12.80 Filename 'kernel.bin'. Load address: 0x900000 Loading: ################################################################# ################################################################# ################################################################# ################################### done Bytes transferred = 3366392 (335df8 hex) Marvell>> go 0x900000 ## Starting application at 0x00900000 ... And there it just hangs. Kernel compiled with: KERNCONF=DB-88F6XXX TARGET=arm TARGET_ARCH=arm Help? Mat From owner-freebsd-arm@FreeBSD.ORG Fri Sep 30 10:35:00 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D04BD1065672 for ; Fri, 30 Sep 2011 10:35:00 +0000 (UTC) (envelope-from nitw.satish@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id A8FB18FC08 for ; Fri, 30 Sep 2011 10:35:00 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R9aQm-00084o-25 for freebsd-arm@freebsd.org; Fri, 30 Sep 2011 03:35:00 -0700 Date: Fri, 30 Sep 2011 03:35:00 -0700 (PDT) From: satish kondapalli To: freebsd-arm@freebsd.org Message-ID: <1317378900058-4856553.post@n5.nabble.com> In-Reply-To: <20110930120937.fee3590e.ray@dlink.ua> References: <1317195615589-4848235.post@n5.nabble.com> <20110928133448.65441459.ray@dlink.ua> <1317290169064-4852474.post@n5.nabble.com> <20110929131256.28cf6240.ray@dlink.ua> <20110929232933.GC14645@funkthat.com> <20110930120937.fee3590e.ray@dlink.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: How to cross compile a kernel module? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 10:35:00 -0000 thanks.. "make TARGET=arm buildenv" is working for me. -- View this message in context: http://freebsd.1045724.n5.nabble.com/How-to-cross-compile-a-kernel-module-tp4848235p4856553.html Sent from the freebsd-arm mailing list archive at Nabble.com. From owner-freebsd-arm@FreeBSD.ORG Fri Sep 30 14:35:12 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B175106566B for ; Fri, 30 Sep 2011 14:35:12 +0000 (UTC) (envelope-from ntai@smartfruit.com) Received: from homiemail-a90.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by mx1.freebsd.org (Postfix) with ESMTP id 035C78FC08 for ; Fri, 30 Sep 2011 14:35:11 +0000 (UTC) Received: from homiemail-a90.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a90.g.dreamhost.com (Postfix) with ESMTP id A1CFE2AC069; Fri, 30 Sep 2011 07:35:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=smartfruit.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=smartfruit.com ; b=LZa6gulSlDItOb2/t1rFGdpuNxOZLb7n0Rqt9JbxayPs6BZM9h/OHdxNPtwT fg4cTnjTbziwVnRkBcpCtn6W3VtJLr/CkWMLCvUswPeE+dLYTVsCUrlEgvUK3woK HjNDOpi4H9hfUhxXXalXI/QFby+fyAak/VG89En3vkpZCbY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=smartfruit.com; h= message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s= smartfruit.com; bh=1GY5gYSw32LskfPCjEZxKXRZTrA=; b=AQgGDZj0A9egJ NMMOR2PT0bFQWIOcMyGMz4SuoSta0vdGsQuxzfZWZojxEu63B+jP43e/odXMYOqF Os3X/z6fCayoeJXU01rkyL01R7o6QyExS7mRg1ShA12NTBWtU1G2px8D+tKQux3V VsBWmBI6vccqFFwSiIu426EcQJZp/0= Received: from luxor.smartfruit.com (pool-173-76-33-234.bstnma.fios.verizon.net [173.76.33.234]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: smtpguy@smartfruit.com) by homiemail-a90.g.dreamhost.com (Postfix) with ESMTPSA id ED94A2AC065; Fri, 30 Sep 2011 07:35:10 -0700 (PDT) Message-ID: <4E85D39F.1010606@smartfruit.com> Date: Fri, 30 Sep 2011 10:35:11 -0400 From: Naoyuki Tai User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20110202 Thunderbird/3.1.7 MIME-Version: 1.0 To: mrossi@swin.edu.au References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> <20110920173523.4043c0be.ray@dlink.ua> <4E85949F.1000004@swin.edu.au> In-Reply-To: <4E85949F.1000004@swin.edu.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 14:35:12 -0000 On 09/30/11 06:06, Mattia Rossi wrote: > On 21/09/11 00:42, Naoyuki Tai wrote: >> On Tue, 20 Sep 2011 10:35:23 -0400, Aleksandr Rybalko >> wrote: >> >>> On Tue, 20 Sep 2011 10:12:07 -0400 >>> "Naoyuki Tai" wrote: >>> >>>>> On Tue, 20 Sep 2011 09:05:44 -0400, Aleksandr Rybalko >>>>> wrote: >>>>> >>>>> > On Tue, 20 Sep 2011 01:37:10 -0400 >>>>> > Naoyuki Tai wrote: >>>>> > >>>>> >>> Hello, >>>>> >>> >>>>> >>> I'm new to the FreeBSD/arm, bought a DreamPlug from GlobalScale, >>>>> >>> hoping to turn it into a FreeBSD file server. >>>>> >>> >>>>> >>> I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and >>>>> >>> created kernel.bin. After giving it a "go", it hangs. >>>>> >>> >>>>> >>> I must have built the kernel.bin wrong but I have no clue as to >>>>> >>> what I did wrong. >>>>> >>> Any clue/help is appreciated. >>>>> >>> >>>>> >>> Thanks! >>>>> >>> >>>>> >>> -- Tai >>>>> >>> >>>>> >>> U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) >>>>> >>> Marvell-DreamPlug >>>>> >>> >>>>> >>> SoC: Kirkwood 88F6281_A0 >>>>> >>> CPU running @ 1200Mhz L2 running @ 400Mhz >>>>> >>> SysClock = 400Mhz , TClock = 200Mhz >>>>> >>> DRAM: 512 MiB >>>>> >>> SF: Detected MX25L1606 with page size 256, total 1 MiB >>>>> >>> In: serial >>>>> >>> Out: serial >>>>> >>> Err: serial >>>>> >>> Net: egiga0, egiga1 >>>>> >>> 88E1116 Initialized on egiga0 >>>>> >>> 88E1116 Initialized on egiga1 >>>>> >>> Hit any key to stop autoboot: 0 >>>>> >>> Marvell>> setenv serverip 192.168.10.3 >>>>> >>> Marvell>> setenv ipaddr 192.168.10.55 >>>>> >>> Marvell>> tftpboot 6400000 arm/kernel.bin >>>>> >>> Using egiga0 device >>>>> >>> TFTP from server 192.168.10.3; our IP address is 192.168.10.55 >>>>> >>> Filename 'arm/kernel.bin'. >>>>> >>> Load address: 0x6400000 >>>>> >>> Loading: >>>>> >>> ################################################################# >>>>> >>> ################################################################# >>>>> >>> ################################################################# >>>>> >>> ############################ >>>>> >>> done >>>>> >>> Bytes transferred = 3272884 (31f0b4 hex) >>>>> >>> Marvell>> go 0x6400000 >>>>> >>> ## Starting application at 0x06400000 ... >>>>> >>> >>>>> > >>>>> > Hi, >>>>> > >>>>> > Did you try address 0x900000 instead of 6400000? >>>>> > >>>>> > WBW >>>>> >>>>> I tried 90000 and it works. >>>>> Thanks. >>>>> >>>>> I don't understand the memory space allocation. 640000 is used >>>>> for the linux, and I imagined that's the base address for kernel. >>>>> >>>>> Where can I learn the reason why it's 90000? >>> >>> 0x00000000 is physical memory location, so if MMU turned off, memory >>> operations not translated (virtual <--> physical). Physical memory >>> location may vary between different ARM CPUs, IIRC. >>> But for Kirkwood - this is true. >>> >>> And also important which base we set in kernel while compiling, >>> because code may start to work on every location, but first jump will >>> call some black hole :) >>> >>> >>>>> Thanks! >>>>> >>>>> -- Tai >> >> >> Got it. It is mentioned in >> >> /usr/src/sys/arm/mv/kirkwood/std.kirkwood >> >> makeoptions KERNPHYSADDR=0x00900000 >> >> Thanks. >> > > I don't know.. it just doesn't work for me. > > U-Boot 2011.06-02334-g8f495d9-dirty (Mar 28 2011 - 05:21:06) > Marvell-DreamPlug > > SoC: Kirkwood 88F6281_A0 > DRAM: 512 MiB > SF: Detected MX25L1606 with page size 256, total 1 MiB > In: serial > Out: serial > Err: serial > Net: egiga0, egiga1 > 88E1121 Initialized on egiga0 > 88E1121 Initialized on egiga1 > Hit any key to stop autoboot: 0 > Marvell>> set ipaddr 192.168.12.80 > Marvell>> set serverip 192.168.12.81 > Marvell>> tftpboot 0x900000 kernel.bin > No link on egiga0 > Using egiga1 device > TFTP from server 192.168.12.81; our IP address is 192.168.12.80 > Filename 'kernel.bin'. > Load address: 0x900000 > Loading: > ################################################################# > > ################################################################# > > ################################################################# > ################################### > done > Bytes transferred = 3366392 (335df8 hex) > Marvell>> go 0x900000 > ## Starting application at 0x00900000 ... > > > And there it just hangs. > Kernel compiled with: > KERNCONF=DB-88F6XXX > TARGET=arm > TARGET_ARCH=arm > > Help? > > Mat > I have luck with SheevaPlug based kernel config. Here is the kernel config file I'm using. It's based on SheevaPlug. You probably need to adjust the root FS, network protocol. Good luck. -- Tai -- CUT HERE -- # # Custom kernel for Marvell DreamPlug devices. # ident DREAMPLUG include "../mv/kirkwood/std.sheevaplug" options SOC_MV_KIRKWOOD makeoptions MODULES_OVERRIDE="" #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions WERROR="-Werror" options SCHED_4BSD #4BSD scheduler options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options NFSCLIENT #Network Filesystem Client options NFSLOCKD #Network Lock Manager options NFS_ROOT #NFS usable as /, requires NFSCLIENT #options BOOTP #options BOOTP_NFSROOT #options BOOTP_NFSV3 #options BOOTP_WIRED_TO=mge0 # Root fs on a disk options ROOTDEVNAME=\"ufs:/dev/ad0s1a\" options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options MUTEX_NOINLINE options RWLOCK_NOINLINE options NO_FFS_SNAPSHOT options NO_SWAPPING # Debugging options ALT_BREAK_TO_DEBUGGER options DDB options KDB # Pseudo devices device random device pty device loop # Serial ports device uart # Networking device ether device mge # Marvell Gigabit Ethernet controller device mii device e1000phy device bpf options HZ=1000 options DEVICE_POLLING device vlan # USB #options USB_DEBUG # enable debug msgs device usb device ehci device umass device uhid #device ukbd device ulpt #device udbp device usfs device ums # #device pci #device kbdmux # keyboard multiplexer #device sc #device dcons # dumb console driver #options KBD_INSTALL_CDEV # install a CDEV entry in /dev # SCSI device scbus # SCSI bus (required for SCSI) device da # Direct Access (disks) device cd # CD device pass # USB sound device sound device snd_uaudio # device ahci device mvs device ata device atadisk # device if_bridge # options SOFTUPDATES options UFS_GJOURNAL options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories # options LIBICONV options LIBMCHAIN # options NETATALK #Appletalk communications protocols options NETSMB #SMB/CIFS requester options MSDOSFS #MS DOS File System (FAT, FAT32) options PROCFS #Process filesystem (requires PSEUDOFS) options SMBFS #SMB/CIFS filesystem options GEOM_PART_GPT # GPT partitioning options EXT2FS device mem options CD9660 #ISO 9660 filesystem options VFS_AIO options PSEUDOFS #Pseudo-filesystem framework options CD9660_ICONV # iic device iic device iicbus # Bus support, required for ic/iic/iicsmb below. device icee device firmware -- CUT HERE -- From owner-freebsd-arm@FreeBSD.ORG Fri Sep 30 15:51:19 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4102D1065674 for ; Fri, 30 Sep 2011 15:51:19 +0000 (UTC) (envelope-from matthieu.kraus@s2008.tu-chemnitz.de) Received: from cora.hrz.tu-chemnitz.de (cora.hrz.tu-chemnitz.de [134.109.228.40]) by mx1.freebsd.org (Postfix) with ESMTP id B2B9C8FC1D for ; Fri, 30 Sep 2011 15:51:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:MIME-Version:In-Reply-To:References:Subject:To:From:Date:Message-ID; bh=diz4KWrmKTz6IKe/e4+jkW1M3JSuqS9ahn9LRfv6yUg=; b=aGSbTwgQGSUDJiAH5QoCm3tYtxi4+oMII7xVtO7B7O3j89+tAS+yh+DzqE+MxV+wIxLUThQV78In73ZfVo41jEeYBSWkyid71XG59BFf+AEvMlvwf2Tk00Em0q7B5RQy/v2+FKZ2ERtQ78lbWTN1UN9Gei1INYfheNe6Zgbh4sc=; Received: from pat.hrz.tu-chemnitz.de ([134.109.133.4] helo=mailbox.hrz.tu-chemnitz.de) by cora.hrz.tu-chemnitz.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R9f53-0004Y6-U8 for freebsd-arm@freebsd.org; Fri, 30 Sep 2011 17:32:53 +0200 Received: from boogie.hrz.tu-chemnitz.de ([134.109.133.10] helo=localhost) by mailbox.hrz.tu-chemnitz.de with esmtp (Exim 4.76) (envelope-from ) id 1R9f53-0004J9-Sn for freebsd-arm@freebsd.org; Fri, 30 Sep 2011 17:32:53 +0200 Received: from camo156-122.hrz.tu-chemnitz.de (camo156-122.hrz.tu-chemnitz.de [134.109.156.122]) by mail.tu-chemnitz.de (Horde Framework) with HTTP; Fri, 30 Sep 2011 17:32:53 +0200 Message-ID: <20110930173253.55166lqso9c8zvad@mail.tu-chemnitz.de> Date: Fri, 30 Sep 2011 17:32:53 +0200 From: Matthieu Kraus To: freebsd-arm@freebsd.org References: <20110930120022.4ABAA10656A7@hub.freebsd.org> In-Reply-To: <20110930120022.4ABAA10656A7@hub.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_2v0lx7490r7" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) X-Originating-IP: 134.109.156.122 X-Scan-Signature: 4954f28f68788e5fb36ec19f6faa6c6b X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: freebsd-arm Digest, Vol 286, Issue 5 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 15:51:19 -0000 This message is in MIME format. --=_2v0lx7490r7 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit > Message: 4 > Date: Fri, 30 Sep 2011 20:06:23 +1000 > From: Mattia Rossi > Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release > To: Naoyuki Tai > Cc: freebsd-arm@freebsd.org > Message-ID: <4E85949F.1000004@swin.edu.au> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 21/09/11 00:42, Naoyuki Tai wrote: >> On Tue, 20 Sep 2011 10:35:23 -0400, Aleksandr Rybalko wrote: >> >>> On Tue, 20 Sep 2011 10:12:07 -0400 >>> "Naoyuki Tai" wrote: >>> >>>>> On Tue, 20 Sep 2011 09:05:44 -0400, Aleksandr Rybalko >>>>> wrote: >>>>> >>>>> > On Tue, 20 Sep 2011 01:37:10 -0400 >>>>> > Naoyuki Tai wrote: >>>>> > >>>>> >>> Hello, >>>>> >>> >>>>> >>> I'm new to the FreeBSD/arm, bought a DreamPlug from GlobalScale, >>>>> >>> hoping to turn it into a FreeBSD file server. >>>>> >>> >>>>> >>> I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and >>>>> >>> created kernel.bin. After giving it a "go", it hangs. >>>>> >>> >>>>> >>> I must have built the kernel.bin wrong but I have no clue as to >>>>> >>> what I did wrong. >>>>> >>> Any clue/help is appreciated. >>>>> >>> >>>>> >>> Thanks! >>>>> >>> >>>>> >>> -- Tai >>>>> >>> >>>>> >>> U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) >>>>> >>> Marvell-DreamPlug >>>>> >>> >>>>> >>> SoC: Kirkwood 88F6281_A0 >>>>> >>> CPU running @ 1200Mhz L2 running @ 400Mhz >>>>> >>> SysClock = 400Mhz , TClock = 200Mhz >>>>> >>> DRAM: 512 MiB >>>>> >>> SF: Detected MX25L1606 with page size 256, total 1 MiB >>>>> >>> In: serial >>>>> >>> Out: serial >>>>> >>> Err: serial >>>>> >>> Net: egiga0, egiga1 >>>>> >>> 88E1116 Initialized on egiga0 >>>>> >>> 88E1116 Initialized on egiga1 >>>>> >>> Hit any key to stop autoboot: 0 >>>>> >>> Marvell>> setenv serverip 192.168.10.3 >>>>> >>> Marvell>> setenv ipaddr 192.168.10.55 >>>>> >>> Marvell>> tftpboot 6400000 arm/kernel.bin >>>>> >>> Using egiga0 device >>>>> >>> TFTP from server 192.168.10.3; our IP address is 192.168.10.55 >>>>> >>> Filename 'arm/kernel.bin'. >>>>> >>> Load address: 0x6400000 >>>>> >>> Loading: >>>>> >>> ################################################################# >>>>> >>> ################################################################# >>>>> >>> ################################################################# >>>>> >>> ############################ >>>>> >>> done >>>>> >>> Bytes transferred = 3272884 (31f0b4 hex) >>>>> >>> Marvell>> go 0x6400000 >>>>> >>> ## Starting application at 0x06400000 ... >>>>> >>> >>>>> > >>>>> > Hi, >>>>> > >>>>> > Did you try address 0x900000 instead of 6400000? >>>>> > >>>>> > WBW >>>>> >>>>> I tried 90000 and it works. >>>>> Thanks. >>>>> >>>>> I don't understand the memory space allocation. 640000 is used >>>>> for the linux, and I imagined that's the base address for kernel. >>>>> >>>>> Where can I learn the reason why it's 90000? >>> >>> 0x00000000 is physical memory location, so if MMU turned off, memory >>> operations not translated (virtual <--> physical). Physical memory >>> location may vary between different ARM CPUs, IIRC. >>> But for Kirkwood - this is true. >>> >>> And also important which base we set in kernel while compiling, >>> because code may start to work on every location, but first jump will >>> call some black hole :) >>> >>> >>>>> Thanks! >>>>> >>>>> -- Tai >> >> >> Got it. It is mentioned in >> >> /usr/src/sys/arm/mv/kirkwood/std.kirkwood >> >> makeoptions KERNPHYSADDR=0x00900000 >> >> Thanks. >> > > I don't know.. it just doesn't work for me. > > U-Boot 2011.06-02334-g8f495d9-dirty (Mar 28 2011 - 05:21:06) > Marvell-DreamPlug > > SoC: Kirkwood 88F6281_A0 > DRAM: 512 MiB > SF: Detected MX25L1606 with page size 256, total 1 MiB > In: serial > Out: serial > Err: serial > Net: egiga0, egiga1 > 88E1121 Initialized on egiga0 > 88E1121 Initialized on egiga1 > Hit any key to stop autoboot: 0 > Marvell>> set ipaddr 192.168.12.80 > Marvell>> set serverip 192.168.12.81 > Marvell>> tftpboot 0x900000 kernel.bin > No link on egiga0 > Using egiga1 device > TFTP from server 192.168.12.81; our IP address is 192.168.12.80 > Filename 'kernel.bin'. > Load address: 0x900000 > Loading: ################################################################# > ################################################################# > ################################################################# > ################################### > done > Bytes transferred = 3366392 (335df8 hex) > Marvell>> go 0x900000 > ## Starting application at 0x00900000 ... > > > And there it just hangs. > Kernel compiled with: > KERNCONF=DB-88F6XXX > TARGET=arm > TARGET_ARCH=arm > > Help? > > Mat I've been playing around a bit with FreeBSD on the Dreamplug during the last few days and had some issues as well, however here's what I got so far: first I didn't manage to get it to work with a dynamic fdt, so you'll need a static one (see attachment). second I found a somewhat customized and pretty stripped kernel config more useful, so I'll attach mine as well to give you some guidance. finally for booting on the plug: there are basically two options here: first is to boot via go as you already tried second (which I find nicer) is to use mkimage from the ports collection to create an image file uboot can read which should be issues like this: mkimage -A arm -O linux -T kernel -C none -a 900000 -e 900000 -n "FreeBSD" -d kernel.bin image_name or if you have a compressed kernel: mkimage -A arm -O linux -T kernel -C gzip -a 900000 -e 900000 -n "FreeBSD" -d kernel.bin.gz image_name if you go for the image, you can use the default boot options as guidance (just load the image at 640000 or whatever and boot it - it'll be moved to the prroper place and executed there) note that -O linux isn't required - e.g. -O netbsd works as well - however -O FreeBSD doesn't work as u-boot recognizes it, but doesn't have a bootcmd implemented for it. following that I got most things to work so far (except libertas chip in ap mode as that one is lacking a proper driver - especially an sdio one). RlyDontKnow --=_2v0lx7490r7 Content-Type: text/plain; charset=UTF-8; name="DREAMPLUG" Content-Disposition: attachment; filename="DREAMPLUG" Content-Transfer-Encoding: 7bit # # Custom kernel for Marvell DB-88F6xxx boards. # # $FreeBSD: src/sys/arm/conf/DB-88F6XXX,v 1.12 2011/08/07 20:16:46 rmacklem Exp $ # ident DREAMPLUG include "../mv/kirkwood/std.dreamplug" options SOC_MV_KIRKWOOD makeoptions MODULES_OVERRIDE="zfs opensolaris zlib" #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions WERROR="-Werror" # SCHEDULER options SCHED_4BSD # InterNETworking options INET options INET6 # Filesystems options FFS # Berkeley Fast Filesystem options CD9660 # ISO 9660 Filesystem options MSDOSFS options PSEUDOFS # NFS options NFSCL options NFSD options NFSLOCKD options NFS_ROOT # netboot #options BOOTP #options BOOTP_NFSROOT #options BOOTP_WIRED_TO=mge0 options ROOTDEVNAME=\"ufs:/dev/da1s3a\" # core options options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options MUTEX_NOINLINE options RWLOCK_NOINLINE options NO_FFS_SNAPSHOT options NO_SWAPPING # Debugging #options ALT_BREAK_TO_DEBUGGER #options DDB #options DEADLKRES #Enable the deadlock resolver #options DIAGNOSTIC #options INVARIANTS #Enable calls of extra sanity checking #options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS #options KDB #options WITNESS #Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed #options WITNESS_KDB # PCI device pci # Pseudo devices device loop device md device pty device random device firmware device crypto device bpf # Berkley Packet Filter - required for dhcp # Serial ports device uart # Networking device ether device mii # required by mge device mge # Marvell Gigabit Ethernet controller # USB options USB_DEBUG device usb device ehci device umass device usfs device cdce # USB audio (requires USB) device sound device snd_uaudio # I2C (TWSI) device iic device iicbus # SATA device mvs # CAM/SCSI device scbus device da device ch # WLAN device wlan # 802.11 support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device malo # Marvell Libertas Chipset # Flattened Device Tree options FDT options FDT_DTB_STATIC makeoptions FDT_DTS_FILE=dreamplug.dts # PF device pf device pflog device pfsync # ALTQ options ALTQ options ALTQ_CBQ # Class Bases Queuing (CBQ) options ALTQ_RED # Random Early Detection (RED) options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) options ALTQ_PRIQ # Priority Queuing (PRIQ) # IPSEC options IPSEC options IPSEC_NAT_T # GEOM options GEOM_PART_MBR options GEOM_PART_GPT options GEOM_PART_BSD options GEOM_LABEL options GEOM_ELI --=_2v0lx7490r7-- From owner-freebsd-arm@FreeBSD.ORG Fri Sep 30 18:25:07 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF5EE106564A for ; Fri, 30 Sep 2011 18:25:07 +0000 (UTC) (envelope-from ntai@smartfruit.com) Received: from homiemail-a89.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by mx1.freebsd.org (Postfix) with ESMTP id BA2328FC17 for ; Fri, 30 Sep 2011 18:25:07 +0000 (UTC) Received: from homiemail-a89.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTP id 86FBD318077; Fri, 30 Sep 2011 11:25:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=smartfruit.com; h=content-type:to :subject:references:date:mime-version:content-transfer-encoding :from:message-id:in-reply-to; q=dns; s=smartfruit.com; b=HksRrs0 o2KZpvmxJElweBUIrKIfQJKmipyTNPZpTADVnSvtq1Qv7ZTXE9U+6uvJjoWgV2uP uYMCgWOzX7/5Cv7eecljCmQSQ9vIZgeHdJuY91ioQvd5Hyy7u8eu/xVNYM7mf63y Y8LusZ49BHHOsSiX8Zp6HYf5B6+AlvDWg/ZE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=smartfruit.com; h= content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to; s= smartfruit.com; bh=TfocU8Bxxq1emLZImfiqZNQvIVs=; b=RvMIzf6DM9DEz Hvv99jL0l6viONZaEUg1nmnMxIaUQTO2KeIUAQUlcsQwZlygzvm063zg0UWtKVPk oO2SjyaoDcVuWzcS8TuU46Yk9Fw3njctZOp8A4Ft+lZwXE4Z4sZ8MLit9DdP33q9 2PesZdOP8NM1nZqXn65VK2pMX5UGdA= Received: from ntai.abinitio.com (gate.abinitio.com [65.170.40.132]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: smtpguy@smartfruit.com) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTPSA id 6051A31806C; Fri, 30 Sep 2011 11:23:43 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-arm@freebsd.org, "Matthieu Kraus" References: <20110930120022.4ABAA10656A7@hub.freebsd.org> <20110930173253.55166lqso9c8zvad@mail.tu-chemnitz.de> Date: Fri, 30 Sep 2011 14:23:38 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Naoyuki Tai" Message-ID: In-Reply-To: <20110930173253.55166lqso9c8zvad@mail.tu-chemnitz.de> User-Agent: Opera Mail/11.50 (Win32) Cc: Subject: Re: freebsd-arm Digest, Vol 286, Issue 5 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 18:25:08 -0000 On Fri, 30 Sep 2011 11:32:53 -0400, Matthieu Kraus wrote: > I've been playing around a bit with FreeBSD on the Dreamplug during > the last few days and had some issues as well, however here's what I > got so far: > > first I didn't manage to get it to work with a dynamic fdt, so you'll > need a static one (see attachment). > > second I found a somewhat customized and pretty stripped kernel config > more useful, so I'll attach mine as well to give you some guidance. Unfortunately, you are using include "../mv/kirkwood/std.dreamplug" so it's kinda hard to tell what the config ends up. Do you use ZFS? I'm new to ZFS (I finally installed one) and the docs recommend at least 1GB of physical memory which DreamPlug does not have. So, I'm staying away from ZFS. If you have anything to share about zfs on DreamPlug, it would be great. > finally for booting on the plug: > there are basically two options here: > first is to boot via go as you already tried > second (which I find nicer) is to use mkimage from the ports > collection to create an image file uboot can read which should be > issues like this: > mkimage -A arm -O linux -T kernel -C none -a 900000 -e 900000 -n > "FreeBSD" -d kernel.bin image_name > or if you have a compressed kernel: > mkimage -A arm -O linux -T kernel -C gzip -a 900000 -e 900000 -n > "FreeBSD" -d kernel.bin.gz image_name > > if you go for the image, you can use the default boot options as > guidance (just load the image at 640000 or whatever and boot it - > it'll be moved to the prroper place and executed there) > > note that -O linux isn't required - e.g. -O netbsd works as well - > however -O FreeBSD doesn't work as u-boot recognizes it, but doesn't > have a bootcmd implemented for it. Nice. Can I do this on intel machine? > following that I got most things to work so far (except libertas chip > in ap mode as that one is lacking a proper driver - especially an sdio > one). > > RlyDontKnow As far as I understand, this wifi hardware is same as the OLPC XO wifi, and the linux driver does exit but not FreeBSD. # I have no interest in wifi part of DreamPlug. -- Using Opera's revolutionary email client: http://www.opera.com/mail/ From owner-freebsd-arm@FreeBSD.ORG Fri Sep 30 20:48:48 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0009E1065694 for ; Fri, 30 Sep 2011 20:48:47 +0000 (UTC) (envelope-from ntai@smartfruit.com) Received: from homiemail-a35.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by mx1.freebsd.org (Postfix) with ESMTP id D1FCA8FC0C for ; Fri, 30 Sep 2011 20:48:47 +0000 (UTC) Received: from homiemail-a35.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a35.g.dreamhost.com (Postfix) with ESMTP id A285B54057 for ; Fri, 30 Sep 2011 13:48:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=smartfruit.com; h=content-type :subject:to:date:mime-version:content-transfer-encoding:from: message-id; q=dns; s=smartfruit.com; b=UtE+5yASmsFEO8qg/067Oqkw+ eqp1zEBdhbW9xgrXKQ8NPjIda8fknQW2YANQxUIYQ2Af3NKD7ftx7UFHsWsB9HQh vEh5YwxvL7niOz7zQ2kCzARmjW7MxI3rxtxzosoyvmBQeyw0wbXA5JhaSjV6+fmS qF1UdMGF0Z/pB927K8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=smartfruit.com; h= content-type:subject:to:date:mime-version :content-transfer-encoding:from:message-id; s=smartfruit.com; bh=SOSQSf5OPF2x4eR9V9YJybM1l9M=; b=Oz5LRIpRx5uYPkMT/GfttrK8dQ0K vWEHRuxLUxVsIbT2DolGuZN/xJqvcnceNMNsd2vMO2Bhe8vqoLZiYe5A4KNkXy3/ 8yh5w8NjM+cBohZPzLtOgrExlYbB1hEo+ATPppPtMSvn+iaYu6Jr82XcaYFpQ0m1 A+1P0mb9+FNg/oU= Received: from ntai.abinitio.com (gate.abinitio.com [65.170.40.132]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: smtpguy@smartfruit.com) by homiemail-a35.g.dreamhost.com (Postfix) with ESMTPSA id E5F6F5408B for ; Fri, 30 Sep 2011 13:48:31 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Date: Fri, 30 Sep 2011 16:48:28 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Naoyuki Tai" Message-ID: User-Agent: Opera Mail/11.50 (Win32) Subject: samba 3.5 on arm does not work X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 20:48:48 -0000 Hello, I managed to get the samba 3.5 built. When I run it, I get Sep 30 18:30:01 scarabee smbd[3394]: [2011/09/30 18:30:01.191102, 0] lib/fault.c:50(fault_report) Sep 30 18:30:01 scarabee smbd[3394]: =============================================================== Sep 30 18:30:01 scarabee smbd[3394]: [2011/09/30 18:30:01.194443, 0] lib/fault.c:51(fault_report) Sep 30 18:30:01 scarabee smbd[3394]: INTERNAL ERROR: Signal 11 in pid 3394 (3.5.11) Sep 30 18:30:01 scarabee smbd[3394]: Please read the Trouble-Shooting section of the Samba3-HOWTO Sep 30 18:30:01 scarabee smbd[3394]: [2011/09/30 18:30:01.195990, 0] lib/fault.c:53(fault_report) Sep 30 18:30:01 scarabee smbd[3394]: Sep 30 18:30:01 scarabee smbd[3394]: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf Sep 30 18:30:01 scarabee smbd[3394]: [2011/09/30 18:30:01.196719, 0] lib/fault.c:54(fault_report) Sep 30 18:30:01 scarabee smbd[3394]: =============================================================== Sep 30 18:30:01 scarabee smbd[3394]: [2011/09/30 18:30:01.197061, 0] lib/util.c:1468(smb_panic) Sep 30 18:30:01 scarabee smbd[3394]: PANIC (pid 3394): internal error Sep 30 18:30:01 scarabee smbd[3393]: [2011/09/30 18:30:01.291385, 0] printing/print_cups.c:456(cups_async_callback) Sep 30 18:30:01 scarabee kernel: pid 3394 (smbd), uid 0: exited on signal 11 (core dumped) Sep 30 18:30:01 scarabee smbd[3393]: failed to recv pcap blob Sep 30 18:30:01 scarabee smbd[3395]: [2011/09/30 18:30:01.824876, 0] lib/util_tdb.c:385(tdb_log) Sep 30 18:30:01 scarabee smbd[3395]: tdb(/var/db/samba/ntdrivers.tdb): tdb_oob len 762802044 beyond eof at 696 Sep 30 18:30:01 scarabee smbd[3395]: [2011/09/30 18:30:01.826070, 0] lib/util_tdb.c:385(tdb_log) Sep 30 18:30:01 scarabee smbd[3395]: tdb(/var/db/samba/ntdrivers.tdb): tdb_transaction_recover: failed to read recovery record Sep 30 18:30:01 scarabee smbd[3395]: [2011/09/30 18:30:01.827233, 0] printing/nt_printing.c:533(nt_printing_init) Sep 30 18:30:01 scarabee smbd[3395]: nt_printing_init: Failed to open nt drivers database /var/db/samba/ntdrivers.tdb (Unknown error: 0) Sep 30 18:30:27 scarabee nmbd[3390]: [2011/09/30 18:30:27.987469, 0] nmbd/nmbd.c:71(terminate) Is anyone successfully running samba on arm? If so, how? -- Tai From owner-freebsd-arm@FreeBSD.ORG Sat Oct 1 09:17:18 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC777106566B for ; Sat, 1 Oct 2011 09:17:18 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from outbound.icp-qv1-irony-out1.iinet.net.au (outbound.icp-qv1-irony-out1.iinet.net.au [203.59.1.106]) by mx1.freebsd.org (Postfix) with ESMTP id 351498FC12 for ; Sat, 1 Oct 2011 09:17:17 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtMBAAvThk58lKqT/2dsb2JhbAAMNaZAhEoBAQEEOEABEAsNARMWDwkDAgECAUUGCgMBBwEBtg2JAYJLhFkEk2GFRIwM X-IronPort-AV: E=Sophos;i="4.68,472,1312128000"; d="scan'208";a="810247528" Received: from unknown (HELO [192.168.15.65]) ([124.148.170.147]) by outbound.icp-qv1-irony-out1.iinet.net.au with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 01 Oct 2011 16:49:23 +0800 Message-ID: <4E86D41D.1070908@swin.edu.au> Date: Sat, 01 Oct 2011 18:49:33 +1000 From: Mattia Rossi Organization: Swinburne University of Technology User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Naoyuki Tai References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> <20110920173523.4043c0be.ray@dlink.ua> <4E85949F.1000004@swin.edu.au> <4E85D39F.1010606@smartfruit.com> In-Reply-To: <4E85D39F.1010606@smartfruit.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mrossi@swin.edu.au List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 09:17:18 -0000 >> >> I don't know.. it just doesn't work for me. >> >> U-Boot 2011.06-02334-g8f495d9-dirty (Mar 28 2011 - 05:21:06) >> Marvell-DreamPlug >> >> SoC: Kirkwood 88F6281_A0 >> DRAM: 512 MiB >> SF: Detected MX25L1606 with page size 256, total 1 MiB >> In: serial >> Out: serial >> Err: serial >> Net: egiga0, egiga1 >> 88E1121 Initialized on egiga0 >> 88E1121 Initialized on egiga1 >> Hit any key to stop autoboot: 0 >> Marvell>> set ipaddr 192.168.12.80 >> Marvell>> set serverip 192.168.12.81 >> Marvell>> tftpboot 0x900000 kernel.bin >> No link on egiga0 >> Using egiga1 device >> TFTP from server 192.168.12.81; our IP address is 192.168.12.80 >> Filename 'kernel.bin'. >> Load address: 0x900000 >> Loading: >> ################################################################# >> ################################################################# >> ################################################################# >> ################################### >> done >> Bytes transferred = 3366392 (335df8 hex) >> Marvell>> go 0x900000 >> ## Starting application at 0x00900000 ... >> >> >> And there it just hangs. >> Kernel compiled with: >> KERNCONF=DB-88F6XXX >> TARGET=arm >> TARGET_ARCH=arm >> >> Help? >> >> Mat >> > > I have luck with SheevaPlug based kernel config. > Here is the kernel config file I'm using. It's based on SheevaPlug. > You probably need to adjust the root FS, network protocol. > > Good luck. > Thanks Naoyuki, I've tried the KERNCONF you sent me, but still no luck. I had to add the following line to get it to compile though: options FDT Hope that didn't kill it. The kernel still hangs after i tell uboot to go to 0x900000 This is weird. Mat From owner-freebsd-arm@FreeBSD.ORG Sat Oct 1 09:50:10 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9EA4106567B for ; Sat, 1 Oct 2011 09:50:10 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from outbound.icp-osb-irony-out9.iinet.net.au (outbound.icp-osb-irony-out9.iinet.net.au [203.59.1.110]) by mx1.freebsd.org (Postfix) with ESMTP id 0984C8FC21 for ; Sat, 1 Oct 2011 09:50:09 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAHHbhk58lKqT/2dsb2JhbAAMNasKAQEBAwE4QAEQCw0BExYPCQMCAQIBRQYNAQcBAYd3rgmJAYckBJNhhUSMDA X-IronPort-AV: E=Sophos;i="4.68,472,1312128000"; d="scan'208";a="38402918" Received: from unknown (HELO [192.168.15.65]) ([124.148.170.147]) by outbound.icp-osb-irony-out9.iinet.net.au with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 01 Oct 2011 17:22:11 +0800 Message-ID: <4E86DBCD.6020909@swin.edu.au> Date: Sat, 01 Oct 2011 19:22:21 +1000 From: Mattia Rossi Organization: Swinburne University of Technology User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Naoyuki Tai References: <20110930120022.4ABAA10656A7@hub.freebsd.org> <20110930173253.55166lqso9c8zvad@mail.tu-chemnitz.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Matthieu Kraus , freebsd-arm@freebsd.org Subject: Re: freebsd-arm Digest, Vol 286, Issue 5 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mrossi@swin.edu.au List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 09:50:10 -0000 Thanks Matthieu, [..] > > Unfortunately, you are using > include "../mv/kirkwood/std.dreamplug" > so it's kinda hard to tell what the config ends up. > Also you use a dreamplug.dts file for the FDT which I don't have. Could you please post those two files as well? [..] > >> following that I got most things to work so far (except libertas chip >> in ap mode as that one is lacking a proper driver - especially an sdio >> one). >> That's unfortunate, I wanted to use that feature.. I don't think I'll get around to write that bit. > > As far as I understand, this wifi hardware is same as the OLPC XO > wifi, and the linux driver does exit but not FreeBSD. > # I have no interest in wifi part of DreamPlug. > Would make it easier to write the driver, but it still neds time which I don't have :( Mat From owner-freebsd-arm@FreeBSD.ORG Sat Oct 1 10:24:59 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B30AC106567C for ; Sat, 1 Oct 2011 10:24:59 +0000 (UTC) (envelope-from matthieu.kraus@s2008.tu-chemnitz.de) Received: from cora.hrz.tu-chemnitz.de (cora.hrz.tu-chemnitz.de [134.109.228.40]) by mx1.freebsd.org (Postfix) with ESMTP id 5DCAC8FC15 for ; Sat, 1 Oct 2011 10:24:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Resent-Message-ID:Resent-To:Resent-From:Resent-Date:Content-Transfer-Encoding:Content-Type:MIME-Version:In-Reply-To:References:Subject:To:From:Date:Message-ID; bh=S5rG5hmOGTGNOQSSaNI81D0RBs4uj8rPNpJgTaj1o5I=; b=PN/pMlU8b9xsUcMUlRbHzmZ2M0+6ONGKurTXE93w6cG8W7o0cqRPJm7gF+ihIREAHPYFUWNYT/kp5pNkkhrYZPsxSrVewrCXJNfVlv6B9X//Tx+AqaBQwT+pEAGpw7XfHC558l6+ZueKyX4E9XZhKZgOg1NeVk/aWQfAznouLX0=; Received: from pat.hrz.tu-chemnitz.de ([134.109.133.4] helo=mailbox.hrz.tu-chemnitz.de) by cora.hrz.tu-chemnitz.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R9wkb-00077C-WA for freebsd-arm@freebsd.org; Sat, 01 Oct 2011 12:24:58 +0200 Received: from boogie.hrz.tu-chemnitz.de ([134.109.133.10] helo=localhost) by mailbox.hrz.tu-chemnitz.de with esmtp (Exim 4.76) (envelope-from ) id 1R9wkb-0007H6-Uh for freebsd-arm@freebsd.org; Sat, 01 Oct 2011 12:24:57 +0200 Received: from rlydontknow.csn.tu-chemnitz.de (rlydontknow.csn.tu-chemnitz.de [134.109.92.98]) by mail.tu-chemnitz.de (Horde Framework) with HTTP; Sat, 01 Oct 2011 12:22:37 +0200 Message-ID: <20111001122237.85311q2igb64ohd9@mail.tu-chemnitz.de> Date: Sat, 01 Oct 2011 12:22:37 +0200 From: Matthieu Kraus To: Naoyuki Tai References: <20110930120022.4ABAA10656A7@hub.freebsd.org> <20110930173253.55166lqso9c8zvad@mail.tu-chemnitz.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit Resent-Date: Sat, 01 Oct 2011 12:24:57 +0200 Resent-From: matthieu.kraus@s2008.tu-chemnitz.de Resent-To: freebsd-arm@freebsd.org Resent-Message-ID: <20111001122457.10406riw1uwpbrsp@mail.tu-chemnitz.de> User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) X-Originating-IP: 134.109.92.98 X-Scan-Signature: b87095131af23dd7cc8c04746d52a551 Cc: Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 10:24:59 -0000 Quoting Naoyuki Tai : > On Fri, 30 Sep 2011 11:32:53 -0400, Matthieu Kraus > wrote: > >> I've been playing around a bit with FreeBSD on the Dreamplug during >> the last few days and had some issues as well, however here's what I >> got so far: >> >> first I didn't manage to get it to work with a dynamic fdt, so you'll >> need a static one (see attachment). >> >> second I found a somewhat customized and pretty stripped kernel config >> more useful, so I'll attach mine as well to give you some guidance. > > Unfortunately, you are using > include "../mv/kirkwood/std.dreamplug" > so it's kinda hard to tell what the config ends up. actually that's a little left-over - just use std.db88f6xxx, my std.dreamplug is a plain copy I created while starting to customize my setup > > Do you use ZFS? > I'm new to ZFS (I finally installed one) and the docs recommend > at least 1GB of physical memory which DreamPlug does not have. > So, I'm staying away from ZFS. If you have anything to share > about zfs on DreamPlug, it would be great. > yes, I'm using zfs with some tweaks (disabling zil, etc. (see zfs evil tuning guide)), however I didn't test it's functionality during heavy load, yet. also zfs requires a little patching as stated in the zfs thread on this ml (you need to add a file to files.arm and tweak the cpuvar.h of opensolaris (unlike the proposed hack I just undef'd cpu_id in the solaris cpuvar.h prior to defining it) >> finally for booting on the plug: >> there are basically two options here: >> first is to boot via go as you already tried >> second (which I find nicer) is to use mkimage from the ports >> collection to create an image file uboot can read which should be >> issues like this: >> mkimage -A arm -O linux -T kernel -C none -a 900000 -e 900000 -n >> "FreeBSD" -d kernel.bin image_name >> or if you have a compressed kernel: >> mkimage -A arm -O linux -T kernel -C gzip -a 900000 -e 900000 -n >> "FreeBSD" -d kernel.bin.gz image_name >> >> if you go for the image, you can use the default boot options as >> guidance (just load the image at 640000 or whatever and boot it - >> it'll be moved to the prroper place and executed there) >> >> note that -O linux isn't required - e.g. -O netbsd works as well - >> however -O FreeBSD doesn't work as u-boot recognizes it, but doesn't >> have a bootcmd implemented for it. > > Nice. > Can I do this on intel machine? > Yes, you can do this on any machine. >> following that I got most things to work so far (except libertas chip >> in ap mode as that one is lacking a proper driver - especially an sdio >> one). >> >> RlyDontKnow > > As far as I understand, this wifi hardware is same as the OLPC XO > wifi, and the linux driver does exit but not FreeBSD. > # I have no interest in wifi part of DreamPlug. > yes, there's a linux driver available - actually two: libertas_sdio (mainline linux) for managed mode and uap8xxx (http://plugcomputer.org/plugwiki/images/d/d5/Uap_module.tar.gz) for infrastructure mode finally something I forgot to state yesterday: I'm using 9.0-CURRENT rather than 8.2-RELEASE which has a few fixes for some problems iirc (e.g. mount rootfs waits till usb is all done) From owner-freebsd-arm@FreeBSD.ORG Sat Oct 1 10:27:49 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 513B7106566B for ; Sat, 1 Oct 2011 10:27:49 +0000 (UTC) (envelope-from matthieu.kraus@s2008.tu-chemnitz.de) Received: from nick.hrz.tu-chemnitz.de (nick.hrz.tu-chemnitz.de [134.109.228.11]) by mx1.freebsd.org (Postfix) with ESMTP id F09488FC0C for ; Sat, 1 Oct 2011 10:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:MIME-Version:In-Reply-To:References:Subject:Cc:To:From:Date:Message-ID; bh=tTLNOB3xyfb9u/C+8348NsWZ/1Fcx1Ci+ISjzT0FjSw=; b=yVjdYFQ7FchwDK63kNhLbqu/8ZPGLftnqv+ni0WtVsZB2/MR+pC4OqavrS9u0ZAvgqiy5SWbKb0Zi/JlNqr+QwydlS85sVI7d+s5f1k2Lm/9/8ZruIRu27y3YVOU3hLHYpRHCLRWkKcA+eWdAfL9qT+c6ldI3BWj5ywDZi15xnc=; Received: from postman.hrz.tu-chemnitz.de ([134.109.133.5] helo=mailbox.hrz.tu-chemnitz.de) by nick.hrz.tu-chemnitz.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R9wnL-00070I-KX; Sat, 01 Oct 2011 12:27:47 +0200 Received: from boogie.hrz.tu-chemnitz.de ([134.109.133.10] helo=localhost) by mailbox.hrz.tu-chemnitz.de with esmtp (Exim 4.76) (envelope-from ) id 1R9wnL-0005tH-Hc; Sat, 01 Oct 2011 12:27:47 +0200 Received: from rlydontknow.csn.tu-chemnitz.de (rlydontknow.csn.tu-chemnitz.de [134.109.92.98]) by mail.tu-chemnitz.de (Horde Framework) with HTTP; Sat, 01 Oct 2011 12:27:47 +0200 Message-ID: <20111001122747.20873v82axd8cq3n@mail.tu-chemnitz.de> Date: Sat, 01 Oct 2011 12:27:47 +0200 From: Matthieu Kraus To: freebsd-arm@freebsd.org References: <20110930120022.4ABAA10656A7@hub.freebsd.org> <20110930173253.55166lqso9c8zvad@mail.tu-chemnitz.de> <4E86DBCD.6020909@swin.edu.au> In-Reply-To: <4E86DBCD.6020909@swin.edu.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_ic0t4gb1gr" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) X-Originating-IP: 134.109.92.98 X-Scan-Signature: d2f82c504e77ce4c1b63dade70401bab X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: freebsd-arm Digest, Vol 286, Issue 5 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 10:27:49 -0000 This message is in MIME format. --=_ic0t4gb1gr Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit Quoting Mattia Rossi : > Thanks Matthieu, > > [..] >> >> Unfortunately, you are using >> include "../mv/kirkwood/std.dreamplug" >> so it's kinda hard to tell what the config ends up. >> > > Also you use a dreamplug.dts file for the FDT which I don't have. > Could you please post those two files as well? > sorry, seems it refused that attachement *tries again* --=_ic0t4gb1gr-- From owner-freebsd-arm@FreeBSD.ORG Sat Oct 1 10:32:23 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 032CA1065680 for ; Sat, 1 Oct 2011 10:32:23 +0000 (UTC) (envelope-from matthieu.kraus@s2008.tu-chemnitz.de) Received: from nick.hrz.tu-chemnitz.de (nick.hrz.tu-chemnitz.de [134.109.228.11]) by mx1.freebsd.org (Postfix) with ESMTP id 9C9628FC1E for ; Sat, 1 Oct 2011 10:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:MIME-Version:In-Reply-To:References:Subject:To:From:Date:Message-ID; bh=erv65wiUCDEqGmQ0r+pJ1KwEbGWIEeoglESjqvk93i0=; b=RC7IDhbPJ3mt2B6HMWvNfTP7g8m0Mt2pTQ2gKwnu3U+tV0lIRwqCMwzYAuhFvoAFTTliX20InuyAkEtE3RB/oVt4Q+Z6juibkB9zZ3xAePjSX0E9gBL7VLbH+dAQZZz4XyfVBW0Jnc2wPMpAp6eh47uto0OPAq+jK3rPs6iHdr0=; Received: from pat.hrz.tu-chemnitz.de ([134.109.133.4] helo=mailbox.hrz.tu-chemnitz.de) by nick.hrz.tu-chemnitz.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R9wrl-0007ni-PN for freebsd-arm@freebsd.org; Sat, 01 Oct 2011 12:32:21 +0200 Received: from boogie.hrz.tu-chemnitz.de ([134.109.133.10] helo=localhost) by mailbox.hrz.tu-chemnitz.de with esmtp (Exim 4.76) (envelope-from ) id 1R9wrl-0007fX-Nz for freebsd-arm@freebsd.org; Sat, 01 Oct 2011 12:32:21 +0200 Received: from rlydontknow.csn.tu-chemnitz.de (rlydontknow.csn.tu-chemnitz.de [134.109.92.98]) by mail.tu-chemnitz.de (Horde Framework) with HTTP; Sat, 01 Oct 2011 12:32:21 +0200 Message-ID: <20111001123221.15125hjnsw13szzp@mail.tu-chemnitz.de> Date: Sat, 01 Oct 2011 12:32:21 +0200 From: Matthieu Kraus To: freebsd-arm@freebsd.org References: <20110930120022.4ABAA10656A7@hub.freebsd.org> <20110930173253.55166lqso9c8zvad@mail.tu-chemnitz.de> <4E86DBCD.6020909@swin.edu.au> In-Reply-To: <4E86DBCD.6020909@swin.edu.au> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) X-Originating-IP: 134.109.92.98 X-Scan-Signature: 80f55624f3e880e27d5bcc99603ec239 Subject: dreamplug.dts X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 10:32:23 -0000 /* * Copyright (c) 2010 The FreeBSD Foundation * All rights reserved. * * This software was developed by Semihalf under sponsorship from * the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * Marvell DreamPlug Device Tree Source. * * $FreeBSD: src/sys/boot/fdt/dts/dreamplug.dts,v 1.1 2010/05/26 09:50:09 raj Exp $ */ /dts-v1/; / { model = "mrvl,DreamPlug"; compatible = "DreamPlug"; #address-cells = <1>; #size-cells = <1>; aliases { ethernet0 = &enet0; ethernet1 = &enet1; mpp = &MPP; serial0 = &serial0; serial1 = &serial1; soc = &SOC; sram = &SRAM; }; cpus { #address-cells = <1>; #size-cells = <0>; cpu@0 { device_type = "cpu"; compatible = "ARM,88FR131"; reg = <0x0>; d-cache-line-size = <32>; // 32 bytes i-cache-line-size = <32>; // 32 bytes d-cache-size = <0x4000>; // L1, 16K i-cache-size = <0x4000>; // L1, 16K timebase-frequency = <0>; bus-frequency = <0>; clock-frequency = <0>; }; }; memory { device_type = "memory"; reg = <0x0 0x20000000>; // 512M at 0x0 }; localbus@f1000000 { #address-cells = <2>; #size-cells = <1>; compatible = "mrvl,lbc"; /* This reflects CPU decode windows setup. */ ranges = <0x0 0x0f 0xf9300000 0x00100000 0x1 0x1e 0xfa000000 0x00100000 0x2 0x1d 0xfa100000 0x02000000 0x3 0x1b 0xfc100000 0x00000400>; nor@0,0 { #address-cells = <1>; #size-cells = <1>; compatible = "cfi-flash"; reg = <0x0 0x0 0x00100000>; bank-width = <2>; device-width = <1>; }; led@1,0 { #address-cells = <1>; #size-cells = <1>; compatible = "led"; reg = <0x1 0x0 0x00100000>; }; nor@2,0 { #address-cells = <1>; #size-cells = <1>; compatible = "cfi-flash"; reg = <0x2 0x0 0x02000000>; bank-width = <2>; device-width = <1>; }; nand@3,0 { #address-cells = <1>; #size-cells = <1>; reg = <0x3 0x0 0x00100000>; bank-width = <2>; device-width = <1>; }; }; SOC: soc88f6281@f1000000 { #address-cells = <1>; #size-cells = <1>; compatible = "simple-bus"; ranges = <0x0 0xf1000000 0x00100000>; bus-frequency = <0>; PIC: pic@20200 { interrupt-controller; #address-cells = <0>; #interrupt-cells = <1>; reg = <0x20200 0x3c>; compatible = "mrvl,pic"; }; timer@20300 { compatible = "mrvl,timer"; reg = <0x20300 0x30>; interrupts = <1>; interrupt-parent = <&PIC>; mrvl,has-wdt; }; MPP: mpp@10000 { #pin-cells = <2>; compatible = "mrvl,mpp"; reg = <0x10000 0x34>; pin-count = <50>; pin-map = < 0 1 /* MPP[0]: NF_IO[2] */ 1 1 /* MPP[1]: NF_IO[3] */ 2 1 /* MPP[2]: NF_IO[4] */ 3 1 /* MPP[3]: NF_IO[5] */ 4 1 /* MPP[4]: NF_IO[6] */ 5 1 /* MPP[5]: NF_IO[7] */ 6 1 /* MPP[6]: SYSRST_OUTn */ 8 2 /* MPP[8]: UA0_RTS */ 9 2 /* MPP[9]: UA0_CTS */ 10 3 /* MPP[10]: UA0_TXD */ 11 3 /* MPP[11]: UA0_RXD */ 12 1 /* MPP[12]: SD_CLK */ 13 1 /* MPP[13]: SD_CMD */ 14 1 /* MPP[14]: SD_D[0] */ 15 1 /* MPP[15]: SD_D[1] */ 16 1 /* MPP[16]: SD_D[2] */ 17 1 /* MPP[17]: SD_D[3] */ 18 1 /* MPP[18]: NF_IO[0] */ 19 1 /* MPP[19]: NF_IO[1] */ 29 1 >; /* MPP[29]: TSMP[9] */ }; GPIO: gpio@10100 { #gpio-cells = <3>; compatible = "mrvl,gpio"; reg = <0x10100 0x20>; gpio-controller; interrupts = <35 36 37 38 39 40 41>; interrupt-parent = <&PIC>; }; rtc@10300 { compatible = "mrvl,rtc"; reg = <0x10300 0x08>; }; twsi@11000 { #address-cells = <1>; #size-cells = <0>; compatible = "mrvl,twsi"; reg = <0x11000 0x20>; interrupts = <43>; interrupt-parent = <&PIC>; }; mdio0: mdio@72000 { device_type = "mdio"; compatible = "mrvl,mdio"; reg = <72000 20>; #address-cells = <1>; #size-cells = <0>; phy0: ethernet-phy@0 { reg = <0>; device_type = "ethernet-phy"; }; }; mdio1: mdio@74000 { /* 76000? */ device_type = "mdio"; compatible = "mrvl,mdio"; reg = <74000 20>; #address-cells = <1>; #size-cells = <0>; phy1: ethernet-phy@0 { reg = <1>; device_type = "ethernet-phy"; }; }; enet0: ethernet@72000 { #address-cells = <1>; #size-cells = <1>; model = "V2"; compatible = "mrvl,ge"; reg = <0x72000 0x2000>; ranges = <0x0 0x72000 0x2000>; local-mac-address = [ 00 00 00 00 00 00 ]; interrupts = <12 13 14 11 46>; interrupt-parent = <&PIC>; phy-handle = <&phy0>; }; enet1: ethernet@74000 { /* 76000? */ #address-cells = <1>; #size-cells = <1>; model = "V2"; compatible = "mrvl,ge"; reg = <0x74000 0x2000>; ranges = <0x0 0x74000 0x2000>; local-mac-address = [ 00 00 00 00 00 00 ]; interrupts = <16 17 18 15 47>; interrupt-parent = <&PIC>; phy-handle = <&phy1>; }; serial0: serial@12000 { compatible = "ns16550"; reg = <0x12000 0x20>; reg-shift = <2>; clock-frequency = <0>; interrupts = <33>; interrupt-parent = <&PIC>; }; serial1: serial@12100 { compatible = "ns16550"; reg = <0x12100 0x20>; reg-shift = <2>; clock-frequency = <0>; interrupts = <34>; interrupt-parent = <&PIC>; }; crypto@30000 { compatible = "mrvl,cesa"; reg = <0x30000 0x10000>; interrupts = <22>; interrupt-parent = <&PIC>; }; usb@50000 { compatible = "mrvl,usb-ehci", "usb-ehci"; reg = <0x50000 0x1000>; interrupts = <48 19>; interrupt-parent = <&PIC>; }; xor@60000 { compatible = "mrvl,xor"; reg = <0x60000 0x1000>; interrupts = <5 6 7 8>; interrupt-parent = <&PIC>; }; sata@80000 { compatible = "mrvl,sata"; reg = <0x80000 0x6000>; interrupts = <21>; interrupt-parent = <&PIC>; gpios = <&GPIO 29 1 0x00030000 /* GPIO[29]: IN_POL_LOW, IRQ (edge) */ &GPIO 34 2 0x00000000>; /* GPIO[34]: OUT */ }; sdio@90000 { compatible = "mrvl,sdio"; reg = <0x90000 0x134>; interrupts = <28>; interrupt-parent = <&PIC>; gpios = <&GPIO 29 1 0x00030000 /* GPIO[29]: IN_POL_LOW, IRQ (edge) */ &GPIO 34 2 0x00000000>; /* GPIO[34]: OUT */ }; }; SRAM: sram@fd000000 { compatible = "mrvl,cesa-sram"; reg = <0xfd000000 0x00100000>; }; chosen { stdin = "serial0"; stdout = "serial0"; }; }; From owner-freebsd-arm@FreeBSD.ORG Sat Oct 1 22:33:18 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8DFC1065687 for ; Sat, 1 Oct 2011 22:33:17 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id A283B8FC0A for ; Sat, 1 Oct 2011 22:33:17 +0000 (UTC) Received: by ywp17 with SMTP id 17so3139118ywp.13 for ; Sat, 01 Oct 2011 15:33:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=OgJTu3HE+WVTZ7G/Uw8RluqVofuhDVkgzgWvVV1RLMQ=; b=iXniXuck7fU2Hlm/RsNQDWy7sd19kCusZ3JCFiczEuVxycOAkXRMmfq5PMyTv1BsxE EIvT4h/egvFrL2EwDRX2V2fqseev6FLfj+ZAjBXZo3nUekAq51jINbk52FZUuH8e/3TQ iE0XYRl7McSM/06BWNi+R0urQd57cXjbXqDts= Received: by 10.236.9.101 with SMTP id 65mr81411926yhs.11.1317506938422; Sat, 01 Oct 2011 15:08:58 -0700 (PDT) Received: from [192.168.0.53] ([187.120.139.136]) by mx.google.com with ESMTPS id y79sm10919212yhg.23.2011.10.01.15.08.56 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 01 Oct 2011 15:08:57 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Luiz Otavio O Souza In-Reply-To: <4E86D41D.1070908@swin.edu.au> Date: Sat, 1 Oct 2011 19:08:53 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> <20110920173523.4043c0be.ray@dlink.ua> <4E85949F.1000004@swin.edu.au> <4E85D39F.1010606@smartfruit.com> <4E86D41D.1070908@swin.edu.au> To: mrossi@swin.edu.au X-Mailer: Apple Mail (2.1084) Cc: freebsd-arm@freebsd.org Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 22:33:18 -0000 On Oct 1, 2011, at 5:49 AM, Mattia Rossi wrote: >>>=20 >>> I don't know.. it just doesn't work for me. >>>=20 >>> U-Boot 2011.06-02334-g8f495d9-dirty (Mar 28 2011 - 05:21:06) >>> Marvell-DreamPlug >>>=20 >>> SoC: Kirkwood 88F6281_A0 >>> DRAM: 512 MiB >>> SF: Detected MX25L1606 with page size 256, total 1 MiB >>> In: serial >>> Out: serial >>> Err: serial >>> Net: egiga0, egiga1 >>> 88E1121 Initialized on egiga0 >>> 88E1121 Initialized on egiga1 >>> Hit any key to stop autoboot: 0 >>> Marvell>> set ipaddr 192.168.12.80 >>> Marvell>> set serverip 192.168.12.81 >>> Marvell>> tftpboot 0x900000 kernel.bin >>> No link on egiga0 >>> Using egiga1 device >>> TFTP from server 192.168.12.81; our IP address is 192.168.12.80 >>> Filename 'kernel.bin'. >>> Load address: 0x900000 >>> Loading: >>> ################################################################# >>> ################################################################# >>> ################################################################# >>> ################################### >>> done >>> Bytes transferred =3D 3366392 (335df8 hex) >>> Marvell>> go 0x900000 >>> ## Starting application at 0x00900000 ... >>>=20 >>>=20 >>> And there it just hangs. >>> Kernel compiled with: >>> KERNCONF=3DDB-88F6XXX >>> TARGET=3Darm >>> TARGET_ARCH=3Darm >>>=20 >>> Help? >>>=20 >>> Mat >>>=20 >>=20 >> I have luck with SheevaPlug based kernel config. >> Here is the kernel config file I'm using. It's based on SheevaPlug. >> You probably need to adjust the root FS, network protocol. >>=20 >> Good luck. >>=20 >=20 > Thanks Naoyuki, >=20 > I've tried the KERNCONF you sent me, but still no luck. >=20 > I had to add the following line to get it to compile though: >=20 > options FDT >=20 > Hope that didn't kill it. >=20 > The kernel still hangs after i tell uboot to go to 0x900000 >=20 > This is weird. >=20 > Mat Hi Mat, This is not so weird, you probably need to find the correct entry point = for the kernel you've built. You can find it with the following commands (please adapt it to your = environment): # cd /your/current/build/sources/ # make ${MAKEFLAGS} kernel-toolchain # make ${MAKEFLAGS} buildenv Entering world for mipseb:mips # nm /data/tftpboot/ar7240/boot/kernel/kernel | grep " _start" 80050100 T _start So in this case i need to load the load the kernel at 0x80050000 and = then start it with 'go 0x80050100'. (this kernel was built with = KERNLOADADDR=3D0x80050000: http://pastebin.com/A1d06Eqe). Regards, Luiz= From owner-freebsd-arm@FreeBSD.ORG Sat Oct 1 22:54:27 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2EA41065672 for ; Sat, 1 Oct 2011 22:54:27 +0000 (UTC) (envelope-from ntai@smartfruit.com) Received: from homiemail-a67.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by mx1.freebsd.org (Postfix) with ESMTP id 89D448FC18 for ; Sat, 1 Oct 2011 22:54:27 +0000 (UTC) Received: from homiemail-a67.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a67.g.dreamhost.com (Postfix) with ESMTP id C704C88069; Sat, 1 Oct 2011 15:54:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=smartfruit.com; h=references :in-reply-to:mime-version:content-transfer-encoding:content-type :message-id:cc:from:subject:date:to; q=dns; s=smartfruit.com; b= Wg0T25yyZ5xHO5GP6x6HOj0lUOefiU1bZb6JxZjDfntCRA9/6ifpdNVbErGAOqKi 6vk3/Mp2Mw3IatOZ3oSltLOK8+PNJ82dGxSOxej/tWsRbDNYwih2kcdTA6QWgGBo AYBipK1yRlG+rWZZV3h4rMsvWxkHi3FMupvrbOZ7Si8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=smartfruit.com; h= references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:from:subject:date:to; s= smartfruit.com; bh=Uwwr3jmsp3muXxM6CDAG8DT6ZnE=; b=MsSV96/zv6SoO V3m5oc8V4CZhYuBYmu/fzOvzS193ZJFVbbPsF8T6lvTN+BOhT9CqI9B9wraVPWW2 /hUb31KL9vnw3ybyajIDymOpsZUCRLusb8jjidAxJ32se4uDRcrsf4kH6WIj3z8n IL2QzN3g+61vUZCrhPJdeUqKtWR9w4= Received: from [10.54.104.168] (mobile-166-137-137-125.mycingular.net [166.137.137.125]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: smtpguy@smartfruit.com) by homiemail-a67.g.dreamhost.com (Postfix) with ESMTPSA id 5D44688065; Sat, 1 Oct 2011 15:54:26 -0700 (PDT) References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> <20110920173523.4043c0be.ray@dlink.ua> <4E85949F.1000004@swin.edu.au> <4E85D39F.1010606@smartfruit.com> <4E86D41D.1070908@swin.edu.au> In-Reply-To: <4E86D41D.1070908@swin.edu.au> Mime-Version: 1.0 (iPhone Mail 8L1) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <1A409C45-6BA0-4BFC-9296-92EA1DB7649E@smartfruit.com> X-Mailer: iPhone Mail (8L1) From: Naoyuki Tai Date: Sat, 1 Oct 2011 18:53:33 -0400 To: "mrossi@swin.edu.au" Cc: "freebsd-arm@freebsd.org" Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 22:54:27 -0000 I just occurred to me that I had a weird build problem cross compiling. It t= urned out I had CPUTYPE set to an Intel CPU in /etc/make.conf.=20 Make sure you don't have anything like it. Build does not complain when ARCH is arm and CPU set to intel. =20 -- Naoyuki "Tai" Tai, ntai a t smartfruit d o t com On Oct 1, 2011, at 4:49, Mattia Rossi wrote: >>>=20 >>> I don't know.. it just doesn't work for me. >>>=20 >>> U-Boot 2011.06-02334-g8f495d9-dirty (Mar 28 2011 - 05:21:06) >>> Marvell-DreamPlug >>>=20 >>> SoC: Kirkwood 88F6281_A0 >>> DRAM: 512 MiB >>> SF: Detected MX25L1606 with page size 256, total 1 MiB >>> In: serial >>> Out: serial >>> Err: serial >>> Net: egiga0, egiga1 >>> 88E1121 Initialized on egiga0 >>> 88E1121 Initialized on egiga1 >>> Hit any key to stop autoboot: 0 >>> Marvell>> set ipaddr 192.168.12.80 >>> Marvell>> set serverip 192.168.12.81 >>> Marvell>> tftpboot 0x900000 kernel.bin >>> No link on egiga0 >>> Using egiga1 device >>> TFTP from server 192.168.12.81; our IP address is 192.168.12.80 >>> Filename 'kernel.bin'. >>> Load address: 0x900000 >>> Loading: >>> ################################################################# >>> ################################################################# >>> ################################################################# >>> ################################### >>> done >>> Bytes transferred =3D 3366392 (335df8 hex) >>> Marvell>> go 0x900000 >>> ## Starting application at 0x00900000 ... >>>=20 >>>=20 >>> And there it just hangs. >>> Kernel compiled with: >>> KERNCONF=3DDB-88F6XXX >>> TARGET=3Darm >>> TARGET_ARCH=3Darm >>>=20 >>> Help? >>>=20 >>> Mat >>>=20 >>=20 >> I have luck with SheevaPlug based kernel config. >> Here is the kernel config file I'm using. It's based on SheevaPlug. >> You probably need to adjust the root FS, network protocol. >>=20 >> Good luck. >>=20 >=20 > Thanks Naoyuki, >=20 > I've tried the KERNCONF you sent me, but still no luck. >=20 > I had to add the following line to get it to compile though: >=20 > options FDT >=20 > Hope that didn't kill it. >=20 > The kernel still hangs after i tell uboot to go to 0x900000 >=20 > This is weird. >=20 > Mat >=20