AbhayaKumar 1 Posted September 17, 2016 Share Posted September 17, 2016 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=UbuntuDISTRIB_RELEASE=16.04DISTRIB_CODENAME=xenialDISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"::::::::::::::/etc/os-release::::::::::::::NAME="Ubuntu"VERSION="16.04.1 LTS (Xenial Xerus)"ID=ubuntuID_LIKE=debianPRETTY_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 -aLinux 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. Quote Link to post Share on other sites
energia 485 Posted September 17, 2016 Share Posted September 17, 2016 Same issue seems to exist in the Arduino IDE: https://forum.arduino.cc/index.php?topic=330085.0 Unfortunately no reply to that thread.. I will have to try and reproduce it next week. Robert Quote Link to post Share on other sites
Bubele 2 Posted September 18, 2016 Share Posted September 18, 2016 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 ;-) bluehash 1 Quote Link to post Share on other sites
AbhayaKumar 1 Posted September 23, 2016 Author Share Posted September 23, 2016 Peter, Thanks for the suggestions. With your recommended STEP-3, I am able to invoke energia now. I'll try programming my MSP-EXP430G2 Launchpad sometime today and will update you about the sam as well. Thanks for your support. Abhaya Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.