Connman not working, after installing openjdk-7-jre and reboot

connman is working until I install openjdk-7-jre and reboot afterwards. During the reboot I get message:

[FAILED] Failed to start Connection service.
See 'systemctl status connman.service' for details.

and

root@colibri-vf:~# systemctl status connman.service
● connman.service - Connection service
   Loaded: loaded (/lib/systemd/system/connman.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Mon 2018-06-18 07:41:41 UTC; 4min 9s ago
  Process: 298 ExecStart=/usr/sbin/connmand -n (code=exited, status=1/FAILURE)
 Main PID: 298 (code=exited, status=1/FAILURE)

Jun 18 07:41:41 colibri-vf systemd[1]: connman.service: Unit entered failed state.
Jun 18 07:41:41 colibri-vf systemd[1]: connman.service: Failed with result 'exit-code'.
Jun 18 07:41:41 colibri-vf systemd[1]: connman.service: Service hold-off time over, scheduling restart.
Jun 18 07:41:41 colibri-vf systemd[1]: Stopped Connection service.
Jun 18 07:41:41 colibri-vf systemd[1]: connman.service: Start request repeated too quickly.
Jun 18 07:41:41 colibri-vf systemd[1]: Failed to start Connection service.
Jun 18 07:41:41 colibri-vf systemd[1]: connman.service: Unit entered failed state.
Jun 18 07:41:41 colibri-vf systemd[1]: connman.service: Failed with result 'start-limit-hit'.

Has anyone an idea to solve this problem?

Best, PrS

Hi PrS

Welcome to the Toradex Community.

Could you provide the Software version of your module? Which carrier board are you using?

I’m using the Colibri Eval board.

root@colibri-vf:~# uname -a
Linux colibri-vf 4.4.88-2.7.4+ge0f2806 #1 Thu Oct 5 03:26:05 UTC 2017 armv7l GNU/Linux

Best, PrS

Thanks for the information. Could you send the complete dmesg log in a text file? How did you install openjdk? Thanks.

I install it, as described at your homepage:

wget -P /etc/opkg/ http://feeds.toradex.com/extra/2.5/conf/all/extra.conf
opkg update
opkg install openjdk-7-jre

Attached I send you the dmesg log file. link text

Best, PrS

hi, this openjdk-jre is for the bsp 2.5. For Bsp 2.7, you need to compile yourself an image with openjdk-7-jre doing OpenEmbeddedBuild and add Java support as described here.

Hi,
I tried it many time to compile my own image with Java, as described at the links, but I always get the following error, when I try to attach Java to the image:

ERROR: libecj-bootstrap-native-3.6.2-r5.0 do_unpackpost: Function failed: do_unpackpost (log file is located at /home/cholzner/oe-core/build/tmp-glibc/work/x86_64-linux/libecj-bootstrap-native/3.6.2-r5.0/temp/log.do_unpackpost.16917)
ERROR: Logfile of failure stored in: /home/cholzner/oe-core/build/tmp-glibc/work/x86_64-linux/libecj-bootstrap-native/3.6.2-r5.0/temp/log.do_unpackpost.16917
Log data follows:
| DEBUG: Executing shell function do_unpackpost
| cp: cannot stat 'source/org': No such file or directory
| WARNING: /home/cholzner/oe-core/build/tmp-glibc/work/x86_64-linux/libecj-bootstrap-native/3.6.2-r5.0/temp/run.do_unpackpost.16917:1 exit 1 from 'cp -R source/org build/'
| ERROR: Function failed: do_unpackpost (log file is located at /home/cholzner/oe-core/build/tmp-glibc/work/x86_64-linux/libecj-bootstrap-native/3.6.2-r5.0/temp/log.do_unpackpost.16917)
ERROR: Task (/home/cholzner/oe-core/build/../layers/meta-java/recipes-core/ecj/libecj-bootstrap-native_3.6.2.bb:do_unpackpost) failed with exit code '1'

I attached it in local.conf

PREFERRED_PROVIDER_psplash-support = "psplash-angstrom"

+ IMAGE_INSTALL_append = " openjdk-7-jre"

At the descriptions for compiling an own image, linux version 2.8 is used, but Java for version 2.6. Could this be the problem?

Best,

PrS

Yes, you certainly can’t mix and match versions. Make sure to use somewhat recent proper rocko branch for a rocko aka BSP 2.8 build.

Now it is working, thanks!

Perfect. You are welcome.