WR710N V1.2 über serielle Verbindung debricken

Jetzt kannst du neu flashen.

Ggf. musst du vorher manuell das Netzwerk starten, und anschliessend via wget das neue Image in /tmp kopieren und dann mit

sysupgrade -n image.bin

neu flashen.

also wget geht schonmal nicht „bad address“. Also muss ich das Netzwerk starten. Nur wie funktioniert das?

Z.B. so:

ifconfig eth0 up netmask 255.255.255.0 192.168.1.10

Wenn ich statt 192.168.1.10 die Netzwerk-IP eingebe, welche er bekommen soll (also manuell festlege) (192.168.178.142), dann funktioniert wget immer noch nicht. auch pingen geht nicht. Dasselbe im failsafe modus wie im config modus. An der Netzwerkmaske liegts nicht, die stimmt.
Edit:
Hier mal im Failsafe Modus:

root@(none):/# ifconfig eth0 down
[ 1901.020000] eth0: link down
root@(none):/# ifconfig eth0 up netmask 255.255.255.0 192.168.178.142
root@(none):/# [ 1918.380000] eth0: link up (100Mbps/Full duplex)

root@(none):/# ping google.com
ping: bad address 'google.com'
root@(none):/#

Natürlich geht das nur mit IP-Adressen, und nicht mit Hostnamen.
Ausserdem kannst du nur Adressen im lokalen Netz erreichen, da der Router keine default-route bekommen hat…

Also wenn der im Configmode ist, solltest du am zweiten LAN Port per DHCP eine IP von dem bekommen. Dann kannst du seine Webseite öffnen. Wenn das geht darüber die richtige Sysupgrade Firmware flashen.

Alternativ, nachdem du ihm ne IP gegeben hast mit „passwd“ ein Passwort vergeben. Dann kannst du mit SCP/Winscp dich als root mit dem Router verbinden und die Firmware in /tmp überspielen. Dort dann mit sysupgrade -n image.bin die Firmware flashen die du haben willst.

1 „Gefällt mir“

Achso. Gut, dann lass ich einfach nen apache server laufen :slight_smile:

Genau so hab ich das auch gemacht.

Huhu, ich hab mir vor ungefähr 1,5 Jahren mal einen WR710N gekauft… Dieser ist aber gebrickt… Ich hab ihn nach @adorfer geschickt, der hat versucht es zu beheben und es hat auch geklappt… Zumindestens bei ihm, denn bei mir zuhause ging das Teil immer noch nicht an :wink:
Da ich jetzt wieder Lust habe das Teil zu debricken wollte ich fragen ob ihr mir helfen mögt…
Ich hab das Teil seriell verbunden, das hier ist der Log:

U-Boot 1.1.4 (Apr 19 2013 - 15:56:20)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 8388608, sector count = 128
Flash:  8 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup 
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup 
eth1 up
eth0, eth1
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.10.49 (jha@mir) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r43222) ) #1 Tue Nov 18 10:18:33 CET 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-WR710N console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28588k/32768k available (2369k kernel code, 4180k reserved, 621k data, 272k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is TP-LINK TL-WR710N v1
[    0.550000] bio: create slab <bio-0> at 0
[    0.560000] Switching to clocksource MIPS
[    0.570000] NET: Registered protocol family 2
[    0.570000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.570000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.570000] TCP: Hash tables configured (established 512 bind 512)
[    0.580000] TCP: reno registered
[    0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.600000] NET: Registered protocol family 1
[    0.620000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.630000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.640000] msgmni has been set to 55
[    0.640000] io scheduler noop registered
[    0.640000] io scheduler deadline registered (default)
[    0.650000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.660000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a A933X UART
[    0.670000] console [ttyATH0] enabled, bootconsole disabled
[    0.670000] console [ttyATH0] enabled, bootconsole disabled
[    0.680000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.690000] m25p80 spi0.0: found s25fl064k, expected m25p80
[    0.690000] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.700000] 5 tp-link partitions found on MTD device spi0.0
[    0.700000] Creating 5 MTD partitions on "spi0.0":
[    0.710000] 0x000000000000-0x000000020000 : "u-boot"
[    0.720000] 0x000000020000-0x00000012e67c : "kernel"
[    0.720000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.730000] 0x00000012e67c-0x0000007f0000 : "rootfs"
[    0.740000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.750000] mtd: device 2 (rootfs) set to be root filesystem
[    0.760000] 1 squashfs-split partitions found on MTD device rootfs
[    0.760000] 0x000000350000-0x0000007f0000 : "rootfs_data"
[    0.770000] 0x0000007f0000-0x000000800000 : "art"
[    0.770000] 0x000000020000-0x0000007f0000 : "firmware"
[    0.800000] libphy: ag71xx_mdio: probed
[    1.350000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.360000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.910000] ag71xx-mdio.1: Found an AR7240/AR9330 built-in switch
[    2.950000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.950000] TCP: cubic registered
[    2.960000] NET: Registered protocol family 17
[    2.960000] Bridge firewalling registered
[    2.960000] 8021q: 802.1Q VLAN Support v1.8
[    2.980000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.980000] Freeing unused kernel memory: 272K (8034c000 - 80390000)
procd: Console is alive
procd: - watchdog -
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
jffs2 is ready
jffs2 is ready
[   10.960000] jffs2: notice: (323) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 14 of xref (0 dead, 2 orphan) found.
switching to overlay
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   13.390000] NET: Registered protocol family 10
[   13.400000] tun: Universal TUN/TAP device driver, 1.6
[   13.400000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   13.420000] nf_conntrack version 0.5.0 (450 buckets, 1800 max)
[   13.430000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.460000] batman_adv: B.A.T.M.A.N. advanced 2013.4.0 (compatibility version 14) loaded
[   13.480000] u32 classifier
[   13.480000]     input device check on
[   13.480000]     Actions configured
[   13.490000] Mirror/redirect action on
[   13.490000] Failed to load ipt action
[   13.510000] netem: version 1.3
[   13.530000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   13.540000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   13.600000] Ebtables v2.0 registered
[   13.610000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.710000] xt_time: kernel timezone is -0000
[   13.770000] cfg80211: Calling CRDA to update world regulatory domain
[   13.770000] cfg80211: World regulatory domain updated:
[   13.780000] cfg80211:  DFS Master region: unset
[   13.780000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   13.790000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   13.800000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   13.810000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   13.820000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   13.820000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   13.830000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   13.840000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   13.850000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   14.010000] cfg80211: Calling CRDA for country: US
[   14.020000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   14.030000] cfg80211: Regulatory domain changed to country: US
[   14.030000] cfg80211:  DFS Master region: FCC
[   14.030000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   14.040000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   14.050000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[   14.060000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[   14.070000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   14.080000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
procd: - init complete -
[   25.680000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   25.680000] device eth1 entered promiscuous mode
[   25.690000] IPv6: ADDRCONF(NETDEV_UP): br-setup: link is not ready

Wie genau muss ich denn jetzt vorgehen? Mein System ist OSX El Capitan und ich nutze minicom um die serielle Verbindung aufzubauen.
Ich kann nichts in das Terminalfenster schreiben bzw ich weiß nicht genau wie ich den Failsafe Modus aktiviere (ich geb ja f und enter ein, passiert aber nix, es wird mir auch kein f aufm Bildschirm angezeigt)
Und nach den 25,6 Sekunden und der ipv6 Meldung passiert auch nix mehr.
Tschuldigung wenn ich das hier nochmals neu belebe, aber hier passt es ja am besten rein :wink:
Ich schätze einfach mal, dass das Teil mittlerweile so ranzig ist, dass es unreperabel geworden ist. :frowning:

So, nach Jahren wo der Router nur in der Ecke lag (2 Jahre um genau zu sein) darf ich nun verkünden:
Der kleine Giftzwerg ist debrickt! :smiley:
Ich hab einfach in minicom beide handshakes ausgestellt, dann liefs problems…
Dann auf meinem Mac xampp installiert, da in htdocs die firmware reingepackt und nach „firmware.bin“ umbenannt (wichtig: die ohne bootloader nehmen)
dann hab ich den router direkt an meinen mac per netzwerkkabel angeschlossen, die ip meines macs manuell auf 192.168.1.2 geändert, auf dem router dann per „wget 192.168.1.2/fiwmare.bin“ die firmware heruntergeladen ins verzeichnis „var“ (Weil ich nur da schreibrechte hab)
dann hab ich per „sysupgrade firmware.bin“ den router neu geflasht und debrickt.

4 „Gefällt mir“