This is a read-only archive of the old OpenWrt forum. The current OpenWrt forum resides at
https://forum.openwrt.org/
.
In May 2018, the OpenWrt forum suffered a total data loss. This archive is an effort to restore and make available as much content as possible. Content may be missing or not representing the latest edited version.
Hello!
My device is a TP-Link TL-WR2543ND. For some reason it stopped to deliver IP addresses via DHCP and I can't connect to it in normal operating mode, neither via web interface nor via ssh/telnet. To solve this problem I wanted to do a factory reset by following the instructions on the wiki-page
Failsafe Mode
:
I successfully reached failsafe mode and than I entered:
root@(none):/# mount_root
Unlocking rootfs ...
root@(none):/# firstboot
jffs2 partition is mounted, only resetting files
MTD partition not found.
root@(none):/# mtd -r erase rootfs_data
Could not open mtd device: rootfs_data
Could not open mtd device: rootfs_data
nothing happens. The wiki-page tells me that the device must be rebooting, but it simply doesn't.
It could be that the key to this behavior is in the following dmesg-output:
root@(none):/# dmesg
[ 0.000000] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Mon Sep 3 17:51:18 UTC 2012
[ 0.000000] MyLoader: sysp=00002000, boardp=00000000, parts=00000000
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR7242 rev 1
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00004000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00004000
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 802ec430, node_mem_map 81000000
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16256 pages, LIFO batch:3
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=TL-WR2543N console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 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] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 61624k/65536k available (2198k kernel code, 3912k reserved, 412k data, 208k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, 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.090000] gpiochip_add: registered GPIOs 0 to 17 on device: ath79
[ 0.100000] MIPS: machine is TP-LINK TL-WR2543N/ND
[ 0.130000] registering PCI controller with io_map_base unset
[ 0.340000] bio: create slab <bio-0> at 0
[ 0.350000] PCI host bridge to bus 0000:00
[ 0.350000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.360000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.360000] pci 0000:00:00.0: [168c:0030] type 0 class 0x000280
[ 0.360000] pci 0000:00:00.0: invalid calibration data
[ 0.370000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.370000] pci 0000:00:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
[ 0.370000] pci 0000:00:00.0: supports D1
[ 0.370000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.370000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.370000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.380000] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.380000] Switching to clocksource MIPS
[ 0.390000] NET: Registered protocol family 2
[ 0.390000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.400000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.410000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.410000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.420000] TCP reno registered
[ 0.420000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.430000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.440000] NET: Registered protocol family 1
[ 0.440000] PCI: CLS 0 bytes, default 32
[ 0.460000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.460000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.480000] msgmni has been set to 120
[ 0.480000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[ 0.490000] io scheduler noop registered
[ 0.490000] io scheduler deadline registered (default)
[ 0.500000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.530000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 0.530000] console [ttyS0] enabled, bootconsole disabled
[ 0.550000] m25p80 spi0.0: found s25sl064a, expected m25p80
[ 0.560000] m25p80 spi0.0: s25sl064a (8192 Kbytes)
[ 0.560000] 5 tp-link partitions found on MTD device spi0.0
[ 0.570000] Creating 5 MTD partitions on "spi0.0":
[ 0.570000] 0x000000000000-0x000000020000 : "u-boot"
[ 0.580000] 0x000000020000-0x000000110000 : "kernel"
[ 0.580000] 0x000000110000-0x0000007f0000 : "rootfs"
[ 0.590000] mtd: partition "rootfs" set to be root filesystem
[ 0.600000] split_squashfs: no squashfs found in "spi0.0"
[ 0.600000] 0x0000007f0000-0x000000800000 : "art"
[ 0.610000] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.620000] rtl8367 rtl8367: using GPIO pins 1 (SDA) and 6 (SCK)
[ 0.630000] rtl8367 rtl8367: RTL8367R ver. 0 chip found
[ 2.520000] rtl8367: probed
[ 2.520000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[ 3.080000] TCP cubic registered
[ 3.080000] NET: Registered protocol family 17
[ 3.090000] 8021q: 802.1Q VLAN Support v1.8
[ 4.110000] JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 4.130000] VFS: Mounted root (jffs2 filesystem) readonly on device 31:2.
[ 4.140000] Freeing unused kernel memory: 208k freed
[ 6.230000] eth0: link up (1000Mbps/Full duplex)
[ 6.270000] Registered led device: tp-link:green:usb
[ 6.270000] Registered led device: tp-link:green:wps
root@(none):/# dmesg
[ 0.000000] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Mon Sep 3 17:51:18 UTC 2012
[ 0.000000] MyLoader: sysp=00002000, boardp=00000000, parts=00000000
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR7242 rev 1
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00004000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00004000
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 802ec430, node_mem_map 81000000
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16256 pages, LIFO batch:3
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=TL-WR2543N console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 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] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 61624k/65536k available (2198k kernel code, 3912k reserved, 412k data, 208k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, 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.090000] gpiochip_add: registered GPIOs 0 to 17 on device: ath79
[ 0.100000] MIPS: machine is TP-LINK TL-WR2543N/ND
[ 0.130000] registering PCI controller with io_map_base unset
[ 0.340000] bio: create slab <bio-0> at 0
[ 0.350000] PCI host bridge to bus 0000:00
[ 0.350000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.360000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.360000] pci 0000:00:00.0: [168c:0030] type 0 class 0x000280
[ 0.360000] pci 0000:00:00.0: invalid calibration data
[ 0.370000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.370000] pci 0000:00:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
[ 0.370000] pci 0000:00:00.0: supports D1
[ 0.370000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.370000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.370000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.380000] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.380000] Switching to clocksource MIPS
[ 0.390000] NET: Registered protocol family 2
[ 0.390000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.400000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.410000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.410000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.420000] TCP reno registered
[ 0.420000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.430000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.440000] NET: Registered protocol family 1
[ 0.440000] PCI: CLS 0 bytes, default 32
[ 0.460000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.460000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.480000] msgmni has been set to 120
[ 0.480000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[ 0.490000] io scheduler noop registered
[ 0.490000] io scheduler deadline registered (default)
[ 0.500000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.530000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 0.530000] console [ttyS0] enabled, bootconsole disabled
[ 0.550000] m25p80 spi0.0: found s25sl064a, expected m25p80
[ 0.560000] m25p80 spi0.0: s25sl064a (8192 Kbytes)
[ 0.560000] 5 tp-link partitions found on MTD device spi0.0
[ 0.570000] Creating 5 MTD partitions on "spi0.0":
[ 0.570000] 0x000000000000-0x000000020000 : "u-boot"
[ 0.580000] 0x000000020000-0x000000110000 : "kernel"
[ 0.580000] 0x000000110000-0x0000007f0000 : "rootfs"
[ 0.590000] mtd: partition "rootfs" set to be root filesystem
[ 0.600000] split_squashfs: no squashfs found in "spi0.0"
[ 0.600000] 0x0000007f0000-0x000000800000 : "art"
[ 0.610000] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.620000] rtl8367 rtl8367: using GPIO pins 1 (SDA) and 6 (SCK)
[ 0.630000] rtl8367 rtl8367: RTL8367R ver. 0 chip found
[ 2.520000] rtl8367: probed
[ 2.520000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[ 3.080000] TCP cubic registered
[ 3.080000] NET: Registered protocol family 17
[ 3.090000] 8021q: 802.1Q VLAN Support v1.8
[ 4.110000] JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 4.130000] VFS: Mounted root (jffs2 filesystem) readonly on device 31:2.
[ 4.140000] Freeing unused kernel memory: 208k freed
[ 6.230000] eth0: link up (1000Mbps/Full duplex)
[ 6.270000] Registered led device: tp-link:green:usb
[ 6.270000] Registered led device: tp-link:green:wps
after 0.590000 there should be a line
mtd: partition "rootfs_data" created automatically, ofs=2C0000, len=530000
according to
http://wiki.openwrt.org/doc/techref/fla … o.find.out
.
Also
tells me that there is no rootfs_data
root@(none):/# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "u-boot"
mtd1: 000f0000 00010000 "kernel"
mtd2: 006e0000 00010000 "rootfs"
mtd3: 00010000 00010000 "art"
mtd4: 007d0000 00010000 "firmware"
My question is: How can I enable rootfs_data in failsafe mode? And is it possible to reflash OpenWRT from failsafe mode?
I hope you can understand everything - if not, please don't hesitate to ask.. :-)
Thank you for taking your time!
With best regards,
Florian
//EDIT: I forgot to mention: My operating system is Ubuntu 12.10.
(Last edited by
zk8172
on 14 Feb 2013, 17:51)
Thank you for your reply!
This gives me still the same reaction (I will copy the whole telnet session):
telnet 192.168.1.1
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.19.4 (2012-08-26 12:49:54 UTC) 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
-----------------------------------------------------
ATTITUDE ADJUSTMENT (12.09-beta, r33312)
-----------------------------------------------------
* 1/4 oz Vodka Pour all ingredients into mixing
* 1/4 oz Gin tin with ice, strain into glass.
* 1/4 oz Amaretto
* 1/4 oz Triple sec
* 1/4 oz Peach schnapps
* 1/4 oz Sour mix
* 1 splash Cranberry juice
-----------------------------------------------------
root@(none):/# firstboot
firstboot has already been run
jffs2 partition is mounted, only resetting files
MTD partition not found.
root@(none):/#
I haven't really figured out what the differences in the look of normal mode and failsafe mode are.
Anyway, when I want to set a new password, as described in this wiki-page (
http://wiki.openwrt.org/doc/howto/firstlogin
), I get an error (again the full telnet session, just to be sure...):
telnet 192.168.1.1
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.19.4 (2012-08-26 12:49:54 UTC) 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
-----------------------------------------------------
ATTITUDE ADJUSTMENT (12.09-beta, r33312)
-----------------------------------------------------
* 1/4 oz Vodka Pour all ingredients into mixing
* 1/4 oz Gin tin with ice, strain into glass.
* 1/4 oz Amaretto
* 1/4 oz Triple sec
* 1/4 oz Peach schnapps
* 1/4 oz Sour mix
* 1 splash Cranberry juice
-----------------------------------------------------
root@(none):/# passwd
Changing password for root
New password:
Retype password:
passwd: /etc/passwd: Read-only file system
passwd: can't update password file /etc/passwd
root@(none):/#
I also don't recieve an IP-address from the router (conntection o and I can only telnet to the device if I use the method decribed there
http://wiki.openwrt.org/doc/howto/generic.failsafe
.
Can I somehow reflash the firmware or revert the settings or simply do anything that helps me?
(Last edited by
zk8172
on 14 Feb 2013, 22:40)
That image is OK.
EDIT: choose rc1 folder, not beta!
Seems that you had a jffs2 image installed.. So firstboot not working..
From wiki:
"Reading Flash Layout, you should understand, that the OpenWrt failsafe can help you with any problems referring to the JFFS2 partition if you have a SquashFS image installed!"
(Last edited by
nebbia88
on 14 Feb 2013, 23:24)
Dear Mr nebbia88,
I really thank you for your help. With the instructions in the other thread (I used mini-httpd as http-server) I finally managed to reflash the router. It works! :-)
With best regards from Austria,
Florian
//EDIT:
You are right, it was not a sqashfs build I flashed first. Now I flashed the sqashfs-version, so there shouldn't be problems anymore, hopefully.
I used this image:
http://downloads.openwrt.org/attitude_a … actory.bin
Thanks again!
(Last edited by
zk8172
on 15 Feb 2013, 18:28)