<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
  <title xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić's random unstructured stuff: Recent Changes</title>
  <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/</id>
  <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=Recent%20Changes"/>
  <link xmlns="http://www.w3.org/2005/Atom" type="application/atom+xml" rel="self" href="http://saturn.ffzg.hr/feed/workspace/rot13?category=Recent%20Changes;type=Atom"/>
  <updated xmlns="http://www.w3.org/2005/Atom">2012-01-25T10:55:06Z</updated>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">Asterisk GSM</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?asterisk_gsm"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: asterisk, gsm</div><hr/><div class="wiki">
<p>
This page will try to document my advanture in setup of GSM channel on Asterisk</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#information">Dobrica Pavlinušić's random unstructured stuff (Information)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Information} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#mass_storage_switch">Dobrica Pavlinušić's random unstructured stuff (Mass-storage switch)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Mass-=storage switch} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#devices">Dobrica Pavlinušić's random unstructured stuff (Devices)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Devices} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#huawei_e171">Dobrica Pavlinušić's random unstructured stuff (Huawei E171)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Huawei E171} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#check_if_voice_is_enabled">Dobrica Pavlinušić's random unstructured stuff (Check if voice is enabled)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Check if voice is enabled} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#huawei_e1752">Dobrica Pavlinušić's random unstructured stuff (Huawei E1752)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Huawei E1752} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#zte_k3565_z">Dobrica Pavlinušić's random unstructured stuff (ZTE K3565-Z)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ZTE K3565-=Z} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#zte_mf626">Dobrica Pavlinušić's random unstructured stuff (ZTE MF626)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ZTE MF626} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#huawei_at_commands">Dobrica Pavlinušić's random unstructured stuff (Huawei AT commands)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Huawei AT commands} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br/><br/><h1 id="information">Information</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://code.google.com/p/asterisk-chan-dongle/">http://code.google.com/p/asterisk-chan-dongle/</a></li>
<li><a target="_blank" title="(external link)" href="http://www.makhutov.org/svn/chan_datacard/trunk/">http://www.makhutov.org/svn/chan_datacard/trunk/</a></li>
<li><a target="_blank" title="(external link)" href="http://wiki.e1550.mobi/">http://wiki.e1550.mobi/</a></li>
</ul>
<h1 id="mass_storage_switch">Mass-storage switch</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.draisberghof.de/usb_modeswitch/">http://www.draisberghof.de/usb_modeswitch/</a></p>
<pre>
$ sudo apt-get install usb-modeswitch
</pre>
<br/><p>
Plugin modem again and you should get a bunch of serial ports:</p>
<pre>
[ 5445.108101] usb 2-2: new high speed USB device number 3 using ehci_hcd
[ 5445.242467] usb 2-2: New USB device found, idVendor=12d1, idProduct=1446
[ 5445.242477] usb 2-2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 5445.242484] usb 2-2: Product: HUAWEI Mobile
[ 5445.242489] usb 2-2: Manufacturer: HUAWEI Technology
[ 5445.244981] scsi7 : usb-storage 2-2:1.0
[ 5445.245515] scsi8 : usb-storage 2-2:1.1
[ 5446.017603] usb 2-2: USB disconnect, device number 3
[ 5450.036132] usb 2-2: new high speed USB device number 4 using ehci_hcd
[ 5450.170725] usb 2-2: New USB device found, idVendor=12d1, idProduct=1436
[ 5450.170736] usb 2-2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
[ 5450.170743] usb 2-2: Product: HUAWEI Mobile
[ 5450.170748] usb 2-2: Manufacturer: HUAWEI Technology
[ 5450.175800] scsi14 : usb-storage 2-2:1.5
[ 5450.176793] scsi15 : usb-storage 2-2:1.6
[ 5450.271164] usbcore: registered new interface driver usbserial
[ 5450.271176] USB Serial support registered for generic
[ 5450.271234] usbcore: registered new interface driver usbserial_generic
[ 5450.271236] usbserial: USB Serial Driver core
[ 5450.296230] cdc_ether 2-2:1.1: wwan0: register 'cdc_ether' at usb-0000:00:1d.7-2, Mobile Broadband Network Device, 02:50:f3:00:00:00
[ 5450.296411] usbcore: registered new interface driver cdc_ether
[ 5450.362679] USB Serial support registered for GSM modem (1-port)
[ 5450.362792] option 2-2:1.0: GSM modem (1-port) converter detected
[ 5450.362908] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 5450.362928] option 2-2:1.3: GSM modem (1-port) converter detected
[ 5450.362987] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB1
[ 5450.362997] option 2-2:1.4: GSM modem (1-port) converter detected
[ 5450.363051] usb 2-2: GSM modem (1-port) converter now attached to ttyUSB2
[ 5450.363073] usbcore: registered new interface driver option
[ 5450.363074] option: v0.7.2:USB Driver for GSM modems
</pre>
<br/><h1 id="devices">Devices</h1>
<h2 id="huawei_e171">Huawei E171</h2>
<pre>
Found modem : E171
Model : Huawei E171
IMEI : 354807044078459
Serial NR. : 4BA5TA10B2706637
Firmware : 11.126.85.01.143
Compile date / time : Jun 21 2010 20:27:27
Dashboard version : UTPS11.300.05.15.143_MAC11.301.09.01.143
Chipset : Qualcomm MSM6290
Voice feature : disabled
SIM Lock status : unlocked
Wrong codes entered : 0 (unlock attempts left : 10)
</pre>
<br/><h2 id="check_if_voice_is_enabled">Check if voice is enabled</h2>
<pre>
ati
Manufacturer: huawei
Model: E171
Revision: 11.126.85.01.143
IMEI: 354807044078459
+GCAP: +CGSM,+DS,+ES

AT^CVOICE?
^CVOICE:0,8000,16,20
</pre>
<br/><h2 id="huawei_e1752">Huawei E1752</h2>
<p>
<a target="_blank" title="(external link)" href="http://3g-modem.wetpaint.com/page/Huawei+E1750%2C+E1750C%2C+E1752%2C+E1752C">http://3g-modem.wetpaint.com/page/Huawei+E1750%2C+E1750C%2C+E1752%2C+E1752C</a></p>
<pre>
Found modem : E1752
Model : Huawei E1752
IMEI : 353145034241600
Serial NR. : O47NAA19A1600110
Firmware : 11.126.13.00.00
Compile date / time : Jul 05 2010 10:16:42
Dashboard version : UTPS11.300.05.22.56_MAC11.300.08.19.56
Chipset : Qualcomm MSM6290
Voice feature : disabled
SIM Lock status : unlocked
Wrong codes entered : 0 (unlock attempts left : 10)
</pre>
<br/><h2 id="zte_k3565_z">ZTE K3565-Z</h2>
<p>
<a target="_blank" title="(external link)" href="http://3g-modem.wetpaint.com/page/ZTE+K3565-Z+(Vodafone">http://3g-modem.wetpaint.com/page/ZTE+K3565-Z+(Vodafone</a>)</p>
<pre>
Manufacturer: ZTE INCORPORATED
Model: K3565-Z
Revision: BD_P673A2V1.0.0B09
IMEI: 357867029244846
+GCAP: +CGSM,+DS,+ES

OK

AT^CVOICE=?
ERROR
</pre>
<br/><h2 id="zte_mf626">ZTE MF626</h2>
<pre>
Manufacturer: ZTE INCORPORATED
Model: MF626
Revision: BD_TMOP673M3V1.0.1B03
IMEI: 355364037442846
+GCAP: +CGSM,+DS,+ES

OK
AT^CVOICE=?
ERROR
</pre>
<br/><h1 id="huawei_at_commands">Huawei AT commands</h1>
<pre>
AT^CVOICE=0 Enable Voice
AT^CVOICE=1 Disable Voice
AT^CVOICE=? Check status
=========
AT^U2DIAG=0 – switch the device in modem mode only
AT^U2DIAG=1 – device in modem mode + CD-ROM
AT^U2DIAG=255 – modem mode + CD-ROM + Card Reader
AT^U2DIAG=256 – modem mode + Card Reader
</pre>
<br/><p>
<a target="_blank" title="(external link)" href="http://wiki.e1550.mobi/doku.php?id=usage">http://wiki.e1550.mobi/doku.php?id=usage</a></p>
<pre>
AT+CCWA=0,0,1 	disable call-waiting
AT+CFUN=1,1 	reboot modem
AT^CARDLOCK=”&lt;code&gt;” 	send unlock code
AT^SYSCFG=13,0,3FFFFFFF,0,3 	modem 2G only, automatic search any band, no roaming
AT^SYSCFG=2,0,3FFFFFFF,2,4 	Any
AT^SYSCFG=13,1,3FFFFFFF,2,4 	2G only
AT^SYSCFG=14,2,3FFFFFFF,2,4 	3G only
AT^SYSCFG=2,1,3FFFFFFF,2,4 	2G preferred
AT^SYSCFG=2,2,3FFFFFFF,2,4 	3G preferred
AT^U2DIAG=0 	enable modem function only
ATI 	get relevant information from modem
ATZ 	reset modem configuration
AT+CIMI 	read IMSI
AT+CLCK=“SC”,0,”&lt;pin&gt;” 	disable PIN verification 
</pre>
<br/><p>
Voice connection</p>
<pre>
AT^CVOICE=?
^CVOICE:(0)

OK
AT^CVOICE?
^CVOICE:0,8000,16,20

ATD50463599999
OK

AT^DDSETEX=2
</pre>
</div>
</div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?asterisk_gsm</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2012-01-25T10:55:06Z</updated>
    <category xmlns="http://www.w3.org/2005/Atom" term="asterisk" label="asterisk"/>
    <category xmlns="http://www.w3.org/2005/Atom" term="gsm" label="gsm"/>
  </entry>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">Huawei E220</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?huawei_e220"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: hardware, howto</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#working_configuration">Dobrica Pavlinušić's random unstructured stuff (Working configuration)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Working configuration} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#etc_ppp_peers_huawei_e220">Dobrica Pavlinušić's random unstructured stuff (/etc/ppp/peers/huawei-e220)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] /etc/ppp/peers/huawei-=e220} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#etc_chatscripts_huawei_e220_chat">Dobrica Pavlinušić's random unstructured stuff (/etc/chatscripts/huawei-e220.chat)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] /etc/chatscripts/huawei-=e220.chat} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (Links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Links} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#turn_off_pin">Dobrica Pavlinušić's random unstructured stuff (Turn off pin)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Turn off pin} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#libusb_driver_program">Dobrica Pavlinušić's random unstructured stuff (libusb driver program)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] libusb driver program} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compilation">Dobrica Pavlinušić's random unstructured stuff (Compilation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Compilation} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#hal_problem">Dobrica Pavlinušić's random unstructured stuff (hal problem)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] hal problem} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#cd_image_update">Dobrica Pavlinušić's random unstructured stuff (CD image update)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] CD image update} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#dmesg">Dobrica Pavlinušić's random unstructured stuff (dmesg)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] dmesg} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#power">Dobrica Pavlinušić's random unstructured stuff (power)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] power} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] links} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#e171">Dobrica Pavlinušić's random unstructured stuff (E171)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] E171} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#e1752">Dobrica Pavlinušić's random unstructured stuff (E1752)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] E1752} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br/><br/><h1 id="working_configuration">Working configuration</h1>
