View Single Post
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#430
Originally Posted by AapoRantalainen View Post
I tried to compile u-boot:

(inside scratchbox1, with stock tools)
I'm using arm-linux-gnueabi-gcc from Ubuntu, version:
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

and madde gcc (arm-none-linux-gnueabi-gcc), version:
gcc version 4.2.1

I do not know of other (and special scratchbox old) compiler will work.

Originally Posted by AapoRantalainen View Post
Code:
git clone git://gitorious.org/u-boot-shr/u-boot.git
cd u-boot
git checkout origin/pali
fakeroot dpkg-buildpackage
better use: dpkg-buildpackage -b -rfakeroot

Originally Posted by AapoRantalainen View Post
a) Build-Depends: kernel-bootimg
Where to get this package?
Workaround: place zImage to the /boot/zImage-2.6.28-omap1
Download package kernel, it contains /boot/zImage*.fiasco
Use flasher-3.5 to unpack fiasco image: flasher-3.5 -F zImage*.fiasco
And then copy unpacked zImage to /boot/zImage-2.6.28-omap1

Originally Posted by AapoRantalainen View Post
b)
Code:
debian/u-boot-tools/usr/bin/u-boot-gen-combined debian/u-boot-bootimg/boot/u-boot-2012.04-2.bin uImage combined.bin
U-Boot binary is too big (actual size 262580, max size 262144)
Before "objcopy --gap-fill=0xff -O binary", it's size is 985157.
Sounds bad. maybe bad gcc or other u-boot scripts.... Try to use gcc optiomalization for size.

Originally Posted by AapoRantalainen View Post
----
With gcc-4.6 and ld2.22

couple warnings:
board.c:49:13: warning: 'omap3_invalidate_l2_cache_secure' declared 'static' but never defined [-Wunused-function]
board.c:393:13: warning: 'omap3_update_aux_cr' defined but not used [-Wunused-function]
Ignore, upstream problems. (You can comment that two functions, they are not needed for our rx51 build).

Originally Posted by AapoRantalainen View Post
sizes:
1002559 debian/build/nokia_rx51/u-boot
250028 debian/build/nokia_rx51/u-boot.bin
-> fits.
u-boot.bin should be stripped and not (ELF) wrapped version of u-boot which is bootable by nolo.
 

The Following 3 Users Say Thank You to pali For This Useful Post: