From owner-freebsd-arm@FreeBSD.ORG Tue Mar 5 10:02:27 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 C2C98F1C for ; Tue, 5 Mar 2013 10:02:27 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from smtprelay-h31.telenor.se (smtprelay-h31.telenor.se [213.150.131.4]) by mx1.freebsd.org (Postfix) with ESMTP id 55D481B1 for ; Tue, 5 Mar 2013 10:02:26 +0000 (UTC) Received: from ipb5.telenor.se (ipb5.telenor.se [195.54.127.168]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id 9A849E99F1 for ; Tue, 5 Mar 2013 10:29:54 +0100 (CET) X-SENDER-IP: [85.229.94.62] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap9JAOa5NVFV5V4+PGdsb2JhbABEiwe3TYEBFwMBAQEBODSCHwEBBAE6HCMFCwsYLiEMDAoUBhOIAQMJCq40hlINiVqMRIIVMweCX2EDlGqNNogh X-IronPort-AV: E=Sophos;i="4.84,786,1355094000"; d="scan'208";a="286537283" Received: from c-3e5ee555.06-11-73746f31.cust.bredbandsbolaget.se (HELO sigyn.alvermark.net) ([85.229.94.62]) by ipb5.telenor.se with ESMTP; 05 Mar 2013 10:29:54 +0100 Received: from gw.inter-sonic.com ([212.247.8.97] helo=[192.168.1.191]) by sigyn.alvermark.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1UCoC2-0007aM-0O; Tue, 05 Mar 2013 10:29:54 +0100 Subject: Re: ARM EABI test image Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Jakob Alvermark In-Reply-To: <20130305203318.24f244c9@bender> Date: Tue, 5 Mar 2013 10:29:52 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <15D3CC57-B665-45FB-A4D3-27058BC5689E@alvermark.net> References: <20130302172556.5b59e122@bender> <20130304221205.7d427b38@bender> <20130305203318.24f244c9@bender> To: Andrew Turner X-Mailer: Apple Mail (2.1085) Cc: freebsd-arm@freebsd.org 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: Tue, 05 Mar 2013 10:02:27 -0000 On 5 mar 2013, at 08:33, Andrew Turner wrote: > On Mon, 04 Mar 2013 22:12:05 +1300 > Andrew Turner wrote: >=20 >> On Sun, 3 Mar 2013 01:17:01 +0800 >> Ganbold Tsagaankhuu wrote: >>=20 >>> Andrew, >>>=20 >>> On Sat, Mar 2, 2013 at 12:25 PM, Andrew Turner >>> wrote: >>>> Hello, >>>>=20 >>>> I have built an updated ARM EABI test image for Raspberry Pi [1]. >>>>=20 >>>> The only known issue is c++ exception handling is broken when >>>> using in a dynamically linked executable. Static executables >>>> should work with c++ exceptions. >>>>=20 >>>> To test it you will have to extract it using unxz and dd it to an >>>> sd card, for example, with a USB to SD adapter on /dev/da0: >>>> $ unxz bsd-pi-eabi-r247609.img.xz >>>> $ dd if=3Dbsd-pi-eabi-r247609.img of=3D/dev/da0 >>>>=20 >>>> If you don't have a Raspberry Pi but would like to try it on your >>>> board you can add -DWITH_ARM_EABI to the make commands you use to >>>> build and install world and the kernel. >>>>=20 >>>> Can people try this as I would like to know if anything else is >>>> broken as this will become the default ABI for 10. >>>>=20 >>>=20 >>> Just tried the image. Seems work but observed for instance gpart >>> shows big numbers for 2GB SD: >>=20 >> I've confirmed this is a bug where the stack is incorrectly aligned. = I >> have a fix for this and will post a patch for review when I've = cleaned >> it up. >=20 > Can you try this patch. It fixes the alignment of the stack in the > kernel to be on an 8 byte boundary. Hi Andrew, I just tried rebuilding the kernel with the patch applied and it seems = to have cured the gpart problem at least, haven't tested anything else = yet: % uname -a FreeBSD raspberry-pi 10.0-CURRENT FreeBSD 10.0-CURRENT #33 r247831M: Tue = Mar 5 09:38:05 CET 2013 = root@test10:/src/FreeBSD/obj/arm.armv6/src/FreeBSD/head/sys/RPI-B arm % gpart show =3D> 1 15759359 mmcsd0 MBR (7.5G) 1 8 - free - (4.0k) 9 65529 1 !12 [active] (32M) 65538 458748 2 freebsd (224M) 524286 15235074 - free - (7.3G) =3D> 0 458748 mmcsd0s2 BSD (224M) 0 458748 1 freebsd-ufs (224M) %=20 Jakob=