[Solved] Problem to Install PirateBox on TP-MR3020

Posted by halbschlaf 
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
[Solved] Problem to Install PirateBox on TP-MR3020
August 15, 2015 11:33AM
Hello,

I am noob. However I tried to install PirateBox on TP-MR3020 but it doesent work.
I followed the instructions on [piratebox.cc].

My Problem is while Post-Installation.
When I try to activate the imageboard, it says

-ash: /opt/piratebox/bin/board-autoconf.sh: not found

It seems there is no /opt folder

What did I wrong?

I would like to flash the original TP-firmware, but I am afraid to brick my TP-MR3020 then. Or is it already ?


Please help me.



Edited 3 time(s). Last edit at 08/24/2015 06:13PM by halbschlaf.
Re: Problem to Install PirateBox on WR3020
August 15, 2015 04:06PM
Hi,
I guess your USB stick is not properly configured.
PirateBox assumes, that your USB stick has 1 partition with vfat, some USB Sticks are directly formatted. On windows you don't see a difference.

On linux:

partitioned & formated: device name => /dev/sda1
formated only, no partition: devicename => /dev/sda

unfortunately, PirateBox can only react on /dev/sda1

To find that out, please post the output of the commands listed here: [piratebox.cc]

Don't try to reflash your device, that wouldn't help. Let's try to find out what the issue is.


best regards Matthias


This is only my signature.
Re: Problem to Install PirateBox on WR3020
August 15, 2015 05:24PM
Thank you for help.
Before i read your answere, I already reflashed.
I tried to install for a second time.

I let the wr3020 reboot for 1,5h, but the leds still blinking.
power=permanent
wifi=blinking
reset=blinking

However I continued with telenet via putty.
Set Password and Time.
Same Problem.

Here are the codes:

root@OpenWrt:/# ls -la /mnt/
drwxr-xr-x    2 root     root             3 Nov 17  2014 .
drwxr-xr-x    1 root     root             0 Jan  1 00:00 ..

root@OpenWrt:/# ls -la /mnt/usb
ls: /mnt/usb: No such file or directory

root@OpenWrt:/# ls -la /mnt/usb/PirateBox
ls: /mnt/usb/PirateBox: No such file or directory

root@OpenWrt:/# ls -la /mnt/usb/install
ls: /mnt/usb/install: No such file or directory

root@OpenWrt:/# ls -la /opt/piratebox
ls: /opt/piratebox: No such file or directory

root@OpenWrt:/# ls -la /opt/piratebox/www
ls: /opt/piratebox/www: No such file or directory

root@OpenWrt:/# cat /etc/pbx_custom_image
PBX_auto_Image_2.2

root@OpenWrt:/# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt_backports"
DISTRIB_RELEASE="12.09.2"
DISTRIB_REVISION="r42647"
DISTRIB_CODENAME="attitude_adjustment"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt_backports Attitude Adjustment 12.09.2"
DISTRIB_BACKPORT="V0.2.1"

root@OpenWrt:/# cat /opt/piratebox/version
cat: can't open '/opt/piratebox/version': No such file or directory

root@OpenWrt:/# cat /opt/piratebox/tmp/error.log
cat: can't open '/opt/piratebox/tmp/error.log': No such file or directory

root@OpenWrt:/# cat /opt/piratebox/tmp/break.log
cat: can't open '/opt/piratebox/tmp/break.log': No such file or directory

root@OpenWrt:/# cat /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 ipaddr '192.168.1.1'
        option netmask '255.255.255.0'

root@OpenWrt:/# cat /etc/config/wireless
config wifi-device  radio0
        option type     mac80211
        option channel  11
        option hwmode   11ng
        option macaddr  e8:de:27:89:d8:20
        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
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 1

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

