[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] Running Kura on Ubuntu

Hi Dave,

Ubuntu 14.04.4 LTS 64bit

It's an Intel NUC Industrial PC.

Output from cpuinfo is

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 55
model name : Intel(R) Celeron(R) CPU ÂN2930 Â@ 1.83GHz
stepping : 8
microcode : 0x833
cpu MHz : 498.000
cache size : 1024 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch ida arat epb dtherm tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms
bogomips : 3666.37
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

Thanks

John MacEnri

On 18 May 2016 at 17:42, Woodard, David <david.woodard@xxxxxxxxxxxx> wrote:
Hi John,

Unfortunately, native libraries can be very specific to the target architecture. Can you provide the following information:

OS: (Ubuntu Version, 64-bit/32-bit, etc.)
Architecture (cat /proc/cpuinfo)

It is likely our Ubuntu native library was compiled for a different target.Â

Thanks,
--Dave

On May 17, 2016, at 17:59, John MacEnri <john.macenri@xxxxxxxxxxxxxxxxx> wrote:

Hi,

sorry, missed this before I sent the last reply.

But I've tried your suggestion here and it didn't work for me.
I'd rather a fix like this to avoid having to do build of the .so and re-packing the usb jar when commissioning a new device.
At least I do know that method does work, even if a little more involved.

If you think some variant on that JVM param value might work, I'd be happy to give it a few more goes.

Thanks

John MacEnri

On 17 May 2016 at 22:38, Woodard, David <david.woodard@xxxxxxxxxxxx> wrote:
Hello,

Try this:

* Stop Kura (sudo killall java will do it)
* The scripts that start Kura are located in /opt/eclipse/kura/bin. Open the script start_kura_background.sh. There is a JVM parameter âkura.os.versionâ. It is likely set to âraspbianâ. Try setting it to âubuntu_14.04â.
* Start Kura.

Thanks,
--Dave


Â, .Â
On May 17, 2016, at 17:08, John MacEnri <john.macenri@xxxxxxxxxxxxxxxxx> wrote:

Hi Dave,

thanks very much for the fast response.
I hadn't copped what the "No Networking" build really meant. I had deployed the other Pi one, which I since removed. Installing the NN one worked much better. Kura is now running and Web Admin console appears.

But I am getting lots of errors in kura-console.log about the UsbService

!MESSAGE [SCR] Exception while activating instance org.eclipse.kura.linux.usb.UsbServiceImpl@279af4c0 of component org.eclipse.kura.usb.UsbService
.
.
.
Caused by: java.lang.UnsatisfiedLinkError: /tmp/.kura/configuration/org.eclipse.osgi/bundles/61/1/.cp/lib/linux/x86_64/libEurotechLinuxUdev.so: libudev.so.0: cannot open shared object file: No such file or directory

which is what you predicted.
I noticed when digging into the contents of theÂorg.eclipse.kura.linux.usb_1.0.7.jar that it contains a
lib/linux/x86_ubuntu/libEurotechLinuxUdev.so

Is there a config that will force the framework to load that one instead and would that work?

Otherwise I guess I'll have to build the .so.Â
What are the steps involved in building it?
I have full dev tools on the target Unbuntu platform, but it's been a long time since I've had to build C stuff.

Thanks

John MacEnri

On 17 May 2016 at 17:36, Woodard, David <david.woodard@xxxxxxxxxxxx> wrote:
Hi John,

Yes, it will work, but there may be a couple of issues to address.

1. Which Debian installer are you trying to use? If you donât need to configure network settings through Kura, I would recommend using the âNo Networkingâ installer [1]. This is likely where you are seeing a lot of issues. Ubuntu handles networking quite differently than Raspbian, so networking support in Kura would likely require source code changes. Let me know if you need more explanation or support here.

2. The core of Eclipse Kura is nearly all pure Java. The exception is one native library that needs to be compatible with your system for Kura to start. The source for this native library can be found here [2]. This may need to be compiled for your architecture and replaced in the org.eclipse.kura.linux.usb bundle. Again, I can provide more information on how to do this if you need.

If possible, I would start with the âNo Networkingâ installer and check the status of the components and services. If you see an issue with a native library in org.eclipse.kura.linux.usb, you know you need to move to step 2. If you are seeing other errors, let me know.


Thanks,
--Dave

On May 17, 2016, at 12:18, John MacEnri <john.macenri@xxxxxxxxxxxxxxxxx> wrote:

Hi,

I have previously been using Kura 1.4.0 on a Raspberry Pi 2.

But we now wish to deploy Kura and our App on a different hardware platform (an industrial PC) which is running Ubuntu 14.04 LTS.Â
We ONLY make use of the Ethernet ports and not USB, Bluetooth, Wifi or Serial Ports.

IsÂUbuntuÂa supported runtime platform and if so, how can I deploy Kura to it?
I have tried simply deploying the Pi2 .deb file, but that doesn't seem to work right.Â

Any help greatly appreciated.

Regards

John MacEnri
Crowley Carbon Ltd

_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev

_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev

_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev