03-28-2019 04:00 PM
I'm trying to build OpenJDK 8 following the discussion here:
I'm using PetaLinux 2018.2 and targeting a Zinq UltraScale+ SOM on an Avnet board.
When I run petalinux-build I get an error saying aarch64 is not supported:
WARNING: /home/developer/dev/avnet-bsp-2018.2/project-spec/meta-java/recipes-core/openjdk/openjre-8_102b14.bb: openjre-8 does not support aarch64 yet-:--:--
Is there an up to date process for building OpenJDK for PetaLinux? Any recommendations of where to start if I need to tailor the current build files?
03-28-2019 04:07 PM
11-11-2019 03:56 PM
11-18-2019 07:23 AM
No. We've opted to wait for Petalinux 2019.1 and try again later. Although 2019.1 is out, a BSP is not available for our development boards so it will be a few more weeks, possibly not until after the holidays that we'll try again.
As a backup plan we may try create a custom build of the JRE. It's reportedly not too difficult and allows us to tailor the build for our product.
11-18-2019 08:35 AM
I've been trying to build the aarch64 port of OpenJDK, but it's pretty rough. The only documentation I could find on how to do it was in the README of the source code. And the code is full of errors and warnings, so I'm having trouble compiling it. I will probably try to cross-compile it with the ARM foundation model simulator, instead of the buggy small aarch64 simulator that the README recommends.
If that does end up working, I will probably not ever rebuild it, and just add the final product to my Petalinux build within the build scripts fpr Petalinux.
11-18-2019 08:58 AM
If I can't get the Yocto layers to work I plan to:
1. Try compiling my own JRE based on the following articles:
2. Or use a prebuilt JDK. I have downloaded and successfully used the Azul Systems aarch64 JRE on an Xilinix Ultrascrale+ development board from Avnet.
I would prefer to use the AdoptOpenJdk build since I can get a much smaller JRE-only version, but have not tried it yet.
All of this is unfortunately been moved to a much lower priority and probably will remain that way for some months.
11-18-2019 09:00 AM
Where did you find the Azul prebuilt for Aarch64? That sounds like it might save me a lot of headache
11-18-2019 09:08 AM
Azul has JDKs for 8, 11, and 13 here:
In addition to the comminity downloads there's a supported version as well, although I don't know any details about what the support includes.
AdoptOpenJDK builds, which provide a smaller JRE only version are here:
Amazon now has an Amazon JDK (Corretto) with builds for Java 8 and 11 for aarch64, here's the link to 8:
But again, these are full JDK builds, not JREs.
Corretto has been out for a little while now, but only added aarch64 support quite recently.
11-18-2019 10:11 AM
Thank you so much! I'll suffer through using full JDKs for now, hopefully we get better support for Aarch64 someday.