Need help fixing tp-link mr3020

Posted by PG124 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Need help fixing tp-link mr3020
October 22, 2015 12:23PM
Hi guys,

So over a year ago I had a PB working with OpenWRT and TP-Link MR3020. Then I did something to mess it up... Don't know what anymore. I'm trying to fix it now, but I'm a n00b, so it's hard.

Problem:
- can't connect to the wifi
- redirect to page doesn't work

I think it's something with the DHCP... but how to fix it? I forgot my telnet password (yes, stupid me), but I can ssh root into it. Some info:



root@XZIeTItv:~# vi /etc/config/network

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option gateway '192.168.1.1'
option dns '192.168.1.1'
list dns '192.168.1.1'
list dns '8.8.8.8'
option ipaddr '192.168.1.111'


root@XZIeTItv:/etc/config# vi wireless

config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option macaddr '10:fe:ed:4c:bd:86'
option hwmode '11ng'
option htmode 'HT20'
list ht_capab 'SHORT-GI-20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option disabled '0'

config wifi-iface
option device 'radio0'
option network 'lan'
option mode 'ap'
option encryption 'none'
option ssid 'PirateBox'



Does anybody know what's wrong and how to fix this?
Re: Need help fixing tp-link mr3020
October 22, 2015 07:39PM
Hi,
try to reflash it using failsafe mode [piratebox.cc]

Matthias


This is only my signature.
Re: Need help fixing tp-link mr3020
October 24, 2015 07:13PM
Thanks for answering so quickly.
So I plugged it in again today and now it suddenly let's me telnet it again, but not ssh... When I try to set a new password he says he can't find passwd.

How do I get around a read-only file system?
Also: root@(none):?



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 (2013-03-14 11:28:31 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, r36088)
-----------------------------------------------------
* 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):/# /etc/init.d/boot start
/etc/rc.common: line 85: can't create /etc/config/wireless: Read-only file system
sh: ./inittab-console-fixup: line 25: can't create /etc/inittab: Read-only file system
rm: can't remove 'inittab-console-fixup': Read-only file system
uci: I/O error
rm: can't remove 'leds': Read-only file system
rm: can't remove 'migrate-shadow': Read-only file system
rm: can't remove 'migrate-sysctl': Read-only file system
touch: /etc/config/network: Read-only file system
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
rm: can't remove 'network': Read-only file system
touch: /etc/config/ubootenv: Read-only file system
rm: can't remove 'uboot-envtools': Read-only file system
rm: can't remove 'vlan-migration': Read-only file system
rm: can't remove 'wrt160nl': Read-only file system
uci: I/O error
uci: I/O error
uci: I/O error
uci: I/O error
uci: I/O error
uci: I/O error
root@OpenWrt:/# mount /dmount /dev/sda1 /mnt
BusyBox v1.19.4 (2013-03-14 11:28:31 UTC) multi-call binary.

Usage: mount [OPTIONS] [-o OPTS] DEVICE NODE

Mount a filesystem. Filesystem autodetection requires /proc.

-a Mount all filesystems in fstab
-i Don't run mount helper
-r Read-only mount
-w Read-write mount (default)
-t FSTYPE Filesystem type
-O OPT Mount only filesystems with option OPT (-a only)
-o OPT:
loop Ignored (loop devices are autodetected)
[a]sync Writes are [a]synchronous
[no]atime Disable/enable updates to inode access times
[no]diratime Disable/enable atime updates to directories
[no]relatime Disable/enable atime updates relative to modification time
[no]dev (Dis)allow use of special device files
[no]exec (Dis)allow use of executable files
[no]suid (Dis)allow set-user-id-root programs
[r]shared Convert [recursively] to a shared subtree
[r]slave Convert [recursively] to a slave subtree
[r]private Convert [recursively] to a private subtree
[un]bindable Make mount point [un]able to be bind mounted
[r]bind Bind a file or directory [recursively] to another location
move Relocate an existing mount point
remount Remount a mounted filesystem, changing flags
ro/rw Same as -r/-w

There are filesystem-specific -o flags.

root@OpenWrt:/# cd /mnt/
root@OpenWrt:/mnt# mtd -r write openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-fac
tory.bin firmware
Couldn't open image file: openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin!
root@OpenWrt:/mnt# mount_root
/sbin/mount_root: line 1: pi_include: not found
/sbin/mount_root: line 1: pi_include: not found
/sbin/mount_root: line 1: set_jffs_mp: not found
/sbin/mount_root: line 1: determine_root_device: not found
/sbin/mount_root: line 1: can't create /.extroot.md5sum: Read-only file system
switching to jffs2
Re: Need help fixing tp-link mr3020
October 29, 2015 02:57PM
Hi,
you have a typo here

mount /dmount /dev/sda1 /mnt

that is the problem why your mtd did not work out.

Matthias


This is only my signature.