<p>
(for me at least :-)</p>
<h2 id="etc_ppp_peers_huawei_e220">/etc/ppp/peers/huawei-e220</h2>
<pre>
dpavlin@llin:~$ cat /etc/ppp/peers/huawei-e220
# /etc/ppp/peers/huawei-e220 pppd script
# pppd call huawei-e220

debug
kdebug 3
nodetach
#persist

/dev/ttyUSB0
460800
idle 7200
noipdefault
defaultroute
usepeerdns

connect "/usr/sbin/chat -vf /etc/chatscripts/huawei-e220.chat"  

# avoid compression:
noccp
#nobsdcomp
novj
# t-mobile specific?
#ipcp-restart 8
#ipcp-max-configure 50
#ipcp-accept-local
#ipcp-accept-remote
#ipcp-max-failure 20

lcp-echo-failure 0
lcp-echo-interval 0

modem
crtscts

require-pap
refuse-chap

show-password
user YOUR_USERNAME@DOMAIN
password YOUR_PASSWORD

passive
</pre>
<br/><h2 id="etc_chatscripts_huawei_e220_chat">/etc/chatscripts/huawei-e220.chat</h2>
<pre>
dpavlin@llin:~$ cat /etc/chatscripts/huawei-e220.chat
TIMEOUT 3
ABORT BUSY 
ABORT 'NO CARRIER' 
ABORT VOICE 
ABORT 'NO DIALTONE' 
ABORT 'NO DIAL TONE' 
ABORT 'NO ANSWER' 
ABORT DELAYED
"" ATZ
OK ATQ0V1E1S0=0&amp;C1&amp;D2
OK AT+COPS?
OK AT+CGDCONT=1,"ip","carnet.vip.hr"
OK ATDT*99#
CONNECT ""
</pre>
<br/><h1 id="links">Links</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://wwwu.uni-klu.ac.at/agebhard/HuaweiE220/">http://wwwu.uni-klu.ac.at/agebhard/HuaweiE220/</a></li>
<li>another tutorial: <a target="_blank" title="(external link)" href="http://ske.sourceforge.net/html/projects/huawei/huawei_tre.html">http://ske.sourceforge.net/html/projects/huawei/huawei_tre.html</a></li>
<li>interesting compilation of configuration files and stat tool: <a target="_blank" title="(external link)" href="http://oozie.fm.interia.pl/pro/huawei-e220/">http://oozie.fm.interia.pl/pro/huawei-e220/</a></li>
<li>Ubuntu, GUI: <a target="_blank" title="(external link)" href="http://sistemac-portal.carnet.hr/node/335">http://sistemac-portal.carnet.hr/node/335</a></li>
<li>source: <a target="_blank" title="(external link)" href="http://www.kanoistika.sk/bobovsky/archiv/umts/">http://www.kanoistika.sk/bobovsky/archiv/umts/</a></li>
<li>ObWikipedia: <a target="_blank" title="(external link)" href="http://en.wikipedia.org/wiki/Huawei_E220">http://en.wikipedia.org/wiki/Huawei_E220</a></li>
</ul>
<h1 id="turn_off_pin">Turn off pin</h1>
<pre>
$ cu -l /dev/ttyUSB0
at+clck="sc",0,"PIN!"
OK
</pre>
<br/><h1 id="libusb_driver_program">libusb driver program</h1>
<h2 id="compilation">Compilation</h2>
<p>
Get source from <a target="_blank" title="(external link)" href="http://www.kanoistika.sk/bobovsky/archiv/umts/huaweiAktBbo.c">http://www.kanoistika.sk/bobovsky/archiv/umts/huaweiAktBbo.c</a></p>
<pre>
cc     huaweiAktBbo.c   -o huaweiAktBbo -lusb
</pre>
<br/><h1 id="hal_problem">hal problem</h1>
<p>
If you modem is restarting like mad, it's problem with hal.</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://wiki.archlinux.org/index.php/Huawei_E220">http://wiki.archlinux.org/index.php/Huawei_E220</a></li>
</ul>
<h1 id="cd_image_update">CD image update</h1>
<p>
Since device can emulate USB CDROM, I will try to update image on it to provide bios update image instead of useless (to me) Windows drivers.</p>
<h2 id="dmesg">dmesg</h2>
<pre>
dpavlin@t61p:~$ uname -a
Linux t61p 2.6.30-1-686-bigmem #1 SMP Mon Aug 3 17:32:39 UTC 2009 i686 GNU/Linux
dpavlin@t61p:~$ dmesg
[ 3405.568120] usb 4-1: new full speed USB device using uhci_hcd and address 2
[ 3405.726188] usb 4-1: New USB device found, idVendor=12d1, idProduct=1003
[ 3405.726196] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3405.726203] usb 4-1: Product: HUAWEI Mobile
[ 3405.726208] usb 4-1: Manufacturer: HUAWEI Technologies
[ 3405.726384] usb 4-1: configuration #1 chosen from 1 choice
[ 3405.792930] Initializing USB Mass Storage driver...
[ 3405.796244] usb-storage: probe of 4-1:1.0 failed with error -1
[ 3405.796289] usbcore: registered new interface driver usb-storage[ 3405.796296] USB Mass Storage support registered.
[ 3405.952077] usb 4-1: USB disconnect, address 2
[ 3407.432107] usb 4-1: new full speed USB device using uhci_hcd and address 3
[ 3407.590171] usb 4-1: New USB device found, idVendor=12d1, idProduct=1003
[ 3407.590180] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3407.590187] usb 4-1: Product: HUAWEI Mobile
[ 3407.590192] usb 4-1: Manufacturer: HUAWEI Technologies
[ 3407.590373] usb 4-1: configuration #1 chosen from 1 choice
[ 3407.603280] usb-storage: probe of 4-1:1.2 failed with error -1[ 3407.650695] usbcore: registered new interface driver usbserial
[ 3407.650725] USB Serial support registered for generic
[ 3407.650819] usbcore: registered new interface driver usbserial_generic
[ 3407.650824] usbserial: USB Serial Driver core
[ 3407.663176] USB Serial support registered for GSM modem (1-port)
[ 3407.663293] option 4-1:1.0: GSM modem (1-port) converter detected
[ 3407.663458] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 3407.663478] option 4-1:1.1: GSM modem (1-port) converter detected
[ 3407.663576] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 3407.663609] usbcore: registered new interface driver option
[ 3407.663614] option: v0.7.2:USB Driver for GSM modems
</pre>
<br/><h2 id="power">power</h2>
<pre>
root@t61p:~/t61p/usb_modeswitch/usb_modeswitch-1.0.2# lsusb
Bus 004 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

root@t61p:~/t61p/usb_modeswitch/usb_modeswitch-1.0.2# echo suspend &gt;  /sys/bus/usb/devices/4-1/power/level
root@t61p:~/t61p/usb_modeswitch/usb_modeswitch-1.0.2# dmesg
</pre>
<br/><h2 id="links">links</h2>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.draisberghof.de/usb_modeswitch/">http://www.draisberghof.de/usb_modeswitch/</a></li>
</ul>
<div class="nlw_phrase"><div class="fetchrss_box">
  <div class="fetchrss_titlebox">
    
  
  
 <div class="fetchrss_title">
   <a href="http://www.delicious.com/dpavlin/e220">Delicious/dpavlin/e220</a>
 </div>


  </div>
  
 <ul class="fetchrss_items">
  
  
    
  <li class="fetchrss_item">
    <a href="http://www.draisberghof.de/usb_modeswitch/">Draisberghof - Software - USB_ModeSwitch</a>
    
      <p class="fetchrss_description">
        USB_ModeSwitch is (surprise!) a mode switching tool for controlling "flip flop" (multiple device) USB gear.

Several new USB devices (especially high-speed wireless WAN stuff, there seems to be a chipset from Qualcomm offering that feature) have their MS Windows drivers onboard; when plugged in for the first time they act like a flash storage and start installing the driver from there. After that (and on every consecutive plugging) this driver switches the mode internally, the storage device vanishes (in most cases), and a new device (like an USB modem) shows up. The WWAN gear maker Option calls that feature "ZeroCD (TM)".
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://www.nerve.org.za/hwiso2bin/">hwiso2bin - Huawei E220 ISO CD-ROM Image to Binary Converter</a>
    
      <p class="fetchrss_description">
        This program converts an ISO CD-ROM image into a binary format suitable for injecting into a Huawei E220 Dashboard Updater executable, allowing one to load a custom ISO image onto the device.
      </p>
    
  </li>

  
 </ul>

</div>
















