ARM EABI test image

Andrew Turner andrew at fubar.geek.nz
Tue Mar 5 07:33:28 UTC 2013


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.

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stack_align.diff
Type: text/x-patch
Size: 3073 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20130305/6d8bbe43/attachment.bin>


More information about the freebsd-arm mailing list