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

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: OpenWRT]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?openwrt</link>
<description></description>
<pubDate>Fri, 26 Dec 2014 15:50:46 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[OpenWRT]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?openwrt</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div class="wiki">
<br /><p>
My notes about compilation and usage</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="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#checkout_source">Dobrica Pavlinušić's random unstructured stuff (Checkout source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Checkout source} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#tp_link_tl_wr741nd">Dobrica Pavlinušić's random unstructured stuff (TP-Link TL-WR741ND)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] TP-=Link TL-=WR741ND} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#tp_link_tl_wdr4300">Dobrica Pavlinušić's random unstructured stuff (TP-Link TL-WDR4300)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] TP-=Link TL-=WDR4300} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#siemens_gigaset_sx763">Dobrica Pavlinušić's random unstructured stuff (SIEMENS Gigaset SX763)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] SIEMENS Gigaset SX763} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="checkout_source">Checkout source</h1>
<pre>
dpavlin@blue:/bluez/openwrt$ git clone git://git.openwrt.org/openwrt.git
</pre>
<br /><hr class="rule-medium" />
<p>
Random notes about router unbricking</p>
<h1 id="tp_link_tl_wr741nd">TP-Link TL-WR741ND</h1>
<span class="nlw_phrase"><img alt="tr741nd-serial-port.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/tr741nd-serial-port.jpg?action=attachments_download;page_name=openwrt;id=20141226155009-0-11502" /><!-- wiki: {image: tr741nd-=serial-=port.jpg} --></span><br /><br /><p>
<a target="_blank" title="(external link)" href="http://wiki.openwrt.org/toh/tp-link/tl-wr741nd">http://wiki.openwrt.org/toh/tp-link/tl-wr741nd</a></p>
<p>
for 4.24 download v4 image!</p>
<p>
<a target="_blank" title="(external link)" href="https://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin">https://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin</a></p>
<p>
tpl on &quot;Autobooting in 1 seconds&quot; prompt to get console.</p>
<pre>
ar7240&gt; setenv ipaddr 10.0.0.100
ar7240&gt; setenv serverip 10.0.0.1

ar7240&gt; tftpboot 0x80000000 openwrt-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin
dup 1 speed 1000
Using eth1 device
FTP from server 10.0.0.1; our IP address is 10.0.0.100
Filename 'openwrt-ar71xx-generic-tl-wr741nd-v2-squashfs-sysupgrade.bin'.
Load address: 0x80000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################
done
Bytes transferred = 3080196 (2f0004 hex)

ar7240&gt; erase 0x9f020000 +2f0004

First 0x2 last 0x31 sector size 0x10000
  49
Erased 48 sectors

ar7240&gt; cp.b 0x80000000 0x9f020000 0x2f0004
Copy to Flash... write addr: 9f020000
done

ar7240&gt; bootm 0x9f020000
</pre>
<br /><h1 id="tp_link_tl_wdr4300">TP-Link TL-WDR4300</h1>
<p>
<a target="_blank" title="(external link)" href="http://wiki.openwrt.org/toh/tp-link/tl-wdr4300">http://wiki.openwrt.org/toh/tp-link/tl-wdr4300</a></p>
<pre>
U-Boot 1.1.4 (Jun 17 2013 - 12:31:57)

U-boot DB120


DRAM:  128 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
Using default environment

PCIe Reset OK!!!!!!
In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
No valid address in Flash. Using fixed address
 wasp  reset mask:c03300 
WASP  ----&gt; S17 PHY *
: cfg1 0x7 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
athrs17_reg_init: complete
eth0 up
eth0
Autobooting in 1 seconds
db12x&gt; 
db12x&gt; 
db12x&gt; setenv ipaddr 10.0.0.100
db12x&gt; setenv serverip 10.0.0.1
db12x&gt; 
db12x&gt; tftpboot
dup 1 speed 1000
*** Warning: no boot file name; using '6F01A8C0.img'
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename '6F01A8C0.img'.
Load address: 0x81000000

root@blue:/srv/tftp# ln -s openwrt-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin 6400000A.img

db12x&gt; tftpboot
*** Warning: no boot file name; using '6400000A.img'
Using eth0 device
TFTP from server 10.0.0.1; our IP address is 10.0.0.100
Filename '6400000A.img'.
Load address: 0x81000000
Loading: #################################################T ################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####
done
Bytes transferred = 3014660 (2e0004 hex)

db12x&gt; erase 0x9f020000 +2e0004

First 0x2 last 0x30 sector size 0x10000
  48
Erased 47 sectors

db12x&gt; cp.b 0x81000000 0x9f020000 0x2e0004
Copy to Flash... write addr: 9f020000
done

</pre>
<br /><h1 id="siemens_gigaset_sx763">SIEMENS Gigaset SX763</h1>
<p>
<a target="_blank" title="(external link)" href="http://wiki.openwrt.org/toh/gigaset/sx76x">http://wiki.openwrt.org/toh/gigaset/sx76x</a><br />
<a target="_blank" title="(external link)" href="http://linux.jezgra.net/2013/02/sx763-hack/">http://linux.jezgra.net/2013/02/sx763-hack/</a></p>
<p>
serial port enabled</p>
<pre>
ROM VER: 1.0.3
CFG 04
Read EEPROMX
 X
UART
</pre>
<br /><p>
Now, openwrt wiki points to missing u-boot.asc but there is one on <a target="_blank" title="(external link)" href="https://code.google.com/p/sx76x-openwrt-danube/source/browse/trunk/u-boot.asc">https://code.google.com/p/sx76x-openwrt-danube/source/browse/trunk/u-boot.asc</a></p>
<pre>
dpavlin@blue:/bluez/openwrt/sx76x$ wget https://code.google.com/p/sx76x-openwrt-danube/source/browse/trunk/u-boot.asc

dpavlin@blue:/bluez/openwrt/sx76x$ cat u-boot.asc &gt; /dev/ttyUSB0

</pre>
</div>
<hr/><div>Attachments: tr741nd-serial-port.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category></category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?openwrt</guid>
<pubDate>Fri, 26 Dec 2014 15:50:46 -0000</pubDate>
</item>
</channel>
</rss>