<!-- wiki: {fetchrss: http://feeds.delicious.com/v2/rss/dpavlin/e220?count==15 full}
--></div><br/><br/><h1 id="e171">E171</h1>
<pre>
Found modem         : E171
Model               : Huawei E171
IMEI                : 354807044078459
Serial NR.          : 4BA5TA10B2706637
Firmware            : 11.126.85.01.143
Compile date / time : Jun 21 2010 20:27:27
Dashboard version   : UTPS11.300.05.15.143_MAC11.301.09.01.143
Chipset             : Qualcomm MSM6290
Voice feature       : disabled
SIM Lock status     : unlocked
Wrong codes entered : 0 (unlock attempts left : 10)
</pre>
<br/><h1 id="e1752">E1752</h1>
<pre>
Found modem         : E1752
Model               : Huawei E1752
IMEI                : 353145034241600
Serial NR.          : O47NAA19A1600110
Firmware            : 11.126.13.00.00
Compile date / time : Jul 05 2010 10:16:42
Dashboard version   : UTPS11.300.05.22.56_MAC11.300.08.19.56
Chipset             : Qualcomm MSM6290
Voice feature       : disabled
SIM Lock status     : unlocked
Wrong codes entered : 0 (unlock attempts left : 10)
</pre>
<br/><pre>
AT^CVOICE=0 Enable Voice
AT^CVOICE=1 Disable Voice
AT^CVOICE=? Check status
=========
AT^U2DIAG=0 – switch the device in modem mode only
AT^U2DIAG=1 – device in modem mode + CD-ROM
AT^U2DIAG=255 – modem mode + CD-ROM + Card Reader
AT^U2DIAG=256 – modem mode + Card Reader
</pre>
</div>
</div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?huawei_e220</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2012-01-23T18:05:12Z</updated>
    <category xmlns="http://www.w3.org/2005/Atom" term="hardware" label="hardware"/>
    <category xmlns="http://www.w3.org/2005/Atom" term="howto" label="howto"/>
  </entry>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">PostgreSQL</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?postgresql"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: howto, PostgreSQL</div><hr/><div class="wiki">
<p>
SQL snippets for PostgreSQL</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#size_of_transaction_log">Dobrica Pavlinušić's random unstructured stuff (Size of transaction log)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Size of transaction log} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#size_of_tables_in_current_database">Dobrica Pavlinušić's random unstructured stuff (Size of tables in current database)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Size of tables in current database} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#number_of_rows_in_all_tables">Dobrica Pavlinušić's random unstructured stuff (Number of rows in all tables)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Number of rows in all tables} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#script_to_display_database_size">Dobrica Pavlinušić's random unstructured stuff (Script to display database size)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Script to display database size} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#all_databases">Dobrica Pavlinušić's random unstructured stuff (all databases)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] all databases} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#all_databases_grouped_by_user">Dobrica Pavlinušić's random unstructured stuff (all databases, grouped by user)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] all databases, grouped by user} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#active_locks">Dobrica Pavlinušić's random unstructured stuff (Active locks)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Active locks} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#graphics">Dobrica Pavlinušić's random unstructured stuff (Graphics)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Graphics} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#current_query_activity">Dobrica Pavlinušić's random unstructured stuff (Current query activity)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Current query activity} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#quickly_convert_database_table_to_sqlite">Dobrica Pavlinušić's random unstructured stuff (Quickly convert database table to SQLite)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Quickly convert database table to SQLite} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br/><br/><h1 id="size_of_transaction_log">Size of transaction log</h1>
<pre>
select sum((pg_stat_file('pg_xlog/' || file)).size)
from pg_ls_dir('pg_xlog') as file
where file ~ '^[0-9A-F]';
</pre>
<br/><h1 id="size_of_tables_in_current_database">Size of tables in current database</h1>
<pre>
select relname,pg_relation_size(oid) as size
from pg_class
where relkind = 'r' and relname not like 'pg_%' order by size desc;
</pre>
<br/><h1 id="number_of_rows_in_all_tables">Number of rows in all tables</h1>
<p>
<a target="_blank" title="(external link)" href="http://stackoverflow.com/questions/2596670/how-do-you-find-the-row-count-for-all-your-tables-in-postgres">http://stackoverflow.com/questions/2596670/how-do-you-find-the-row-count-for-all-your-tables-in-postgres</a></p>
<pre>
SELECT 
  nspname AS schemaname,relname,reltuples::int
FROM pg_class C
LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
WHERE 
  nspname NOT IN ('pg_catalog', 'information_schema') AND
  relkind='r' 
ORDER BY reltuples DESC;
</pre>
<br/><h1 id="script_to_display_database_size">Script to display database size</h1>
<p>
Script: <span class="nlw_phrase"><a href="http://saturn.ffzg.hr/rot13/index.cgi/pg_size?action=attachments_download;page_name=postgresql;id=20071005123933-0-17773">pg_size</a><!-- wiki: {file: pg_size} --></span></p>
<h2 id="all_databases">all databases</h2>
<pre>
$ pg_size
</pre>
<br/><h2 id="all_databases_grouped_by_user">all databases, grouped by user</h2>
<pre>
$ pg_size -u
</pre>
<br/><h1 id="active_locks">Active locks</h1>
<pre>
select * from pg_locks where pid not in (select procpid from pg_stat_activity);
</pre>
<br/><h1 id="graphics">Graphics</h1>
<p>
Taken from <a target="_blank" title="(external link)" href="http://lca2007.linux.org.au/att_data/Miniconfs(2f)PostgreSQL/attachments/advanced.pdf">http://lca2007.linux.org.au/att_data/Miniconfs(2f)PostgreSQL/attachments/advanced.pdf</a></p>
<pre>
# CREATE AGGREGATE array_accum (anyelement)
(
    sfunc = array_append,
    stype = anyarray,
    initcond = '{}'
);

# select d, count(*),
       array_to_string(array_accum('+'::text),'') as graph
       from hits group by 1 order by 1 asc;
     d       | count | graph
------------+-------+----------
 2007-01-13 |      8 | ++++++++
 2007-01-14 |      7 | +++++++
 2007-01-15 |      4 | ++++
(3 rows)
</pre>
<br/><h1 id="current_query_activity">Current query activity</h1>
<pre>
select datid,datname,procpid,current_query,query_start from pg_stat_activity where current_query not like '&lt;IDLE&gt;' ;
</pre>
<br/><p>
To actually <strong>see</strong> queries you also have to edit <tt>postgresql.conf</tt> to include:</p>
<pre>
stats_command_string = yes
</pre>
<br/><h1 id="quickly_convert_database_table_to_sqlite">Quickly convert database table to SQLite</h1>
<pre>
pg_dump --inserts --no-owner --no-privileges --table hr_edu_orgs a3c | grep -v ^SET | sqlite3 var/a3c.sqlite
</pre>
</div>
<hr/><div>Attachments: pg_size</div></div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?postgresql</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2011-11-27T21:03:07Z</updated>
    <category xmlns="http://www.w3.org/2005/Atom" term="howto" label="howto"/>
    <category xmlns="http://www.w3.org/2005/Atom" term="PostgreSQL" label="PostgreSQL"/>
  </entry>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">Kindle</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?kindle"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: Kindle</div><hr/><div class="wiki">
<span class="nlw_phrase"><a href="http://saturn.ffzg.hr/rot13/index.cgi/hack-B008-k3w.txt?action=attachments_download;page_name=kindle;id=20111109195144-0-31314">hack-B008-k3w.txt</a><!-- wiki: {file: hack-=B008-=k3w.txt} --></span><br/><br/><div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (Links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Links} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kindle_2_5_8_update_to_3_1">Dobrica Pavlinušić's random unstructured stuff (Kindle 2.5.8 update to 3.1)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Kindle 2.5.8 update to 3.1} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#client_kindle_dxg_d00801_2_5_8_555370010">Dobrica Pavlinušić's random unstructured stuff (client: Kindle DXG D00801 - 2.5.8 555370010)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] client: Kindle DXG D00801 -= 2.5.8 555370010} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#host_kindle_3g_wifi_d00901_3_1_558700031">Dobrica Pavlinušić's random unstructured stuff (Host: Kindle 3G+Wifi D00901 - 3.1 558700031)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Host: Kindle 3G+Wifi D00901 -= 3.1 558700031} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#api">Dobrica Pavlinušić's random unstructured stuff (API)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] API} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#source">Dobrica Pavlinušić's random unstructured stuff (Source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Source} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#amazon">Dobrica Pavlinušić's random unstructured stuff (Amazon)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Amazon} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#open_source">Dobrica Pavlinušić's random unstructured stuff (Open Source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Open Source} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#standalone_kindle_terminal">Dobrica Pavlinušić's random unstructured stuff (standalone kindle terminal)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] standalone kindle terminal} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#download_java2me">Dobrica Pavlinušić's random unstructured stuff (Download Java2ME)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Download Java2ME} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#web_server_mobi_mime_type">Dobrica Pavlinušić's random unstructured stuff (Web server mobi mime type)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Web server mobi mime type} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#wpa_supplicant">Dobrica Pavlinušić's random unstructured stuff (wpa_supplicant)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] wpa_supplicant} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#x_patch">Dobrica Pavlinušić's random unstructured stuff (X patch)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] X patch} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kindle_diagnostic_mode">Dobrica Pavlinušić's random unstructured stuff (Kindle diagnostic mode)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Kindle diagnostic mode} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#duokan">Dobrica Pavlinušić's random unstructured stuff (Duokan)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Duokan} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#qemu">Dobrica Pavlinušić's random unstructured stuff (QEmu)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] QEmu} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#rootfs_images">Dobrica Pavlinušić's random unstructured stuff (rootfs images)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] rootfs images} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#html_to_mobi">Dobrica Pavlinušić's random unstructured stuff (HTML to mobi)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] HTML to mobi} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br/><br/><h1 id="links">Links</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.mobileread.com/forums/showthread.php?t=88004">http://www.mobileread.com/forums/showthread.php?t=88004</a> - download jailbreak and usbnetwork</li>
</ul>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.cowlark.com/kindle/getting-started.html">http://www.cowlark.com/kindle/getting-started.html</a></li>
<li><a target="_blank" title="(external link)" href="http://trac.ak-team.com/browser/Configs/trunk/Kindle/Hacks">http://trac.ak-team.com/browser/Configs/trunk/Kindle/Hacks</a></li>
</ul>
<div class="nlw_phrase"><div class="fetchrss_box">
  <div class="fetchrss_titlebox">
    
  
  
 <div class="fetchrss_title">
   <a href="http://www.delicious.com/dpavlin/kindle">Delicious/dpavlin/kindle</a>
 </div>


  </div>
  
 <ul class="fetchrss_items">
  
  
    
  <li class="fetchrss_item">
    <a href="http://www.youtube.com/watch?v=IQ6xxveRJSw">Amazon Kindle Fire Tablet Teardown - EEVblog #219 - YouTube</a>
    
      <p class="fetchrss_description">
        What's inside Amazon's new Kindle Fire 7" Tablet?
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://code.google.com/p/kindle-annotations/">kindle-annotations - Inserts your Kindle PDF-annotations into the PDF - Google Project Hosting</a>
    
      <p class="fetchrss_description">
        The Amazon Kindle 3 devices have got the capability to add annotations to PDF files, but stores them in a separate binary file, making it unusable for a normal PDF reader. This project aims to write the annotations back into the PDF, to allow a normal PDF reader to show the annotations you made.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://www.mobileread.com/forums/showthread.php?p=1808175">One more terminal emulator for kindle. - MobileRead Forums</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://blogkindle.com/2011/10/kindle-4-disassembly-part-ii/">Kindle 4 Disassembly – Part II | Amazon Kindle 3 and Kindle DX Review and News With Fire and Special Touch...</a>
    
      <p class="fetchrss_description">
        When I opened up my new Kindle 4 a few days back I got the feeling that the device is not meant to be taken apart or be serviceable. Taking it apart further would have been destructive. So I waited for another copy of Kindle 4 to show up at my doorstep before proceeding further.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://www.griffin.net/2010/01/hacking-the-amazon-kindle-dx-part-2-qt-and-sudoku.html">Hacking the Amazon Kindle DX, Part 2: Qt and Sudoku - Not Nearly Enough Time</a>
    
      <p class="fetchrss_description">
        I've compiled the Qt software platform for the Kindle...  and I've written plugins for the e-ink display, the keyboard, and the fiveway.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://www.griffin.net/2010/01/hacking-the-amazon-kindle-dx-part-2-qt-and-sudoku.html">Hacking the Amazon Kindle DX, Part 2: Qt and Sudoku - Not Nearly Enough Time</a>
    
      <p class="fetchrss_description">
        I've compiled the Qt software platform for the Kindle...  and I've written plugins for the e-ink display, the keyboard, and the fiveway.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://igorsk.blogspot.com/2007/12/hacking-kindle-part-1-getting-console.html">Reversing Everything: Hacking the Kindle part 1: getting the console</a>
    
      <p class="fetchrss_description">
        From reading the sources published by Amazon, it was clear that Kindle has a console running at least during boot. And there was an unconnected port available from outside.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://igorsk.blogspot.com/2007/12/hacking-kindle-part-1-getting-console.html">Reversing Everything: Hacking the Kindle part 1: getting the console</a>
    
      <p class="fetchrss_description">
        From reading the sources published by Amazon, it was clear that Kindle has a console running at least during boot. And there was an unconnected port available from outside.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://www.griffin.net/2010/01/hacking-the-amazon-kindle-dx-part-1.html">Hacking the Amazon Kindle DX, Part 1: Bluetooth Shell - Not Nearly Enough Time</a>
    
      <p class="fetchrss_description">
        However, I didn't want holes in my kindle or wires hanging around. So, what about that nice little Bluetooth module I just finished playing with as a slave device for my Nokia phone? You know, SparkFun's Bluetooth Mate?  It converts any TTL-level RS232 serial interface into a Bluetooth connection.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://www.griffin.net/2010/01/hacking-the-amazon-kindle-dx-part-1.html">Hacking the Amazon Kindle DX, Part 1: Bluetooth Shell - Not Nearly Enough Time</a>
    
      <p class="fetchrss_description">
        However, I didn't want holes in my kindle or wires hanging around. So, what about that nice little Bluetooth module I just finished playing with as a slave device for my Nokia phone? You know, SparkFun's Bluetooth Mate?  It converts any TTL-level RS232 serial interface into a Bluetooth connection.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://allynstott.blogspot.com/2011/06/amazon-kindle-forensics.html">man allyn-blog: Amazon Kindle Forensics</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://allynstott.blogspot.com/2011/06/amazon-kindle-forensics.html">man allyn-blog: Amazon Kindle Forensics</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://www.eevblog.com/2010/09/03/eevblog-109-amazon-kindle-3-3ggsmwifi-6-teardown/">EEVblog #109 – Amazon Kindle 3 3G/GSM/WiFi 6″ TEARDOWN @ EEVblog – The Electronics Engineering Video Blog</a>
    
      <p class="fetchrss_description">
        Dave shows you how to take apart the new Amazon Kindle 3 3rd Generation 3G/GSM/WiFI Ebook reader, and examines and discusses the circuitry, assembly, and build quality.
