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_datanothing 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:wpsafter 0.590000 there should be a line
mtd: partition "rootfs_data" created automatically, ofs=2C0000, len=530000according to http://wiki.openwrt.org/doc/techref/fla … o.find.out.
Also
cat /proc/mtd 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)
