From owner-freebsd-arm@FreeBSD.ORG Thu Jun 27 19:04:45 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 25699990 for ; Thu, 27 Jun 2013 19:04:45 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id 18AF519CF for ; Thu, 27 Jun 2013 19:04:44 +0000 (UTC) Received: from [192.168.1.200] (p508F1AC4.dip0.t-ipconnect.de [80.143.26.196]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 970041C0C0693; Thu, 27 Jun 2013 21:04:41 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Problems with Head on RaspberryPi From: Michael Tuexen In-Reply-To: Date: Thu, 27 Jun 2013 21:04:40 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <846063D0-A3D2-42AD-BC44-52A64910C4B0@bluezbox.com> <3358A6A9-409D-4A58-9736-F8DA037B7F69@freebsd.org> <20130626222316.GA87896@night.db.net> To: Alie Tan X-Mailer: Apple Mail (2.1508) Cc: "freebsd-arm@freebsd.org" , Jeff Roberson X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 27 Jun 2013 19:04:45 -0000 On Jun 27, 2013, at 4:23 PM, Alie Tan wrote: > On Thu, Jun 27, 2013 at 9:38 PM, Ralf Wenk = wrote: >=20 >> On Thu, 27 Jun 2013 12:46:41 +0200, Michael Tuexen = >> wrote: >>=20 >>> On Jun 27, 2013, at 12:23 AM, Diane Bruce wrote: >>>> On Wed, Jun 26, 2013 at 08:37:57PM +0200, Michael Tuexen wrote: >>>>> On Jun 26, 2013, at 7:39 PM, Oleksandr Tymoshenko = >> wrote: >>>>>=20 >>>>>>=20 >>>>>> On 2013-06-26, at 10:22 AM, Michael Tuexen >> wrote: >>>>>>=20 >>>>>>> Dear all, >>>>>>>=20 >>>>>>> I have build FreeBSD using the script from >>>>>>> https://github.com/daveish/freebsd-arm-tools >>>>>>> for a couple of weeks and it worked fine. However, >>>>>>> doing this within the last days, compilation and >>>>>>> installation works, but the Raspberry Pi doesn't >>>>>>> boot. After Starting kernel with NULL args >>>>>>> or so, it doesn't show anything else. Normally >>>>>>> the FreeBSD boot messages would appear. Does anyone >>>>>>> else also see this? Any idea how to get some >>>>>>> debug output out of the Raspberry Pi? >>>>>>=20 >>>>>>=20 >>>>>> Try disabling INVARIANTS options in the kernel. It seems >>>>>> new code in uma_dbg performs atomic ops on the >>>>>> allocated memory and if memory has been remapped as >>>>>> non-cached it causes exception. >>>>> OK. I'll try and report. It may take 24 hours... >>>>=20 >>>> I'm sorry to report it does not work. >>> Building r252255 without INVARIANTS and INVARIANT_SUPPORT >>> results in an image which boots completely on a R-Pi Model B with >>> 512 MB RAM. >>=20 >> I just confirmed that without INVARIANTS and INVARIANT_SUPPORT a = r252159 >> with the vmem.diff patches from Jeff Roberson applied boots also on = the >> same R-Pi Model B. >>=20 > Are you able to compile any pkg on it? I had to rebuild the kernel since I need SCTP support, which is not included in the default config. Therefore I can run r252304 without INVARIANTS and INVARIANT_SUPPORT. I'm able to make and install the devel/cvs port. However, when trying to build the databases/db42 port (required by the svn port), I get: ... /bin/sh ./libtool --mode=3Dcompile c++ -c -I. -I./../dist/.. = -D_THREAD_SAFE -O -pipe ./../dist/../cxx/cxx_db.cpp c++ -c -I. -I./../dist/.. -D_THREAD_SAFE -O -pipe = ./../dist/../cxx/cxx_db.cpp -fPIC -DPIC -o .libs/cxx_db.o In file included from ./../dist/../cxx/cxx_db.cpp:17: In file included from ./db_cxx.h:59: In file included from /usr/include/c++/4.2/backward/iostream.h:31: /usr/include/c++/4.2/backward/backward_warning.h:32:2: warning: This = file includes at least one deprecated or antiquated header. Please = consider using one of the 32 headers found in section 17.4.1.2 of the C++ = standard. Examples include substituting the header for the header = for C++ includes, or instead of the deprecated header = . To disable this warning use -Wno-deprecated. [-W#warnings] #warning This file includes at least one deprecated or antiquated = header. \ ^ Stack dump: 0. Program arguments: /usr/bin/c++ -cc1 -triple = armv6-unknown-freebsd10.0 -S -disable-free -main-file-name cxx_db.cpp = -mrelocation-model pic -pic-level 2 -mdisable-fp-elim = -mconstructor-aliases -target-abi apcs-gnu -target-cpu arm1136jf-s = -msoft-float -mfloat-abi soft -target-feature +soft-float = -target-feature +soft-float-abi -target-feature -neon -coverage-file = /tmp/cxx_db-Hk1zsh.s -resource-dir /usr/bin/../lib/clang/3.3 -D = _THREAD_SAFE -D PIC -I . -I ./../dist/.. -O2 -fdeprecated-macro = -fno-dwarf-directory-asm -fdebug-compilation-dir = /usr/ports/databases/db42/work/db-4.2.52/build_unix -ferror-limit 19 = -fmessage-length 80 -mstackrealign -fno-signed-char = -fobjc-runtime=3Dgnustep -fobjc-default-synthesize-properties = -fcxx-exceptions -fexceptions -fsjlj-exceptions = -fdiagnostics-show-option -fcolor-diagnostics -backend-option = -vectorize-loops -o /tmp/cxx_db-Hk1zsh.s -x c++ = ./../dist/../cxx/cxx_db.cpp=20 1. /usr/include/c++/4.2/bits/basic_string.tcc:979:43: current = parser token ';' 2. /usr/include/c++/4.2/bits/basic_string.tcc:49:1 = : parsing = namespace 'std' c++: error: unable to execute command: Segmentation fault (core dumped) c++: error: clang frontend command failed due to signal (use -v to see = invocation) FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: armv6-unknown-freebsd10.0 Thread model: posix c++: note: diagnostic msg: PLEASE submit a bug report to = http://llvm.org/bugs/ and include the crash backtrace, preprocessed = source, and associated run script. c++: note: diagnostic msg: Error generating preprocessed source(s). *** Error code 1 Stop. make: stopped in /usr/ports/databases/db42/work/db-4.2.52/build_unix *** Error code 1 Stop. make: stopped in /usr/ports/databases/db42 This clang problem seems not to be fixed in the 3.3 release... root@raspberry-pi:/usr/ports/databases/db42 # cc -v FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: armv6-unknown-freebsd10.0 Thread model: posix Any idea how to work around it?=20 Best regards Michael >=20 >>=20 >> Ralf >>=20 >>> So is someone working on the uma_dbg stuff? >>>=20 >>> Best regards >>> Michael >>>>=20 >>>>>=20 >>>>> Best regards >>>>> Michael >>>>>>=20 >>>>=20 >>>> - Diane >>>> -- >>>> - db@FreeBSD.org db@db.net http://www.db.net/~db >>=20 >>=20 >> _______________________________________________ >> 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" >>=20 > _______________________________________________ > 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" >=20