<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>openwrt &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/openwrt/</link>
	<description>Feed of posts on WordPress.com tagged "openwrt"</description>
	<pubDate>Mon, 30 Nov 2009 15:10:26 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Konfiguracja OpenWrt ]]></title>
<link>http://pepisboczek.wordpress.com/2009/11/27/konfiguracja-openwrt/</link>
<pubDate>Fri, 27 Nov 2009 00:35:55 +0000</pubDate>
<dc:creator>pepisboczek</dc:creator>
<guid>http://pepisboczek.wordpress.com/2009/11/27/konfiguracja-openwrt/</guid>
<description><![CDATA[Na dzień dobry zajmiemy sie ustawianiem internetu. Router podłączony jest do modemu adsl który pracu]]></description>
<content:encoded><![CDATA[Na dzień dobry zajmiemy sie ustawianiem internetu. Router podłączony jest do modemu adsl który pracu]]></content:encoded>
</item>
<item>
<title><![CDATA[Instalasi OpenWrt pada EnGenius(Senao) EOC-2610]]></title>
<link>http://tohenk.wordpress.com/2009/11/19/instalasi-openwrt-pada-engeniussenao-eoc-2610/</link>
<pubDate>Thu, 19 Nov 2009 13:32:39 +0000</pubDate>
<dc:creator>tohenk</dc:creator>
<guid>http://tohenk.wordpress.com/2009/11/19/instalasi-openwrt-pada-engeniussenao-eoc-2610/</guid>
<description><![CDATA[OpenWrt merupakan firmware open source untuk embedded device yang menggunakan metode packaging agar ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://openwrt.org/">OpenWrt</a> merupakan firmware open source untuk embedded device yang menggunakan metode packaging agar device dapat dikustomisasi sesuai keinginan.</p>
<p>Metode instalasi OpenWrt ini hampir sama dengan <a href="http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)Fon(2f)Fonera.html">FONERA</a>. Instalasi OpenWrt ini cukup aman, mengingat fimware asli dapat dikembalikan lagi jika sudah tidak ingin menggunakan OpenWrt lagi. Untuk detailnya lihat <a href="http://tohenk.wordpress.com/2009/10/12/mengembalikan-firmware-engenius-senao-eoc-1650eoc-2610eoc-3500eap-3660eoc-5610-ke-firmware-pabrikan/">di sini</a>.</p>
<p>Firmware OpenWrt untuk EOC-2610 yang berbasis pada Atheros WiSOC yaitu:</p>
<ul>
<li><a href="http://kamikaze.openwrt.org/8.09.1/atheros/openwrt-atheros-vmlinux.lzma">Vmlinux</a></li>
<li><a href="http://kamikaze.openwrt.org/8.09.1/atheros/openwrt-atheros-root.squashfs">Rootfs</a></li>
</ul>
<p>Langkah-langkah:</p>
<ol>
<li>Atur ip address komputer pada subnet <strong>192.168.1.0/24</strong>, misal <strong>192.168.1.20</strong> netmask <strong>255.255.255.0</strong>.</li>
<li>Persiapkan TFTP Server, untuk Windows dapat menggunakan <a href="http://tftpd32.jounin.net/">TFTPD32</a>. Jika anda menggunakan Ubuntu install paket atftpd dengan: <em>sudo apt-get install atftpd</em>.</li>
<li>Taruh kedua file firmware OpenWrt pada rootdir TFTP server. Untuk windows, rootdir dapat diatur setelah menjalankan TFTPD32. Untuk Ubuntu, rootdir atftpd server ada di <em>/var/lib/tftpboot</em> (membutuhkan akses root).</li>
<li>Download utiliti command line untuk RedBoot. Untuk windows download di <a href="http://numpang.bkdjombang.com/files/windows/engenius/RedBoot.zip">http://numpang.bkdjombang.com/files/windows/engenius/RedBoot.zip</a>, dan untuk Ubuntu download di <a href="http://numpang.bkdjombang.com/files/ubuntu/RedBoot.tar.gz">http://numpang.bkdjombang.com/files/ubuntu/RedBoot.tar.gz</a>. Ekstrak arsip tersebut ke suatu folder. Untuk Ubuntu, anda perlu juga menginstall putty dengan: <em>sudo apt-get install putty</em>.</li>
<li>Matikan device, kemudian jalankan utility <em>redboot.cmd</em>/<em>redboot.sh</em> dari arsip pada langkah 4. Kemudian nyalakan kembali device, tunggu hingga jendela putty menampilkan prompt <em>RedBoot&#62;</em>. Jika putty tidak menampilkan prompt tersebut, anda perlu mengulang-ulang langkah ini.</li>
<li>Ketik perintah-perintah berikut (yang berhuruf tebal):
<pre>RedBoot&#62; <strong>ip_address -l 192.168.1.1/24 -h 192.168.1.20</strong>
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.20
RedBoot&#62; <strong>load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma</strong>
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x80100fff, assumed entry at 0x80041000
RedBoot&#62; fis init -f
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa8030000-0xa87e0000: ...........................................................................................................................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot&#62; <strong>fis create256 -r 0x80041000 -e 0x80041000 vmlinux.bin.l7</strong>
... Erase from 0xa8030000-0xa80f0000: ............
... Program from 0x80041000-0x80101000 at 0xa8030000: ............
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot&#62; <strong>fis free</strong>
  0xA80F0000 .. 0xA87E0000</pre>
</li>
<li>Perintah <em>fis free</em> di atas digunakan untuk mengkalkulasi ukuran rootfs pada flash, mengingat ukuran kernel/vmlinux dapat berbeda-beda terlebih lagi jika anda meng-kompilasi dan meng-konfigurasi sendiri fimware OpenWrt. Catat alamat awal dan akhir kemudian kalkulasi ukuran rootfs menggunakan calculator. Pada contoh di atas ukuran rootfs =<strong> 0xA87E0000 – 0xA80F0000 = 0&#215;6F0000</strong> (parameter<strong> -l</strong>). Catat juga alamat awal untuk flashing rootfs = <strong>0xA80F0000</strong> (parameter <strong>-f</strong>). Kemudian lanjutkan dengan perintah-perintah berikut (<strong>INGAT, SESUAIKAN PERINTAH-PERINTAH INI SESUAI DENGAN KALKULASI DI ATAS</strong>):
<pre>RedBoot&#62; <strong>load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs</strong>
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x801e0fff, assumed entry at 0x80041000
RedBoot&#62; <strong>fis create256 -f <span style="text-decoration:underline;">0xa80f0000</span> -l <span style="text-decoration:underline;">0x6f0000</span> -e 0 rootfs</strong>
... Erase from 0xa80f0000-0xa87e0000: ...............................................................................................................
... Program from 0x80041000-0x801e1000 at 0xa80f0000: ..........................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot&#62; <strong>reset</strong></pre>
</li>
<li>Device kemudian reboot, coba ping ke ip 192.168.1.1, dan jika sudah tersambung ke ip tersebut, gunakan <em>telnet</em> untuk mengakses shell dan berikan perintah <em>passwd</em> untuk mengganti password device.</li>
<li>Langkah selanjutnya anda tinggal mengkonfigurasi device. Secara default Kamikaze 8.09 sudah menyertakan antarmuka web <a href="http://luci.freifunk-halle.net/">LuCI</a>. Cukup buka browser ke alamat http://192.168.1.1/. Jika anda familiar dengan shell linux, anda bisa menggunakan SSH untuk mengkonfigurasi OpenWrt.</li>
<li>Dokumentasi konfigurasi OpenWrt lebih lanjut dapat dilihat di <a href="http://wiki.openwrt.org/doc/configuring">http://wiki.openwrt.org/doc/configuring</a>.</li>
</ol>
<p>Sebagai informasi tambahan, saat ini masih ada beberapa kekurangan OpenWrt pada EOC-2610 yaitu:</p>
<ul>
<li>Perintah reboot tidak berfungsi (berfungsi ketika hanya lan saja yang aktif, ketika pertama kali sesudah instalasi, setelah wireless aktif perintah tersebut tidak berfungsi – client mode).</li>
<li>Tx Power tidak sama dengan firmware asli dari EnGenius (maksimal 19dBm, power offset tidak tersedia).</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Wireless Distributed System (WDS)]]></title>
<link>http://ipass.wordpress.com/2009/10/10/wireless-distributed-system-wds/</link>
<pubDate>Sat, 10 Oct 2009 19:02:20 +0000</pubDate>
<dc:creator>ipass</dc:creator>
<guid>http://ipass.wordpress.com/2009/10/10/wireless-distributed-system-wds/</guid>
<description><![CDATA[Wireless Distributed System (WDS) คือระบบที่เชื่อมต่อด้วย Access Point หลายตัวภายใต้ Protocol 802.11]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img src="http://ipass.files.wordpress.com/2009/10/zrclip_001n2d440ddf.png" style="width:98px;display:inline;float:left;height:83px;" height="83">Wireless Distributed System (WDS) คือระบบที่เชื่อมต่อด้วย Access Point หลายตัวภายใต้ Protocol 802.11 ให้สามารถแลกเปลี่ยนข้อมูลระหว่างกันได้ แทนการใช้ Network Backbone ที่ใช้สายแบบที่เป็นตามปรกติทั่วไป ซึ่งแตกต่างจากวิธีอื่น คือใช้วิธีพินิจ MAC Address ของ Package ที่ส่งผ่าน</p>
<p> <!--more-->
<p>การเชื่อมต่อระหว่าง Access Point อ้างผ่าน MAC Address และแต่ละ Access Point ต้องมี Channel, Encryption Method เดียวกัน โดยการทำงานอาจพูดได้ว่าเป็น Repeater &#38; Bridge แต่ก็มีข้อเสียคือ Throughput จะลดลงไปครึ่งหนึ่ง</p>
<p>ระหว่าง OpenWrt &#38; DD-Wrt ไม่สามารถใช้ WDS ร่วมกันได้</p>
<p class="zoundry_raven_tags">  <!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com -->  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://www.technorati.com/tag/dd-wrt" class="ztag" rel="tag">dd-wrt</a>, <a href="http://www.technorati.com/tag/openwrt" class="ztag" rel="tag">openwrt</a>, <a href="http://www.technorati.com/tag/wds" class="ztag" rel="tag">wds</a>, <a href="http://www.technorati.com/tag/wireless" class="ztag" rel="tag">wireless</a></span>  <br /> <span class="ztags"><span class="ztagspace">Del.icio.us</span> : <a href="http://del.icio.us/tag/dd-wrt" class="ztag" rel="tag">dd-wrt</a>, <a href="http://del.icio.us/tag/openwrt" class="ztag" rel="tag">openwrt</a>, <a href="http://del.icio.us/tag/wds" class="ztag" rel="tag">wds</a>, <a href="http://del.icio.us/tag/wireless" class="ztag" rel="tag">wireless</a></span> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Time Synchronization บน OpenWRT]]></title>
<link>http://ipass.wordpress.com/2009/10/01/time-synchronization-%e0%b8%9a%e0%b8%99-openwrt/</link>
<pubDate>Thu, 01 Oct 2009 16:19:17 +0000</pubDate>
<dc:creator>ipass</dc:creator>
<guid>http://ipass.wordpress.com/2009/10/01/time-synchronization-%e0%b8%9a%e0%b8%99-openwrt/</guid>
<description><![CDATA[ไว้ set เวลาใน Wireless Router OpenWRT platform /etc/TZ ไว้ set time zone opkg install ntpdate หรือ ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img src="http://ipass.files.wordpress.com/2009/10/zrclip_002p7f9e48fc.png" style="width:88px;display:inline;float:left;height:31px;" height="31">ไว้ set เวลาใน Wireless Router OpenWRT platform</p>
<ul>
<li>/etc/TZ ไว้ set time zone</li>
<li>opkg install ntpdate หรือ ntpclient</li>
<li>ลองดูกับ server : time.navy.mi.th</li>
</ul>
<p><a href="http://martybugs.net/wireless/openwrt/timesync.cgi">http://martybugs.net/wireless/openwrt/timesync.cgi</a></p>
<p class="zoundry_raven_tags">  <!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com -->  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://www.technorati.com/tag/openwrt" class="ztag" rel="tag">openwrt</a>, <a href="http://www.technorati.com/tag/time+synchronization" class="ztag" rel="tag">time synchronization</a></span>  <br /> <span class="ztags"><span class="ztagspace">Del.icio.us</span> : <a href="http://del.icio.us/tag/openwrt" class="ztag" rel="tag">openwrt</a>, <a href="http://del.icio.us/tag/time%20synchronization" class="ztag" rel="tag">time synchronization</a></span> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[มาใหม่ .. make kernel_config ใน OpenWrt]]></title>
<link>http://ipass.wordpress.com/2009/10/01/%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%ab%e0%b8%a1%e0%b9%88-make-kernel_config-%e0%b9%83%e0%b8%99-openwrt/</link>
<pubDate>Thu, 01 Oct 2009 08:24:09 +0000</pubDate>
<dc:creator>ipass</dc:creator>
<guid>http://ipass.wordpress.com/2009/10/01/%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%ab%e0%b8%a1%e0%b9%88-make-kernel_config-%e0%b9%83%e0%b8%99-openwrt/</guid>
<description><![CDATA[ตากที่ trunk 17802 ได้อ้างไว้ว่าพึ่งเพิ่มเติมมาได้ไม่กี่เดือนคือ make kernel_menuconfig ควรลองดูเพรา]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img src="http://ipass.files.wordpress.com/2009/10/zrclip_001n72cee1aa.png" style="width:134px;display:inline;float:left;height:150px;" height="150">ตากที่ trunk 17802 ได้อ้างไว้ว่าพึ่งเพิ่มเติมมาได้ไม่กี่เดือนคือ</p>
<p>make kernel_menuconfig</p>
<p>ควรลองดูเพราะทุกที make menuconfig จะสามารถเลือกได้แค่ package ที่ต้องการใน firmware เท่านั้น</p>
<p class="zoundry_raven_tags">  <!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com -->  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://www.technorati.com/tag/openwrt" class="ztag" rel="tag">openwrt</a></span>  <br /> <span class="ztags"><span class="ztagspace">Del.icio.us</span> : <a href="http://del.icio.us/tag/openwrt" class="ztag" rel="tag">openwrt</a></span> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[OpenWrt su Linksys WRT54G: Universal Repeater]]></title>
<link>http://alcolistaanonimo.wordpress.com/2009/09/29/openwrt-su-linksys-wrt54g-universal-repeater/</link>
<pubDate>Tue, 29 Sep 2009 19:56:59 +0000</pubDate>
<dc:creator>alcolistaanonimo</dc:creator>
<guid>http://alcolistaanonimo.wordpress.com/2009/09/29/openwrt-su-linksys-wrt54g-universal-repeater/</guid>
<description><![CDATA[Quante volte vi siete trovati a girare per casa in cerca del vostro segnale wifi? Quante volte avres]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Quante volte vi siete trovati a girare per casa in cerca del vostro segnale wifi?<br />
Quante volte avreste desiderato abbattere quella maledetta parete di tufo/pietra ottocentesca di casa vostra che riduce drasticamente le probabilità di navigare in wireless per tutta la casa?<br />
Quante volte avete desiderato espandere il vostro  wifi oltre i confini delle striminzite antennine del vostro Alice Gate di Telecozz?<br />
Bene ora potete!</p>
<p><strong>Universal Repeater</strong></p>
<p>Bene, tralasciando questa ridicola introduzione e venendo al dunque ho ottenuto un comodo ripetitore di segnale configurando il mio WRT54GL con pochi passaggi.<br />
La situazione in cui ci troviamo è tipo quella riportata in figura.</p>
<div class="wp-caption aligncenter" style="width: 506px"><img title="Rete con Repeater" src="http://alcolistaanonimo.wordpress.com/files/2009/09/repeater.jpg" alt="Ampliare la rete wifi con un repeater" width="496" height="279" /><p class="wp-caption-text">Ampliare la rete wifi con un repeater</p></div>
<p>Per prima cosa è necessario (se si vuole utilizzare la WPA-PSK impostata di default da Telecom) scaricare i seguenti pacchetti direttamente su OpenWrt.</p>
<p><code>root@OpenWrt:~# ipkg install wpa-supplicant<br />
root@OpenWrt:~# ipkg install hostapd<br />
root@OpenWrt:~# ipkg install zlib<br />
root@OpenWrt:~# ipkg install libopenssl</code></p>
<p>Per poter visionare cosa avete sul sistema usate questo</p>
<p><code>root@OpenWrt:~# ipkg list_installed<br />
base-files-atheros-2.6 - 10-9078 -<br />
bridge - 1.0.6-1 -<br />
busybox - 1.4.2-2 -<br />
dnsmasq - 2.39-1 -<br />
dropbear - 0.50-2 -<br />
hostapd - 0.5.7-1 -<br />
hotplug2 - 0.9+r102-2 -<br />
iptables - 1.3.7-1 -<br />
kernel - 2.6.21.5-atheros-1 -<br />
kmod-madwifi - 2.6.21.5+r2568-20070710-atheros-2 -<br />
kmod-ppp - 2.6.21.5-atheros-1 -<br />
kmod-pppoe - 2.6.21.5-atheros-1 -<br />
libgcc - 4.1.2-10 -<br />
libopenssl - 0.9.8e-1 -<br />
mtd - 5 -<br />
ppp - 2.4.3-8 -<br />
ppp-mod-pppoe - 2.4.3-8 -<br />
uclibc - 0.9.28-10 -<br />
udevtrigger - 106-1 -<br />
wireless-tools - 29-1 -<br />
wpa-supplicant - 0.5.7-1 -<br />
zlib - 1.2.3-4 -<br />
Done.</code></p>
<p>Se i pacchetti che avete sono + o &#8211; questi possiamo andare oltre&#8230;<br />
Passiamo ora alla configurazione delle interfacce. In primo luogo modifichiamo la network lan</p>
<p><code>root@OpenWrt:~#  vi /etc/config/network</code></p>
<p><code>#### LAN configuration<br />
config interface lan<br />
option type         bridge<br />
option ifname     eth0.0<br />
option proto        static<br />
option ipaddr      192.168.1.111<br />
option netmask  255.255.255.0</code></p>
<p>Poi passiamo alla parte wireless</p>
<p><code>root@OpenWrt:~# vi /etc/config/wireless</code></p>
<p><code>config wifi-device  wl0<br />
option type     broadcom<br />
option channel  11     # lo stesso canale della wifi di Alice</code><br />
<code><br />
config wifi-iface<br />
option device    wl0<br />
option network  lan<br />
option mode     ap<br />
option ssid        RepeaterWifi   # il nome della wifi del repeater<br />
</code></p>
<p><code>config wifi-iface<br />
option device     wl0<br />
option network   lan<br />
option mode      sta<br />
option ssid         Alice-12345678   # il nome della rete wifi da ripetere<br />
option encryption       'psk'<br />
option key                  'xxxxxxxxxxxxxxxxxxxxx'</code></p>
<p>Fatto ciò dovresta avere un bel ripetitore wifi!!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Linksys WRT54GLcon openWRT como repetidor de señal]]></title>
<link>http://alejandrok5.wordpress.com/2009/09/21/linksys-wrt54glcon-openwrt-como-repetidor-de-senal/</link>
<pubDate>Mon, 21 Sep 2009 09:02:35 +0000</pubDate>
<dc:creator>alejandrok5</dc:creator>
<guid>http://alejandrok5.wordpress.com/2009/09/21/linksys-wrt54glcon-openwrt-como-repetidor-de-senal/</guid>
<description><![CDATA[Objetivo utilizar un linksys WRT54GLcon OpenWRT como repetidor de señal y de esta forma ampliar la z]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Objetivo</strong></p>
<p>utilizar un<strong> </strong>linksys WRT54GLcon OpenWRT como repetidor de señal y de esta forma ampliar la zona de cobertura de la señal wireless. con una SSID propia.</p>
<p><strong>Topologia</strong></p>
<p><img class="alignleft size-full wp-image-31" title="topología Repetidor" src="http://alejandrok5.wordpress.com/files/2009/09/g3594.png" alt="topología Repetidor" width="497" height="253" /></p>
<p><strong>Requisitos</strong></p>
<ol>
<li>Router (Vecino) configurado en modo AP (access point)</li>
<li>Conocer el modo wireless del Router (Vecino) puede ser B, G, B+G(Mixed) para esto puedes usar <a href="http://www.wireshark.org/">wireshark</a> en caso tal que no tengas acceso a la configuracion del router <em>(No se esplicara en este post como hacer esto).</em></li>
<li>Conocer la Clave WEP o WAP del router vecino en caso que tenga. si no la conoces puedes usar <a href="http://www.aircrack-ng.org/">aircrack-ng</a> <em>(No se esplicara en este post como hacer esto).</em></li>
<li>router linksys WRT54GLcon firmware <a href="http://openwrt.org/">openWRT</a> <em>(No se esplicara en este post como cambiar el firmware).</em></li>
</ol>
<p><strong>Manos a la obra!</strong></p>
<p>vamos a configurar el Linksys como repetidor para tal fin vamos hacer lo sigueinte</p>
<ul>
<li>Conectarnos al Linksys por cable UTP directo (LAN)</li>
<li>En el navegador web abrimos la sigueinte direccion: 192.168.1.1</li>
<li>Pinchamos en Setup</li>
</ul>
<p>Nos pide usuario y clave</p>
<ul>
<li>Escribimos el usuario y clave correspondiente (por omision es user: root , password: admin)</li>
</ul>
<p>En Setup-&#62;Basic Setup</p>
<ul>
<li>configuramos el servidor DHCP  a activo.</li>
<li>signamos una IP para la nueva red <strong>(Debe ser diferente a la que nos dal el Router Vecino)</strong></li>
</ul>
<p><img class="alignnone size-full wp-image-33" title="Pantallazo" src="http://alejandrok5.wordpress.com/files/2009/09/pantallazo1.png" alt="Pantallazo" width="497" height="366" /></p>
<p>ahora vamos a wireless-&#62;Bassic Settings y configuramos:</p>
<ul>
<li>Wireless Mode = Repeater</li>
<li>Wireless Network Mode=B, G, Mixed segun sea el caso del router Vecino</li>
<li>SSID=vecino (el ssid del router fuente)</li>
<li>Creamos una Virtual Interface</li>
<li>SSID Virtual=Mi-Hogar (el ssid que tu le quieras poner)</li>
</ul>
<p><img class="alignnone size-full wp-image-34" title="Pantallazo-1" src="http://alejandrok5.wordpress.com/files/2009/09/pantallazo-1.png" alt="Pantallazo-1" width="496" height="363" /></p>
<p>Lo ultimo es la seguridad inalámbrica (encriptación) en caso que aplique, para tal caso vamos a wireless-&#62;Wireless Security</p>
<ul>
<li>Security Mode=El modo del Router Vecino (WAP/WEP)</li>
<li>WPA Algorithms=el metodo de encriptacion que use el router Vecino(TKIP,AES,ETC) (importante usar el mismo metodo)</li>
<li>WPA Shared Key=la clave del router vecino</li>
<li>si quieres configurar seguridad para tu conecixion lo haces en la parte de virtual interfaces</li>
</ul>
<p><img class="alignnone size-full wp-image-35" title="Pantallazo-2" src="http://alejandrok5.wordpress.com/files/2009/09/pantallazo-2.png" alt="Pantallazo-2" width="496" height="323" /></p>
<p>Y listo ya tenemos wifi en nuestro hogar con el patrocinio de nuestro vecino.</p>
<p>si tienes la oportunidad de desabilitar el firewall del router Vecino puede ser bueno para evitar problemas</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Menggunakan OpenWrt ke Senao EOC5610]]></title>
<link>http://betweenmeandlinux.wordpress.com/2009/09/17/menggunakan-openwrt-ke-senao-eoc5610/</link>
<pubDate>Thu, 17 Sep 2009 21:54:54 +0000</pubDate>
<dc:creator>betweenmeandlinux</dc:creator>
<guid>http://betweenmeandlinux.wordpress.com/2009/09/17/menggunakan-openwrt-ke-senao-eoc5610/</guid>
<description><![CDATA[upgrade firmware Senao EOC5610Kantor akhirnya mengabulkan untuk pembelian perangkat wireless baru Se]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>upgrade firmware Senao EOC5610Kantor akhirnya mengabulkan untuk pembelian perangkat wireless baru Senao EOC5610. Mulanya sih mau menggunakan dd-wrt. Tapi aduh&#8230; ternyata firmware satu ini gratisnya cuman untuk perangkat2 semacam Linksys, tapi kalo untuk Senao? Bayar bung!!</p>
<p>Terpaksa harus putar otak, coba upgrade firmware via web interfacenya malah routernya gak bisa diakses! Ini kok macet&#8230; Sampai pusing dan stress&#8230; Lha gimana lagi, ini punya kantor. Kalo rusak ya ikut ganti, mana gak murah lagi.</p>
<p>Senao EOC5610 menggunakan bootloader yang dinamakan redboot. Ini sedikit rumit dan perlu trik karena begitu router gagal loading firmwarenya, router tidak bisa diakses. Jadi sebelum router loading firmwarenya, kita cegat dulu di bootloadernya. (macam penjahat aja ya?, pakai dicegat segala..)</p>
<p>Browse kesana kemari akhirnya ketemu juga tutorialnya, tapi rumit. Akhirnya setelah mencoba, aku kompilasi lagi tutorialnya menjadi seperti ini:</p>
<p> <!--more-->
<p>Ini menggunakan windows, untuk Linux ada tutorialnya di <a href="http://wiki.x-wrt.org/index.php/Kamikaze_Installation" target="_blank">http://wiki.x-wrt.org/index.php/Kamikaze_Installation</a></p>
<p>1. Download firmware OpenWrt versi X-Wrt (tampilan web interface nya lebih baik) disini <a href="http://x-wrt.org/install.html" target="_blank">http://x-wrt.org/install.html</a></p>
<p>2. Pilih aja yang Kamikaze, cari versi terbaru.</p>
<p>3. Karena Senao EOC5610 menggunakan atheros, jadi pilih sub folder atheros &#8211; default (kalo udah bisa flashing, bisa coba jenis lain)</p>
<p>4. Anda membutuhkan 2 macam file:</p>
<p>- openwrt-atheros-root.squashfs ==&#62; ini filesystemnya</p>
<p>- openwrt-atheros-vmlinux.lzma ==&#62; ini kernelnya</p>
<p>5. Anda harus menggunakan <a href="http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.zip" target="_blank">putty</a>, taruhlah di folder misalnya di D:\putty</p>
<p>6. Nah, bagaimana kalo anda merasa jagoan ngetik? ada waktu kira2</p>
<p>1,8 detik untuk masuk ke putty dan memasukkan perintah ^C (CTRL C) baru</p>
<p>anda akan masuk ke prompt dari RedBoot. Tapi bisa menggunakan cara</p>
<p>paling mudah ini yaitu dengan membuat script.</p>
<p>7. Lalu buka notepad, lalu copy script ini dan taruh di folder yang sama dengan putty (D:\putty), simpan dengan nama redboot.bat</p>
<p><span style="color:#ff0000;">rem echo off:startrem &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span> </p>
<p>ping 192.168.1.1 -n 1 -w 1 &#62;NUL</p>
<p>IF ERRORLEVEL 1 goto start</p>
<p>rem putty</p>
<p>rem &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>break</p>
<p>putty.exe telnet://192.168.1.1:9000 -m redboot.txt</p>
<p>exit</p>
</p>
<p>8. Buka notepad lagi dan buat file dengan nama redboot.txt, Letakkan di folder yang sama dengan putty, dan redboot.bat. Isinya adalah :</p>
<p><span style="color:#ff0000;">^C</span></p>
<p>9. Untuk transfer image file, anda membutuhkan program kecil yang bernama tftpd. Extract di D:\tftpd. Download tftpd disini <a href="http://tftpd32.jounin.net/" target="_blank">http://tftpd32.jounin.net</a></p>
<p>10. Persiapan hampir selesai.. Taruh 2 file image tadi di folder yang sama dengan putty (biar mudah saja, karena tftpd kadang komplain karena penamaan file yang terlalu panjang)</p>
<p>11. Atur IP komputer anda ke 192.168.1.21</p>
<p>12. Pasang kabel jaringan ke Senao EOC5610 dan komputer, jalankan dulu file redboot.bat, baru kemudian hidupkan router anda.</p>
<p>13. Beberapa detik kemudian anda akan dibawa ke shell dari redboot. Perintah berikutnya anda ketik di shell dari RedBoot. Tulisan berwarna merah adalah perintahnya, sedangkan yang berwarna biru adalah hasilnya pada shell Redboot.</p>
<p><span style="color:#ff0000;">RedBoot&#62;</span></p>
<p>14. Konfigurasikan alamat IP dari RedBoot dan tftp komputer anda</p>
<p><span style="color:#ff0000;">RedBoot&#62; ip_address -l 192.168.1.1 -h 192.168.1.21 </span></p>
<p>15. Loading kernel dan flashing kernel</p>
<p><span style="color:#ff0000;">RedBoot&#62; fis init</span></p>
<p><span style="color:#003300;"><span style="color:#000066;">About to initialize [format] FLASH image system &#8211; continue (y/n)? y*** Initialize FLASH Image System&#8230; Erase from 0xbe7e0000-0xbe7f0000: .</span> </span>
<p>&#8230; Program from 0&#215;81fe0400-0&#215;81ff0400 at 0xbe7e0000: .</p>
</p>
</p>
<p><span style="color:#ff0000;">RedBoot&#62; load -r -b 0&#215;80041000 openwrt-atheros-vmlinux.lzma</span></p>
<p><span style="color:#000066;">Using default protocol (TFTP)Raw file loaded 0&#215;80041000-0&#215;80100fff, assumed entry at 0&#215;80041000</span> </p>
</p>
<p>16. Buat image dari kernel</p>
<p><span style="color:#ff0000;">RedBoot&#62;fis create -r 0&#215;80041000 -e 0&#215;80041000 vmlinux.bin.l7</span></p>
<p><span style="color:#000066;">&#8230; Erase from 0xbe030000-0xbe0f0000: &#8230;&#8230;&#8230;&#8230;&#8230; Program from 0&#215;80041000-0&#215;80101000 at 0xbe030000: &#8230;&#8230;&#8230;&#8230;&#8230; Erase from 0xbe7e0000-0xbe7f0000: .</span> </p>
<p>&#8230; Program from 0&#215;81fe0400-0&#215;81ff0400 at 0xbe7e0000: .</p>
</p>
<p>17. Cek tempat kosong dari router</p>
<p><span style="color:#ff0000;">RedBoot&#62;fis free</span></p>
<p><span style="color:#000066;">0xBE0F0000 .. 0xBE7E0000</span></p>
<p>Setelah itu, pakai kalkulator (windows) atau bc (Linux) , lalu hitung ini:</p>
<p><span style="color:#33cc00;">BE7E0000-BE0F0000</span></p>
<p>Di perangkat saya, hasilnya adalah 6F0000. Ini adalah besar kapasitas sisa.</p>
<p>18. Loading rootfs</p>
<p><span style="color:#ff0000;">RedBoot&#62;load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs</span></p>
<p><span style="color:#000066;">Using default protocol (TFTP)Raw file loaded 0&#215;80000400-0&#215;801a03ff, assumed entry at 0&#215;80000400</span> </p>
</p>
<p>19. Buat filesistem root (rootfs). Ingat langkah ke empat, pada perangkat saya 6F0000</p>
<p><span style="color:#ff0000;">RedBoot&#62;fis create -l 0&#215;6F0000 rootfs</span></p>
<p><span style="color:#000066;">&#8230; Erase from 0xbe0f0000-0xbe7e0000: &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; Program from 0&#215;80000400-0&#215;801a0400 at 0xbe0f0000: &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. Erase from 0xbe7e0000-0xbe7f0000: .</span> </p>
<p>&#8230; Program from 0&#215;81fe0400-0&#215;81ff0400 at 0xbe7e0000: .</p>
</p>
<p>20. Tulis bootscript ke bootloader</p>
<p><span style="color:#ff0000;">RedBoot&#62; fconfig boot_script true</span></p>
<p><span style="color:#000066;">boot_script: Setting to true </span></p>
<p><span style="color:#ff0000;">RedBoot&#62; fconfig boot_script_data</span></p>
<p><span style="color:#000066;">boot_script_data:Enter script, terminate with empty line&#62;&#62; fis load -l vmlinux.bin.l7</span> </p>
<p>&#62;&#62; exec</p>
<p>&#62;&#62;</p>
<p>Update RedBoot non-volatile configuration &#8211; continue (y/n)? y</p>
<p>&#8230; Erase from 0xbe7e0000-0xbe7f0000: .</p>
<p>&#8230; Program from 0&#215;81fe0400-0&#215;81ff0400 at 0xbe7e0000: .</p>
</p>
<p>21. Reboot router</p>
<p><span style="color:#ff0000;">RedBoot&#62; reset</span></p>
<p>Tunggu sebentar, kalo masih belum loading, cabut powernya dan nyalakan lagi.</p>
<p>Langkah ini bisa anda gunakan untuk flash firmware apa saja ke router yang menggunakan RedBoot. Pastikan saat flashing firmware, tidak ada gangguan listrik. Kalo sama sekali gagal masuk ke bootloader dan tidak bisa di-ping, berarti router anda rusak (bricked). Coba cari di paman Google untuk de-bricking lagi. Kalo masih gagal, ya buat aja sebagai hiasan meja. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>for english version. Download <a href="http://betweenmeandlinux.wordpress.com/files/2009/10/upgrade-firmware-senao-eoc5610.doc">upgrade firmware Senao EOC5610</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=5f46ebdd-2d4c-8e95-9c31-3fea78ebcb66" /></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[การใช้งาน External Storage เป็น Root File System สำหรับ OpenWRT]]></title>
<link>http://ipass.wordpress.com/2009/09/11/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b8%87%e0%b8%b2%e0%b8%99-external-storage-%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99-root-file-system-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1/</link>
<pubDate>Fri, 11 Sep 2009 04:22:42 +0000</pubDate>
<dc:creator>ipass</dc:creator>
<guid>http://ipass.wordpress.com/2009/09/11/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b8%87%e0%b8%b2%e0%b8%99-external-storage-%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99-root-file-system-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1/</guid>
<description><![CDATA[ยิ่งลงยิ่งมันส์ .. ipkg จำนวนมาก, application บน x86 open-source ทั้งหลายถูก port มาเพื่อให้สามารถใช]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img src="http://ipass.files.wordpress.com/2009/09/zrclip_003n67dcb8ce.png" style="border-bottom:#000000 1px solid;border-left:#000000 1px solid;width:48px;display:inline;float:left;height:48px;border-top:#000000 1px solid;border-right:#000000 1px solid;" height="48"> ยิ่งลงยิ่งมันส์ .. ipkg จำนวนมาก, application บน x86 open-source ทั้งหลายถูก port มาเพื่อให้สามารถใช้งานได้กับ router cpu mip .. แต่น่าเสียดายพื้นที่อันจำกัดของ Flash memory ที่ storage ข้อมูลของเรา ดังนั้นจึงต้องเพิ่มกันหน่อย ..</p>
<p> <!--more--><br />
<h1>มาทำ Compact Flash (CF) ให้เป็น Root file system กัน</h1>
<p>รายละเอียด</p>
<p><a href="http://wiki.openwrt.org/oldwiki/usbstoragehowto#installing.and.using.opkg.packages.in.mount.point.other.than.root">usb storage : howto</a></p>
<p><a href="http://wiki.openwrt.org/oldwiki/openwrtdocs/kamikazeconfiguration/bootfromexternalmediahowto">boot from external media : howto</a></p>
<p><a href="http://wiki.openwrt.org/oldwiki/packagesonexternalmediahowto">package on external media : howto</a></p>
<p><a href="http://oldwiki.openwrt.org/OpenWrtDocs(2f)KamikazeConfiguration(2f)BootFromExternalMediaHowTo.html">http://oldwiki.openwrt.org/OpenWrtDocs%282f%29KamikazeConfiguration%282f%29BootFromExternalMediaHowTo.html</a></p>
<p><a href="https://forum.openwrt.org/viewtopic.php?pid=94804">https://forum.openwrt.org/viewtopic.php?pid=94804</a></p>
<p><a href="http://www.nslu2-linux.org/wiki/OpenWRT/BootFromUsbDevice">http://www.nslu2-linux.org/wiki/OpenWRT/BootFromUsbDevice</a></p>
<hr />
<h2><a id="boot.configuration.kamikaze" name="boot.configuration.kamikaze">Boot Configuration (Kamikaze)</a></h2>
<div class="level2">
<p>First Create a script /etc/init.d/pivotroot</p>
<pre class="code">
</pre>
<blockquote>
<pre class="code">
#!/bin/sh
# change this to your boot partition
boot_dev="/dev/sda1"
# install needed modules for usb and the ext3 filesystem
# **NOTE** for usb2.0 replace "uhci" with "ehci_hcd"
# **NOTE** for ohci chipsets replace "uhci" with "usb-ohci"
for module in usbcore uhci scsi_mod sd_mod usb-storage jbd kmod-fs-ext2 kmod-fs-ext3 ; do {
        insmod $module
}; done
# this may need to be higher if your disk is slow to initialize
<span style="color:#ff0000;">sleep 4s</span>
# mount the usb stick
mount "$boot_dev" /mnt
# if everything looks ok, do the pivot root
[ -x /mnt/sbin/init ] &#38;&#38; {
        mount -o move /proc /mnt/proc &#38;&#38; \
        pivot_root /mnt /mnt/mnt &#38;&#38; {
                mount -o move /mnt/dev /dev
                mount -o move /mnt/tmp /tmp
                mount -o move /mnt/jffs2 /jffs2 2&#62;&#38;-
                mount -o move /mnt/sys /sys 2&#62;&#38;-
        }
}
</pre>
</blockquote>
<hr /></div>
<p>Make it executable:</p>
<p>chmod +x /etc/init.d/pivotroot</p>
<p>Then install the modules, for Kamikaze 7.07 or later (Kernel 2.6), use</p>
<pre class="code">
ipkg install kmod-fs-ext2 kmod-fs-ext3
</pre>
<p>Test to see if pivotroot works:</p>
<pre class="code">
/etc/init.d/pivotroot
df -h
</pre>
<p>You may safely ignore errors saying &#8220;</p>
<pre class="code">
insmod: cannot insert ...
</pre>
<p>&#8221; If pivotroot worked, then df will show that your USB storage is mounted on &#8220;/&#8221; (root). Now reboot.</p>
<pre class="code">
reboot
</pre>
<p>after that edit /etc/init.d/rcS &#8212; แก้ใหม่ทั้ง file</p>
<pre class="code">
</pre>
<blockquote>
<pre class="code">
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
if test $2 == "boot" ; then
<span style="color:#ff0000;">/etc/init.d/pivotroot          </span>fi
{
        for i in /etc/rc.d/$1*; do
                $i $2 2&#62;&#38;1
        done
} &#124; logger -s -p 6 -t '' &#38;
</pre>
</blockquote>
<p>now your System should Startup nicely either from USB or from internal Flash if the USB-disk is not available.</p>
<hr />
<p>*** ข้อสำคัญ อยู่ที่ sleep เพื่อรอให้ อุปกรณ์รับรู้ถึงการต่อ USB .. บางทีอาจต้องรอเป็น 10s <br />แต่เท่าที่ลอง สำหรับ kernel 2.4 ใช้เวลา(=4s) น้อยกว่า kernel 2.6 <br />(หรือก็อาจเป็นได้ว่า Card reader ช้ากว่ากัน ??)</p>
<p class="zoundry_raven_tags">  <!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com -->  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://www.technorati.com/tag/openwrt" class="ztag" rel="tag">openwrt</a>, <a href="http://www.technorati.com/tag/storage" class="ztag" rel="tag">storage</a></span>  <br /> <span class="ztags"><span class="ztagspace">Del.icio.us</span> : <a href="http://del.icio.us/tag/openwrt" class="ztag" rel="tag">openwrt</a>, <a href="http://del.icio.us/tag/storage" class="ztag" rel="tag">storage</a></span> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Compile Package ที่ให้มาจาก OpenWRT - Kamikaze 8.09]]></title>
<link>http://ipass.wordpress.com/2009/09/08/compile-package-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%a1%e0%b8%b2%e0%b8%88%e0%b8%b2%e0%b8%81-openwrt-kamikaze-8-09/</link>
<pubDate>Tue, 08 Sep 2009 03:59:31 +0000</pubDate>
<dc:creator>ipass</dc:creator>
<guid>http://ipass.wordpress.com/2009/09/08/compile-package-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%a1%e0%b8%b2%e0%b8%88%e0%b8%b2%e0%b8%81-openwrt-kamikaze-8-09/</guid>
<description><![CDATA[สำหรับ OpenWRT รุ่น Code Name ว่า Kamikaze 8.09 นั้น สามารถเลือกที่จะติดตั้ง (Flash Firmware) ให้กับ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img src="http://ipass.files.wordpress.com/2009/09/zrclip_001n15269adc.png" style="width:114px;display:inline;float:left;height:114px;" height="114">สำหรับ OpenWRT รุ่น Code Name ว่า Kamikaze 8.09 นั้น สามารถเลือกที่จะติดตั้ง (Flash Firmware) ให้กับ Router ได้เลยโดยไม่จำเป็นต้อง Compile Firmware : &#8220;Image File&#8221; เองโดยสามารถ Download ได้จาก <a href="http://downloads.openwrt.org/">http://downloads.openwrt.org/</a></p>
<p>แต่พอประสบปัญหาเรื่อง ไม่สามารถใช้งาน Softare บางตัวที่ได้มาจากการ ipkg -&#62; Pacage Manager ของ OpenWRT</p>
<p> <!--more-->
<p>ทำให้ตัดสินใจทดลอง Download Source Code มาแก้ไข แล้ว Compile ใหม่ .. ถึงอย่างนั้น ทำไปทำมา แค่ Source Code แท้ยัง Compile ไม่ผ่านเลย .. ทำไม ?!?</p>
<p>หลังจากลองผิดลองถูกอยู่นาน ทำให้ได้วิธีดังนี้ (Tip: ไม่ควร login เป็น root และเวลา make ควรใช้คำสั่ง make V=99 เพื่อตรวจสอบความผิดพลาดได้ )</p>
<h1>การสร้าง Firmware เอง</h1>
<p>1. ทำการ download source code ทั้ง kamikaze และ package เสริม มาไว้บนเครื่องก่อน ซึ่งจะเป็นต้องใช้คำสั่ง</p>
<blockquote><p>svn co svn://svn.openwrt.org/openwrt/branches/8.09</p>
<p>svn co svn://svn.openwrt.org/openwrt/branches/8.09_package</p>
</blockquote>
<p>ทั้งนี้ ได้ทำการทดลองนำ svn co svn://svn.openwrt.org/openwrt/trunk/ และ svn.openwrt.org/openwrt/packages/ มาใช้แล้วแต่ compile ไม่ผ่าน ยังหาสาเหตุไม่ได้</p>
<p>2. ให้เข้าไปที่ 8.09/package โดย</p>
<blockquote><p>cd 8.09/package</p>
</blockquote>
<p>3. ทำการเพิ่ม Package 8.09_package โดย Link 8.09_package ที่ได้ให้อยู่ใน directory ข้างต้น</p>
<blockquote><p>ln -sf ../../8.09_package/*/* .</p>
</blockquote>
<p>ซึ่งข้อควรระวังก็คือ ไม่ควร ln -sf ../../8.09_package . เพราะว่า ในการ compile จะประสบปัญหาว่า package บางตัวที่ต้องการ link ไป package อื่นจะหากันไม่เจอ เพราะไม่ยอมมองแบบ Hierachy</p>
<p>4. ที่ 8.09 directory ให้เริ่ม compile โดยทำการ config image, package ที่เลือก (ให้คำนึงถึง dependency ด้วย) ..</p>
<blockquote><p>make menuconfig</p>
</blockquote>
<p>สังเกตว่า การ collecting packages ใน 8.09/package จะสามารถทำการได้ครบถ้วนทีเดียว ถึงแม้ เราจะ ln -sf ../../8.09_package มาทั้งชั้นก็ตาม .. แต่ปัญหาจำเกิด ตามมาตอน make &#8230; ดังนั้นต้อง ln -sf ../../8.09_package/*/* เท่านั้น !!!!</p>
<p>แนะนำคือ ควรเลือก ให้เข้ากับ Platform ที่ใช้ เช่น Asus Premium V2 ควรใช้ .. อ่านได้จาก Net</p>
<p>จากนั้นเริ่มสร้าง Firmware (image) และ ipkg ทั้งหมด</p>
<blockquote><p>make</p>
</blockquote>
<p>ผลที่ได้ .. ภาวนา และข้อสำคัญคือ ต้องเชื่อมต่อ Internet เพื่อขณะ compile จะมีการ download source code เพิ่มเติมด้วย</p>
<h1>Note</h1>
<p>- สำหรับการ *.ipk จะอยู่ใน 8.09/bin/mipsel/package</p>
<p>- บาง ISP จะทำการ Block SVN port ทำให้ไม่สามารถ check out &#8220;kamikaze&#8221; ได้</p>
<h1>อ้างอิง</h1>
<p><a href="http://hanez.org/openwrt-building-software-packages.html">http://hanez.org/openwrt-building-software-packages.html</a></p>
<p><a href="http://wiki.openwrt.org/oldwiki/openwrtdocs/packages">http://wiki.openwrt.org/oldwiki/openwrtdocs/packages</a></p>
<p><a href="http://wiki.openwrt.org/oldwiki/buildingpackageshowto">http://wiki.openwrt.org/oldwiki/buildingpackageshowto</a></p>
<p><a href="https://forum.openwrt.org/viewtopic.php?pid=31794#p31794">https://forum.openwrt.org/viewtopic.php?pid=31794#p31794</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Fonera 2.0n recensione parte prima]]></title>
<link>http://dema.tv/2009/08/31/fonera-2-0n-recensione-parte-prima/</link>
<pubDate>Mon, 31 Aug 2009 08:01:58 +0000</pubDate>
<dc:creator>antonde</dc:creator>
<guid>http://dema.tv/2009/08/31/fonera-2-0n-recensione-parte-prima/</guid>
<description><![CDATA[Mi è arrivata grazie a Michelangelo la nuova Fonera 2.0n. Vediamo subito di cosa si tratta. Aspetto ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Mi è arrivata grazie a <a href="http://blog.fon.com/it">Michelangelo</a> la nuova Fonera 2.0n.</p>
<p>Vediamo subito di cosa si tratta.</p>
<h2>Aspetto esterno</h2>
<p><a title="fonera 2.0n di antonde, su Flickr" href="http://www.flickr.com/photos/dema/3861113939/"><img src="http://farm3.static.flickr.com/2667/3861113939_3c60a4379a.jpg" alt="fonera 2.0n" width="500" height="429" /></a></p>
<p>La nuova Fonera 2.0n è cresciuta nelle dimensioni. Ora misura 16&#215;3x10 cm , circa un 40% in più del volume della precedente Fonera 2.0 .</p>
<p>La porta USB è ora frontale ,  le porte lan passano da 1 a 4 e le antenne diventano 2.</p>
<p><a title="fonera retro di antonde, su Flickr" href="http://www.flickr.com/photos/dema/3861114391/"><img src="http://farm3.static.flickr.com/2571/3861114391_e7db0baa72.jpg" alt="fonera retro" width="500" height="266" /></a></p>
<p>Nel pannello posteriore , come si puo&#8217; notare , è comparso un interruttore per lo spegnimento della wifi e un bottone del quale non ho capito le funzionalità . Per intuito direi che è un pulsante a doppia funzione , se premuto a lungo effettua un reset dell&#8217;unità , se premuto una volta sola attiva la funzione <a href="http://www.wi-fiplanet.com/news/print.php/3652651">WPS</a> per permettere l&#8217;accoppiamento di apparecchi wireless in autoapprendimento WPA/WPA2.</p>
<p>L&#8217;alimentazione è fornita da un trasformatore wall plug da 12 volts 1.0A . I consumi dovrebbero quindi essere intorno ai 10 watt.</p>
<p>Nella scatola non è presente la consueta patch ethernet quindi ricordatevi di averne una sottomano prima di aprire la scatola ed effettuare l&#8217;installazione altrimenti rimarrete tutta la sera a guardare i led che si accendono senza poter usare la Fonera <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<h2>Specifiche Tecniche</h2>
<p>L&#8217;hardware è basato su chip ralink RT3052F a 300 Mhz</p>
<p><a href="http://files.demaitalia.com/fonera/cpuinfo.jpg"><img class="alignnone" src="http://files.demaitalia.com/fonera/cpuinfo.jpg" alt="" width="338" height="239" /></a></p>
<p>Il chip in questione fornisce la parte AP in 802.11 b/g/n , 5 porte 10/100 switch e interfaccia per USB OTG, RGMII, SPI, PCM, I2C e UART.</p>
<p>A corredo troviamo un supporto di memoria ram da 64 Mb</p>
<p><a href="http://files.demaitalia.com/fonera/free.jpg"><img class="alignnone" src="http://files.demaitalia.com/fonera/free.jpg" alt="" width="517" height="97" /></a></p>
<p>Il sistema operativo è un openwrt kamikaze 8.09.1 pesantemente adattato da Fon , sia per la parte del consueto captive portal/heartbeat , sia per il supporto al chip Ralink , non direttamente supportato da OpenWRT.</p>
<p>L&#8217;interfaccia utente si raggiunge via web collegandosi attraverso la LAN cablata o la WLAN Myplace all&#8217;indirizzo 192.168.10.1 , la password di default è &#8220;admin&#8221;.</p>
<p>Si tratta di un&#8217;interfaccia basata sul <a href="http://luci.freifunk-halle.net/News">Luci project di freifunk</a> , già vista sulla fonera 2.0.</p>
<p>Di fabbrica la fonera 2.0n era flashata con il firmware 2.2.5.0 flipper enduser , la release stabile al momento in cui sto scrivendo.</p>
<p>Per accedere alla console in ssh ho flashato l&#8217;ultima release per sviluppatori , la 2.3.0.0 RC1 DEV che si puo&#8217; prelevare da <a href="http://download.fonosfera.org/RC/">http://download.fonosfera.org/RC/</a> , scegliendo l&#8217;immagine compressa in tgz e caricandola direttamente dall&#8217;interfaccia web.</p>
<p>Qui la nuova fonerina mi ha subito impressionato , compiendo l&#8217;intera operazione di reflash in 3,5 minuti.</p>
<p>I benefici del processore assai più vispo del precedente e forse di una memoria flash più veloce sono molto evidenti .</p>
<p>L&#8217;interfaccia web è veloce , reattiva , intuitiva e completa , con settaggi avanzati anche per l&#8217;utente più navigato.</p>
<p>Ecco le schermate più significative dell&#8217;interfaccia d&#8217;amministrazione.</p>
<h6>Welcome page</h6>
<p><a href="http://files.demaitalia.com/fonera/main.jpg"><img class="alignnone" src="http://files.demaitalia.com/fonera/main.jpg" alt="" width="530" height="380" /></a></p>
<h6>admin panel</h6>
<h6><a href="http://files.demaitalia.com/fonera/admin.jpg"><img class="alignnone" src="http://files.demaitalia.com/fonera/admin.jpg" alt="" width="530" height="298" /></a></h6>
<h6>firmware update</h6>
<p><a href="http://files.demaitalia.com/fonera/firmware.jpg"><img class="alignnone" src="http://files.demaitalia.com/fonera/firmware.jpg" alt="" width="529" height="336" /></a></p>
<h6>Configurazione Plugins (qui nella schermata Twitter plugin )</h6>
<p><a href="http://files.demaitalia.com/fonera/luci-twitter.jpg"><img class="alignnone" src="http://files.demaitalia.com/fonera/luci-twitter.jpg" alt="" width="530" height="354" /></a></p>
<h2>Impressioni d&#8217;uso</h2>
<p>Il primo aggettivo  che viene in mente usando la nuova fonera 2.0n è : veloce !</p>
<p>Dall&#8217;accensione impiega solo 25 secondi per alzare entrambe le WLAN  , già pronte con il dhcp , il chilli per l&#8217;autenticazione e il corretto routing e firewall. E&#8217; senza dubbio merito del nuovo processore e della dotazione di ram.</p>
<p>Di fabbrica la Fonera 2.0n è preimpostata con una chiave WPA di 10 caratteri piuttosto complessa ( numeri e lettere , maiuscole e minuscole ) e in modalità mista b/g/n .</p>
<p>Non ho potuto provare per ora le performance della wireless in draft n , in quanto non sono ancora in possesso di un&#8217;apparecchiatura wireless 802.11N , ma come per tutti i dispositivi consumer presenti sul mercato non mi aspetto di ottenere un transfer rate maggiore di 50Mbit/s . Purtroppo anche se i nuovi chip fanno progressi non sono ancora in grado di sostenere velocità maggiori.</p>
<p>La portata del segnale è nella norma ed è stabile ed efficace , sia sulla wlan criptata che sulla wlan pubblica.</p>
<p>Una delle novità introdotte dalla Fonera 2.0n è la possibilità di disabilitare completamente la parte radio tramite l&#8217;interruttore on/off posteriore oppure semplicemente escludere la wlan pubblica , trasformando la fonera in un qualsiasi router wifi consumer.</p>
<p>Quest&#8217;ultima caratteristica secondo me ci dice qualcosa circa la rinnovata filosofia di Fon , forse.</p>
<p>Se ti do la possibilità di disattivare la funzione più importante del mio dispositivo , quella inerente allo sharing fra la community , significa che la mia aspirazione è quella di diventare (anche) un produttore hardware .</p>
<p>E non è una cosa sbagliata, credo . Sul mercato si trovano decine di prodotti simili alla nuova fonera 2.0n  ma quasi tutti con un firmware limitato che offre poche possibilità all&#8217;utente smanettone , obbligandolo ad usare software di terze parti.</p>
<p>Questo dispositivo nasce con già a bordo Openwrt , sviluppato e seguito costantemente da un team di hacker di prim&#8217;ordine ed è aperto ad ogni personalizzazione. Io dico che se il prezzo retail si assesterà sui 69 euro potrebbe dare del filo da torcere ai big , Netgear e Linksys in prima fila.</p>
<p>Altra grossa novità sono i plugin uploader e il file sharing.</p>
<p>Queste funzioni però meritano una prova approfondita che mi appresto a fare nei prossimi giorni .</p>
<p>Mi aspetto che se messa sotto stress la fonera 2.0n cominci a fare  il fiato grosso <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Staremo a vedere !</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[La Fonera 2.0n Dashboard]]></title>
<link>http://crackburg.wordpress.com/2009/08/24/la-fonera-2-0n-dashboard/</link>
<pubDate>Mon, 24 Aug 2009 11:07:23 +0000</pubDate>
<dc:creator>crackburg</dc:creator>
<guid>http://crackburg.wordpress.com/2009/08/24/la-fonera-2-0n-dashboard/</guid>
<description><![CDATA[Hier nun ein paar Impressionen des Dashboards von La Fonera 2.0n.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hier nun ein paar Impressionen des Dashboards von La Fonera 2.0n.</p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/dFIeIoi7jg8&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/dFIeIoi7jg8&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Fonera 2.0n]]></title>
<link>http://crackburg.wordpress.com/2009/08/23/fonera-2-0n/</link>
<pubDate>Sun, 23 Aug 2009 00:33:43 +0000</pubDate>
<dc:creator>crackburg</dc:creator>
<guid>http://crackburg.wordpress.com/2009/08/23/fonera-2-0n/</guid>
<description><![CDATA[Ich habe meinen Fonera 2.0n bekommen. Ein wunderschönes Gerät und ie Firmware ist echt ein Traum. Ic]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ich habe meinen Fonera 2.0n bekommen. Ein wunderschönes Gerät und ie Firmware ist echt ein Traum. Ich kann durch die Kiste einen kompletten Rechner abschalten. Ich schreibe die Tage ausführlich darüber. Hier noch ein Screenshot vom Dashboard.</p>
<div class="wp-caption aligncenter" style="width: 343px"><a href="http://images.crackburg.de/fon_20n_dashboard.JPG"><img class="    " title="Dashboard vom FONERA 2.0N" src="http://images.crackburg.de/fon_20n_dashboard_thumb.JPG" alt="Dashboard vom FONERA 2.0N" width="333" height="236" /></a><p class="wp-caption-text">Dashboard vom FONERA 2.0N</p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Custom firmware for your devices]]></title>
<link>http://synapse.wordpress.com/2009/08/06/custom-firmware-for-your-devices/</link>
<pubDate>Thu, 06 Aug 2009 07:58:36 +0000</pubDate>
<dc:creator>synapse</dc:creator>
<guid>http://synapse.wordpress.com/2009/08/06/custom-firmware-for-your-devices/</guid>
<description><![CDATA[I got the idea to write this after reading an article on the maximumpc site. Instead of simply linki]]></description>
<content:encoded><![CDATA[I got the idea to write this after reading an article on the maximumpc site. Instead of simply linki]]></content:encoded>
</item>
<item>
<title><![CDATA[Twitter, Ubiquiti, and Spots]]></title>
<link>http://gregklein.wordpress.com/2009/07/31/twitter-ubiquiti-and-spots/</link>
<pubDate>Fri, 31 Jul 2009 23:39:35 +0000</pubDate>
<dc:creator>gregklein</dc:creator>
<guid>http://gregklein.wordpress.com/2009/07/31/twitter-ubiquiti-and-spots/</guid>
<description><![CDATA[Okay, so if you haven&#8217;t yet, please read my last blog post. Twitter has this great API that ma]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Okay, so if you haven&#8217;t yet, please read my <a href="http://gregklein.wordpress.com/2009/07/30/ubiquiti-and-spots/">last blog post</a>.</p>
<p>Twitter has this <a href="http://apiwiki.twitter.com/">great API</a> that makes it super easy to &#8220;tweet&#8221; (I can&#8217;t believe I just used the word tweet).  The coolest thing is, you hardly need any extra software, which is a huge plus, especially on the Ubiquiti Nanostation which only has 16 MB of RAM and 4 MB of flash.  I read this <a href="http://www.sakana.fr/blog/2007/03/18/scripting-twitter-with-curl/">great guide</a> that uses cURL.  Unfortunately, when I tried to install cURL on my Ubiquiti, opkg tried to install a couple MB to my flash; way too much.  Curl was not feasible given my limited hardware.</p>
<p>Fortunately, there&#8217;s a smaller program that can accomplish the same thing: wget.  OpenWRT already has wget installed, but it&#8217;s a smaller version of wget that doesn&#8217;t have everything we need (it&#8217;s actually part of BusyBox).</p>
<p>Now, one of the reasons that cURL is so large is because it wants <a href="http://en.wikipedia.org/wiki/Transport_Layer_Security">SSL</a>.  We don&#8217;t need that, so we can install the package wget-nossl.</p>
<pre class="brush: bash;">
root@OpenWrt:~# opkg install wget-nossl -force-overwrite
</pre>
<p>The -force-overwrite is required or it&#8217;ll complain that wget is already installed:</p>
<blockquote><p> * Package wget-nossl wants to install file /usr/bin/wget<br />
	But that file is already provided by package  * busybox</p></blockquote>
<p>Anyway, once we&#8217;ve got wget installed, we can post a message to Twitter like this:</p>
<pre class="brush: bash;">
wget --http-user=wifispaught --http-password=password --post-data=status=&quot;test!&quot; http://twitter.com/statuses/update.xml
</pre>
<p>Now let&#8217;s see if we can&#8217;t add a Spot to the mix.</p>
<pre class="brush: java;">
StreamConnection serialStream = (StreamConnection) Connector.open(&quot;edemoserial://usart?baudrate=9600&amp;databits=8&amp;stopbits=1&amp;parity=none&quot;);
OutputStream out = serialStream.openOutputStream();
out.write((&quot;wget --http-user=wifispaught --http-password=mypassword --post-data=status=\&quot;Hello, world!\&quot; http://twitter.com/statuses/update.xml\n&quot;).getBytes());
</pre>
<p>Okay, we need some code to run on the Ubiquiti side of things:</p>
<pre class="brush: bash;">
root@OpenWrt:~# head -n 1 /dev/ttyS0 &amp;#124; ash
</pre>
<p>This will read a line off of the serial connection (ttyS0), and then pipe the output into ash (a simple shell included with BusyBox).  Since the SunSPOT is sending the wget command, there&#8217;s no need to do any parsing or logic.</p>
<p>Now I&#8217;ve got a SunSPOT posting to Twitter via wifi.</p>
<p>If you&#8217;re interested, here&#8217;s the <a href="https://twitter.com/wifispaught">twitter feed of the spot</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Disponible nuevas pruebas de LUGRo-Mesh]]></title>
<link>http://criadoindomable.wordpress.com/2009/07/20/disponible-nuevas-pruebas-de-lugro-mesh/</link>
<pubDate>Mon, 20 Jul 2009 23:47:19 +0000</pubDate>
<dc:creator>criadoindomable</dc:creator>
<guid>http://criadoindomable.wordpress.com/2009/07/20/disponible-nuevas-pruebas-de-lugro-mesh/</guid>
<description><![CDATA[En la página del grupo LUGRo-Mesh se encuentran disponibles las pruebas realizadas sobre una serie d]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>En la página del grupo LUGRo-Mesh se encuentran disponibles <a href="http://www.lugro-mesh.org.ar/pruebas.html" target="_blank">las pruebas realizadas</a> sobre una serie de nodos que ya están operativos y prestando servicios.</p>
<p>Hemos podido comprobar de manera fehaciente el desempeño del firmware <a href="http://nightwing.lugro-mesh.org.ar/" target="_blank">Nightwing </a>en condiciones reales.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Más de 2200 sitios de malware filtrados en la red Lugro-Mesh]]></title>
<link>http://criadoindomable.wordpress.com/2009/07/14/mas-de-2200-sitios-de-malware-filtrados-en-la-red-lugro-mesh/</link>
<pubDate>Tue, 14 Jul 2009 14:46:28 +0000</pubDate>
<dc:creator>criadoindomable</dc:creator>
<guid>http://criadoindomable.wordpress.com/2009/07/14/mas-de-2200-sitios-de-malware-filtrados-en-la-red-lugro-mesh/</guid>
<description><![CDATA[Según nuestras estadísticas, desde el 13 de junio al 13 de Julio se ha filtrado el acceso, a los usu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Según nuestras estadísticas, desde el 13 de junio al 13 de Julio se ha filtrado el acceso, a los usuarios de la <a href="http://www.lugro-mesh.org.ar" target="_blank">Red LUGRo-Mesh</a> , de más de 2.200 sitio de Malware.</p>
<p>Mediante políticas de filtrado y la utilización de <a href="http://www.opendns.org" target="_blank">OpenDNS</a> , se ha impedido que los usuarios que utilizan la Red LUGRo-Mesh, para el acceso a Internet, puedan ser infectados por posible Malware proveniente de más 2.213 sitios los cuales han sido bloqueados.</p>
<p>La Red LUGRo-Mesh posee, al día de hoy, más de 100 usuarios y <a href="http://wifidog.lugro-mesh.org.ar/hotspots_map.php" target="_blank">7 hostpots operativos en la ciudad</a> utilizando el firmware <a href="http://nightwing.lugro-mesh.org.ar/" target="_blank">Nightwing</a>. Se espera llegar a 10 a fín del mes de Julio.</p>
<p>En promedio se han agregado más de 30 usuarios por mes.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Dynamic DNS with joker.com and OpenWRT]]></title>
<link>http://beersponge.wordpress.com/2009/07/13/dynamic-dns-with-joker-com-and-openwrt/</link>
<pubDate>Sun, 12 Jul 2009 23:12:31 +0000</pubDate>
<dc:creator>wajciak</dc:creator>
<guid>http://beersponge.wordpress.com/2009/07/13/dynamic-dns-with-joker-com-and-openwrt/</guid>
<description><![CDATA[I recently switched some of my domains to Joker.com. One of the nice things Joker has is capability ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I recently switched some of my domains to <a title="Joker Domain Registrar" href="http://www.joker.com" target="_blank">Joker.com</a>. One of the nice things Joker has is capability to dynamically update DNS records.  I was going to use <a title="ez-ipupdate" href="http://ez-ipupdate.com/" target="_blank">ez-ipupdate</a>, but my OpenWRT router did not have enough free memory to install the package.</p>
<p>It rummaging through FAQ on Joker website it turns out I can update entries using <em>wget</em> in a cron job as well. All it takes is to set up cron entry that looks something like this:</p>
<p><code>0 * * * * wget "http://svc.joker.com/nic/update?username=BLAH&#38;password=BLAH&#38;hostname=myhost.example.com" &#62; /dev/null 2&#62;&#38;1</code></p>
<p>Username and password are supplied by Joker when setting up DDNS.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[OpenWrt su D-Link DSL-524T]]></title>
<link>http://linnotes.wordpress.com/2009/07/12/openwrt-su-d-link-dsl-524t/</link>
<pubDate>Sun, 12 Jul 2009 10:38:42 +0000</pubDate>
<dc:creator>Mattia</dc:creator>
<guid>http://linnotes.wordpress.com/2009/07/12/openwrt-su-d-link-dsl-524t/</guid>
<description><![CDATA[Oggi scrivo per tutti gli sfortunati possessori di questo fantastico router ADSL, ebbene sì! Vi illu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Oggi scrivo per tutti gli sfortunati possessori di questo <span style="text-decoration:line-through;">fantastico</span> router ADSL, ebbene sì! Vi illustrerò come salvare gli € spesi per questo baracchino, cambiando il firmware (quello originale è pessimo e buggato) e risolvendo il problema del surriscaldamento che causa i frequenti blocchi riscontrati soprattutto in condizioni di alto carico di rete.</p>
<div id="attachment_74" class="wp-caption aligncenter" style="width: 160px"><a href="http://linnotes.wordpress.com/files/2009/07/2009-07-11-10-49-031.jpg" target="_blank"><img class="size-thumbnail wp-image-74" title="D-Link DSL-524T Fronte" src="http://linnotes.wordpress.com/files/2009/07/2009-07-11-10-49-031.jpg?w=150" alt="Ecco come si presenta la cavia, prima di diventare il frankenstein informatico di turno..." width="150" height="112" /></a><p class="wp-caption-text">Ecco come si presenta la cavia, prima di diventare il frankenstein informatico di turno...</p></div>
<p>La procedura non richiede di aprire il router, ed è relativamente facile. Per installare OpenWrt bisognerà modificare le partizioni della flash, tramite il server FTP modificato del bootloader ADAM2. In caso voleste ripristinare il vecchio firmware, dovrete ripartizionare la flash coi valori originari (che io non mi sono segnato! ma sono facilmente individuabili nel programma CICLaMaB) per poi ricaricare l&#8217;immagine del firmware D-Link. Detto questo passiamo ai fatti!<!--more--></p>
<h2>Analisi tecnica</h2>
<div id="attachment_94" class="wp-caption aligncenter" style="width: 160px"><a href="http://linnotes.wordpress.com/files/2009/07/2009-07-11-10-49-37.jpg" target="_blank"><img class="size-thumbnail wp-image-94" title="D-Link DSL-524T Etichetta" src="http://linnotes.wordpress.com/files/2009/07/2009-07-11-10-49-37.jpg?w=150" alt="Questa etichetta riporta modello e revisione su cui ho fatto i miei esperimenti" width="150" height="112" /></a><p class="wp-caption-text">Questa etichetta riporta modello e revisione su cui ho fatto i miei esperimenti</p></div>
<h3>System-on-a-Chip:</h3>
<p>Modello: Texas Instruments AR7 TNETD7300<br />
Processore: MIPS 4KEc 32-Bit RISC @150MHz</p>
<h3>RAM:</h3>
<p>Modello: Hynix HY57V281620<br />
Capacità: 16MB</p>
<h3>Flash:</h3>
<p>Modello: Spansion S29AL032090<br />
Capacità: 4MB</p>
<h3>Switch:</h3>
<p>Modello: Infineon ADM6996M</p>
<div id="attachment_82" class="wp-caption aligncenter" style="width: 160px"><a href="http://linnotes.wordpress.com/files/2009/07/2009-07-11-10-50-52.jpg" target="_blank"><img class="size-thumbnail wp-image-82" title="D-Link DSL-524T Chips" src="http://linnotes.wordpress.com/files/2009/07/2009-07-11-10-50-52.jpg?w=150" alt="Ecco i vari componenti principali" width="150" height="112" /></a><p class="wp-caption-text">Ecco i vari componenti principali</p></div>
<h2>Immagine OpenWrt</h2>
<p>Per riflashare l&#8217;apparato avrete bisogno dell&#8217;immagine dell&#8217;ultima versione di OpenWrt (attualmente la 8.09.1) che potete trovare qui:<br />
http://downloads.openwrt.org/kamikaze/8.09.1/ar7/openwrt-ar7-squashfs.bin</p>
<p>In ogni caso, se avete un po&#8217; di dimestichezza vi consiglio di compilarvi la vostra immagine custom, scaricandovi l&#8217;ultima revision del trunk e includendo i pacchetti che vi servono. In questo modo i pacchetti rientreranno nella partizione compressa sola lettura squashfs e risparmierete spazio&#8230; installandoli in un secondo momento con opkg andrete a consumare memoria preziosa sulla partizione scrivibile jffs2!</p>
<p>Io ho preferito farmi la mia personalizzata, e ci ho incluso i pacchetti per il client DNS dinamico, il client NTP e l&#8217;interfaccia web X-Wrt. Per farlo, dovrete dare questi comandi nella directory in cui compilate OpenWrt:</p>
<pre>scripts/feeds install updatedd
scripts/feeds install ddns-scripts
scripts/feeds install ntpclient
scripts/feeds install webif</pre>
<p>E poi selezionarli (con l&#8217;asterisco) nel menu di configurazione per poi lanciare la compilazione vera e propria:</p>
<pre>make menuconfig
make world -j3</pre>
<p>L&#8217;opzione -j3 è molto utile se avete un processore multi-core o multi-threaded. In caso contrario non utilizzatela.</p>
<h2>La console FTP di ADAM2</h2>
<p>Prima di cominciare ricordatevi di <strong>non toccare</strong> la partizione <strong>mtd2</strong>, in quanto contiene il bootloader ADAM2 stesso&#8230; se lo toccaste rischiereste di rendere il vostro router non avviabile, richiedendo un ripristino via cavo JTAG. Uomo avvisato&#8230;!<br />
Per modificare le partizioni della flash e scriverla, vi occorrerà stabilire una connessione FTP all&#8217;indirizzo IP del bootloader. Il nostro D-Link DSL-524T all&#8217;accensione rimane in ascolto per qualche secondo sull&#8217;indirizzo 5.8.8.8, prima di avviare il sistema operativo.<br />
Bene, detto ciò, modificate l&#8217;indirizzo del vostro PC e impostateci qualcosa tipo 5.8.8.9/24 giusto per trovarvi nella stessa subnet. Ora con una console posizionatevi nella cartella dove avete salvato l&#8217;immagine del firmware. Avviate il router e due/tre secondi dopo lanciate il comando:</p>
<pre>ftp 5.8.8.8</pre>
<p>A questo punto, se è andato tutto bene vi verrà chiesto di inserire l&#8217;username e la password che sono entrambi <strong>adam2</strong>. In caso contrario, riavviate il router e riprovate a connettervi!</p>
<h3>Ripartizionare</h3>
<p>Una volta in console, dovremo inserire qualche comando per ottenere la seguente tabella di partizioni:</p>
<table border="1">
<tbody>
<tr>
<td style="text-align:center;" colspan="4"><strong>Custom memory map for OpenWRT</strong></td>
</tr>
<tr>
<td>Name</td>
<td>Start</td>
<td>End</td>
<td>Description</td>
</tr>
<tr>
<td>mtd0</td>
<td><tt>0x90086B80</tt></td>
<td><tt>0x903f0000</tt></td>
<td>Filesystem</td>
</tr>
<tr>
<td>mtd1</td>
<td><tt>0x90010000</tt></td>
<td><tt>0x90086B80</tt></td>
<td>Kernel</td>
</tr>
<tr>
<td>mtd2</td>
<td><tt>0x90000000</tt></td>
<td><tt>0x90010000</tt></td>
<td>bootloader</td>
</tr>
<tr>
<td>mtd3</td>
<td><tt>0x903f0000</tt></td>
<td><tt>0x90400000</tt></td>
<td>config</td>
</tr>
<tr>
<td>mtd4</td>
<td><tt>0x90010000</tt></td>
<td><tt>0x903f0000</tt></td>
<td>Kernel + FS</td>
</tr>
</tbody>
</table>
<p>Per farlo, digitate i seguenti comandi:</p>
<pre>quote "SETENV mtd0,0x90086B80,0x903f0000" (fs)
quote "SETENV mtd1,0x90010000,0x90086B80" (kernel)
quote "SETENV mtd4,0x90010000,0x903f0000" (fs+kernel)</pre>
<h3>Flashare</h3>
<p>Ora la tabella di partizioni è pronta.  Potete scrivere l&#8217;immagine di OpenWrt con:</p>
<p><span> </span></p>
<pre>quote "MEDIA FLSH"
binary
debug
hash
put "openwrt-ar7-squashfs.bin" "c mtd4"
quote REBOOT
quit</pre>
<p>Se non vi restituisce codici di errore avete finito&#8230; Altrimenti in caso di errore strambo (a me ha dato un codice 550, che mi ha impedito di caricare il file sulla partizione mtd4) provate ad usare il software CICLaMaB: basta inserirci l&#8217;indirizzo del bootloader e il path del file immagine &#8220;unico&#8221; che volete scrivere e premere il tasto &#8220;connetti&#8221;. A questo punto modificate le partizioni con il tasto apposito in modo da rispecchiare i valori riportati nella tabella in alto (forse c&#8217;è anche un preset chiamato &#8220;OpenWrt AR7 Port&#8221; che dovrebbe avere dei buoni valori) e infine premete il tasto per flashare il router. Non preoccupatevi se vi da errore al comando &#8220;quote REBOOT&#8221;, nonostante questa notifica tutto è andato come doveva.<br />
Ora aspettate qualche minuto, l&#8217;unità si riavvierà e da subito noterete che il led status lampeggia in modo diverso da prima: durante il boot in modo veloce e, una volta avviato, lampeggia in stile heartbeat.</p>
<h2>Primo avvio di OpenWrt</h2>
<p>Ora manca solo la parte più semplice!<br />
Eseguite l&#8217;accesso in telnet e configurate la vostra password col comando <em>passwd</em>. Ora chiudete la connessione telnet e riapritene una ssh ed eseguite le modifiche ai file di configurazione!</p>
<h3>Configurazione networking e ADSL</h3>
<p>Per configurare il modem col protocollo PPPoE ed incapsulamento LLC, fate in modo che il vostro file <em>/etc/config/network</em> somigli a quello riportato qui:</p>
<pre>root@DSL-524T:~# cat /etc/config/network 

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth0'
    option 'proto' 'static'
    option 'netmask' '255.255.255.0'
    option 'nat' '1'
    option 'ipaddr' '192.168.1.1'
    option 'macaddr' ''
    option 'ip6addr' ''
    option 'gateway' ''
    option 'ip6gw' ''
    option 'dns' ''

config atm-bridge
    option unit     0
    option encaps   llc
    option vpi      8
    option vci      35

config interface wan
    option ifname   nas0
    option proto    pppoe
    option username aliceadsl
    option password aliceadsl</pre>
<h3>Avvio automatico connessione ADSL</h3>
<p>Per far sì che il modem si connetta automaticamente all&#8217;avvio, dovete fare una piccola modifica al fie <em>/etc/init.d/network</em>. Sostituite all&#8217;interno della funzione <em>boot()</em> l&#8217;ultima istruzione: al posto di <span><em>/sbin/wifi</em> up scrivete <em>start</em>.<br />
Dovrebbe risultare qualcosa del genere:<br />
</span></p>
<pre><span>boot() {
    ...
    setup_switch
</span><span>    [ -s /etc/config/wireless ] &#124;&#124; \
</span><span>        /sbin/wifi detect &#62; /etc/config/wireless
</span>    <span>start
</span><span>}</span></pre>
<p><span>Ora salvate e riavviate. Una volta che il led status è in heartbeat e il led ADSL è acceso fisso provate a pingare un indirizzo internet&#8230; se ottenete risposta avete finito&#8230; altrimenti&#8230; ricontrollate i file di configurazione!</span></p>
<h3><span>Interfaccia Web X-Wrt</span></h3>
<p><span>Per qualsiasi altra configurazione, potete affidarvi all&#8217;interfaccia X-Wrt. Inserite nel browser l&#8217;idirizzo IP del vostro router, alla richiesta di username inserite <strong>root</strong> e come password quella che avete impostato col comando <em>passwd</em> alla prima connessione telnet. L&#8217;interfaccia è molto intuitiva, se siete arrivati fin qui non c&#8217;è bisogno che ve la spieghi!!! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></p>
<h2><span>Dissipatore per la CPU</span></h2>
<p><span>Per abbassare le temperature della calorosa CPU, ho recuperato un dissipatore da un transistor MOSFET e l&#8217;ho appiccicato con una goccia di colla e 2 strisce di pasta termoconduttiva al SoC. Avevo notato che anche lo switch ADM6996M scaldava, ma ho deciso di non aggiungerci un dissipatore&#8230; probabilmente questo componente è costruito con un processo produttivo meno recente e di dimensioni maggiori, per cui dovrebbe risentire meno del calore.</span></p>
<p><span>Vi riporto un paio di foto del piccolo mod effettuato al router:</span></p>
<p style="text-align:center;"><span> </span></p>
<div id="attachment_95" class="wp-caption aligncenter" style="width: 160px"><a href="http://linnotes.wordpress.com/files/2009/07/2009-07-12-12-02-39.jpg" target="_blank"><img class="size-thumbnail wp-image-95" title="D-Link DSL-524T CPU + pasta" src="http://linnotes.wordpress.com/files/2009/07/2009-07-12-12-02-39.jpg?w=150" alt="La CPU con colla e pasta termoconduttiva" width="150" height="112" /></a><p class="wp-caption-text">La CPU con colla e pasta termoconduttiva</p></div>
<div id="attachment_96" class="wp-caption aligncenter" style="width: 160px"><a href="http://linnotes.wordpress.com/files/2009/07/2009-07-12-12-07-01.jpg" target="_blank"><img class="size-thumbnail wp-image-96" title="D-Link DSL-524T CPU + dissipatore" src="http://linnotes.wordpress.com/files/2009/07/2009-07-12-12-07-01.jpg?w=150" alt="Ecco la CPU con il dissipatore applicato" width="150" height="112" /></a><p class="wp-caption-text">Ecco la CPU con il dissipatore applicato</p></div>
<h2>LED Mod</h2>
<p>Dato che i LED verdi del router sono invisibili di giorno, ma soprattutto dalla postazione dove mi trovo di solito, ho provveduto a dissaldare il LED di status e a sostituirlo con uno ad alta luminosità azzurro, recuperato da una RB411 colpita da un fulmine&#8230; l&#8217;effetto finale è ottimo!</p>
<div id="attachment_105" class="wp-caption aligncenter" style="width: 160px"><a href="http://linnotes.wordpress.com/files/2009/07/2009-07-13-19-01-38.jpg" target="_blank"><img class="size-thumbnail wp-image-105" title="D-Link DSL-524T LED Mod" src="http://linnotes.wordpress.com/files/2009/07/2009-07-13-19-01-38.jpg" alt="Il nuovo led status azzurro, ora suffiicentemente visibile anche di giorno!" width="150" height="112" /></a><p class="wp-caption-text">Il nuovo led status azzurro, ora suffiicentemente visibile anche di giorno!</p></div>
<p>Stanotte controllerò se è troppo luminoso o se mi permette di dormire!</p>
<h2>Bibliografia</h2>
<ol>
<li><a href="http://www.linux-mips.org/wiki/AR7" target="_blank">La pagina</a> di Linux MIPS su TI AR7</li>
<li><a href="http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)D(2d)Link(2f)DSL(2d)524T.html?highlight=(OpenWrtDocs/Hardware)" target="_blank">La pagina</a> OpenWrt OldWiki dedicata al DSL-524T</li>
<li><a href="http://ciclamab.altervista.org/index_it.php" target="_blank">CICLaMaB</a> <strong>C</strong>he <strong>I</strong>ddio <strong>C</strong>e <strong>La</strong> <strong>Ma</strong>ndi <strong>B</strong>uona</li>
</ol>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[OpenWRT]]></title>
<link>http://blog.xeno-genesis.com/2009/06/28/openwrt/</link>
<pubDate>Sun, 28 Jun 2009 14:48:31 +0000</pubDate>
<dc:creator>Jean Pierre Rupp</dc:creator>
<guid>http://blog.xeno-genesis.com/2009/06/28/openwrt/</guid>
<description><![CDATA[I have a Linksys WRT54GL router at home. I had DD-WRT installed on it, and used it as a home wireles]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://www.openwrt.org/"><img class="alignnone" title="WRT54GL" src="http://nxadm.files.wordpress.com/2008/11/wrt54gl.jpg?w=400&#038;h=282" alt="" width="400" height="282" /></a></p>
<p>I have a Linksys WRT54GL router at home. I had DD-WRT installed on it, and used it as a home wireless access point, router and IPv6 6to4 gateway. So far it was working flawlessly, until I changed my ISP to Sunrise.</p>
<p>After the switch, I started having a weird PPPoE related issue where the router would redial the connection every 30 minutes. There was no elegant solution available, and the unelegant solution wasn&#8217;t good enough.</p>
<p>I decided to be a macho and install OpenWRT. I&#8217;ve read on the Internet that I should be prepared to spend some time configuring it manually without expecting a good web interface.</p>
<p>It was a very pleasant surprise to find a very nice web administration interface, not as nice as DD-WRT, but it allowed me to configure more aspects of the router behavior. PPPoE with Sunrise just works, and the OpenWRT distribution feels more like a full-blown desktop/server distribution, with package management and all. I just love it.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Granada Wireless]]></title>
<link>http://jauladefaraday.wordpress.com/2009/06/15/granada-wireless/</link>
<pubDate>Mon, 15 Jun 2009 22:37:17 +0000</pubDate>
<dc:creator>jauladefaraday</dc:creator>
<guid>http://jauladefaraday.wordpress.com/2009/06/15/granada-wireless/</guid>
<description><![CDATA[Comunidades Wireless: Ile Sans Fil Lugro-Mesh Rosario Argentina OpenWrt: http://openwrt.org/ WifiDog]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><ul>
<li><strong>Comunidades Wireless:<br />
</strong></li>
<blockquote>
<li><a title="Ile Sans Fil" href="http://www.ilesansfil.org/welcome/" target="_blank">Ile Sans Fil</a></li>
<li><a href="http://www.lugro-mesh.org.ar/" target="_blank">Lugro-Mesh</a></li>
<li><a href="http://www.rosario.gov.ar/sitio/gobierno/gestion/wifi.jsp" target="_blank">Rosario Argentina</a></li>
</blockquote>
</ul>
<ul>
<li><strong>OpenWrt:</strong></li>
<blockquote>
<li><a title="openwrt" href="http://openwrt.org/" target="_blank">http://openwrt.org/</a></li>
</blockquote>
</ul>
<ul>
<li><strong>WifiDog:</strong></li>
</ul>
<blockquote>
<ul>
<li><a title="WifiDog" href="http://dev.wifidog.org/" target="_blank">http://dev.wifidog.org/</a></li>
</ul>
</blockquote>
<ul>
<li><strong>Implementación de puntos de acceso gratuito WiFi utilizando Software Libre:</strong></li>
</ul>
<ul>
<blockquote>
<li><a title="Documentacion" href="http://www.fceia.unr.edu.ar/lcc/jcc/2007/charlas/viernes/FedericoLazcanoJavierKohan.jcc2007.pdf" target="_blank">Documentación</a></li>
</blockquote>
<li><strong>Mesh Networking:</strong></li>
<blockquote>
<li><a href="http://en.wikipedia.org/wiki/Mesh_networking" target="_blank">http://en.wikipedia.org/wiki/Mesh_networking</a></li>
</blockquote>
<li><strong><a title="publicwifi:public_wireless_internet_access" href="http://justuber.com/publicwifi:public_wireless_internet_access">The Public Wireless Internet Project</a></strong></li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[OpenWRT on ALIX with PPPoA ADSL Conexant based USB modem (cxacru)]]></title>
<link>http://linnotes.wordpress.com/2009/06/14/openwrt-on-alix-with-pppoa-adsl-conexant-based-usb-modem-cxacru/</link>
<pubDate>Sun, 14 Jun 2009 22:23:01 +0000</pubDate>
<dc:creator>Mattia</dc:creator>
<guid>http://linnotes.wordpress.com/2009/06/14/openwrt-on-alix-with-pppoa-adsl-conexant-based-usb-modem-cxacru/</guid>
<description><![CDATA[Awesome post title&#8230; anyway, This is how I built a powerful Wi-Fi ADSL router, using my ALIX2D3]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Awesome post title&#8230; anyway,</p>
<p>This is how I built a powerful Wi-Fi ADSL router, using my ALIX2D3 (previously running PFsense), a spare USB ADSL modem (Trust MD-3100) and a CM9 atheros-based miniPCI card.</p>
<p><!--more--></p>
<h2>Requirements</h2>
<ul>
<li>ADSL modem (Conexant based for this howto)</li>
<li>Average Linux knowledge</li>
<li>vi editor familiarity</li>
<li>USB CF card reader</li>
</ul>
<h2>Installing OpenWrt on CF card for ALIX boards</h2>
<p>Boot your favourite Linux distribution. If you don&#8217;t have one try <a title="Ubuntu LiveCD" href="http://www.ubuntu.com/getubuntu/download">Ubuntu LiveCD</a>: it loads in RAM and leave you data untouched.<br />
Plug your CF card in your USB CF reader, and plug it in your USB connector. If your CF card isn&#8217;t formatted, your Linux may auto-mount the card&#8217;s partitions; if so, unmount them.<br />
Type in terminal as root (may need <em>su</em> or <em>sudo</em> command):</p>
<pre>fdisk -l</pre>
<p>In the list of disks shown, identify your CF card and write down its name, the device size should help you (tip: assuming <em>/dev/sda</em> as your first sata disk, CF card should be named <em>/dev/sdb</em>).<br />
Now download from <a title="OpenWRT Image" href="http://downloads.openwrt.org/kamikaze/8.09.1/x86/openwrt-x86-ext2.image">here</a> the 8.09.1 (lastest at the time of writing) version of OpenWrt x86 image.<br />
All we need to do now, is to copy the image over the CF card.<br />
<strong>WARNING</strong>: if you use the wrong device name for the next command, you may wipe out all your hard disk data.<br />
Assuming your CF card device name <em>/dev/sdX</em> type this:</p>
<pre>dd if=openwrt-x86-ext2.image of=/dev/sdX</pre>
<p>Wait some time, and the command should end printing a report of written blocks. Now start GParted or your favourite partition editor, and grow the ext2 partition of your card up to fill the empty space.</p>
<h2>Installing LuCI or X-Wrt web interface</h2>
<p>OK, it is pretty useless for what we&#8217;re doing, but with a 1GB CF card, why not waste some space for a cool web interface??? Choose one of the following:</p>
<h3>#1 LuCI:</h3>
<pre>opkg update
opkg install luci-admin-full<a href="http://linnotes.wordpress.com/wp-admin/post.php?action=edit&#38;post=45"></a></pre>
<p>And then add all the <em>luci-app-***</em> packages you want to simplify your applications management.</p>
<h3>#2 X-Wrt:</h3>
<pre>echo "src X-Wrt <a title="http://downloads.x-wrt.org/xwrt/kamikaze/8.09/brcm-2.4/packages" rel="nofollow" href="http://downloads.x-wrt.org/xwrt/kamikaze/8.09/brcm-2.4/packages">http://downloads.x-wrt.org/xwrt/kamikaze/8.09/x86/packages</a>" &#62;&#62; /etc/opkg.conf
opkg update
opkg remove -recursive luci-* //NOTE: only if you have previously installed LuCI
opkg install webif</pre>
<h2>Configuring ADSL modem</h2>
<h3>Install needed USB kernel modules:</h3>
<pre>opkg update
opkg install kmod-usb-atm-cxacru kmod-usb2 kmod-usb-uhci</pre>
<p>Download and put the ADSL modem firmware (<a title="cxacru-fw.bin" href="http://www.mediafire.com/file/mmxn9j3yito/cxacru-fw.bin">cxacru-fw.bin</a>) in <em>/lib/firmware/</em>.<br />
Plug in the USB modem, and type:</p>
<pre>dmesg &#124; tail</pre>
<p>Keep checking the output of this command, until you&#8217;ll get the &#8220;ADSL Line: up&#8221; state:</p>
<pre>cxacru 1-1:1.0: receive of cm 0x90 failed (-104)
cxacru 1-1:1.0: found firmware cxacru-fw.bin
ATM dev 0: ADSL state: stopped
ATM dev 0: ADSL line: down
ATM dev 0: ADSL state: running
ATM dev 0: ADSL line: initializing
ATM dev 0: ADSL line: down
ATM dev 0: ADSL line: attempting to activate
ATM dev 0: ADSL line: down
ATM dev 0: ADSL line: attempting to activate
ATM dev 0: ADSL line: training
ATM dev 0: ADSL line: attempting to activate
ATM dev 0: ADSL line: training
ATM dev 0: ADSL line: channel analysis
ATM dev 0: ADSL line: up (7584 kb/s down &#124; 480 kb/s up)</pre>
<h3>Configuring WAN interface</h3>
<p>Now we&#8217;ll set up the WAN using the <em>ppp0</em> interface that will be created by <em>pppd</em>.<br />
The following configuration works for my ISP (Telecom Italia) edit it with your ISP parametes.</p>
<pre>uci set network.wan=interface
uci set network.wan.proto=pppoa
uci set network.wan.ifname=ppp0
uci set network.wan.encaps=vc
uci set network.wan.vpi=8
uci set network.wan.vci=35
uci set network.wan.username=aliceadsl
uci set network.wan.password=aliceadsl
uci set network.wan.peerdns=1
uci commit network
/etc/init.d/network restart</pre>
<p>Now the <em>ppp0</em> interface should come up and you&#8217;ll be able to reach internet.</p>
<h3>ADSL sync wait script</h3>
<p>The only problem is that on startup, before upping the WAN interface, the system must wait for the ADSL line to come up. I solved this problem with this simple script that start on boot, wait for ADSL sync and then restart the OpenWrt network. It is a modified version of the one you find in Reference #2 at the bottom of this post.<br />
Create the file /etc/init.d/adsl and paste this script in it:</p>
<pre>#!/bin/sh /etc/rc.common
# ADSL start script

START=98

boot() {
 exsist=0
 sync=0
 until [[ -e /proc/net/atm/cxacru\:0 ]]
 do
 if [[ $exsist = '0' ]]
 then
 echo "InitAdsl Waiting cxacru.fw loading"
 exsist=1
 fi
 done
 echo "InitAdsl Firmware loaded"
 end=0
 while [[ $end = '0' ]]
 do
 if [[ $sync = '0' ]]
 then
 echo "InitAdsl Waiting sync"
 sync=1
 fi
 if [[ `grep Line /proc/net/atm/cxacru\\:0 &#124; cut -d' ' -f2` = 'up' ]]
 then
 end=1
 /etc/init.d/network restart
 echo "InitAdsl Sync done"
 fi
 done
}</pre>
<p>Save the file and type on terminal:</p>
<pre>/etc/init.d/adsl enable</pre>
<p>Now reboot your router. Everything should work automagically. My router in 3 minutes is connected and providing natted internet service to the dhcp clients.</p>
<h2>Configuring wireless interface</h2>
<p>TODO!</p>
<h2>References</h2>
<ol>
<li>LuCI <a title="LuCI Reference site" href="http://dev.luci.freifunk-halle.net/docsrv/index.xml" target="_blank">Reference</a></li>
<li>Modem sync wait script from <a title="MandrakeItalia.org" href="http://www.mandrakeitalia.org/modules/wfsection/article.php?articleid=142" target="_blank">MandrakeItalia.org</a></li>
<li>Various infos taken from <a title="Paolo Minazzi's page" href="http://spazioinwind.libero.it/paolo_minazzi/aethra-starmodem.html">Paolo Minazzi&#8217;s page</a></li>
<li>PC Engines&#8217; <a title="ALIX" href="http://pcengines.ch/alix.htm" target="_blank">ALIX</a> boars</li>
</ol>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[8 nuevos nodos probables para Lugro-Mesh]]></title>
<link>http://criadoindomable.wordpress.com/2009/06/07/nuevos-nodos-probables-para-lugro-mesh/</link>
<pubDate>Sun, 07 Jun 2009 20:43:40 +0000</pubDate>
<dc:creator>criadoindomable</dc:creator>
<guid>http://criadoindomable.wordpress.com/2009/06/07/nuevos-nodos-probables-para-lugro-mesh/</guid>
<description><![CDATA[Desde que se hizo el llamado para incorporar nodos a la red Lugro-Mesh ya son 8 los nuevos nodos que]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img style="max-width:800px;float:left;margin-top:10px;margin-bottom:10px;margin-right:10px;" src="http://criadoindomable.files.wordpress.com/2009/06/lugro-mesh-logo1.gif" alt="" />Desde que <a href="http://criadoindomable.wordpress.com/2009/06/03/buscando-nodos-para-la-red-lugro-mesh/" target="_blank">se hizo el llamado</a> para incorporar nodos a la red <a href="http://www.lugro-mesh.org.ar/red_lugro_mesh.html" target="_blank">Lugro-Mesh</a> ya son 8 los nuevos nodos que están programados en la ciudad de Rosario.<br />
Nos pone muy contentos que existan personas que piensan como nosotros sobre la importancia del acceso a la información y que quieran participar de un proyecto tan ambicioso como el que tenemos. Lograr que Rosario tenga acceso libre a Internet en cada rincón.</p>
<p>El desarrollo del firmware <a href="http://nightwing.lugro-mesh.org.ar/" target="_blank">Nightwing</a> nos está permitiendo contar con una base solida para formar la red de equipos que servirán de soporte para la red.<br />
Esperemos poder seguir sumando gente y nodos. Mientras,<a href="https://wifidog.lugro-mesh.org.ar/hotspots_map.php" target="_blank"> el mapa de Rosario </a>ya empieza a tener más actividad.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Buscando Nodos para la red Lugro Mesh]]></title>
<link>http://criadoindomable.wordpress.com/2009/06/03/buscando-nodos-para-la-red-lugro-mesh/</link>
<pubDate>Thu, 04 Jun 2009 02:31:52 +0000</pubDate>
<dc:creator>criadoindomable</dc:creator>
<guid>http://criadoindomable.wordpress.com/2009/06/03/buscando-nodos-para-la-red-lugro-mesh/</guid>
<description><![CDATA[Tal vez muchos lo sepan, tal vez muchos otros no, pero desde hace un tiempo existe un proyecto muy a]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div>Tal vez muchos lo sepan, tal vez muchos otros no, pero desde hace un tiempo existe un proyecto muy activo dentro del <a href="http://www.lugro.org.ar" target="_blank">Lugro</a> que se llama</p>
<div id="attachment_1207" class="wp-caption alignright" style="width: 385px"><a href="http://www.lugro-mesh.org.ar/"><img class="size-full wp-image-1207" title="lugro-mesh-logo.gif" src="http://criadoindomable.wordpress.com/files/2009/06/lugro-mesh-logo.gif" alt="Logo Red Lugro-Mesh" width="375" height="325" /></a><p class="wp-caption-text">Logo Red Lugro-Mesh</p></div>
</div>
<div><a href="http://www.lugro-mesh.org.ar/" target="_blank">Lugro-Mesh</a> que tiene como uno de <a href="http://www.lugro-mesh.org.ar/objetivos.html" target="_blank">sus objetivos</a> la <strong>creación de una Red Mesh WiFi Comunitaria</strong>.</div>
<div></div>
<div style="text-align:justify;">Creemos desde el principio de nuestras investigaciones allá por el 2007 (algunos ya habíamos estado investigando sobre la temática Wireless desde al año 2003 con <a href="http://www.lugro.org.ar/mailman/listinfo/lugro-wireless" target="_blank">Lugro-Wireless</a>) que la mejor forma de realizar la red WiFi en una ciudad como Rosario, por sus características geográficas y dada la necesidad de redundancia y posibilidad de rápido deployment es utilizando la tecnología de <a href="http://en.wikipedia.org/wiki/Mesh_network" target="_blank">redes MESH</a>.</div>
<div style="text-align:justify;">Hemos estado trabajando en el armado de un firmware para poder utilizar hardware de bajo costo denominado <a href="http://nightwing.lugro-mesh.org.ar/" target="_blank">Nightwing</a> el cual ya está listo para ser usado para montar nodos en la ciudad.</div>
<div style="text-align:justify;">
<p><strong>Nos alegra mucho en el grupo Lugro-Mesh llegar a este momento en el cual se comienza a buscar voluntarios que estén interesados en participar para montar nodos.</strong></p>
<p><strong> </strong>El hardware utilizado lo podrán ver aquí: <a href="http://www.lugro-mesh.org.ar/hardware_utilizado.html" target="_blank">http://www.lugro-mesh.org.ar/hardware_utilizado.html.</a></p>
<p>El más conveniente en relación precio beneficio creemos que es el NanoStation2 que sale unos U$S 115. (no, no lo vendemos nosotros. No vendemos equipos).</p>
<p>Todos aquellos interesados podrás comunicarse mediante <a href="http://www.lugro.org.ar/mailman/listinfo/lugro-mesh" target="_blank">la lista del proyecto</a> o mediante otros mecanismos de comunicación que dispone el grupo en <a href="http://www.lugro-mesh.org.ar/" target="_blank">su sitio</a> para así poder hacer sus preguntas.</p>
<p>Estaremos incorporando a todos aquellos interesados en el mapa del proyecto: <a href="https://wifidog.lugro-mesh.org.ar/hotspots_map.php" target="_blank">https://wifidog.lugro-mesh.org.ar/hotspots_map.php</a></p>
<p>Por lo que necesitamos nos comuniquen a <a href="mailto:lugro-mesh-dev%7Bno-spam%7Dlugro.org.ar" target="_blank">lugro-mesh-dev AT lugro.org.ar </a>la dirección aproximada del lugar donde montaran el nodo.</p>
<p>Existen además otros mecanismos para colaborar en el proyecto. Los mismos podrán ser consultados desde: <a href="http://www.lugro-mesh.org.ar/doc/como_participar/" target="_blank">http://www.lugro-mesh.org.ar/doc/como_participar/</a></p>
<p>Desde ya muchas gracias y esperamos contar con la colaboración de todos los que puedan.</p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Hard disk health monitoring in Debian Lenny using smartmontools]]></title>
<link>http://kurinji.wordpress.com/2009/06/03/hard-disk-health-monitoring-in-debian-lenny-using-smartmontools/</link>
<pubDate>Wed, 03 Jun 2009 04:38:32 +0000</pubDate>
<dc:creator>knau9ht</dc:creator>
<guid>http://kurinji.wordpress.com/2009/06/03/hard-disk-health-monitoring-in-debian-lenny-using-smartmontools/</guid>
<description><![CDATA[Install smartmontools from the repository. thinkpad:~# aptitude install smartmontools Enable SMART m]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Install smartmontools from the repository.</p>
<pre>thinkpad:~# aptitude install smartmontools</pre>
<p>Enable SMART monitoring on the SATA drive.</p>
<pre>thinkpad:~# smartctl -s on  -d ata /dev/sda</pre>
<p>Check the health of the drive.</p>
<pre>thinkpad:~# smartctl -d ata -H /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED</pre>
<p>Run a short self test on the drive and check the test log.</p>
<pre>thinkpad:~# smartctl -t short /dev/sda
thinkpad:~# smartctl -l selftest /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      4156         -</pre>
<p>In order to configure <code>smartd</code> to monitor the hard disk, enable it in <code>/etc/default/smartmontools</code>.</p>
<pre># uncomment to start smartd on system startup
start_smartd=yes</pre>
<p>Set the schedule and monitoring options by editing <code>/etc/smartd.conf</code>. Comment out all the DEVICESCAN lines and add a line for the main hard drive.</p>
<pre># First (primary) ATA/IDE hard disk.  Monitor all attributes, enable
# automatic online data collection, automatic Attribute autosave, and
# start a short self-test every day between 2-3am, and a long self test
# Saturdays between 3-4am. Send mail on SMART failures
/dev/sda -a -o on -S on -s (S/../.././02&#124;L/../../6/03) -m naveen@localhost</pre>
<p>Start the smart daemon.</p>
<pre>thinkpad:~# /etc/init.d/smartmontools restart
 * Restarting S.M.A.R.T. daemon smartd                        [ OK ]</pre>
</div>]]></content:encoded>
</item>

</channel>
</rss>
