Posts mit dem Label openwrt werden angezeigt. Alle Posts anzeigen
Posts mit dem Label openwrt werden angezeigt. Alle Posts anzeigen

Freitag, 28. September 2012

unbrick WR703n

This is copied directly from Here http://forums.openpilot.org/blog/52-fertitos-blog/. All due honor goes directly to the creators. 

Unbrick wr703n wifi router

http://forums.openpilot.org/blog/52/entry-92-unbrick-wr703n-wifi-router/

It worked form me perfectly with a CP210x USB TTL serial bridge, little soldering problems, and some initial tinkerings with the TFTP server.

It is copied because i don't want to loose this important information if the blog goes maybe offline.



----------------- QUOTE BEGIN -----------------

Hello,
if like myself you push the thing a little too far, you should find this usefull ;)

If nothing is responding anymore on your router :

locate the GND, TX and RX on the board :
Posted Image

solder some wire on it, this is very difficult, because it is really small and the solder doesn't stick well on it. Once it is done, glue everything and let some easy access wire, that could be usefull after.

Plug a 3.3V ttl serial adapter (pl2303, ftdi, ...) on the wire and open a serial terminal (minicom, realterm, docklight, ...) @ 115200/8/N/1/XON-XOFF.

power on the wr703n and quiclky send "tpl" followed by enter to the terminal, this will make the wr703n enter in rescue U-boot hornet.

install a small tftp server on your computer (ex: http://tftpd32.jounin.net/) and plug an ethernet cable between your computer and the wr703n.
Configure the IP adress of your computer to 192.168.1.100 and put the file
openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
on the tftp server.

On the serial terminal enter the following lines :

hornet> tftpboot 0x81000000 openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
hornet> erase 0x9f020000 +0x3c0000
hornet> cp.b 0x81000000 0x9f020000 0x3c0000
hornet> bootm 9f020000

wait until it has uploaded and another extra couple of second before reset.

unplug the power, wait a bit, replug, the system should be freshly working...

;)

----------------- QUOTE END -----------------


Freitag, 10. August 2012

openWRT Bridge with Relayd (Pseudobridge)


Recipe for Bridging with Atheros Chipsets


Works for TP-Link TL-WR703n as an example.

based on this two links
http://trac.gateworks.com/wiki/relayd
http://wiki.openwrt.org/doc/recipes/relayclient
https://forum.openwrt.org/viewtopic.php?pid=173467#p173467


Connect your Router with your WAN-Router Device (modem, switch, ... )
root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install relayd

root@OpenWrt:~# opkg install luci-proto-relay
root@OpenWrt:~# opkg install wpad

root@OpenWrt:~# /etc/init.d/relayd enable

set ip Address of the LAN to something different
root@OpenWrt:/etc/config vi network
config interface lan
        option ifname   eth0
        option type     bridge
        option proto    static
        option ipaddr   10.0.1.1 
        option netmask  255.255.255.0

reboot or restart network.
root@OpenWrt:~# /etc/init.d/network restart

Set your IP Address of your PC to 10.0.1.2
Connect your Router with your PC.
disable any DHCP.

Connect to Luci with your browser to 10.0.1.1


Go to network, wifi make a scan
join your wifi,

make all your settings for the Wifi device, at this part a new interface is created

Go to Network->Interfaces
Edit the new created interface (WWAN) for example

Make a static or dhcp adress here.
disable any DHCP.

Create a new Interface "stabridge" in the Interface section.
use the "relay bridge" protocol

Relay between networks WWAN and LAN.

check
lan/wwan is set to IP address in a different net
interface stabridge is set to relay between lan/eth0 and wwan/wlan0
wlan0/wwan is interface is assigned

change Firewall rules



Zone Forwarding, set to Accept


DONE




Montag, 6. August 2012

mumuDVB on openWRT and FSG-3

Work in process

http://ocsovszki-dorian.blogspot.co.at/2011/10/tp-link-wr1043nd-openwrt-dvb-t-with.html
https://forum.openwrt.org/viewtopic.php?pid=144920


http://wiki.openwrt.org/doc/howto/usb.video#applications

Howto for NSLU2
http://mumudvb.braice.net/mumudrupal/node/36
http://wiki.openwrt.org/doc/devel/packages

WL500gp with DVB-T stick
http://wl500g.info/showthread.php?24049-DVB-T-Streaming-mit-wl500gp

