<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrfutil on linux?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12601/nrfutil-on-linux</link><description>is there a version of nrfutil that works on linux?
this one doesn&amp;#39;t: github.com/.../pc-nrfutil 
 $ nrfutil dfu genpkg --application _build/nrf51822_xxac_s110.hex fota.zip 
Traceback (most recent call last):
 File &amp;quot;/usr/sbin//nrfutil&amp;quot;, line 9, in </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Mar 2016 05:10:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12601/nrfutil-on-linux" /><item><title>RE: nrfutil on linux?</title><link>https://devzone.nordicsemi.com/thread/47833?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2016 05:10:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8297409-509e-4b68-b8f3-1b48dd558bef</guid><dc:creator>Lucas Magasweran</dc:creator><description>&lt;p&gt;What version of Python are you using &lt;code&gt;python --version&lt;/code&gt; says I have 2.7.6. I&amp;#39;m on Ubuntu 14.04.3 64-bit and this tool cloned from Git today worked for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil on linux?</title><link>https://devzone.nordicsemi.com/thread/47834?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 16:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a2677d7-43f5-4993-a4dc-6b69c7d9d88c</guid><dc:creator>aep</dc:creator><description>&lt;p&gt;as a quickfix, this seems to work for me:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;--- ./build/lib/nordicsemi/dfu/init_packet.py	2016-03-16 14:43:30.000000000 +0100
+++ /usr/lib/python2.7/site-packages/nrfutil-0.3.0-   py2.7.egg/nordicsemi/dfu/init_packet.py	2016-03-16 14:55:42.765861290 +0100
@@ -79,7 +79,7 @@
         format_string = self.__generate_struct_format_string()
         args = []

-        for key in sorted(self.init_packet_fields.keys(), key=lambda x: x.value):
+        for key in sorted(self.init_packet_fields.keys(), key=lambda x: x):
            # Add length to fields that required that
             if key in [PacketField.REQUIRED_SOFTDEVICES_ARRAY,
                        PacketField.OPT_DATA]:
@@ -94,7 +94,8 @@
         format_string = &amp;quot;&amp;lt;&amp;quot;  # Use little endian format with standard sizes for python,
         # see &lt;a href="https://docs.python.org/2/library/struct.html"&gt;docs.python.org/.../struct.html&lt;/a&gt;
 
-        for key in sorted(self.init_packet_fields.keys(), key=lambda x: x.value):
+        for key in sorted(self.init_packet_fields.keys(), key=lambda x: x):
             if key in [PacketField.DEVICE_TYPE,
                        PacketField.DEVICE_REVISION,
                        ]:
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>