i try to compile myself a firmware.. and generate 3 files squashfs factory, one .bin and other two -eu and -us.... but all of them give me the 18005 error trying to update de firmwre using web interface
Hi @mportela,
I try to prepare BR version of lede firmware. Can You test it?
This is latest LEDE snapshot.
Try renaming the LEDE firmware file to a shorter name, such as factory.bin
Otherwise, try TFTP.
Hi Thankyou!!! It works like a charm... and no need to rename to shorter filename... just upgrade in the tplink webupdate normal GUI.
What do you do to compile this that works ? Its some patch, or just build using the branch SNAPSHOT ?!?!? I try with release 17.01.4 ... and generates 3 files... when you use the SNAPSHOT you just go to menuconfig and select the TARGET etc and then make ? how you generate this factory-br.bin file ?!!?!? or just rename some of then ?!?!
Enjoy some command tests in ssh (no Luci in your firmware):
==========================================================================================
root@LEDE:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 2.0M 2.0M 0 100% /rom
tmpfs 13.3M 68.0K 13.3M 0% /tmp
tmpfs 13.3M 32.0K 13.3M 0% /tmp/root
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock3 512.0K 208.0K 304.0K 41% /overlay
overlayfs:/overlay 512.0K 208.0K 304.0K 41% /
==========================================================================================
root@LEDE:~# free -m
total used free shared buffers cached
Mem: 27300 19256 8044 100 1676 5452
-/+ buffers/cache: 12128 15172
Swap: 0 0 0
==========================================================================================
ssh root@192.168.1.1
BusyBox v1.27.2 () built-in shell (ash)
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (SNAPSHOT, r5447-e23ff063d3)
\________\/ -----------------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@LEDE:~#
First i check BR version of stock image.
Firmware header have diffrent value of region code:
BR:
EU have 4555, US have 5553
I use hex editor to change this value in factory-eu.bin form 4555 to 4252 and use mktplinkfw tool from firmware-utils to check MD5 sum and again correct MD5 in hex editor.
Maybe someone add BR region code to mktplinkfw tool.
Ok, i Will try this with my custom firmware...
Thank You again!!!
If You have installed LEDE firmware just use sysupgrade image file.
Ok i Will use this method (sysupgrade) to test my custom firmware and my app.
But i Will need later to prepare this factory bin as you did to flash hundred devices.
And for this, i will try your method:
Use hex editor to change this value in factory-eu.bin form 4555 to 4252 and use mktplinkfw tool from firmware-utils to check MD5 sum and again correct MD5 in hex editor.
Do you have some tips to do this, or some other link forum ?
Thx
I prepare patch to make BR factory image:
Look here: https://github.com/heinzek/source/commit/4de3ccd42a31c02c9900fc97f40b89faaf34bda3
use command on your "source" directory:
wget https://github.com/heinzek/source/commit/4de3ccd42a31c02c9900fc97f40b89faaf34bda3.patch
patch -p1 < 4de3ccd42a31c02c9900fc97f40b89faaf34bda3.patch
it works!
i sent an email to the author: Matthias Schiffer asking for it and confirm this fix, just minutes before you send the patch, was the same thing!!!
Thank you
When i ask the author, he told me, to open a PR with the fix, do you will do that ?
Ok i Will use this to test my custom firmware and my app.
But i Will need later to prepare this factory bin as you did to flash
hundred devices.
Thx
I have a same problem when I try to flash to LEDE from stock, my device is TL-WR940N (VN). @Heinz could you help me build another version support VN region?
Thanks
hello @mportela. I have same router (TP LInk - WR 940N (BR) V5). In the box showed 256mb ram, but the tp-link support reply is have 32mb.
Pls, is possible confirm the detail. Is 32mb ram or 256mb ram?
Thanks
@jucato, look for my commands from previous messages, "df -h" and "free -m", it looks 32 and not 256....
HI @theday0314 i create a fix for implementing your REGION.
the fix is here for testing and waiting the previous PR to be merger by LEDE...
https://github.com/mportela/source/pull/3
I don't know how to send the image here in forum... but upload a VN version here for you if you can't compile it using my version:
https://expirebox.com/download/cb064d3dfbece11f8a37c2b9f2b54517.html
and @theday0314 if have some problem, try renaming the LEDE firmware file to a shorter name, such as factory.bin before...
thanks so much, this works fine