tiri technology blog

im web oder während unserer arbeit gefunden

19. März 2009

openwrt und TrendNet TEW-652BRP

Abgelegt unter: Allgemein — Tags:, , — tirili @ 11:42

Erster Login nach dem Flashen mit Stephen Gutknechts Firmware r14786.

Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
 === IMPORTANT ============================
  Use 'passwd' to set your login password
  this will disable telnet and enable SSH
 ------------------------------------------
 
 
BusyBox v1.11.3 (2009-03-08 05:47:50 CDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
 
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r14786) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------

uname

root@OpenWrt:/# uname -a
Linux OpenWrt 2.6.28.7 #2 Sun Mar 8 05:59:30 CDT 2009 mips unknown

df

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.4M      2.4M         0 100% /
/dev/root                 2.4M      2.4M         0 100% /rom
tmpfs                    14.6M    108.0k     14.5M   1% /tmp
tmpfs                   512.0k         0    512.0k   0% /dev
mini_fo:/tmp/root         2.4M      2.4M         0 100% /tmp/root
/dev/mtdblock4          640.0k    208.0k    432.0k  33% /jffs
mini_fo:/jffs             2.4M      2.4M         0 100% /

CPU

root@OpenWrt:/# cat /proc/cpuinfo
system type             : Atheros AR9130 rev 1 (id:0xb4)
machine                 : TRENDnet TEW-632BRP
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 266.24
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x08e0, 0x0f
fb, 0x0560]
ASEs implemented        : mips16
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

memory

root@OpenWrt:/# cat /proc/meminfo
MemTotal:          29840 kB
MemFree:           12804 kB
Buffers:            1336 kB
Cached:             4824 kB
SwapCached:            0 kB
Active:             3032 kB
Inactive:           4000 kB
Active(anon):        996 kB
Inactive(anon):        0 kB
Active(file):       2036 kB
Inactive(file):     4000 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:           888 kB
Mapped:              780 kB
Slab:               2784 kB
SReclaimable:        792 kB
SUnreclaim:         1992 kB
PageTables:          216 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       14920 kB
Committed_AS:       3108 kB
VmallocTotal:    1048404 kB
VmallocUsed:        1696 kB
VmallocChunk:    1038988 kB

Wireless

root@OpenWrt:/# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

br-lan no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:”"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

ip6tnl0 no wireless extensions.

sit0 no wireless extensions.

root@OpenWrt:/# iw dev wlan0 station dump

root@OpenWrt:/# iwlist wlan0 scanning
wlan0 Interface doesn’t support scanning : Network is down

OK, schauen wir uns mal die Konfiguration an

