[U-Boot] commit 64419e47 causes data aborts in md on orion5x internal registers

Albert ARIBAUD albert.aribaud at free.fr
Sat Aug 14 10:14:38 CEST 2010


(adding Mike for info as he is the submitter of 64419e47)

Hi all,

on current origin/master, doing an md on internal registers area 
(0xf1xxxxxx) causes a data abort on orion5x-based edminiv2.

A git bisect between origin/master ('bad') and the last edminiv2 commit 
ecaf3af2977e76484e0231d3113be3f4bbf2b8d6 ('good', known to work) points 
to commit 64419e47518bbba059c80b77558f93ad4804145c (print_buffer: 
optimize & shrink).

The data abort is in the aliasing of uip, usp and ucp to linebuf, which 
is not 4-bytes aligned. Aligning it fixes the issue. I've just posted a 
fix to the u-boot list:

<http://article.gmane.org/gmane.comp.boot-loaders.u-boot/82812>

Rogan, please test it and see if it fixes your issue as well (can't 
swear that it will).

Mike, please test it and see if it does not regress on your side (can't 
see why it should, but maybe the __aligned__ attribute is going to choke 
your build toolchain?)

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list