[U-Boot] Building for da830 fails

Timur Tabi timur at freescale.com
Fri May 7 17:30:32 CEST 2010


Scott McNutt wrote:
> lib/libgeneric.a(display_options.o): In function `print_size':
> /home/smcnutt/27xx/u-boot.git/lib/display_options.c:66: undefined 
> reference to `__udivdi3'
> /home/smcnutt/27xx/u-boot.git/lib/display_options.c:69: undefined 
> reference to `__umoddi3'
> /home/smcnutt/27xx/u-boot.git/lib/display_options.c:70: undefined 
> reference to `__udivdi3'

Man, I knew ARM sucked, but I didn't know it was this bad :-)

I was going to suggestion replacing the division operations with calls to
lldiv(), but we're actually doing a 64-by-64 bit division here:

n = size / d;

which means that in order to support support printing 64-bit numbers on ARM,
we might need to completely rewrite print_size() to avoid division on 64-bit
numbers.

Wolfgang, do you have any suggestions?

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the U-Boot mailing list