oot@OpenWrt:/# uci show wireless
wireless.wlan0=wifi-device
wireless.wlan0.type=mac80211
wireless.wlan0.channel=5
wireless.wlan0.disabled=1
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=wlan0
wireless.@wifi-iface[0].network=lan
wireless.@wifi-iface[0].mode=ap
wireless.@wifi-iface[0].ssid=OpenWrt
wireless.@wifi-iface[0].encryption=none
root@OpenWrt:/# uci set wireless.wlan0.disabled=0
root@OpenWrt:/# dmesg
Linux version 2.6.28.7 (adminsag@ipcmedialinux1) (gcc version 4.1.2) #2 Sun Mar 8 05:59:30 CDT 2009
prom: fw_arg0=00000002, fw_arg1=8006040c, fw_arg2=00000000, fw_arg3=00000000
MyLoader: sysp=c4ddc6dc, boardp=ccc2ccc9, parts=8c4bcc8e
console [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9130 rev 1 (id:0xb4), CPU:400.000 MHz, AHB:100.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 80277b10, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29708k/32768k available (1824k kernel code, 3060k reserved, 326k data, 132k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
net_namespace: 708 bytes
NET: Registered protocol family 16
MIPS: machine is TRENDnet TEW-632BRP
ar71xx: using random MAC address for eth0
ar71xx: using random MAC address for eth1
NET: Registered protocol family 2
Switched to high resolution mode on CPU 0
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Mar  8 2009 05:53:55 Installing.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: connected to 4 PHYs
eth1: Atheros AG71xx at 0xba000000, irq 5
eth1: connected to PHY at 0:04 [uid=004dd042, driver=Generic PHY]
Atheros AR71xx SPI Controller driver version 0.2.2
m25p80 spi0.0: s25sl032a (4096 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x3e0000
Searching for RedBoot partition table in spi0.0 at offset 0x3f0000
No RedBoot partition table detected in spi0.0
Creating 6 MTD partitions on "spi0.0":
0x00000000-0x00020000 : "u-boot"
0x00020000-0x00030000 : "config"
0x00030000-0x000f0000 : "kernel"
0x000f0000-0x003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=350000, len=A0000
0x00350000-0x003f0000 : "rootfs_data"
0x003f0000-0x00400000 : "art"
0x00030000-0x003f0000 : "firmware"
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=42)
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
ar71xx: pll_reg 0xb8050014: 0x13000a44
eth0: link up (100Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
br-lan: port 1(eth0) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP): eth1: link is not ready
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
phy0: Selected rate control algorithm 'ath9k_rate_control'
phy0: Atheros AR9100 MAC/BB Rev:0, AR2122 RF Rev:a1, mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: US
PPP generic driver version 2.4.2
ip6tnl0: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (512 buckets, 2048 max)
ip6_tables: (C) 2000-2006 Netfilter Core Team
gpio-buttons driver version 0.1.1
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... <7>br-lan: no IPv6 routers present
eth0: no IPv6 routers present
done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
ar71xx-wdt: enabling watchdog timer
 
root@OpenWrt:/# wifi up
Configuration file: /var/run/hostapd-wlan0.conf
Using interface wlan0 with hwaddr 02:87:12:20:40:90 and ssid 'OpenWrt'
 
root@OpenWrt:/# dmesg | tail
ar71xx-wdt: enabling watchdog timer
ADDRCONF(NETDEV_UP): wlan0: link is not ready
device wlan0 entered promiscuous mode
wlan0: deauthenticating by local choice (reason=3)
br-lan: port 2(wlan0) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 2(wlan0) entering forwarding state
wlan0: no IPv6 routers present
root@OpenWrt:/#
root@OpenWrt:/# iw list
Wiphy phy0
        Band 1:
                HT capabilities: 0x104e
                         * 20/40 MHz operation
                         * SM PS disabled
                         * 40 MHz short GI
                         * max A-MSDU len 3839
                         * DSSS/CCK 40 MHz
                HT A-MPDU factor: 0x0003 (65535 bytes)
                HT A-MPDU density: 0x0006 (8 usec)
                HT MCS set: ff ff 00 00 00 00 00 00 00 00 00 00 01 00 00 00
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (disabled)
                        * 2472 MHz [13] (disabled)
                        * 2484 MHz [14] (disabled)
                Bitrates:
                        * 1.0 Mbps
                        * 2.0 Mbps (short preamble supported)
                        * 5.5 Mbps (short preamble supported)
                        * 11.0 Mbps (short preamble supported)
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
        Supported interface modes:
                 * IBSS
                 * Station
                 * AP
                 * AP(VLAN)
                 * Monitor

Ein Client hat sich angemeldet. Erstaunlicherweise wird am Client eine wechselnde Übertragungsrate von 1M/24M/54Mbit gezeigt.

root@OpenWrt:/# iw dev wlan0 station dump
Station 00:14:d1:c6:ec:b4 (on wlan0)
        inactive time:  160 ms
        rx bytes:       9146
        tx bytes:       3248
        signal:         -25 dBm
        tx bitrate:     1.0 MBit/s
Station 00:14:d1:c6:ec:b4 (on wlan0)
        inactive time:  1080 ms
        rx bytes:       24214
        tx bytes:       16469
        signal:         -25 dBm
        tx bitrate:     54.0 MBit/s

Packages

root@OpenWrt:/# opkg update
Downloading http://downloads.openwrt.org/snapshots/ar71xx/packages/Packages.gz
Connecting to downloads.openwrt.org (195.56.146.238:80)
Packages.gz          100% |*******************************|   136k --:--:-- ETA
Inflating http://downloads.openwrt.org/snapshots/ar71xx/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/snapshots

Keine Kommentare »

Noch keine Kommentare.

RSS-Feed für Kommentare zu diesem Artikel. TrackBack-URL

Einen Kommentar hinterlassen

Powered by WordPress ( WordPress Deutschland )