Jump to content
43oh

Energia installation in ubuntu 16.04


Recommended Posts

I would like to program MSP-EXP430G2 Launchpad from my Linux machine using energia.

After installing energia-1.6.10E18, I am getting error message stating

 

"cannot verify signature block file META-INF/BCKEY".

 

Below are details for my setup:-

OS: ubuntu 16.04

::::::::::::::
/etc/lsb-release
::::::::::::::
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
::::::::::::::
/etc/os-release
::::::::::::::
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial
 

 

> uname -a
Linux HomePC 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

 

My installation steps were:

1.  Downloaded udev rule from http://energia.nu/files/71-ti-permissions.rules

2.  sudo mv /71-ti-permissions.rules /etc/udev/rules.d/

3.  Downloaded energia from http://energia.nu/downloads/downloadv4.php?file=energia-1.6.10E18-linux64.tar.xz

4.  tar -xzf energia-1.6.10E18-linux64.tar.xz

 

I tried executing energia using following command:-

1.  energia-1.6.10E18/energia

2.  sudo energia-1.6.10E18/energia

 

In both energia execution, I got same error message in a pop-up window stating

"cannot verify signature block file META-INF/BCKEY".

 

Kindly guide me on how can I fix this issue.

post-37106-0-22898300-1474081392_thumb.png

Link to post
Share on other sites

Hello Abhaya,

 

i got your private mail about this topic.

I have 4  different Ubuntu 16.04.x machines more or less up to date running with Energia 17 and 18, also with CCS 6.1x.

that problem never showed up.

however, i see it seems a java jar signing problem on your installation.

 

i suggest to start a closer look the following steps:

 

1 -  md5sums. never know if these jar files are really grounded healthy.

 
$ for i in `find /opt/energia-1.6.10E18/ -name "*.jar" -print| grep bc`; do md5sum $i; done
873ac611cb0d7160c0a3d30eee964454  /opt/energia-1.6.10E18/lib/bcprov-jdk15on-152.jar
f4e4aa7b3828d3f4ff448f2335a38ecc  /opt/energia-1.6.10E18/lib/bcpg-jdk15on-152.jar
 
2 -record debug execution of the energia startup script
 - script energia-debug.script
 - sh -x /opt/energia-1.6.10E18/energia
 - if you see your problem, exit energia if it has not exited already
 - exit , to stop the typescript recording
 - now look to the energia-debug.script
  - watchout for CLASSPATH and JAVA things which are NOT located in the path of your energia install.
 ie: your CLASSPATH variable has already something in it.
 in my local attempt is see NO other JAVA or CLASSPATH items show up over than the ones from my energia installation PATH.
 
3 - if still no clue, remove the jar signing from the 2 jar files, even i do not recommend such or tested myself
  - find the two jar files
   for i in `find /opt/energia-1.6.10E18/ -name "*.jar" -print| grep bc
  and copy each into a own seperate temp directory.
  unpack each with ie 
  - unzip bcpg-jdk15on-152.jar
  - ls META-INF/   # this should show the two key files BCKEY.SF and BCKEY.DSA
  - rm META-INF/BCKEY.*  # remove them
  - mv bcpg-jdk15on-152.jar bcpg-jdk15on-152.jar.ORIG  # keep the orig jar file
  - zip -r bcpg-jdk15on-152.jar META-INF/ org/  # create jar from it
  - put your changed ones into energia install path ie: cp bcpg-jdk15on-152.jar  /opt/energia-1.6.10E18/lib/
 - repeat with bcprov-jdk15on-152.jar
 - try it
 

as said, i think your environment has some CLASSPATH|JAVA items popolated which may cause that a other java outside of energia is being involved.

btw: i checked the two jar with jarsigner, indeed, they have some sort of violation (ie no date stamp), seems the energia java pieces do not complain on my installation about that.
anyway, i am not a expert in that java signing area, so i may wrong here.

maybe it helps.

 

best regards

Peter ;-)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...