<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   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:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>blog.crox.net (Entries tagged as kernel)</title>
    <link>https://blog.crox.net/</link>
    <description></description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.5.0 - http://www.s9y.org/</generator>
    <pubDate>Mon, 08 Sep 2014 20:29:22 GMT</pubDate>

    <image>
    <url>https://blog.crox.net/templates/2k11/img/s9y_banner_small.png</url>
    <title>RSS: blog.crox.net - </title>
    <link>https://blog.crox.net/</link>
    <width>100</width>
    <height>21</height>
</image>

<item>
    <title>Getting the Trust 18187 Bluetooth 4.0 USB adapter (0a5c:21e8) to work with Linux</title>
    <link>https://blog.crox.net/archives/81-Getting-the-Trust-18187-Bluetooth-4.0-USB-adapter-0a5c21e8-to-work-with-Linux.html</link>
    
    <comments>https://blog.crox.net/archives/81-Getting-the-Trust-18187-Bluetooth-4.0-USB-adapter-0a5c21e8-to-work-with-Linux.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=81</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=81</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    This is how I got a &lt;a href=&quot;http://en.wikipedia.org/wiki/Bluetooth_low_energy&quot; title=&quot;Bluetooth low energy&quot;&gt;Bluetooth low energy (BLE)&lt;/a&gt; adapter to work on a Linux laptop running Ubuntu 12.04.&lt;br /&gt;
&lt;br /&gt;
First, as suggested by several websites, I created the file /etc/modprobe.d/trust-btusb.conf with the following contents:&lt;pre&gt;install usb:v0A5Cp21E8d*dc*dsc*dp*ic*isc*ip* /sbin/modprobe btusb; echo 0a5c 21e8 &gt; /sys/bus/usb/drivers/btusb/new_id&lt;/pre&gt;&lt;br /&gt;
After having restarted the computer and inserted the adapter, dmesg told me the following:&lt;pre&gt;Bluetooth: can&#039;t load firmware, may not work correctly&lt;/pre&gt;&lt;br /&gt;
To get the proper firmware, I downloaded the Windows 8 driver (18187_02.exe) from &lt;a href=&quot;http://www.trust.com/18187&quot;&gt;http://www.trust.com/18187&lt;/a&gt;. The driver files can be extracted from the .exe with &quot;unrar x 18187_02.exe&quot;.&lt;br /&gt;
&lt;br /&gt;
Then I looked for the vendor id (0x0a5c) and product id (0x21e8) in the various .inf files, and found this in 18187_02/Win32/bcbtums-win7x86-brcm.inf:&lt;pre&gt;%BRCM20702.DeviceDesc%=RAMUSB21E8,      USB\VID_0A5C&amp;PID_21E8                                   ; 20702A1 dongles&lt;/pre&gt;&lt;br /&gt;
Further down in the inf file there is a RAMUSB21E8 section which contains the following line:&lt;pre&gt;HKR,,%RAMPatchFileName%,0x00000, &quot;BCM20702A1_001.002.014.0187.0188.hex&quot;&lt;/pre&gt;&lt;br /&gt;
The .hex &quot;RAM Patch&quot; file can be found in 18187_02/Win32/. Before it can be used with btusb, it needs to be converted to hcd format. This can be done with &lt;a href=&quot;http://github.com/jessesung/hex2hcd&quot; title=&quot;hex2hcd&quot;&gt;hex2hcd&lt;/a&gt;. Finally, the hcd file needs to be moved/copied to /lib/firmware/fw-0a5c_21e8.hcd. Here are the steps to get and compile hex2hcd:&lt;pre&gt;$ git clone https://github.com/jessesung/hex2hcd.git&lt;br /&gt;$ cd hex2hcd/&lt;br /&gt;$ make&lt;/pre&gt;&lt;br /&gt;
The resulting executable can be used to convert the .hex firmware file to .hcd, which is then copied to the right destination:&lt;pre&gt;$ ./hex2hcd BCM20702A1_001.002.014.0187.0188.hex BCM20702A1_001.002.014.0187.0188.hcd&lt;br /&gt;$ sudo cp -p BCM20702A1_001.002.014.0187.0188.hcd /lib/firmware/fw-0a5c_21e8.hcd&lt;br /&gt;$ sudo chown root:root /lib/firmware/fw-0a5c_21e8.hcd&lt;/pre&gt;&lt;br /&gt;
The adapter can now be used:&lt;pre&gt;$ sudo hcitool -i hci1 lescan&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Update, 2014-09-08:&lt;/u&gt;&lt;ul&gt;&lt;li&gt;The first step is no longer necessary with Ubuntu 14.04, I directly receive the &quot;may not work&quot; message.&lt;/li&gt;&lt;li&gt;I was able to extract the firmware from 18187_05.exe (latest W8 driver) using this command: &quot;7z x 18187_05.exe&quot;&lt;/li&gt;&lt;li&gt;The correct .hex file is BCM20702A1_001.002.014.0449.0515.hex&lt;/li&gt;&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Tue, 16 Apr 2013 22:57:51 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/81-guid.html</guid>
    <category>ble</category>
