[superh-gnu-discuss] unaligned userspace access
Andrea Baldini
andrea.baldini at spesonline.com
Fri Apr 15 14:58:48 UTC 2011
On Friday 15 April 2011 12:49:21 Andrew Stubbs wrote:
> On 15/04/11 09:57, Andrea Baldini wrote:
> > I'm working on a sh2a board and i tried to use your latest available
> > toolchain (renesas-2010.09) to cross-compile the 2.6.35 kernel
release.
> > When i try to boot the kernel i get a "unaligned userspace access"
error.
> > What could it depend on?
>
> It's hard to say what could be causing that, exactly - in my experience,
> the 'unaligned access' it's detected is usually (but not necessarily)
> merely fallout from some other error.
>
> Unfortunately, that seems to be one of the most common failure mode I
> see. Just about any memory scribble or other kind of crash that leads to
> executing random memory as code can cause this exception.
>
> I have not tested a 2.6.35 kernel myself, but I've no reason to believe
> it shouldn't work. You could ask about the kernel support for you target
> at linux-sh at vger.kernel.org
>
> Presumably you're sure that the user space isn't causing the problem?
>
> Andrew
Thanks for the quick answer.
the kernel fails when it tries to execute the first userspace application
(that is the init script). it seems it can't execute the busybox binaries for
some reason... did any of you try to boot a kernel in the rsk 7203 board?
(if so which version? although, as you said, i don't think it is a problem of
the kernel release)
thanks again
Andrea
More information about the superh-gnu-discuss
mailing list