-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi :-)

briefing:
the automatic flashing-process - holding down the WPS-button in order
to flash an image downloaded via TFTP - no longer works for certain
WDR3600-devices with hardware revision 1.5 that have only minor
(visible) differences to working devices with the same revision.

.. this is going to be long - sorry for that.
i'm trying to provide as many details as possible.

I'm working on a factory-process for TP-Link WDR3600.
Last week we have encountered an error where we were (
headache-english :-D ) not able to flash the last shipment using an
automated process.
There seems to be new hardware with the revision still being 1.5 but
the u-boot behaving differently.

- From the outside, these devices look quite similar - the only
differences we've found so far are:
- -there are four labels on the backside (as opposed to 3) the new one
showing custom SSIDs (much like the one on the Archer-C5)
- -a label on the inside on the yellow LAN-ports has a string "4FC-1",
which we have not seen yet - the working boards have "3FC-3"

The only way to flash our image to this new hardware is to either:
- -flash manually using the u-boot-prompt (t ; e; cp.b; reset)
- -upload it to the firmware-update-page of the stock-firmware
The images then boot and seem to be happy.

That, however, is not acceptable for a factory-process..
Turns out that our image was 6815748 bytes in size (we forked from
openwrt a while ago) which is not accepted by these new devices using
the existing process. The router instantly resets after the firmware
has been received (before hte flash is erased).
Have a look at "Flashing via TFTP" in
http://wiki.openwrt.org/toh/tp-link/tl-wdr4300 to see what we're doing
- - no magic involved :-)

'wrong_filesize.log' contains the serial-output when the file size is
not 'correct'.

So far, i've come to the conclusion that only files with size 8192512
/ $7D0200 (bigger than the rootfs-mtd!) make it past the tftp download.
I've tried padding the file with \x00 or \xFF. The file is then copied
to the flash but will not boot.
See 'successfull_flash.log' for the output.
Notice the 'boot up image' after the transmission. <----
You can see the error while booting at the end of that file (LZMA-length
).

The last thing i've tried, is to use an image produces from
OpenWRT-trunk - i gather you have introduced padding to the image
since our fork. That image would also NOT be copied to the flash.
Flashing does work if the file is padded to the 'magic' size but the
boot-issue remains.



I'm still working on this and will keep you informed - but if anyone
of you has an idea on how to address this issue.. any help would be
highly appreciated!

The next thing on my TODO-list is to see how the image can be modified
to make it boot. I'm comparing it to the firmware-upgrades from
TP-Link (which do work using this process).

But first: a good night's sleep :-p

hoping this might help someone,


kind regards,
nice evenings to you,

Leon M. George
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVuRlUAAoJEPImwNGZR6nxiNUH/RrfGmGI22Y5Vx3VwL3ub42v
aTHAYGCEAKSLH3XFoxGOMJD0WU7YY1RqB7SAWghyghnGf1rK9IT+TELnjRkseB5u
HpvG2sCb95ORCSXbxoPo9h6HRjZIH478MzVjoVAFO5EK37F/z4wSZd3rRz12Z6R2
NOej/Ie1mFO5Aqdzbpw7yhdDWNId+kzhULQeahyzIP7rExZzxOzLmnfhbb4gWueQ
BK8TPtlFi7qQLyvE9SKsiXPWt6koprWbqW3EQOS/640AERaZbDgrzre5QZXBtrkI
q+pSZw9KY98suPgZJe33/5nP23QaXsZjtAbg81KN9Smcelp6QeqS9f9ZMC5yI2I=
=jBUP
-----END PGP SIGNATURE-----
U-Boot 1.1.4 (Oct 21 2014 - 12:49:00)

U-boot DB120


DRAM:  128 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
Using default environment

PCIe Reset OK!!!!!!
In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
No valid address in Flash. Using fixed address
 wasp  reset mask:c03300 
WASP  ----> S17 PHY *
: cfg1 0x7 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
athrs17_reg_init: complete
eth0 up
eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'wdr3600v1_tp_recovery.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################################
done
Bytes transferred = 8192512 (7d0200 hex)
original_product_id = 36000001
 original_product_ver = 01
 recovery_product_id = 36000001
 recovery_product_ver = 01
 auto update firmware: product id verify sucess!
Firmware recovery: product id verify sucess!
Firmware recovery: filesize = 0x7d0200.
boot up image

First 0x2 last 0x7c sector size 0x10000                                                                                                                              124
Erased 123 sectors
Copy to Flash... write addr: 9f020000
done

U-Boot 1.1.4 (Oct 21 2014 - 12:49:00)

U-boot DB120


DRAM:  128 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
Using default environment

PCIe Reset OK!!!!!!
In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
No valid address in Flash. Using fixed address
 wasp  reset mask:c03300 
WASP  ----> S17 PHY *
: cfg1 0x7 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
athrs17_reg_init: complete
eth0 up
eth0
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... Too big uncompressed streamLZMA ERROR 1 - must RESET board to recover
U-Boot 1.1.4 (Oct 21 2014 - 12:49:00)

U-boot DB120


DRAM: 128 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash: 8 MB
Using default environment

PCIe Reset OK!!!!!!
In: serial
Out: serial
Err: serial
Net: ag934x_enet_initialize...
No valid address in Flash. Using fixed address
wasp reset mask:c03300
WASP ----> S17 PHY *
: cfg1 0x7 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
athrs17_reg_init: complete
eth0 up
eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'wdr3600v1_tp_recovery.bin'.
Load address: 0x80060000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################################
done
Bytes transferred = 8192512 (7d0200 hex)
original_product_id = 36000001
original_product_ver = 01
recovery_product_id = 36000001
recovery_product_ver = 01
auto update firmware: product id verify sucess!
Firmware recovery: product id verify sucess!
Firmware recovery: filesize = 0x7d0200.
boot up image

First 0x2 last 0x7c sector size 0x10000 124
Erased 123 sectors
Copy to Flash... write addr: 9f020000
done

U-Boot 1.1.4 (Oct 21 2014 - 12:49:00)

U-boot DB120


DRAM: 128 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash: 8 MB
Using default environment
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to