root@OpenWrt:/# dmesg | tail -n 20
[   14.200000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   14.220000] sd 0:0:0:0: [sda] No Caching mode page present
[   14.220000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   14.260000]  sda:
[   14.260000] sd 0:0:0:0: [sda] No Caching mode page present
[   14.270000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   14.270000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   16.970000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   16.970000] device eth0 entered promiscuous mode
[   16.980000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   17.420000] eth0: link up (100Mbps/Full duplex)
[   17.420000] br-lan: port 1(eth0) entered forwarding state
[   17.430000] br-lan: port 1(eth0) entered forwarding state
[   17.430000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   17.450000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   19.430000] br-lan: port 1(eth0) entered forwarding state
[   28.880000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   28.880000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   28.890000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[   32.600000] JFFS2 notice: (1260) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

root@OpenWrt:/# dmesg | grep sda
[   14.180000] sd 0:0:0:0: [sda] 30490624 512-byte logical blocks: (15.6 GB/14.5 Gicool smiley
[   14.190000] sd 0:0:0:0: [sda] Write Protect is off
[   14.190000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[   14.190000] sd 0:0:0:0: [sda] No Caching mode page present
[   14.200000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   14.220000] sd 0:0:0:0: [sda] No Caching mode page present
[   14.220000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   14.260000]  sda:
[   14.260000] sd 0:0:0:0: [sda] No Caching mode page present
[   14.270000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   14.270000] sd 0:0:0:0: [sda] Attached SCSI removable disk

root@OpenWrt:/# ls /dev/sd*
/dev/sda

root@OpenWrt:/# ps
  PID USER       VSZ STAT COMMAND
    1 root      1504 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW<  [khelper]
    7 root         0 SW   [kworker/u:1]
   63 root         0 SW   [sync_supers]
   65 root         0 SW   [bdi-default]
   67 root         0 SW<  [kblockd]
   96 root         0 SW   [kswapd0]
  144 root         0 SW   [fsnotify_mark]
  173 root         0 SW<  [ath79-spi]
  184 root         0 SW   [mtdblock0]
  189 root         0 SW   [mtdblock1]
  194 root         0 SW   [mtdblock2]
  199 root         0 SW   [mtdblock3]
  204 root         0 SW   [mtdblock4]
  209 root         0 SW   [mtdblock5]
  250 root         0 SW   [kworker/0:1]
  459 root      1532 S    {rcS} /bin/sh /etc/init.d/rcS S boot
  460 root      1532 S    {rcS} /bin/sh /etc/init.d/rcS S boot
  461 root      1496 S    logger -s -p 6 -t sysinit
  495 root         0 SW<  [cfg80211]
  505 root         0 SW   [khubd]
  570 root         0 SW<  [bat_events]
  578 root         0 SW   [scsi_eh_0]
  579 root         0 SW   [usb-storage]
  581 root         0 SW   [kworker/0:2]
  610 root      1504 S    init
  668 root      1508 S    /sbin/syslogd -C16
  670 root      1488 S    /sbin/klogd
  672 root       868 S    /sbin/hotplug2 --override --persistent --set-rules-f
  680 root       872 S    /sbin/ubusd
  704 root      1468 S    /sbin/netifd
 1082 root      1496 S    /usr/sbin/telnetd -l /bin/login.sh
 1186 root      1500 S    /sbin/watchdog -t 5 /dev/watchdog
 1241 nobody     956 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
 1243 root      1540 S    {S95done} /bin/sh /etc/rc.common /etc/rc.d/S95done b
 1261 root         0 SWN  [jffs2_gcd_mtd3]
 1308 root      1496 S    sh /etc/rc.local
 1309 root      1500 S    {box_installer_s} /bin/sh /bin/box_installer_start.s
 1313 root      1492 S    syslogd -n -L -R 192.168.1.2:9999
 1314 root      1512 S    {box_installer.s} /bin/sh /bin/box_installer.sh
 1315 root      1496 S    logger
 1323 root      1564 S    {ext} /bin/sh /etc/rc.common /etc/init.d/ext init
 1374 root      1152 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 5544 root      1508 S    /bin/ash --login
 6809 root      1488 S    sleep 1
 6810 root      1496 R    ps

root@OpenWrt:/# cat /mnt/usb/install.log
cat: can't open '/mnt/usb/install.log': No such file or directory
Re: Problem to Install PirateBox on WR3020
August 16, 2015 08:10AM
Hi,
the flashed image is ok. As I thought, it is about the USB Stick.

Login to the box and execute the following commands

sed -i 's;sda1;sda;' /etc/ext.config 
reboot & exit

After that, the box restarts and should start to run the install.
If you logon after the reboot, you can execute

tail -f -n 30 /var/log/messages

to view the progress of the installation.

regards Matthias
edit: fixed broken tag


This is only my signature.



Edited 1 time(s). Last edit at 08/19/2015 04:36AM by Matthias.
Re: Problem to Install PirateBox on WR3020
August 16, 2015 05:21PM
I tried again, but the LEDs still endless blinking
There are no wifi-connetction, only LAN with TR-WR3020?
Neither PirateBox Wlan nor LAN?
The USB LEDs doesnt blink?

root@OpenWrt:~# tail -f -n 30 /var/log/messages
Jan  1 00:00:47 OpenWrt syslog.info syslogd started: BusyBox v1.19.4
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : executing run_test
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Testing requirements...
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : .. USB storage modules available
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : extendRoot package is installed
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_start
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : executing run_prepare_extendRoot
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : configure initi step for extendRoot
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : executing run_init_extendRoot
Jan  1 00:00:48 OpenWrt user.notice root: Please connect USB disk. If it is already plugged-in,
Jan  1 00:00:48 OpenWrt user.notice root: wait for a few seconds, and if nothing happens, please
Jan  1 00:00:48 OpenWrt user.notice root: reconnect the device. Keep in mind that your router's
Jan  1 00:00:48 OpenWrt user.notice root: ports may not be able to supply enough power to
Jan  1 00:00:48 OpenWrt user.notice root: spin-up a USB HDD.

Re: Problem to Install PirateBox on WR3020
August 16, 2015 06:08PM
Finally I only forgot the last ";" in the code.
Now installation ran without troubles.

Thank you Matthias!!!
Re: Problem to Install PirateBox on WR3020
August 16, 2015 06:48PM
Gern geschehen, viel Spaß smileys with beer thumbs up


This is only my signature.
I have a problem where the file is not found when I try the command. its not the flash drive because I checked it and it has one partition.

root@OpenWrt:~# /opt/piratebox/bin/board-autoconf.sh <me>

-ash: /opt/piratebox/bin/board-autoconf.sh: not found <response>


please help.


the stuff
_______________________________________________________

root@OpenWrt:~# ls -la /mnt/
drwxr-xr-x 2 root root 3 Nov 17 2014 .
drwxr-xr-x 1 root root 0 Jan 1 00:00 ..

root@OpenWrt:~# ls -la /mnt/usb
ls: /mnt/usb: No such file or directory

root@OpenWrt:~# ls -la /mnt/usb/piratebox
ls: /mnt/usb/piratebox: No such file or directory

root@OpenWrt:~# ls -la /mnt/usb/install
ls: /mnt/usb/install: No such file or directory

root@OpenWrt:~# ls -la /opt/piratebox
ls: /opt/piratebox: No such file or directory

root@OpenWrt:~# ls -la /opt/piratebox/www
]ls: /opt/piratebox/www: No such file or directory

root@OpenWrt:~# cat /etc/pbx_custom_image
PBX_auto_Image_2.2

root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt_backports"
DISTRIB_RELEASE="12.09.2"
DISTRIB_REVISION="r42647"
DISTRIB_CODENAME="attitude_adjustment"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt_backports Attitude Adjustment 12.09.2"
DISTRIB_BACKPORT="V0.2.1"

root@OpenWrt:~# cat /opt/piratebox/version
cat: can't open '/opt/piratebox/version': No such file or directory

root@OpenWrt:~# cat /opt/piratebox/temp/error.log
cat: can't open '/opt/piratebox/temp/error.log': No such file or directory

root@OpenWrt:~# cat /opt/piratebox/temp/break.log
cat: can't open '/opt/piratebox/temp/break.log': No such file or directory
Re: Problem to Install PirateBox on WR3020
August 19, 2015 04:37AM
Hello,
thank you for posting the data, but it would be great if you can extend it with the other commands listed here: [piratebox.cc]


best regards
Matthias
the wifi light keeps blinking and that is the only light, well besides the power being solid.



the codes
_______________________________________________________


root@OpenWrt:~# ls -la /mnt/
drwxr-xr-x 2 root root 3 Nov 17 2014 .
drwxr-xr-x 1 root root 0 Jan 1 00:00 ..

root@OpenWrt:~# ls -la /mnt/usb
ls: /mnt/usb: No such file or directory

root@OpenWrt:~# ls -la /mnt/usb/PirateBox
ls: /mnt/usb/PirateBox: No such file or directory

root@OpenWrt:~# ls -la /mnt/usb/install
ls: /mnt/usb/install: No such file or directory

root@OpenWrt:~# ls -la /opt/piratebox
ls: /opt/piratebox: No such file or directory

root@OpenWrt:~# ls -la /opt/piratebox/www
ls: /opt/piratebox/www: No such file or directory

root@OpenWrt:~# cat /etc/pbx_custom_image
PBX_auto_Image_2.2

root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt_backports"
DISTRIB_RELEASE="12.09.2"
DISTRIB_REVISION="r42647"
DISTRIB_CODENAME="attitude_adjustment"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt_backports Attitude Adjustment 12.09.2"
DISTRIB_BACKPORT="V0.2.1"

root@OpenWrt:~# cat /opt/piratebox/version
cat: can't open '/opt/piratebox/version': No such file or directory

root@OpenWrt:~# cat /opt/piratebox/tmp/error.log
cat: can't open '/opt/piratebox/tmp/error.log': No such file or directory

root@OpenWrt:~# cat /opt/piratebox/tmp/break.log
cat: can't open '/opt/piratebox/tmp/break.log': No such file or directory

root@OpenWrt:~# cat /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 ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option gateway '192.168.1.254'
list dns '192.168.1.254'

root@OpenWrt:~# cat /etc/config/wireless
config wifi-device radio0
option type mac80211
option channel 11
option hwmode 11ng
option macaddr 30:b5:c2:4b:4c:e4
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
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1

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

root@OpenWrt:~# dmesg | tail -n 20
[ 31.210000] loop: module loaded
[ 31.260000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 31.440000] nf_conntrack version 0.5.0 (455 buckets, 1820 max)
[ 31.670000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 31.940000] batman_adv: B.A.T.M.A.N. advanced 2013.4.0 (compatibility version 14) loaded
[ 35.950000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 35.960000] device eth0 entered promiscuous mode
[ 35.960000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 36.360000] eth0: link up (100Mbps/Full duplex)
[ 36.360000] br-lan: port 1(eth0) entered forwarding state
[ 36.370000] br-lan: port 1(eth0) entered forwarding state
[ 36.370000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 36.400000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 38.370000] br-lan: port 1(eth0) entered forwarding state
[ 298.360000] eth0: link down
[ 298.360000] br-lan: port 1(eth0) entered disabled state
[ 299.360000] eth0: link up (100Mbps/Full duplex)
[ 299.360000] br-lan: port 1(eth0) entered forwarding state
[ 299.370000] br-lan: port 1(eth0) entered forwarding state
[ 301.370000] br-lan: port 1(eth0) entered forwarding state

root@OpenWrt:~# dmesg | greg sda
-ash: greg: not found

root@OpenWrt:~# ls /dev/sd*
/dev/sda

root@OpenWrt:~# ps
PID USER VSZ STAT COMMAND
1 root 1504 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
5 root 0 SW [kworker/u:0]
6 root 0 SW< [khelper]
7 root 0 SW [kworker/u:1]
63 root 0 SW [sync_supers]
65 root 0 SW [bdi-default]
67 root 0 SW< [kblockd]
96 root 0 SW [kswapd0]
144 root 0 SW [fsnotify_mark]
173 root 0 SW< [ath79-spi]
184 root 0 SW [mtdblock0]
189 root 0 SW [mtdblock1]
194 root 0 SW [mtdblock2]
199 root 0 SW [mtdblock3]
204 root 0 SW [mtdblock4]
209 root 0 SW [mtdblock5]
250 root 0 SW [kworker/0:1]
439 root 0 SWN [jffs2_gcd_mtd3]
469 root 0 SW [khubd]
478 root 0 SW [scsi_eh_0]
479 root 0 SW [usb-storage]
480 root 0 SW [kworker/0:2]
498 root 1536 S {rcS} /bin/sh /etc/init.d/rcS S boot
499 root 1504 S init
500 root 1536 S {rcS} /bin/sh /etc/init.d/rcS S boot
501 root 1496 S logger -s -p 6 -t sysinit
532 root 0 SW< [cfg80211]
608 root 0 SW< [bat_events]
635 root 1508 S /sbin/syslogd -C16
637 root 1488 S /sbin/klogd
639 root 868 S /sbin/hotplug2 --override --persistent --s
647 root 872 S /sbin/ubusd
671 root 1468 S /sbin/netifd
1061 root 1152 S /usr/sbin/dropbear -P /var/run/dropbear.1.
1160 root 1500 S /sbin/watchdog -t 5 /dev/watchdog
1212 nobody 956 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
1214 root 1540 S {S95done} /bin/sh /etc/rc.common /etc/rc.d
1215 root 1496 S sh /etc/rc.local
1216 root 1500 S {box_installer_s} /bin/sh /bin/box_install
1220 root 1492 S syslogd -n -L -R 192.168.1.2:9999
1221 root 1512 S {box_installer.s} /bin/sh /bin/box_install
1222 root 1496 S logger
1230 root 1564 S {ext} /bin/sh /etc/rc.common /etc/init.d/e
2391 root 1216 R /usr/sbin/dropbear -P /var/run/dropbear.1.
2404 root 1504 S -ash
2810 root 1488 S sleep 1
2811 root 1496 R ps

root@OpenWrt:~# cat /mnt/usb/install.log
cat: can't open '/mnt/usb/install.log': No such file or directory
Re: Problem to Install PirateBox on tplink 3040
August 20, 2015 05:14AM
Hey John,
nope, you are facing the same problem like halbschlaf had.

I added a section about that in our troubleshooting page: [piratebox.cc]

You can follow the instructions there and come back if something wents wrong

best regards Matthias
Re: [Solved] Problem to Install PirateBox on TP-MR3020
March 02, 2017 12:37AM
Hello

What was the fix as iv got the same thing happening i looked at the troubleshooting page and could not see it there

Thankyou for your time