Piratebox auto installer trouble MR3020

Posted by ronjohnson 
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
Piratebox auto installer trouble MR3020
July 31, 2017 10:24PM
Hello, I am having an issue with my TL-MR3020 (v1.9). I followed all the directions on [piratebox.cc] to install piratebox on my device. However, after 45 minutes nothing had happened and never once did I see the lights blinking as described, rather only the power and wps leds were lit. I was unable to access Telnet, SSH, or the webui using the Ethernet cable, nor was I able to enter fail-safe mode. Additionally there was no wireless network. So I reflashed stock firmware using serial and tried again. However, I left the serial connected and noticed this:

[1.100000] VFS: Cannot open root device "(null)" or unknown-block(0,0)
[1.100000] Please append a correct "root=" boot option; here are the available partitions:
[1.110000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

I have managed just to get a vanilla openwrt install (Chaos Calmer) on it which ran fine.

What can I do to get a working installation on my device?
Re: Piratebox auto installer trouble MR3020
August 01, 2017 03:47AM
Hi,
please redownload the firmware and retry. It sounds more like the downloaded .bin (firmware) file was not correct or corrupt.

best regards Matthias
Re: Piratebox auto installer trouble MR3020
August 01, 2017 05:45PM
Thank you very much for the response Matthias

I went ahead and redownloaded the firmware file along with the accompanying .sha256 file. Using Microsoft's File Checksum Integrity Verifier I ran the following in cmd
fciv openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin -sha256
The output was nowhere near the value in the .sha256 file, but I maybe I made an error or it could be that fciv does not support sha256 (It doesn't say anywhere that it does). I should note the previous and new download have the same result, so I imagine there are identical.

I attempted to install the new firmware anyway. Which resulted in the same thing.

Is there maybe another download or someway I can ensure the download is not corrupted?
Re: Piratebox auto installer trouble MR3020
August 02, 2017 06:10PM
Hi,
ok, thank you for testing it out again. It sounds to me, that you know what you are doing... that confuses me even more.

fciv can only md5 and sha1. So, I downloaded the file myself, did a sha256 test and created a md5sum:

[matze@shrimpy tmp]$ wget [stable.openwrt.piratebox.de]
--2017-08-02 20:04:18--  [stable.openwrt.piratebox.de]
Resolving stable.openwrt.piratebox.de... 87.237.121.137
Connecting to stable.openwrt.piratebox.de|87.237.121.137|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3932160 (3.8M) [application/octet-stream]
Saving to: ‘openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin’

openwrt-ar71xx-generic-tl-mr3020-v1-squas 100%[=====================================================================================>]   3.75M  4.51MB/s    in 0.8s    

2017-08-02 20:04:19 (4.51 MB/s) - ‘openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin’ saved [3932160/3932160]

[matze@shrimpy tmp]$ wget [stable.openwrt.piratebox.de]
--2017-08-02 20:04:29--  [stable.openwrt.piratebox.de]
Resolving stable.openwrt.piratebox.de... 87.237.121.137
Connecting to stable.openwrt.piratebox.de|87.237.121.137|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 123 [application/octet-stream]
Saving to: ‘openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin.sha256’

openwrt-ar71xx-generic-tl-mr3020-v1-squas 100%[=====================================================================================>]     123  --.-KB/s    in 0s      

2017-08-02 20:04:30 (12.8 MB/s) - ‘openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin.sha256’ saved [123/123]

[matze@shrimpy tmp]$ sha256sum -c openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin.sha256
openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin: OK
[matze@shrimpy tmp]$ md5sum openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
7c3ed297614088f8f1e1f02681049e5a  openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
[matze@shrimpy tmp]$

The md5sum is
Quote

7c3ed297614088f8f1e1f02681049e5a openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

Use the -md5 option to generate the md5 value for then openwrt file.

I uploaded the files to an alternative download page here: [reshare.bitcave.cc]

Can you send me a copy of the commands you entered? Commands for:
* for reflashing via serial adapter
* executing the firmware rewrite process

The error message from the the kernel sounds like the filesystem is somehow broken. Can you post the whole boot log (serial)?

Strange, very strange.

best regards Matthias
Re: Piratebox auto installer trouble MR3020
August 03, 2017 06:09PM
Alright, so I should probably specify that I have been installing Piratebox from windows. I could do it from either Arch or Ubuntu if you think that would make a difference, but I highly doubt it would because I have tried installing regular openwrt from serial and it worked just fine.

And you are correct fciv doesn't support sha256, I should have realized that is why it was not giving me the proper checksum. Anyway I ran the md5 checksum on both the file you provided and the others I downloaded all matched the md5 checksum you provided.

Here are the commands I run to flash over serial:

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 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
auto update firmware: is_auto_upload_firmware = 0!
Autobooting in 1 seconds

hornet> setenv ipaddr 192.168.1.1
hornet> setenv serverip 192.168.1.2
hornet> tftpboot 0x80000000 openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin'.
Load address: 0x80000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################################
done
Bytes transferred = 3932160 (3c0000 hex)
hornet> erase 0x9f020000 +0x3c0000

First 0x2 last 0x3d sector size 0x10000                                       61
Erased 60 sectors
hornet> cp.b 0x80000000 0x9f020000 0x3c0000
Copy to Flash... write addr: 9f020000
done
hornet> bootm 9f020000

And here is the boot log:
hornet> bootm 9f020000
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.3.8 (strubel@compute) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Mon Feb 1 20:10:10 CET 2016
[    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 PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-MR3020 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] 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: 28964k/32768k available (2241k kernel code, 3804k reserved, 420k data, 216k 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 29 on device: ath79
[    0.100000] MIPS: machine is TP-LINK TL-MR3020
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] Switching to clocksource MIPS
[    0.360000] NET: Registered protocol family 2
[    0.370000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.370000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.370000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.380000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.390000] TCP reno registered
[    0.390000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] NET: Registered protocol family 1
[    0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.430000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.440000] msgmni has been set to 56
[    0.440000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.450000] io scheduler noop registered
[    0.450000] io scheduler deadline registered (default)
[    0.460000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.470000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[    0.480000] console [ttyATH0] enabled, bootconsole disabled
[    0.480000] console [ttyATH0] enabled, bootconsole disabled
[    0.490000] m25p80 spi0.0: unrecognized JEDEC id c84016
[    0.510000] ag71xx_mdio: probed
[    0.520000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.070000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.080000] TCP cubic registered
[    1.080000] NET: Registered protocol family 17
[    1.090000] Bridge firewalling registered
[    1.090000] 8021q: 802.1Q VLAN Support v1.8
[    1.100000] VFS: Cannot open root device "(null)" or unknown-block(0,0)
[    1.100000] Please append a correct "root=" boot option; here are the available partitions:
[    1.110000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Thank you once again



Edited 1 time(s). Last edit at 08/03/2017 06:17PM by ronjohnson.
Re: Piratebox auto installer trouble MR3020
August 03, 2017 08:10PM
ok wow. good job.

I compared your kernel output to this example [gist.github.com]

The significant difference is this line
Quote

[ 0.490000] m25p80 spi0.0: unrecognized JEDEC id c84016

Your flash(-partition) is not recognized.

Googling that message gave me

[forums.xilinx.com]
[www.dd-wrt.com]

Which brings me to the point how you power your MR3020... How is your wireing?
I usually only connect TX/RX/GND , but voltage is supplied during normal USB connection. It makes sure the device is getting enough power.
If you are powering via serial, I'll suggest rewiring, using USB and do a tftp reflash.

If that does not help, try to use linux for that... maybe windows (tftpd, or anti virus) is doing strange things with the .bin file :-(

best regards Matthias
Re: Piratebox auto installer trouble MR3020
August 10, 2017 08:21AM
My apologies for the delayed response

I power my MR3020 with my computer's USB 3.0 ports I only plug in one of the two male USB plugs on the cable included with the router. I do not power it over serial.

I connect Ground, RX, and TX. Additionally I have a 10k resistor across Vcc and Ground

I attempted again with both USBs plugged into my computer and then again with only one plugged into the included wall adapter. Neither set up seemed to make any difference at all, all setups resulted in the same outcome.



Edited 2 time(s). Last edit at 08/10/2017 08:24AM by ronjohnson.
Re: Piratebox auto installer trouble MR3020
August 10, 2017 05:44PM
mh. ok, I have no other ideo at this point in time :-(
crap :-(
Hello ronjohnson, hello Matthias,

any news here? My device has exactly the same behaviour, even the LEDs are the same.
I came here by googling the Kernel panic, after several retries and tests.

I could provide complete logs, but they are "nearly exact" the same as ronjohnsons, even the timing is the same (same brick ;/ ).


[    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) ) #1 Sun Nov 18 04:31:55 UTC 2012
...
[    0.000000] Memory: 29008k/32768k available (2209k kernel code, 3760k reserved, 412k data, 212k init, 0k highmem)
...
[    0.490000] m25p80 spi0.0: unrecognized JEDEC id c84016
...
[    1.070000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:00 [uid=004dd041, driver=Generic PHY]
[    1.080000] TCP cubic registered
[    1.080000] NET: Registered protocol family 17
[    1.090000] Bridge firewalling registered
[    1.090000] 8021q: 802.1Q VLAN Support v1.8
[    1.100000] VFS: Cannot open root device "(null)" or unknown-block(0,0)
[    1.100000] Please append a correct "root=" boot option; here are the available partitions:
[    1.110000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
sorry, forgot to mention: This happened after folowing the PirateBox 1.1 OpenWrt DIY Auto-Installation, too!
[piratebox.cc]
Re: Piratebox auto installer trouble MR3020
October 18, 2017 10:08AM
Yes, no news here.
TPLink changed the flash chip, so the driver does not recognize it anymore. Unfortunately, I do not have enough time to do a close investigation on this topic... I already found the relevant kernel lines... but no time to write a patch nor generate an image :-(

Matthias
Vinz
Re: Piratebox auto installer trouble MR3020
October 18, 2017 08:45PM
thanks for the reply Matthias.

So, to be clear for others:
You can unbrick your MR3020 via the tftp-method, see [ediy.com.my]
You have to use the image "openwrt-15.05.1-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin" from [wiki.openwrt.org]

But you can't manually install piratebox there, because there is no space left :/
I was not able to extend the overlay because I could not access the USB-Stick.
root@OpenWrt:~# opkg install kmod-fs-ext4
Installing kmod-fs-ext4 (3.18.23-1) to root...
Collected errors:
 * verify_pkg_installable: Only have 164kb available on filesystem /overlay, pkg kmod-fs-ext4 needs 221
 * opkg_install_cmd: Cannot install package kmod-fs-ext4.

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  512.0K    288.0K    224.0K  56% /
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    14.0M    316.0K     13.6M   2% /tmp
/dev/mtdblock3          512.0K    288.0K    224.0K  56% /overlay
overlayfs:/overlay      512.0K    288.0K    224.0K  56% /
tmpfs                   512.0K         0    512.0K   0% /dev

Maybe you could go back to an older and smaller version of OpenWrt ...
Re: Piratebox auto installer trouble MR3020
October 21, 2017 05:01AM
Ok, this means that the device ID is supported by the most recent version of OpenWrt, but not in the version PirateBox is based on (Attitude Adjustment).
Unfortunately we can not port PirateBox forward to the next version easily... so I'll look into the code and checkout what is possible.
Re: Piratebox auto installer trouble MR3020
October 21, 2017 07:37AM
ok.. seems I made fire.

I created a backport of the needed patch and generated a plain openwrt image file for the mr3020. As I do not have a device with the new flash chip, I need someone to test who has a serial adapter and is able to recover a wrong flashed device for herself.

The image is under the following url [reshare.bitcave.cc] - it does not contain piratebox modifications.. only to test if the image will boot.

If it works, I'll do a pull request against our backport repository and do further processing... of a hotfix release in the next days,

Any feedback appreciated.

Matthias
Hi there, I've been looking for a working image I can use for librarybox v2.1, much the same problem I believe.

I managed to get your image booting on my TL-MR3020(UN) V1.9.
MD5 Checksum: F6D8E7C0D3AE933DC45DA5E1754BFC11

Installed using manual method from: OpenWrt Wiki
This is the first AA 12.09 image I have got booting on this device, would be happy to help with any additional testing.

Here is the complete boot log from Serial/USB Console:

U-Boot 1.1.4 (Sep 21 2015 - 17:19:07)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 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
auto update firmware: is_auto_upload_firmware = 0!
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.3.8 (piratebox-dev@compute) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Oct 21 08:52:05 CEST 2017
[    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 PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-MR3020 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] 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: 28964k/32768k available (2241k kernel code, 3804k reserved, 420k data, 216k 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 29 on device: ath79
[    0.100000] MIPS: machine is TP-LINK TL-MR3020
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] Switching to clocksource MIPS
[    0.360000] NET: Registered protocol family 2
[    0.370000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.370000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.370000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.380000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.390000] TCP reno registered
[    0.390000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] NET: Registered protocol family 1
[    0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.430000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.440000] msgmni has been set to 56
[    0.440000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.450000] io scheduler noop registered
[    0.450000] io scheduler deadline registered (default)
[    0.460000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.470000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[    0.480000] console [ttyATH0] enabled, bootconsole disabled
[    0.480000] console [ttyATH0] enabled, bootconsole disabled
[    0.490000] m25p80 spi0.0: found gd25q32, expected m25p80
[    0.490000] m25p80 spi0.0: gd25q32 (4096 Kbytes)
[    0.500000] 5 tp-link partitions found on MTD device spi0.0
[    0.500000] Creating 5 MTD partitions on "spi0.0":
[    0.510000] 0x000000000000-0x000000020000 : "u-boot"
[    0.520000] 0x000000020000-0x00000010d164 : "kernel"
[    0.520000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.530000] 0x00000010d164-0x0000003f0000 : "rootfs"
[    0.540000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.550000] mtd: partition "rootfs" set to be root filesystem
[    0.560000] mtd: partition "rootfs_data" created automatically, ofs=2C0000, len=130000 
[    0.560000] 0x0000002c0000-0x0000003f0000 : "rootfs_data"
[    0.570000] 0x0000003f0000-0x000000400000 : "art"
[    0.580000] 0x000000020000-0x0000003f0000 : "firmware"
[    0.600000] ag71xx_mdio: probed
[    0.610000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.160000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.170000] TCP cubic registered
[    1.170000] NET: Registered protocol family 17
[    1.170000] Bridge firewalling registered
[    1.180000] 8021q: 802.1Q VLAN Support v1.8
[    1.190000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.200000] Freeing unused kernel memory: 216k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
[    6.180000] eth0: link up (100Mbps/Full duplex)
- regular preinit -
[    6.590000] JFFS2 notice: (440) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 11 of xref (0 dead, 2 orphan) found.
switching to jffs2
- init -
[    6.700000] eth0: link down

Please press Enter to activate this console. [    7.540000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[    7.550000] Backport generated by backports.git backports-20140320-37-g5c33da0
[    7.780000] cfg80211: Calling CRDA to update world regulatory domain
[    7.780000] cfg80211: World regulatory domain updated:
[    7.790000] cfg80211:  DFS Master region: unset
[    7.790000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    7.800000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.810000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.820000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    7.820000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    7.830000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    7.840000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    8.040000] usbcore: registered new interface driver usbfs
[    8.040000] usbcore: registered new interface driver hub
[    8.050000] usbcore: registered new device driver usb
[    8.730000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[    8.770000] PPP generic driver version 2.4.2
[    8.890000] cfg80211: Calling CRDA for country: US
[    8.890000] cfg80211: Regulatory domain changed to country: US
[    8.900000] cfg80211:  DFS Master region: FCC
[    8.900000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    8.910000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[    8.920000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[    8.930000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[    8.940000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[    8.940000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[    9.080000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.320000] NET: Registered protocol family 24
[    9.330000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.340000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[    9.350000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    9.380000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    9.400000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    9.400000] hub 1-0:1.0: USB hub found
[    9.400000] hub 1-0:1.0: 1 port detected
[    9.430000] nf_conntrack version 0.5.0 (455 buckets, 1820 max)
[    9.670000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    9.790000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   13.980000] device eth0 entered promiscuous mode
[   14.320000] eth0: link up (100Mbps/Full duplex)
[   14.320000] br-lan: port 1(eth0) entered forwarding state
Re: Piratebox auto installer trouble MR3020
October 27, 2017 04:14AM
Ok, thanks that helped me.
Can you verify if the failsafe mode is working as expected (not deleting custom changes)?

I am rebuilding the image files for LibraryBox and PirateBox now.
Re: Piratebox auto installer trouble MR3020
October 27, 2017 04:22AM
I replaced the image on stable.openwrt.piratebox.de , I'll send the librarybox stuff over their mailing list for testing.

I would appreciate if you can give the MR3020 image a try

[stable.openwrt.piratebox.de]
openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin.sha256

after flashing, you will have the automatic installation again.

(this is the patch: [github.com])



Edited 1 time(s). Last edit at 10/27/2017 04:28AM by Matthias.
I was able to trigger failsafe by pressing the flashing WPS button and also with F + Enter, and auto-installation on your updated image completed without error.

Before installation the failsafe would perform factory reset, and after install it will drop to shell. Nice work Matthias I now have a working piratebox, will continue to do more testing on librarybox auto-install but I think we are good at least until TP-Link decides to do any more hardware revisions.

I can provide logs for the installation process if you need it for any further debugging.
Tested LibraryBox 2.1 auto-install, also working well on this new firmware.

Minor correction from my above post: failsafe mode does not cause factory reset on the rebuilt image prior to install, I had my results mixed with plain image. My configuration settings are retained when booting normally.
Re: Piratebox auto installer trouble MR3020
October 28, 2017 07:29PM
Jeremy, Thank you so much for supporting me to deliver that patch.
I'll change piratebox.cc asap.

Without your support, that bugfix hasn't made it

thumbs up thumbs up thumbs up thumbs up thumbs up
Glad I could help, not everyone has the hardware to recover a bricked device so at the very least we've made life a bit easier for those like me who decided to flash it without first doing a little more homework.

I guess this patch should also go up on librarybox.us where I started my project? I'm troubleshooting an issue where the /mnt/usb/LibraryBox/Config/ is not being read/applied at startup, although I think that's got something to do with my customizations and beyond the scope of these forums.

Once I've tested this again on a clean install I think it will be worthwhile sharing the update with LibraryBox builders.
Re: Piratebox auto installer trouble MR3020
November 20, 2017 02:49AM
So that means we can now install Piratebox with a fresh TL-MR3020(UN) using [piratebox.cc]
and for our bricked TL-MR3020(UN) we have to go through [blog.khairulazam.net] ?
Is that correct ?
Thank you
Re: Piratebox auto installer trouble MR3020
November 21, 2017 04:51AM
Hi,
yes.
best regards Matthias
Re: Piratebox auto installer trouble MR3020
March 13, 2018 02:25AM
Hello,
I have the same problem.
I downloaded the right files for MR3020U and followed [blog.khairulazam.net]
I cannot get anything than this :
¡ Y.7âÒ©.k—†+Õ·†7âÒÂ*π—Ú⁄÷i†L“4†ÈKëÂÆÇ1¨¬ ô&.—Â.©ä+.ÇÄÚ≥.ÇÇ∞W¢ç–.•˘‰BÖÕË¢ÖâÏYäπÙ.+Õ∫ä¬í.B∫…‰Y.'Ç‚†. ≤†l—’Û »[†. r⁄∏Ç∞ÍÅT√•ÇH·..¢Ö…¨Ÿ.öΩn¶∫ñ…ïdB™ÕtX,+k·Â.äÇ≤..ÂÓ. 0≤3©
€.Ç ∞iÍ0∞Çj.‘(.íï˘Øí.◊…•∂à[†. r⁄ôÇ∞ÍÅUƒ.¢≈Û.¬Ö‚´ÅeÓW•ïÛ'“ï.B∫…dY.'Ç‚†. ≤†l—’Û »[†.Ç0Æ.¬0∞ÍÅUƒ’"•ÙY¢ÖÛ.¬Ö‚KÅ•ã…i•.'“ï.B∫…dY.'Ç‚†.Í6†l—’Û »[†.Ç0Æ.¬0∞ÍÅÆ1UÇ≤π.k—e...Ç…Ô˜k˝Ï2ÖıÈ+Å1ç·[†.†r¬íÇ∞ÍÅs±›Õ·¶Æ.≤ïÈ≥öÎAî..Ç≤Çπ. /≥Ã.Ç°≈¨+.Aå´ù·•nà[†.†r‚ìÇ∞ÍÅJÜt•ÇˆYÆNΟ†Ü.Ç®*9ë©B”U™Ö“V.BÃ+*%†)Ö•ÕQ.BCSäï_%.ΩRRUï.¬„JíÇ∞ÃIÇ∞.R’‰BÖ—¨JπçÆC·€.Ç ∞â¬êÇ∞WjÕß[´A®ÿ.íïeÆöïÒÄ◊.Íñ.°..Ç ∞â¬0∞Çj.¬Îk≠†+ÂïÚö
Õ…:ïπe.k.(¨ù% V≈∂..Úïr.Îπ r‚†Î+—•.B™Öj.A≤
S©®[Ädžr¥M¬êjÅiØöçh•Vó´… Î›∞í.◊È•Và[†.†r¬5∞Ç¬Ω Ω ≥,Kë’lY."ï≈§+À’†n÷ÂÛ∑…’‰BÇ’Êÿ.ã•
ä..džr¥.¬êjÅS•Æ.±i íÍê)≤ÍïljnK’Ú.ä≤†ΩrWQ†.™.ö°ÖÚZk.Â+â±Âñ»õ. Ç≤î.Ǭê.
Èô∆¬Uµ..ó.¬—˘P.
.ä— S≥Í
ǯL¬íÇ∞.(ZÆ.=ä â ÕA°
IÂ33X UART
[    0.480000] console [ttyATH0] enabled, bootconsole disabled
[    0.480000] console [ttyATH0] enabled, bootconsole disabled
[    0.490000] m25p80 spi0.0: unrecognized JEDEC id c84016
[    0.510000] ag71xx_mdio: probed
[    0.520000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.070000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.080000] TCP cubic registered
[    1.080000] NET: Registered protocol family 17
[    1.090000] Bridge firewalling registered
[    1.090000] 8021q: 802.1Q VLAN Support ~1.8
[    1.100000] VFS: Cannot open root device "(null)" or unknown-block(0,0)
[    1.100000] Please append a correct "root=" boot option; here are the available partitions:
[    1.110000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

How do ronjohnson managed to do a vanilla openwrt install (Chaos Calmer) on it which ran fine ? any link ?

Thank you

edit : well I read the log he posted on August 03, 2017 at 6:09pm and this is not the same problem. I'll try to do something when the strange characters appears.

ronjohnson Wrote:
-------------------------------------------------------
> Hello, I am having an issue with my TL-MR3020
> (v1.9). I followed all the directions on
> [piratebox.cc] to install
> piratebox on my device. However, after 45 minutes
> nothing had happened and never once did I see the
> lights blinking as described, rather only the
> power and wps leds were lit. I was unable to
> access Telnet, SSH, or the webui using the
> Ethernet cable, nor was I able to enter fail-safe
> mode. Additionally there was no wireless network.
> So I reflashed stock firmware using serial and
> tried again. However, I left the serial connected
> and noticed this:
>
>
> [1.100000] VFS: Cannot open root device "(null)"
> or unknown-block(0,0)
> [1.100000] Please append a correct "root=" boot
> option; here are the available partitions:
> [1.110000] Kernel panic - not syncing: VFS: Unable
> to mount root fs on unknown-block(0,0)
>
>
> I have managed just to get a vanilla openwrt
> install (Chaos Calmer) on it which ran fine.
>
> What can I do to get a working installation on my
> device?



Edited 1 time(s). Last edit at 03/13/2018 02:46AM by maikodk.
Re: Piratebox auto installer trouble MR3020
March 13, 2018 02:55AM
I changed the baudrate to 128000 as stated here [diystuff.nl] and manage to get the beginning readable.
Re: Piratebox auto installer trouble MR3020
March 13, 2018 04:00PM
Got it, I could type tpl and do the tutorial to unbrick it. Then I have done this [librarybox.us] to get Librarybox back. Thank you
Hello. First time trying to get piratebox work pls bare with me. I am having the exact same problem ronjohnson is having. My router is a MR3020v1.9 and when I do the steps provided I get the same kernel panic. I tried installing AA12.09 and same kernel problem, unlike CC15.05.1 which works. Auto_flash or auto installation never worked for me. I also tried tftp. So my question is, is MR3020v1.9 actually compatible with pirate box? If so, are there any other steps i can do to install it successfully? Thanks
Just to add my router is that of the (UN) version. Also, ive tried going back to original tp-link firmware to flash from webui and it still wont work. Ive tried BB14.07, that installs fine. Im on Linux too. Good day!
Lfsnoob
Re: Piratebox auto installer trouble MR3020
September 07, 2018 09:28AM
Found the solution after searching in google “MR3020(UN)” at a google group i found Matthais’ image of AA12.09 working in MR3020(UN). Flashed that and now i am in auto flashing. Thanks for this wonderful program. I wish you all the best!
Re: Piratebox auto installer trouble MR3020
September 07, 2018 10:59AM
Hi,
you maybe used an older version of the MR3020 image, which is the reason why it didn't worked.

best regards Matthias