ARM EABI test image

Jakob Alvermark jakob at alvermark.net
Tue Mar 5 10:02:27 UTC 2013


On 5 mar 2013, at 08:33, Andrew Turner wrote:

> On Mon, 04 Mar 2013 22:12:05 +1300
> Andrew Turner <andrew at fubar.geek.nz> wrote:
> 
>> On Sun, 3 Mar 2013 01:17:01 +0800
>> Ganbold Tsagaankhuu <ganbold at gmail.com> wrote:
>> 
>>> Andrew,
>>> 
>>> On Sat, Mar 2, 2013 at 12:25 PM, Andrew Turner
>>> <andrew at fubar.geek.nz> wrote:
>>>> Hello,
>>>> 
>>>> I have built an updated ARM EABI test image for Raspberry Pi [1].
>>>> 
>>>> The only known issue is c++ exception handling is broken when
>>>> using in a dynamically linked executable. Static executables
>>>> should work with c++ exceptions.
>>>> 
>>>> 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=bsd-pi-eabi-r247609.img of=/dev/da0
>>>> 
>>>> 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.
>>>> 
>>>> Can people try this as I would like to know if anything else is
>>>> broken as this will become the default ABI for 10.
>>>> 
>>> 
>>> Just tried the image. Seems work but observed for instance gpart
>>> shows big numbers for 2GB SD:
>> 
>> 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.
> 
> 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 at test10:/src/FreeBSD/obj/arm.armv6/src/FreeBSD/head/sys/RPI-B  arm
% gpart show
=>       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)

=>     0  458748  mmcsd0s2  BSD  (224M)
       0  458748         1  freebsd-ufs  (224M)

% 

Jakob


More information about the freebsd-arm mailing list