Hi,
I tried to build the latest U-Boot yesterday, followed by instructions here: Mainline U-boot Linux for H5
For building I used Ubuntu 17.10 because only this OS contains aarch64-linux-gnu version 6.x or more by default (or can install version 5.x, 6.x or 7.x). Unfortunately on Ubuntu 16.04 I got error always because there are available gcc version 5.x only.
I followed the instructions, with the git source like here:
when I run make with aarch64-linux-gnu-gcc version 6.x, I found an error message:
I tried to make with aarch64-linux-gnu-gcc-7 too, but the only differences is the overflowed byte sizes:
When I tried the branch "sunxi-v2017.03", there was not found any important error messages and the making process runs perfectly.
I saw the differences between two branch, and I found that new hardware added into some .c source code, but I not know it is important for Neo2 or Neo Plus2 or not.
I would like to know why I got this error message, the branch v2017.03 is right for me or how can I build the latest u-boot.
Thank you in advance.
I tried to build the latest U-Boot yesterday, followed by instructions here: Mainline U-boot Linux for H5
For building I used Ubuntu 17.10 because only this OS contains aarch64-linux-gnu version 6.x or more by default (or can install version 5.x, 6.x or 7.x). Unfortunately on Ubuntu 16.04 I got error always because there are available gcc version 5.x only.
I followed the instructions, with the git source like here:
Code: Select all
git clone --depth 1 --single-branch -b sunxi-v2017.x https://github.com/friendlyarm/u-boot.git
when I run make with aarch64-linux-gnu-gcc version 6.x, I found an error message:
Code: Select all
aarch64-linux-gnu-ld.bfd: u-boot-spl section `.got.plt' will not fit in region `.sram'
aarch64-linux-gnu-ld.bfd: region `.sram' overflowed by 152 bytes
scripts/Makefile.spl:335: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1367: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
I tried to make with aarch64-linux-gnu-gcc-7 too, but the only differences is the overflowed byte sizes:
Code: Select all
aarch64-linux-gnu-ld.bfd: region `.sram' overflowed by 128 bytes
When I tried the branch "sunxi-v2017.03", there was not found any important error messages and the making process runs perfectly.
I saw the differences between two branch, and I found that new hardware added into some .c source code, but I not know it is important for Neo2 or Neo Plus2 or not.
I would like to know why I got this error message, the branch v2017.03 is right for me or how can I build the latest u-boot.
Thank you in advance.