-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rk3399 fails to build: region PMUSRAM overflowed #650
Comments
By the way, there is a video about the problem of fitting all the code that is needed to be placed in the PMUSRAM: https://youtu.be/UC35q4OJg3k?t=1350 |
However, "overflowed by 3928 bytes" looks like there is some problem with the new version of the linker, not like GCC has become that worse in 2 major versions. There were only ~4KB of code for each CPU type (M0 and A72/53) to begin with. |
Agreed, this looks like a bug or serious regression, not just a natural change in code generation. @rkchrome, can Rockchip people look into this? |
It looks like @rkchrome is an old account and the correct one is @rockchip-linux. |
Which version of the compilers are you using? I'm using the following compilers from here: https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads
And it seems to build correctly. |
I am getting a similar error on a current archlinux system with aarch64-linux-gnu-gcc (GCC) 11.2.0 LD /data/arm-trusted-firmware/build/rk3399/release/bl31/bl31.elf |
Hello @vagrantc! Thank you for raising an issue for Trusted Firmware-A. The TF-A project has now migrated to www.trustedfirmware.org. This issue tracker will still remain accessible for some time, but only for historical reasons. From now on you should raise new issues on trustedfirmware.org. If it is a query or a design discussion it is better discussed via the mailing list. If it is issue/bug which need to be tracked, raise an issue in the issue tracking board and also send an email to the mailing list to notify the TF-A community. How do I raise issues for TF-A?Please use our new issue tracking board. For this you just need to login with your existing GitHub account. We also have a guide to help you raise the issue with the appropriate labels and tags. This way it will be easier for both you and us to track and address the issue most effectively. We are looking forward to seeing you in trustedfirmware.org! The Trusted Firmware-A team |
Working on packaging arm-trusted-firmware in Debian.
Building arm-trusted-firmware from git commit cabe0a31801e99e7abb84d2114ded6bb56f3c71e or v2.0, rk3399 fails to build with a recent Debian toolchain (gcc 8.2.0, binutils 3.31.1):
Must remake target 'build/rk3399/debug/bl31/bl31.elf'.
LD build/rk3399/debug/bl31/bl31.elf
aarch64-linux-gnu-ld.bfd: build/rk3399/debug/bl31/bl31.elf section
.pmusram' will not fit in region
PMUSRAM'aarch64-linux-gnu-ld.bfd: region `PMUSRAM' overflowed by 3928 bytes
make[2]: *** [Makefile:722: build/rk3399/debug/bl31/bl31.elf] Error 1
make[2]: Leaving directory '/<>'
Full build log available at:
https://people.debian.org/~vagrant/atf/
Works fine building with the older toolchains (gcc 6, binutils 2.28) in Debian, but it's not possible to include arm-trusted-firmware in an older release; the newer toolchains are required to work for new uploads.
Thanks!
The text was updated successfully, but these errors were encountered: