Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

JavaFX is known to work on i.MX6 platforms with 'hard float ABI" Linux distributions.

...

Currently we recommend Boundary Devicesas they . They have made a special effort to support switching to accelerated framebuffer mode, and have a vibrant community that answer device questions quickly.

Please note, there are two environments for running JavaFX that are regularly tested.

  • Direct to Framebuffer Frame buffer (no X11). This is the targeted path for JavaFX on ARM and the most tested
  • Using X11 to obtain the EGL context, but acting as if we are the only application. This path was implemented in the "Monocle" windowing subsystem, which is available in the OpenJFX build, and will be part of a future JDK for ARM release. This path was added to enable us to demonstrate JavaFX on platforms where the direct to Framebuffer drivers are not easily available. There are limitations inherent to using this path, and so it is not recommenced for production use.

...

  • copied to an alternate location (without the -fb) and used with LD_LIBRARY_PATH
  • used as the target for the /usr/lib/libEGL.so symbolic link

The kernel also needs the proper drivers to be present for these libraries to work. This can be checked with:

$ dmesg | grep Galcore
Galcore version 4.6.9.9754

UDEV

Udev must be configured on the target system. JavaFX tries to open libudev.so.0

Run as root

Embedded JavaFX used udev and direct access to the framebuffer (/dev/fb0). In general, JFX Embedded applications will need to be run as root, unless the system has been reconfigured to grant access to these devices.

Yocto

Currently Yocto is supported on many i.MX6 based devices. The documented and tested mainline target (fsl-image-x11) builds for an X11 based image. There is work underway for a framebuffer based target (fsl-image-fb), but that is not currently on the Yocto mainline.

...

Or on a Windows machine, you can use Alex Page's USB Image Creator: http://alexpage.de/usb-image-tool/

When you boot the device, you should be logged in as user 'ubuntu', password 'Boundary'.

Now Once installed on your SD card, unpack your JDK 8 for ARM into /opt. It is helpful to create a symbolic link to shorten the path:

        ubuntu@oracle:/opt$ sudo ln -s jdk1.8.0_06 jdk

If using OpenJFX, copy the build results over the top of the of the installed JDK 8 for ARM.

...

        ubuntu@oracle:~# sudo /opt/jdk1.8.0jdk/bin/java -cp ...

To switch back to the X11 accelerated EGL libraries, use:

...