<category>bluetooth</category>
<category>kernel</category>
<category>linux</category>
<category>ubuntu</category>

</item>
<item>
    <title>Enabling IPv6 Privacy Extensions on all interfaces (Ubuntu Linux, may work for other distros too)</title>
    <link>https://blog.crox.net/archives/75-Enabling-IPv6-Privacy-Extensions-on-all-interfaces-Ubuntu-Linux,-may-work-for-other-distros-too.html</link>
    
    <comments>https://blog.crox.net/archives/75-Enabling-IPv6-Privacy-Extensions-on-all-interfaces-Ubuntu-Linux,-may-work-for-other-distros-too.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=75</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=75</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    According to the &lt;a href=&quot;http://en.wikipedia.org/wiki/IPv6&quot;  title=&quot;IPv6&quot;&gt;Wikipedia IPv6 article&lt;/a&gt;, &lt;i&gt;Privacy extensions are, except for the Windows platform and Mac OS X since 10.7 as well as iOS since version 4.3, not enabled by default&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
In theory, one can enable the IPv6 Privacy Extensions on all interfaces at once using sysctl like this:&lt;pre&gt;sudo sysctl net.ipv6.conf.all.use_tempaddr=2&lt;/pre&gt;&lt;br /&gt;
However, this currently doesn&#039;t work as expected, so I&#039;m using this one-liner in /etc/rc.local:&lt;pre&gt;for IF in `/bin/ls /proc/sys/net/ipv6/conf/*/use_tempaddr` ; do echo 2 &gt; $IF ; done&lt;/pre&gt;&lt;br /&gt;
This also sets &quot;use_tempaddr&quot; for &quot;default&quot;, which means it should also apply to interfaces added to the system afterwards.&lt;br /&gt;
&lt;br /&gt;
A simple check to verify that the new configuration is working: &lt;a href=&quot;http://ipv6-test.com/&quot;  title=&quot;ipv6-test.com&quot;&gt;ipv6-test.com&lt;/a&gt; will print your MAC address when available...&lt;br /&gt;
&lt;br /&gt;
See also: &lt;a href=&quot;https://bugzilla.kernel.org/show_bug.cgi?id=11655&quot; &gt;Linux Kernel Bug 11655&lt;/a&gt;&lt;br /&gt;
&lt;br/&gt; 
    </content:encoded>

    <pubDate>Sun, 22 Jan 2012 23:22:01 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/75-guid.html</guid>
    <category>ipv6</category>
<category>kernel</category>
<category>linux</category>
<category>network</category>
<category>ubuntu</category>

