From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Kernel oops on imx53 / ARM - Unhandled fault: alignment exception (0x801)
Date: Tue, 15 Jul 2014 17:34:40 +0200 [thread overview]
Message-ID: <20140715173440.65fa4f2d@free-electrons.com> (raw)
In-Reply-To: <8CF2946A95E16D4A92067339B0D48BE59AD1126633@EMV66-UKRD.domain1.systemhost.net>
Hello,
On Tue, 15 Jul 2014 16:12:06 +0100, amit.chaudhuri at bt.com wrote:
> I am using buildroot to create a toolchain for Freescale's imx53qsb board.
> Part of the target we're looking for is Qt5 with support for their eglfs
> platform.
>
> If I only build part of Qt5 and don't satisfy dependencies for eglfs I get
> a bootable system. When I add all of the dependencies I appear to need, I
> get the relevant Qt5 modules compiled & linked but my kernel dies with
> "Unhandled fault: alignment exception (0x801) at 0xdf039e16". I've added the
> console error message and disassembly of the crash site below.
>
> In narrowing down the things that tip me over the edge I've settled on the
> addition of udev and evdev as being likely factors.
Enabling udev/evdev will force the activation of devtmpfs in the
kernel, and therefore the call of the devtmpfs_init() function in the
kernel, which triggers the unaligned access.
> I *think* I need to add -mno-unaligned-access to the compilation flags for
> everything. But I've not worked out how to do that. If alignment is my issue
> how does one add custom compilation flags to all packages?
>
> If I'm mis-diagnosing the problem, I'd be keen to have that pointed out.
> All help much appreciated..
Basically: run a newer kernel.
My understanding is that this issue has been fixed in newer kernel
versions by allowing unaligned accesses on ARMv6 and ARMv7. The kernel
you're using was at a time where ARMv7 toolchains were not generating
unaligned accesses.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2014-07-15 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-15 15:12 [Buildroot] Kernel oops on imx53 / ARM - Unhandled fault: alignment exception (0x801)s amit.chaudhuri at bt.com
2014-07-15 15:34 ` Thomas Petazzoni [this message]
2014-07-16 7:52 ` [Buildroot] Kernel oops on imx53 / ARM - Unhandled fault: alignment exception (0x801) amit.chaudhuri at bt.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140715173440.65fa4f2d@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox