In the board/directory/platform. S (old version uboot) in the end, add:
or board/directory/lowlevel_init. S (new version) in the end, add:
. Globl Raise
Raise
Nop
mov pc, LR
Attach someone else's instructions
The solution is:
Two kinds:
1. To use a different configuration (estimated to be used to specify a non-Gun/linux class program), recompile a new version of the cross-compiler, and then use the new non-gnu/linux cross-compiler, to compile the old version of the Uboot, the normal compilation
2. Modify your uboot, plus the corresponding (casually write empty) __aeabi_ldiv0 or raise function.
Here is the second option, the specific approach:
The uboot here is Whgs (that is, make Whgs_config is used for configuration)
So find the corresponding assembly file, namely:
Board/whgs/lowlevel_init. S
At the end of the file, add it up?
| 1 2 3 4 5 6 |
@add empty raise () to fix (when use new EABI XScale Cross compiler To) compile @error gcc/config/arm/lib1funcs.asm:126 6:undefined reference to ' raise '. Globl raise RAISE:NOP mov pc, LR |
And then recompile, you can.