</item>
<item>
    <title>Patch for mISDN-1_1_9_2 to support the Eicon DIVA USB ISDN adapter (071d:1005 mISDN)</title>
    <link>https://blog.crox.net/archives/58-Patch-for-mISDN-1_1_9_2-to-support-the-Eicon-DIVA-USB-ISDN-adapter-071d1005-mISDN.html</link>
    
    <comments>https://blog.crox.net/archives/58-Patch-for-mISDN-1_1_9_2-to-support-the-Eicon-DIVA-USB-ISDN-adapter-071d1005-mISDN.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=58</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=58</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    This is a copy of a post I made to the &lt;a href=&quot;https://www.isdn4linux.de/mailman/listinfo/isdn4linux&quot; title=&quot;isdn4linux mailing-list&quot;&gt;isdn4linux mailing-list&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The attached patch adds support to mISDN-1_1_9_2 for the Eicon DIVA USB ISDN adapter (071d:1005).&lt;br /&gt;
&lt;br /&gt;
The bits I&#039;ve added to hfcs_usb.c are from kernel 2.6.31. So far the adapter works fine for me (tested with 1 and 2 concurrent calls to asterisk 1.4.26.1 with chan_misdn).&lt;br /&gt;
&lt;br /&gt;
You can get the patch here: &lt;a href=&quot;https://blog.crox.net/uploads/misdn-1.1.9.2-Eicon-Diva-USB.patch&quot; title=&quot;misdn-1.1.9.2-Eicon-Diva-USB.patch&quot; target=&quot;_blank&quot;&gt;misdn-1.1.9.2-Eicon-Diva-USB.patch&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Comments are set to &quot;moderated&quot; for this entry, please consider whether you should rather post to the &lt;a href=&quot;https://www.isdn4linux.de/mailman/listinfo/isdn4linux&quot; title=&quot;isdn4linux mailing-list&quot;&gt;list&lt;/a&gt;.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Tue, 22 Sep 2009 21:25:33 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/58-guid.html</guid>
    <category>isdn</category>
<category>kernel</category>
<category>linux</category>

</item>
<item>
    <title>Patch for mISDN-1_1_9_2 and kernel 2.6.30 (mISDN 1.1 no bus_id patch)</title>
    <link>https://blog.crox.net/archives/57-Patch-for-mISDN-1_1_9_2-and-kernel-2.6.30-mISDN-1.1-no-bus_id-patch.html</link>
    
    <comments>https://blog.crox.net/archives/57-Patch-for-mISDN-1_1_9_2-and-kernel-2.6.30-mISDN-1.1-no-bus_id-patch.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=57</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=57</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    This is a copy of a post I made to the &lt;a href=&quot;https://www.isdn4linux.de/mailman/listinfo/isdn4linux&quot; title=&quot;isdn4linux mailing-list&quot;&gt;isdn4linux mailing-list&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
In the latest kernel, char bus_id[20] has been removed from struct device. To read or set the device name, dev_name(device) resp. dev_set_name(device) have to be used instead. The attached patch does exactly that. It allows me to run &lt;a href=&quot;http://www.misdn.org/&quot;  title=&quot;mISDN&quot;&gt;mISDN&lt;/a&gt;-1_1_9_2 with kernel 2.6.30.5, with no problem so far. My understanding is that dev_name and dev_set_name have been introduced in 2.6.27.x, hence the check for &gt;= 2.6.28. I haven&#039;t tested the patch with kernels older than 2.6.30.5 though. &lt;br /&gt;
&lt;br /&gt;
You can get the patch here: &lt;a href=&quot;https://blog.crox.net/uploads/misdn-1.1.9.2-no-bus_id.patch&quot; title=&quot;misdn-1.1.9.2-no-bus_id.patch&quot; target=&quot;_blank&quot;&gt;misdn-1.1.9.2-no-bus_id.patch&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Comments are set to &quot;moderated&quot; for this entry, please consider whether you should rather post to the &lt;a href=&quot;https://www.isdn4linux.de/mailman/listinfo/isdn4linux&quot; title=&quot;isdn4linux mailing-list&quot;&gt;list&lt;/a&gt;.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 28 Aug 2009 20:30:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/57-guid.html</guid>
    <category>isdn</category>
<category>kernel</category>
<category>linux</category>

</item>

</channel>
</rss>