http://masu.6f.sk/index.php/Nsa310_dvbt

http://www.csquad.org/tag/mumudvb/ <-- need google translator

https://forum.openwrt.org/viewtopic.php?id=12357

 root@fsg3:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 048d:9135 Integrated Technology Express, Inc. Zolid Mini DVB-T Stick


[  820.358795] usb 1-5: new high-speed USB device number 4 using ehci_hcd
r


Bus 002 Device 005: ID ffc0:0040
Bus 001 Device 004: ID 1bcf:2881 Sunplus Innovation Technology Inc.
Bus 002 Device 004: ID 8086:0189 Intel Corp.
Bus 003 Device 004: ID 048d:9135 Integrated Technology Express, Inc. Zolid Mini DVB-T Stick



[13532.230198] usb 3-1: new high-speed USB device number 5 using xhci_hcd
[13532.250902] usb 3-1: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[13532.250913] usb 3-1: ep 0x2 - rounding interval to 32768 microframes, ep desc says 0 microframes
[13532.250921] usb 3-1: ep 0x84 - rounding interval to 32768 microframes, ep desc says 0 microframes
[13532.250928] usb 3-1: ep 0x85 - rounding interval to 32768 microframes, ep desc says 0 microframes
[13532.252395] it913x: Chip Version=02 Chip Type=9135
[13532.253837] it913x: Dual mode=0 Remote=5 Tuner Type=6b
[13532.254874] dvb-usb: found a 'ITE 9135 Generic' in cold state, will try to load a firmware
[13532.258261] dvb-usb: did not find the firmware file. (dvb-usb-it9137-01.fw) Please see linux/Documentation/dvb/
for more details on firmware-problems. (-2)
[13532.258271] it913x: DEV it913x Error




http://linuxtv.org/wiki/index.php?title=ITE_IT9135&oldid=30816












T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=048d ProdID=9135 Rev= 2.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0m




Dienstag, 31. Juli 2012

openWRT Performance

http://wiki.openwrt.org/doc/howto/performance

http://wiki.openwrt.org/inbox/benchmark.openssl

http://wiki.openwrt.org/doc/howto/bwmon
http://it.toolbox.com/blogs/database-soup/testing-disk-speed-the-dd-test-31069

SWAP wih openWRT

http://wiki.openwrt.org/doc/uci/fstab

:!: The package block-mount is required:
  1. Install
    opkg update
    opkg install block-mount
  2. enable (make it start automatically on every boot up)
    /etc/init.d/fstab enable
  3. and start (right now)
    /etc/init.d/fstab start
Whenever you change your configuration, restart this to make it take effect:
/etc/init.d/fstab restart
 
 
 
usefull commands
 
df 
free 
mounts



package swap-utils
 mkswap, swapon and swapoff.
 
cat /proc/meminfo  

http://www.linuxhotbox.com/adminguide/lnag_drives.html#swap
 
 
www.thegeekstuff.com/2010/08/how-to-add-swap-space/ 
 
 
 
http://linux.about.com/library/cmd/blcmdl8_swapon.htm
 
 

FSTAB
http://wiki.openwrt.org/doc/uci/fstab#notes

Howto Swapfile
https://forum.openwrt.org/viewtopic.php?id=12419
 
 
 



Montag, 30. Juli 2012

openWRT Samba share

How to Share a Directory to Win/Linux Environment. 

http://tldp.org/HOWTO/SMB-HOWTO-8.html


Force user = root
force directory mode = 0777
force create mode = 0777
force group = root
# deny  user = root



http://wiki.openwrt.org/doc/hardware/performance#real-world.sambantfs.performance
https://forum.openwrt.org/viewtopic.php?id=27750

https://forum.openwrt.org/viewtopic.php?pid=127938#p127938


http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html
https://dev.openwrt.org/ticket/9992

https://calomel.org/samba_optimize.html


http://linux.about.com/od/commands/l/blcmdl.htm
http://linux.about.com/od/commands/l/blcmd.htm
http://linux.about.com/od/commands/l/blcmdl5_fstab.htm
http://linux.about.com/od/commands/l/blcmdl8_mount.htm
http://linux.about.com/library/cmd/blcmdl8_mkswap.htm
http://linux.about.com/

http://h-wrt.com/de/doc/hd