And hackers can get excited about the accessible ARM JTAG port.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://www.eevblog.com/2010/09/03/eevblog-109-amazon-kindle-3-3ggsmwifi-6-teardown/">EEVblog #109 – Amazon Kindle 3 3G/GSM/WiFi 6″ TEARDOWN @ EEVblog – The Electronics Engineering Video Blog</a>
    
      <p class="fetchrss_description">
        Dave shows you how to take apart the new Amazon Kindle 3 3rd Generation 3G/GSM/WiFI Ebook reader, and examines and discusses the circuitry, assembly, and build quality.
And hackers can get excited about the accessible ARM JTAG port.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://www.asiteaboutnothing.net/g_kindle-tricks.html">Best Kindle DX Tips—Top Tricks for Kindle 3 and DXG—Top Ten Kindle K3 Tutorials</a>
    
  </li>

  
 </ul>

</div>
















<!-- wiki: {fetchrss: http://feeds.delicious.com/v2/rss/dpavlin/kindle?count==15 full}
--></div><br/><br/><h1 id="kindle_2_5_8_update_to_3_1">Kindle 2.5.8 update to 3.1</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://yifan.lu/tag/kindle/">http://yifan.lu/tag/kindle/</a></li>
<li><a target="_blank" title="(external link)" href="http://www.mobileread.com/forums/showthread.php?t=127969">http://www.mobileread.com/forums/showthread.php?t=127969</a></li>
</ul>
<pre>
# mount DXG

cp update_dxg-2.5.8-prepare_kindle.bin /mnt/usb/

# Update Your Kindle

dpavlin@t61p:~$ ls -al /mnt/usb/output/
total 694948
drwxr-xr-x 2 dpavlin dpavlin 4096 May 11 17:51 .
drwxr-xr-x 9 dpavlin dpavlin 4096 Jan 1 1970 ..
-rwxr-xr-x 1 dpavlin dpavlin 474 May 11 17:44 make-backup.log
-rwxr-xr-x 1 dpavlin dpavlin 297 May 11 16:56 make-image.log
-rwxr-xr-x 1 dpavlin dpavlin 419454976 May 11 17:51 rootfs.img
-rwxr-xr-x 1 dpavlin dpavlin 292155092 May 11 17:44 update_restore-os.bin

mkdir -p /mnt/backuppc/kindle-dxg
cp -rv /mnt/usb/output /mnt/backuppc/kindle-dxg/


# mount K3G

dpavlin@t61p:~/Downloads/kindle/kindle-updater-beta-3$ cp update_k3g-3.1-create_updater.bin /mnt/usb/

dpavlin@t61p:~$ cp /backup/kindle-dxg-output/rootfs.img /mnt/usb/
dpavlin@t61p:~$ touch /mnt/usb/NO_TTS

dpavlin@t61p:~$ sudo eject /dev/sdb

# Update Your Kindle

dpavlin@t61p:~$ mount /mnt/usb
dpavlin@t61p:~$ cp /mnt/usb/output/* /backup/kindle-k3g-output/
dpavlin@t61p:~$ sudo eject /dev/sdb


# mount DXG

dpavlin@t61p:~$ mount /mnt/usb

dpavlin@t61p:~$ cp /backup/kindle-k3g-output/update_dxg-update-os.bin /mnt/usb/
dpavlin@t61p:~$ cp /backup/kindle-k3g-output/tts-files.tar /mnt/usb/

dpavlin@t61p:~$ sudo eject /dev/sdb

# Update Your Kindle

</pre>
<br/><h2 id="client_kindle_dxg_d00801_2_5_8_555370010">client: Kindle DXG D00801 - 2.5.8 555370010</h2>
<pre>
[root@kindle root]# cat /proc/cpuinfo 
Processor       : ARMv6-compatible processor rev 4 (v6l)
BogoMIPS        : 1593.88
Features        : swp half thumb fastmult vfp edsp java 
CPU implementer : 0x41
CPU architecture: 6TEJ
CPU variant     : 0x0
CPU part        : 0xb36
CPU revision    : 4
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 16384
I assoc         : 4
I line length   : 32
I sets          : 128
D size          : 16384
D assoc         : 4
D line length   : 32
D sets          : 128

Hardware        : Mario Platform
Revision        : 31020
Serial          : "B009A1A010860A1B"

[root@kindle root]# cat /proc/partitions 
major minor  #blocks  name

   7     0    3510232 loop0
  31     0        128 mtdblock0
  31     1       3584 mtdblock1
  31     2         32 mtdblock2
  31     3        128 mtdblock3
  31     4       3584 mtdblock4
  31     5         64 mtdblock5
  31     6        128 mtdblock6
  31     7         24 mtdblock7
  31     8         64 mtdblock8
 179     0    3952640 mmcblk0
 179     1     409624 mmcblk0p1
 179     2      24576 mmcblk0p2
 179     3       8192 mmcblk0p3
 179     4    3510240 mmcblk0p4

[root@kindle root]# cat /proc/meminfo | head -1
MemTotal:       127128 kB

[root@kindle root]# cat /proc/cmdline 
console=ttymxc0,115200 mem=128M ro ip=none root=/dev/mmcblk0p1 lpj=2654208 panic=10 quiet

</pre>
<br/><h2 id="host_kindle_3g_wifi_d00901_3_1_558700031">Host: Kindle 3G+Wifi D00901 - 3.1 558700031</h2>
<pre>
[root@kindle root]# cat /proc/cpuinfo 
Processor       : ARMv6-compatible processor rev 3 (v6l)
BogoMIPS        : 511.18
Features        : swp half thumb fastmult vfp edsp java 
CPU implementer : 0x41
CPU architecture: 6TEJ
CPU variant     : 0x1
CPU part        : 0xb36
CPU revision    : 3
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 16384
I assoc         : 4
I line length   : 32
I sets          : 128
D size          : 16384
D assoc         : 4
D line length   : 32
D sets          : 128

Hardware        : Amazon MX35 Luigi Board
Revision        : 35020
Serial          : "B006A0A0117503RS"
BoardId         : "SP1B000000000000"

[root@kindle root]# cat /proc/meminfo | head -1
MemTotal:       256536 kB

[root@kindle root]# cat /proc/partitions 
major minor  #blocks  name

   7     0    3205336 loop0
 179     0    3907584 mmcblk0
 179     1     665628 mmcblk0p1
 179     2      24576 mmcblk0p2
 179     3       8192 mmcblk0p3
 179     4    3205344 mmcblk0p4

[root@kindle root]# cat /proc/cmdline 
console=ttymxc0,115200 mem=256M panic=10 root=/dev/mmcblk0p1 ro ip=none quiet lpj=2555904
</pre>
<br/><h1 id="api">API</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://kdk-javadocs.s3.amazonaws.com/index.html?overview-summary.html">http://kdk-javadocs.s3.amazonaws.com/index.html?overview-summary.html</a></li>
<li><a target="_blank" title="(external link)" href="http://download.oracle.com/javame/config/cdc/ref-impl/pbp1.1.2/jsr217/index.html">http://download.oracle.com/javame/config/cdc/ref-impl/pbp1.1.2/jsr217/index.html</a></li>
</ul>
<div class="nlw_phrase"><div class="fetchrss_box">
  <div class="fetchrss_titlebox">
    
  
  
    <a href="http://adq.livejournal.com/"><img src="http://l-userpic.livejournal.com/66890024/13980852" alt="Andrew de Quincey's livejournal" border="0" width="${image.width}" height="${image.height}"/></a>

  
 <div class="fetchrss_title">
   <a href="http://adq.livejournal.com/">Andrew de Quincey's livejournal</a>
 </div>


  </div>
  
 <ul class="fetchrss_items">
  
  
    
  <li class="fetchrss_item">
    <a href="http://adq.livejournal.com/115432.html">kindle devkey problems?</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://adq.livejournal.com/115128.html">Kindle 3.1 jailbreak</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://adq.livejournal.com/114498.html">Kindle firmware 3.1</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://adq.livejournal.com/113734.html">Merging developer keystores on the Kindle</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://adq.livejournal.com/112115.html">Huffington post article on kindle hacking</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://adq.livejournal.com/110625.html">jrename 0.2</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://adq.livejournal.com/110236.html">KIF 0.5</a>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://adq.livejournal.com/108011.html">KIF: an infocom text adventure interpreter for the kindle</a>
    
  </li>

  
 </ul>

</div>
















<!-- wiki: {fetchrss: http://adq.livejournal.com/data/rss?tag==kindle}
--></div><br/><br/><ul>
<li><a target="_blank" title="(external link)" href="http://code.google.com/p/adqmisc/">http://code.google.com/p/adqmisc/</a></li>
</ul>
<h1 id="source">Source</h1>
<h2 id="amazon">Amazon</h2>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.amazon.com/gp/help/customer/display.html?ie=UTF8&amp;nodeId=200203720">http://www.amazon.com/gp/help/customer/display.html?ie=UTF8&amp;nodeId=200203720</a></li>
</ul>
<h2 id="open_source">Open Source</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/apetresc/Kindle-Widget-Toolkit">https://github.com/apetresc/Kindle-Widget-Toolkit</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/proDOOMman/KindleNote">https://github.com/proDOOMman/KindleNote</a></li>
</ul>
<ul>
<li><a target="_blank" title="(external link)" href="http://code.google.com/p/kdk-emulator/">http://code.google.com/p/kdk-emulator/</a></li>
<li><a target="_blank" title="(external link)" href="http://www.mobileread.com/forums/showthread.php?t=103867">http://www.mobileread.com/forums/showthread.php?t=103867</a></li>
</ul>
<ul>
<li><a target="_blank" title="(external link)" href="http://code.google.com/p/kindleflow/">http://code.google.com/p/kindleflow/</a></li>
</ul>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.reddit.com/r/kindle/comments/dsrjm/readabilitymod_article_mode_update_for_kindle_3/">http://www.reddit.com/r/kindle/comments/dsrjm/readabilitymod_article_mode_update_for_kindle_3/</a></li>
</ul>
<h2 id="standalone_kindle_terminal">standalone kindle terminal</h2>
<ul>
<li><a target="_blank" title="(external link)" href="http://info.iet.unipi.it/~luigi/kindle/">http://info.iet.unipi.it/~luigi/kindle/</a></li>
<li><a target="_blank" title="(external link)" href="http://www.mobileread.com/forums/showthread.php?t=125860">http://www.mobileread.com/forums/showthread.php?t=125860</a></li>
</ul>
<h1 id="download_java2me">Download Java2ME</h1>
<p>
Last version available for Linux: <a target="_blank" title="(external link)" href="http://www.oracle.com/technetwork/java/download-135801.html">http://www.oracle.com/technetwork/java/download-135801.html</a></p>
<h1 id="web_server_mobi_mime_type">Web server mobi mime type</h1>
<pre>
AddType application/x-mobipocket-ebook .mobi
</pre>
<br/><h1 id="wpa_supplicant">wpa_supplicant</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.mobileread.com/forums/showthread.php?t=99681">http://www.mobileread.com/forums/showthread.php?t=99681</a></li>
</ul>
<pre>
id="$(wpa_cli add_network | sed -n '2p')"

wpa_cli \
set_network $id ssid "UIC-Wireless" \
set_network $id key_mgmt IEEE8021X \
set_network $id eap TTLS \
set_network $id identity "netid-here" \
set_network $id anonymous_identity "anonymous" \
set_network $id password "password-here" \
set_network $id ca_cert "/mnt/us/certs/Thawte_Premium_Server_CA.pem" \
set_network $id phase2 "auth=PAP" \
enable_network $id \
quit
</pre>
<br/><h1 id="x_patch">X patch</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://code.google.com/p/savory/source/browse/trunk/x11-on-kindle/xorg-1.6.patch">http://code.google.com/p/savory/source/browse/trunk/x11-on-kindle/xorg-1.6.patch</a></li>
</ul>
<h1 id="kindle_diagnostic_mode">Kindle diagnostic mode</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.mobileread.com/forums/showthread.php?t=122362">http://www.mobileread.com/forums/showthread.php?t=122362</a></li>
</ul>
<p>
touch /mnt/us/ENABLE_DIAGS</p>
<h1 id="duokan">Duokan</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.mobileread.com/forums/showthread.php?t=105316">http://www.mobileread.com/forums/showthread.php?t=105316</a></li>
</ul>
<h1 id="qemu">QEmu</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://people.debian.org/~aurel32/qemu/armel/">http://people.debian.org/~aurel32/qemu/armel/</a></li>
</ul>
<pre>
wget http://people.debian.org/~aurel32/qemu/armel/debian_lenny_armel_standard.qcow2 \
http://people.debian.org/~aurel32/qemu/armel/initrd.img-2.6.26-2-versatile \
http://people.debian.org/~aurel32/qemu/armel/vmlinuz-2.6.26-2-versatile \

qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.26-2-vert=/dev/sda1" -m 256
</pre>
<br/><p>
Convert image to ext3 image and it will also work on Kindle using loopback mount</p>
<h2 id="rootfs_images">rootfs images</h2>
<pre>
qemu-img convert -f raw -O qcow2 /backup/kindle-dxg-output/rootfs.img dxg.qcow2

sudo mount /backup/kindle-dxg-output/rootfs.img rootfs/ -o loop,ro
</pre>
<br/><h1 id="html_to_mobi">HTML to mobi</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://dev.mobileread.com/trac/mobiperl/wiki">https://dev.mobileread.com/trac/mobiperl/wiki</a></li>
</ul>
<pre>
#!/bin/sh

dir=/home/dpavlin/Downloads/pdf/aosabook.org/www.aosabook.org/en/
list=/tmp/list
echo index.html &gt; $list
grep '&lt;td&gt;&lt;a href="' $dir/index.html | cut -d\" -f2 | grep -v \# &gt;&gt; $list
ls $dir/*.html | sed "s!$dir/!!" &gt; /tmp/list.all

sort /tmp/list /tmp/list.s
sort /tmp/list.all /tmp/list.all.s
diff /tmp/list.s /tmp/list.all.s | grep '^&gt; ' | cut -d" " -f2 &gt;&gt; $list

tool_dir=`pwd`
cd $dir
$tool_dir/html2mobi \
        --mobifile /tmp/aosa.mobi \
        --title "The Architecture of Open Source Applications" \
        --author "Amy Brown and Greg Wilson (eds.)" \
        --coverimage $dir/../images/cover.jpg \
        --removejavascript \
        --imagerescale 0 \
        --gentoc \
        `cat $list`
</pre>
</div>
<hr/><div>Attachments: hack-B008-k3w.txt</div></div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?kindle</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2011-11-12T14:08:15Z</updated>
    <category xmlns="http://www.w3.org/2005/Atom" term="Kindle" label="Kindle"/>
  </entry>
  <entry xmlns="http://www.w3.org/2005/Atom">
    <title xmlns="http://www.w3.org/2005/Atom">SuperMicro</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?supermicro"/>
    <content xmlns="http://www.w3.org/2005/Atom" type="html">&lt;div&gt;Creator: Dobrica Pavlinušić&lt;/div&gt;&lt;hr/&gt;&lt;div class="wiki"&gt;
&lt;h1 id="ikvm"&gt;iKVM&lt;/h1&gt;
&lt;p&gt;
Java remote console client &lt;a target="_blank" title="(external link)" href="ftp://ftp.supermicro.com/utility/IPMIView/Linux/"&gt;ftp://ftp.supermicro.com/utility/IPMIView/Linux/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
&lt;a target="_blank" title="(external link)" href="ftp://ftp.supermicro.com/utility/IPMIView/Jar/IPMIView20-Class_v2.8.0_Build110802.zip"&gt;ftp://ftp.supermicro.com/utility/IPMIView/Jar/IPMIView20-Class_v2.8.0_Build110802.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
Real installation is &lt;strong&gt;endless pain&lt;/strong&gt; and won't work (for me).&lt;/p&gt;
&lt;pre&gt;
dpavlin@klin:/opt$ wget ftp://ftp.supermicro.com/utility/IPMIView/Jar/IPMIView2-Class_v2.8.0_Build110802.zip

dpavlin@klin:/opt$ unzip IPMIView20-Class_v2.8.0_Build110802.zip -d IPMIView

dpavlin@klin:/opt$ cd IPMIView/

dpavlin@klin:/opt/IPMIView$ chmod 755 IPMIView20.sh
&lt;/pre&gt;
&lt;br /&gt;&lt;p&gt;
According to &lt;a target="_blank" title="(external link)" href="http://www.mcgill.org.za/stuff/archives/340"&gt;http://www.mcgill.org.za/stuff/archives/340&lt;/a&gt; you should be able to run KVM stand alone:&lt;/p&gt;
&lt;pre&gt;
java -cp .:::::$PWD/iKVM.jar:$PWD/IPMIView20.jar:$PWD/TrapView.jar:::::: \
	-Djava.library.path=. \
	-D tw.com.aten.ikvm.KVMMain \
	$IP $USERNAME $PASSWORD null 5900 623 2 0

java -Djava.library.path=. -jar iKVM.jar \
  $IP $USERNAME $PASSWORD null 5900 623 2 0
&lt;/pre&gt;
&lt;br /&gt;&lt;h1 id="infiniband"&gt;Infiniband&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a target="_blank" title="(external link)" href="http://inqbus-hosting.de/support/dokumentation/docs/debian-infiniband-howto"&gt;http://inqbus-hosting.de/support/dokumentation/docs/debian-infiniband-howto&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
dpavlin@porn:~$ dmesg | grep ib
[    0.000000] Fast TSC calibration using PIT
[    0.000002] Calibrating delay loop (skipped), value calculated using timer frequency.. 6185.92 BogoMIPS (lpj=12371840)
[    0.764371] vgaarb: bridge control possible 0000:06:03.0
[    1.261922] PM: Hibernation image not present or could not be loaded.
[    1.311730] libata version 3.00 loaded.
[    1.948194] Refined TSC clocksource calibration: 3092.973 MHz.
[   17.345807] ib_mthca: Mellanox InfiniBand HCA driver v1.0 (April 4, 2008)
[   17.345810] ib_mthca: Initializing 0000:04:00.0
[   17.345827] ib_mthca 0000:04:00.0: PCI INT A -&amp;gt; GSI 16 (level, low) -&amp;gt; IRQ 16
[   17.345841] ib_mthca 0000:04:00.0: setting latency timer to 64
[   18.547370] ib_mthca 0000:04:00.0: HCA FW version 4.7.600 is old (4.8.200 is current).
[   18.547373] ib_mthca 0000:04:00.0: If you have problems, try updating your HCA FW.
[   18.547538] ib_mthca 0000:04:00.0: irq 51 for MSI/MSI-X
[   18.547542] ib_mthca 0000:04:00.0: irq 52 for MSI/MSI-X
[   18.547546] ib_mthca 0000:04:00.0: irq 53 for MSI/MSI-X
dpavlin@porn:~$ cat /sys/class/infiniband/mthca0/ports/1/state
4: ACTIVE
dpavlin@porn:~$ cat /sys/class/infiniband/mthca0/ports/1/rate
20 Gb/sec (4X DDR)
dpavlin@porn:~$ cat /sys/class/infiniband/mthca0/ports/1/phys_state
5: LinkUp
dpavlin@porn:~$ cat /sys/class/infiniband/mthca0/ports/2/phys_state
2: Polling
&lt;/pre&gt;
&lt;br /&gt;&lt;h1 id="zfs"&gt;ZFS&lt;/h1&gt;
&lt;p&gt;
disks seem to move from boot to boot so we need to specify disks for pool using persistant IDs:&lt;/p&gt;
&lt;pre&gt;
zpool create -f test raidz3 `ls /dev/disk/by-id/ata-Hitachi_HDS723030ALA640_MK03* | grep -v part`
&lt;/pre&gt;
&lt;br /&gt;&lt;h1 id="drive_leds"&gt;Drive LEDs&lt;/h1&gt;
&lt;p&gt;
&lt;a target="_blank" title="(external link)" href="http://groups.google.com/a/zfsonlinux.org/group/zfs-discuss/browse_thread/thread/2a822bb27a1cdce5"&gt;http://groups.google.com/a/zfsonlinux.org/group/zfs-discuss/browse_thread/thread/2a822bb27a1cdce5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
hdparm &lt;del&gt;I, specifically, will give you the serial number and &lt;br /&gt;
lsscsi/lsblk would probably be helpful here with topology. Lighting a &lt;br /&gt;
bay LED without relying on guessing which drive you're doing i/o is &lt;br /&gt;
doable, but more dependent on your specific adapter's tools available. &lt;br /&gt;
&amp;nbsp;See also: smp_utils&lt;/del&gt; &lt;a target="_blank" title="(external link)" href="http://sg.danny.cz/sg/smp_utils.html"&gt;http://sg.danny.cz/sg/smp_utils.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;
Setting the fault or identify leds can be done with the sg3_utils &lt;br /&gt;
package and a carefully crafted SES command. Alternately, if you load &lt;br /&gt;
the SES kernel module you can set them via the fault and locate sysfs &lt;br /&gt;
entries. &lt;br /&gt;
ls /sys/devices/pci0000:00/0000:00:0f.0/0000:07:00.0/host6/port-6:0/expander-6 :0/port-6:0:17/end_device-6:0:17/target6:0:16/6:0:16:0/enclosure/6:0:16:0/S LOT\ 000 &lt;br /&gt;
active device fault locate power status type uevent&lt;/p&gt;
&lt;/div&gt;
</content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?supermicro</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2011-09-28T21:38:45Z</updated>
  </entry>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">smartctl</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?smartctl"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div class="wiki">
<pre>
cat /proc/partitions | awk '{ if ( $3 &gt;= 2930266584 ) print $4 }' | xargs -i sudo smartctl -a /dev/{} &gt; smart.txt

</pre>
</div>
</div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?smartctl</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2011-09-14T20:15:08Z</updated>
  </entry>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">Toshiba AC100</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?toshiba_ac100"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: Android</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#rooting">Dobrica Pavlinušić's random unstructured stuff (Rooting)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Rooting} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#nvflash">Dobrica Pavlinušić's random unstructured stuff (nvflash)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] nvflash} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fastboot_stock_bin">Dobrica Pavlinušić's random unstructured stuff (fastboot.stock.bin)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] fastboot.stock.bin} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#backup">Dobrica Pavlinušić's random unstructured stuff (backup)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] backup} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#linux">Dobrica Pavlinušić's random unstructured stuff (Linux)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Linux} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] links} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#phh_2_6_32_kernel_with_working_suspend_and_audio">Dobrica Pavlinušić's random unstructured stuff (phh 2.6.32 kernel with working suspend and audio)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] phh 2.6.32 kernel with working suspend and audio} --></span></li>
</ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br/><br/><pre>
$ cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 0 (v7l)
processor       : 0
BogoMIPS        : 1998.84

Features        : swp half thumb fastmult vfp edsp vfpv3 vfpv3d16 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x1
CPU part        : 0xc09
CPU revision    : 0

Hardware        : NVIDIA Harmony Development System
Revision        : 0000
Serial          : 0000000000000000

$ cat /proc/meminfo
MemTotal:         383348 kB
MemFree:          106528 kB
Buffers:           30116 kB
Cached:           123316 kB
SwapCached:            0 kB
Active:           164792 kB
Inactive:          85020 kB
Active(anon):      96692 kB
Inactive(anon):        0 kB
Active(file):      68100 kB
Inactive(file):    85020 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         96412 kB
Mapped:            44536 kB
Shmem:               312 kB
Slab:               8940 kB
SReclaimable:       4848 kB
SUnreclaim:         4092 kB
KernelStack:        2528 kB
PageTables:         8324 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      191672 kB
Committed_AS:    6569284 kB
VmallocTotal:     614400 kB
VmallocUsed:       30656 kB
VmallocChunk:     520068 kB
</pre>
<br/><h1 id="rooting">Rooting</h1>
<h2 id="nvflash">nvflash</h2>
<ul>
<li><a target="_blank" title="(external link)" href="http://tegradeveloper.nvidia.com/tegra-android-development-pack">http://tegradeveloper.nvidia.com/tegra-android-development-pack</a></li>
</ul>
<p>
In theory. In practice driver package from</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://developer.download.nvidia.com/assets/mobile/files/tegra-linux-12.alpha.1.0.tar.gz">http://developer.download.nvidia.com/assets/mobile/files/tegra-linux-12.alpha.1.0.tar.gz</a></li>
</ul>
<p>
is everything you need. It's from <a target="_blank" title="(external link)" href="http://developer.nvidia.com/content/linux-tegra-release-12-alpha-1-released">http://developer.nvidia.com/content/linux-tegra-release-12-alpha-1-released</a></p>
<h2 id="fastboot_stock_bin">fastboot.stock.bin</h2>
<pre>
t61p:/home/dpavlin/Downloads/ldk/bootloader/alt# wget https://github.com/muromec/putusb/raw/master/bin/fastboot.stock.bin
--2011-09-12 20:40:17--  https://github.com/muromec/putusb/raw/master/bin/fastboot.stock.bin
Resolving github.com (github.com)... 207.97.227.239
Connecting to github.com (github.com)|207.97.227.239|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.github.com/muromec/putusb/master/bin/fastboot.stock.bin [following]
--2011-09-12 20:40:19--  https://raw.github.com/muromec/putusb/master/bin/fastboot.stock.bin
Resolving raw.github.com (raw.github.com)... 207.97.227.243
Connecting to raw.github.com (raw.github.com)|207.97.227.243|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 936016 (914K) [application/octet-stream]
Saving to: `fastboot.stock.bin'

100%[=====================================================&gt;] 936,016      645K/s   in 1.4s    

2011-09-12 20:40:22 (645 KB/s) - `fastboot.stock.bin' saved [936016/936016]

t61p:/home/dpavlin/Downloads/ldk/bootloader/alt# md5sum fastboot.stock.bin 
9197365fb42c5801b4124e75ea00512c  fastboot.stock.bin
</pre>
<br/><h2 id="backup">backup</h2>
<p>
Following instructions at <a target="_blank" title="(external link)" href="http://gitorious.org/ac100/pages/Installation">http://gitorious.org/ac100/pages/Installation</a></p>
<pre>
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash --bl fastboot.stock.bin --go
Nvflash started
rcm version 0X20001
System Information:
   chip name: t20
   chip id: 0x20 major: 1 minor: 2
   chip sku: 0x8
   chip uid: 0x1700618943a00317
   macrovision: disabled
   hdcp: enabled
   sbk burned: false
   dk burned: false
   boot device: emmc
   operating mode: 3
   device config strap: 0
   device config fuse: 0
   sdram config strap: 0

downloading bootloader -- load address: 0x108000 entry point: 0x108000
sending file: fastboot.stock.bin
| 936016/936016 bytes sent
fastboot.stock.bin sent successfully
waiting for bootloader to initialize
bootloader downloaded successfully


t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --getpartitiontable partitiontable.txt
Nvflash started
[resume mode]
Succesfully updated partition table information to partitiontable.txt


t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 2 part-2.img
Nvflash started
[resume mode]
receiving file: part-2.img, expected size: 3145728 bytes
/ 3145728/3145728 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 3 part-3.img
Nvflash started
[resume mode]
receiving file: part-3.img, expected size: 524288 bytes
/ 524288/524288 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# /nvflash -r --read 4 part-4.img
bash: /nvflash: No such file or directory
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 4 part-4.img
Nvflash started
[resume mode]
receiving file: part-4.img, expected size: 2097152 bytes
/ 2097152/2097152 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 5 part-5.img
Nvflash started
[resume mode]
receiving file: part-5.img, expected size: 5242880 bytes
/ 5242880/5242880 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 6 part-6.img
Nvflash started
[resume mode]
receiving file: part-6.img, expected size: 8388608 bytes
/ 8388608/8388608 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 7 part-7.img
Nvflash started
[resume mode]
receiving file: part-7.img, expected size: 1048576 bytes
/ 1048576/1048576 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 8 part-8.img
Nvflash started
[resume mode]
receiving file: part-8.img, expected size: 314572800 bytes
/ 314572800/314572800 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 9 part-9.img
Nvflash started
[resume mode]
receiving file: part-9.img, expected size: 419430400 bytes
/ 419430400/419430400 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 10 part-10.img
Nvflash started
[resume mode]
receiving file: part-10.img, expected size: 2097152 bytes
/ 2097152/2097152 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 11 part-11.img
Nvflash started
[resume mode]
receiving file: part-11.img, expected size: 524288 bytes
/ 524288/524288 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 12 part-12.img
Nvflash started
[resume mode]
receiving file: part-12.img, expected size: 1294991360 bytes
/ 1294991360/1294991360 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 13 part-13.img
Nvflash started
[resume mode]
receiving file: part-13.img, expected size: 524288 bytes
/ 524288/524288 bytes received
file received successfully
t61p:/home/dpavlin/Downloads/ldk/bootloader# ./nvflash -r --read 14 part-14.img
Nvflash started
[resume mode]
receiving file: part-14.img, expected size: 5891424256 bytes
/ 5891424256/5891424256 bytes received
file received successfully


</pre>
<br/><h1 id="linux">Linux</h1>
<h2 id="links">links</h2>
<div class="nlw_phrase"><div class="fetchrss_box">
  <div class="fetchrss_titlebox">
    
  
  
 <div class="fetchrss_title">
   <a href="http://www.delicious.com/dpavlin/ac100">Delicious/dpavlin/ac100</a>
 </div>


  </div>
  
 <ul class="fetchrss_items">
  
  
    
  <li class="fetchrss_item">
    <a href="https://wiki.ubuntu.com/ARM/TEGRA/AC100">ARM/TEGRA/AC100 - Ubuntu Wiki</a>
    
      <p class="fetchrss_description">
        The effort the bring hardware support has always been fragmented. We are thankful for phh who provided a solution based on (now) older L4T releases, ogra who made Ubuntu work without proprietary daemon, marvin24 who has put effort in porting Chrome OS to the AC100, and the many others who were involved.
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://cdimage.ubuntu.com/ubuntu-server/non-ports/daily-preinstalled/current/">Ubuntu-Server 11.10 (Oneiric Ocelot) Daily Build</a>
    
      <p class="fetchrss_description">
        Toshiba AC100 / Dynabook AZ preinstalled server filesystem archive
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://people.debian.org/~jak/ac100/README">people.debian.org/~jak/ac100/README</a>
    
      <p class="fetchrss_description">
        This repository provides packages for the Toshiba AC100
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://salaliitto.com/~gildean/ac100/wiki/phh/">AC100 Portal</a>
    
      <p class="fetchrss_description">
        This guide and the regarding version is now more or less outdated. It can still provide a stable system with most of the features working (like suspend, backlight, sound etc.). 
      </p>
    
  </li>

  
    
  <li class="fetchrss_item">
    <a href="http://tegradeveloper.nvidia.com/tegra-android-development-pack">Tegra Android Development Pack | NVIDIA Developer Zone</a>
    
      <p class="fetchrss_description">
        Flash Tegra Ventana DevKit with the selected Android OS (Windows and Linux only)
      </p>
    
  </li>

  
 </ul>

</div>
















<!-- wiki: {fetchrss: http://feeds.delicious.com/v2/rss/dpavlin/ac100?count==15 full}
--></div><br/><br/><h2 id="phh_2_6_32_kernel_with_working_suspend_and_audio">phh 2.6.32 kernel with working suspend and audio</h2>
<ul>
<li><a target="_blank" title="(external link)" href="http://salaliitto.com/~gildean/ac100/wiki/phh/">http://salaliitto.com/~gildean/ac100/wiki/phh/</a></li>
</ul>
<pre>
t61p:/home/dpavlin/ac100/linux4tegra_10.9.3# LD_LIBRARY_PATH=./nvflash/ ./nvflash/nvflash --bl ./prebuilt/fastboot.stock.bin --read 6 tegra_partition_6.bin --go
Nvflash started
rcm version 0X20001
System Information:
   chip name: t20
   chip id: 0x20 major: 1 minor: 2
   chip sku: 0x8
   chip uid: 0x1700618943a00317
   macrovision: disabled
   hdcp: enabled
   sbk burned: false
   dk burned: false
   boot device: emmc
   operating mode: 3
   device config strap: 0
   device config fuse: 0
   sdram config strap: 0

downloading bootloader -- load address: 0x108000 entry point: 0x108000
sending file: ./prebuilt/fastboot.stock.bin
| 936016/936016 bytes sent
./prebuilt/fastboot.stock.bin sent successfully
waiting for bootloader to initialize
bootloader downloaded successfully
receiving file: tegra_partition_6.bin, expected size: 8388608 bytes
/ 8388608/8388608 bytes received
file received successfully



t61p:/home/dpavlin/ac100/linux4tegra_10.9.3# LD_LIBRARY_PATH=./nvflash/ ./nvflash/nvflash --wait --bl ./prebuilt/fastboot.stock.bin --download 6 ../32.boot.menu.v1.img --go
Nvflash started
rcm version 0X20001
System Information:
   chip name: t20
   chip id: 0x20 major: 1 minor: 2
   chip sku: 0x8
   chip uid: 0x1700618943a00317
   macrovision: disabled
   hdcp: enabled
   sbk burned: false
   dk burned: false
   boot device: emmc
   operating mode: 3
   device config strap: 0
   device config fuse: 0
   sdram config strap: 0

downloading bootloader -- load address: 0x108000 entry point: 0x108000
sending file: ./prebuilt/fastboot.stock.bin
| 936016/936016 bytes sent
./prebuilt/fastboot.stock.bin sent successfully
waiting for bootloader to initialize
bootloader downloaded successfully
sending file: ../32.boot.menu.v1.img
/ 8388608/8388608 bytes sent
../32.boot.menu.v1.img sent successfully

</pre>
</div>
</div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?toshiba_ac100</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2011-09-12T21:22:31Z</updated>
    <category xmlns="http://www.w3.org/2005/Atom" term="Android" label="Android"/>
  </entry>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">OrientDB</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?orientdb"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div class="wiki">
<pre>
dpavlin@t61p:/srv/orientdb-1.0rc4/bin$ ./console.sh 
OrientDB console v.1.0rc4 (build @BUILD@) www.orientechnologies.com
Type 'help' to display all the commands supported.

&gt; create database local:../databases/demo admin admin local
Creating database [local:../databases/demo] using the storage type [local]...
Database created successfully.

Current database is: local:../databases/demo


&gt; quit

You have new mail in /var/mail/dpavlin
dpavlin@t61p:/srv/orientdb-1.0rc4/bin$ ./server.sh 
</pre>
</div>
</div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?orientdb</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2011-08-08T13:51:29Z</updated>
  </entry>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">ZFS</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?zfs"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#zfs">Dobrica Pavlinušić's random unstructured stuff (ZFS)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ZFS} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#mysql">Dobrica Pavlinušić's random unstructured stuff (MySQL)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] MySQL} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#cache_only_metadata_for_innodb">Dobrica Pavlinušić's random unstructured stuff (cache only metadata for Innodb)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] cache only metadata for Innodb} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#match_recordsize_to_block_size">Dobrica Pavlinušić's random unstructured stuff (match recordsize to block size)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] match recordsize to block size} --></span></li>
</ul></ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br/><br/><h1 id="zfs">ZFS</h1>
<h2 id="mysql">MySQL</h2>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.mysqlconf.com/mysql2009/public/schedule/detail/7121">http://www.mysqlconf.com/mysql2009/public/schedule/detail/7121</a></li>
<li><a target="_blank" title="(external link)" href="http://assets.en.oreilly.com/1/event/21/Optimizing%20MySQL%20Performance%20with%20ZFS%20Presentation.pdf">http://assets.en.oreilly.com/1/event/21/Optimizing%20MySQL%20Performance%20with%20ZFS%20Presentation.pdf</a></li>
<li><a target="_blank" title="(external link)" href="http://www.youtube.com/watch?v=a31NhwzlAxs">http://www.youtube.com/watch?v=a31NhwzlAxs</a></li>
</ul>
<h3 id="cache_only_metadata_for_innodb">cache only metadata for Innodb</h3>
<pre>
zfs set primarycache=metadata tank/db
</pre>
<br/><h3 id="match_recordsize_to_block_size">match recordsize to block size</h3>
<p>
before creating database</p>
<pre>
zfs set recordsize=16k tank/db
</pre>
</div>
</div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?zfs</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2011-08-07T21:18:36Z</updated>
  </entry>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">osmocom</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="http://saturn.ffzg.hr/rot13/index.cgi?osmocom"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#voice_info">Dobrica Pavlinušić's random unstructured stuff (voice info)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] voice info} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#a5_1">Dobrica Pavlinušić's random unstructured stuff (A5/1)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] A5/1} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#neo">Dobrica Pavlinušić's random unstructured stuff (Neo)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Neo} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="http://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#bts">Dobrica Pavlinušić's random unstructured stuff (BTS)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] BTS} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br/><br/><h1 id="voice_info">voice info</h1>
<pre>
17:42 &lt; dpavlin&gt; stupid question about by first experiment with osmocom-bb 
http://blog.rot13.org/2011/01/osmocom-bb_-_free_software_finally_comes_to_gsm.html - are hex 
                 numbers I see scroll by voice data by any chance or controll stream?
17:42 &lt; steve|m&gt; dpavlin: that's the voice_ind
17:43 &lt; steve|m&gt; http://bb.osmocom.org/trac/changeset/a4e34316c403a49ca57fd907e55a16b721629e35/src
17:43 &lt; steve|m&gt; so maybe revert this commit in your local branch if you don't need that 
                 (transferring voice data to the host)
17:45 &lt; dpavlin&gt; Great. With something like pipe I could go a long way :-)
17:46 &lt; dpavlin&gt; Can I inject it over serial port? For something like text2speech?
17:46 &lt; steve|m&gt; tnt has code for that, but he hasn't committed it yet
17:46 &lt; steve|m&gt; jolly even has written an interface to LCR
17:49 &lt; dpavlin&gt; I would love to help test it, if such help is needed.
</pre>
<br/><ul>
<li><a target="_blank" title="(external link)" href="http://bb.osmocom.org/trac/changeset/999254a3a6641ea112b48c1eca65599fb9989185">http://bb.osmocom.org/trac/changeset/999254a3a6641ea112b48c1eca65599fb9989185</a></li>
<li>GSM 06.10 encoder/decoder <a target="_blank" title="(external link)" href="http://www.quut.com/gsm/">http://www.quut.com/gsm/</a></li>
</ul>
<pre>
19:21 &lt; dpavlin&gt; tnt: do you have any pointers to information about calypso voice format I can read?
19:23 &lt; dw&gt; the code? :)
19:26 &lt; dpavlin&gt; I tried reading code under src/target/firmware/calypso but I'm probably looking in wrong place, 
                 because I'm not closer to understanding voice.raw format than I was few days ago.
19:30 &lt; steve|m&gt; dpavlin: looked at 
http://bb.osmocom.org/trac/browser/src/target_dsp/calypso/dsp_sniff.S?rev=d1cb8ea9b784c7acbafbb2fdcedbdf4655c2f6f5 ?
19:31 &lt; tnt&gt; steve|m: that's not for voice.raw
19:31 &lt; tnt&gt; There is just no written reference anywhere of the buffer format.
19:31 &lt; steve|m&gt; ah, sorry, confused that..
19:44 &lt; tnt&gt; dpavlin: from memory, it's all the class 1 bits, then some bits always at 0 (4 bits IIRC), then all the 
             class 2 bits of a GSM 610 frame.  They're packet in 16 bits works, MSB first
</pre>
<br/><pre>
1297284215 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; I have a question about burst_ind branch of bb
@1297284218 &lt;mkf00!~mkf00@85-127-108-141.dynamic.xdsl-line.inode.at&gt; hallo
@1297284279 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; In l1ctl_burst_ind I understand that the two stealing bits are in bits 58 &amp; 59 (without the training)
@1297284286 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; is this correct?
@1297284318 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; this is because I think that both must be the same bit 0 for data/voice and 1 for FACCH
@1297284347 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; tnt?
@1297284376 &lt;tnt!~tnt@mojito.smartwebsearching.be&gt; no it's not correct
@1297284389 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; uhm!
@1297284391 &lt;tnt!~tnt@mojito.smartwebsearching.be&gt; the two stealing bits are at the end, the DSP puts them there.
@1297284439 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; both are together?
@1297284440 &lt;tnt!~tnt@mojito.smartwebsearching.be&gt; On the air you are correct they're in the middle but during the packing, the DSP puts the 2*57 bits and then the two stealing bits at the end.
@1297284538 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; from my code:
@1297284542 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; &lt;0001&gt; layer3.c:418 LEO BURST: 58 93 b5 f6 95 37 9c 83 f7 f1 95 f2 62 fd 10
@1297284605 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; we don't need the first 4 bits
@1297284618 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; but the next one is 1
@1297284633 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; only one stealing bit filled?
@1297284671 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; only one stealing bit with 1?
@1297284908 &lt;tnt!~tnt@mojito.smartwebsearching.be&gt; Fatuo: yup. so ?
@1297284945 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; I thought that both must be the same....
@1297284983 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; Can be FACCH and voice/data in the same frame? I don think so...
@1297285078 &lt;tnt!~tnt@mojito.smartwebsearching.be&gt; well, you think wrong :)
@1297285108 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; oh
@1297285111 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; tanks :)
@1297285111 &lt;tnt!~tnt@mojito.smartwebsearching.be&gt; you need to re-read GSM 05.03. TCH has diagonal block interleaving.
@1297285148 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; ok, i will do right now, thanks a lot
@1297285149 &lt;tnt!~tnt@mojito.smartwebsearching.be&gt; so the 4 * 114 bits are split into 8 half bursts and sent over 8 bursts, half mixing with the next / prev frame.
@1297285247 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; I see
@1297285275 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; I'll go re-reading that doc
@1297285277 &lt;Fatuo!~n0p@79.198.19.95.dynamic.jazztel.es&gt; bye
</pre>
<br/><ul>
<li><a target="_blank" title="(external link)" href="http://git.osmocom.org/gitweb?p=gapk.git;a=summary">http://git.osmocom.org/gitweb?p=gapk.git;a=summary</a></li>
</ul>
<h1 id="a5_1">A5/1</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://reflextor.com/trac/a51/browser/tinkering">http://reflextor.com/trac/a51/browser/tinkering</a></li>
<li><a target="_blank" title="(external link)" href="http://opensource.srlabs.de/projects/a51-decrypt/files">http://opensource.srlabs.de/projects/a51-decrypt/files</a></li>
</ul>
<pre>
git clone git://git.srlabs.de/kraken
</pre>
<br/><ul>
<li><a target="_blank" title="(external link)" href="http://srlabs.de/research/decrypting_gsm/">http://srlabs.de/research/decrypting_gsm/</a></li>
<li><a target="_blank" title="(external link)" href="http://srlabs.de/uncategorized/airprobe-how-to/">http://srlabs.de/uncategorized/airprobe-how-to/</a></li>
</ul>
<pre>
13:35 &lt; tomash2&gt; [Thu 13:56] Hi
13:35 &lt; tomash2&gt; [Thu 13:58] When receiving bursts via sylvain/burst_ind, is the frame number for uplink bursts correct?
13:35 &lt; tomash2&gt; [Thu 13:59] Assembled packets appear to be on differrent channel that uplink ones
13:35 &lt; tomash2&gt; [Thu 14:01] It works to do fn=fn-15 for unencrypted packets, but not for encrypted ones
13:35 &lt; tomash2&gt; [Thu 14:01] So how to get correct fn for uplink bursts?
13:35 &lt; tnt&gt; [Thu 14:06] the fn is correct, your code is wrong obviously ...
13:35 &lt; tomash2&gt; [Thu 14:08] Strange, downlink decrypting works, and I do uplink the same way...
13:35 &lt; tomash2&gt; [Thu 14:08] Thakns, I'll go to search for the bug...
13:35 &lt; tnt&gt; [Thu 14:10] ... then that's your problem.
13:35 &lt; tnt&gt; [Thu 14:10] uplink is _not_ same as downlink
13:35 &lt; tnt&gt; [Thu 14:10] the first 116 bits of A5 is for DL, then you need the 116 after that for UL.
13:35 &lt; tomash2&gt; [17:11] tnt: And these second 116 bits are computed from Kc and fn the same way as in uplink?
13:35 &lt; tnt&gt; [17:13] yup
13:35 &lt; tnt&gt; [17:13] 114 not 116 btw
13:35 &lt; tnt&gt; [17:13] stealing bits aren't ciphered
13:35 &lt; tnt&gt; [17:13] (afair)
13:35 &lt; tomash2&gt; [17:14] tnt: That's what I'm doing. But it is not working for uplink
13:35 &lt; tnt&gt; [17:15] well you're doing it wrong :)
13:35 &lt; tomash2&gt; [17:16] tnt: maybe :-)
13:35 &lt; tnt&gt; [17:16] your a5 keystream genreator should generate 228 bits of outpout per frame, the first 114 for DL the next 114 for UL.
13:35 &lt; tomash2&gt; [17:17] tnt: huh
13:35 &lt; tnt&gt; [17:17] That's what I told you above:
13:35 &lt; tnt&gt; [17:17] 14:10 &lt; tnt&gt; the first 116 bits of A5 is for DL, then you need the 116 after that for UL.
13:35 &lt; tomash2&gt; [17:17] so uplink bits are _not_ computed from fn of the uplink burst?
13:35 &lt; tnt&gt; [17:18] ... of course they are
13:35 &lt; xorAxAx&gt; [17:18] frame count!
13:35 &lt; tnt&gt; [17:19] xorAxAx: frame count is just another representation of fn ... (how to feed them in A5). If the DL decryption works, then that part is obviously correct.
13:35 &lt; xorAxAx&gt; [17:19] yeah
13:35 &lt; tnt&gt; [17:20] tomash2: for SDCCH the UL and DL are in different frame, so you would only use one of the pair of 114 bits ... but for TCH you'd use both.
13:35 &lt; tnt&gt; [17:21] but it doesn't matter ... UL is always the second and you _have_ to compute the first 114 bits of DL even if you won't use them.
13:35 &lt; tomash2&gt; [17:22] tnt: I'm talking about SDCCH all the time, I didn't try TCH yet...
13:35 &lt; tnt&gt; [17:22] and as I said : It doesn't matter ...
13:35 &lt;Bassam&gt; Hi.
13:35 &lt;Bassam&gt; What is the relation between the frame numbers in both the UL and DL stages in the SDCCH as you said that both of them are in different frames, is there any equation or something relating the frame numbers
</pre>
<br/><h1 id="neo">Neo</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.steve-m.de/projects/osmocom/0001-for-testing-add-TX-support-for-gta0x-devices.patch">http://www.steve-m.de/projects/osmocom/0001-for-testing-add-TX-support-for-gta0x-devices.patch</a></li>
</ul>
<h1 id="bts">BTS</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.246tnt.com/gsm/rx_filter.html">http://www.246tnt.com/gsm/rx_filter.html</a></li>
</ul>
</div>
</div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">http://saturn.ffzg.hr/rot13/index.cgi?osmocom</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Bassam Tarek</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2011-07-04T20:13:47Z</updated>
  </entry>
</feed>

