arduino on hardened kernel?

so you just got your hands on hardened kernel and now you want to run Arduino but memory protection features are not letting the program allocate any memory?

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000740dd5000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.

what to do?
arduino wants to start java that comes with it in java directory.
symlink your java that has proper permissions to java executable in java bin directory of arduino.

cd arduino
mv `pwd`/java/bin/java `pwd`/java/bin/java.back
ln -s path_to_java/bin/java `pwd`/java/bin/java

Leave a Comment