dmitryp,
Sorry for inconviniance, may be I gave incomplete description about this linux, or you don't read carefully all discussion before.
Tp_Link TL-WR340G/D and any other Tp-links with vxworks onboard is not stated anywhere as supported devices and until yesterday there was no opportunity to work with it w/o soldering and flashing bootloader and linux into chip directly.
There is also no way to flash production OpenWrt through TP-Link's WEB directly, because of many limitations and most of it is it can accept only images less then 1179648 bytes long(hardcoded in firmware) and even less in practice.
What I gave for community is NOT a production firmware!!! There are no working DHCP server on this image, no WiFi, no WEB, no SSH and rootfs is not writable in sense of saving changes on reboot - it's aim is only to fit it into specs TP-Link's web can accept it, reflash bootloader, prepare eeprom and give you, guys, starting point to put your own Linux images on it w/o soldering and so on. And let you start coding. There is also oportunity in it to revert all back to original VxWorks, as was asked by mvsroot ;-)
Use it on your own risk and without any warranties!
dmitryp wrote:...(but lamp on the router is blinking)...
Exactly describe, what lamp and when it blinking? How did you try to connect to your device?
So start to read docs about OpenWrt, Linux, RedBoot, download Backfire or Kamikadze sources, try to build something for your device by yourself and share your knowlage here.
WiP - stay tuned.
Is it possible somehow to recover the router?
WARNING!!! Reflashing bootloader area (0xbfc00000-0xbfc10000 space in RedBoot or mtd0 named RedBoot on Linux) with wrong image 100% will brick your router completly and you'll need spipgm and soldering iron on next step. So be carefull. If you can't prepare vxworks.raw by yourself - ask and I'll give you one.
Connect your router to your pc by ethernet cable, asign static IP to your PC - 192.168.1.10 netmask 255.255.255.0
try to
ping 192.168.1.1
telnet 192.168.1.1
=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------
BusyBox v1.15.3 (2010-04-26 19:06:00 EEST) 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
Backfire (10.03, r20974) --------------------------
* 1/3 shot Kahlua In a shot glass, layer Kahlua
* 1/3 shot Bailey's on the bottom, then Bailey's,
* 1/3 shot Vodka then Vodka.
---------------------------------------------------
root@OpenWrt:/# vxrestore
3+0 records in
3+0 records out
2048+0 records in
2048+0 records out
Unlocking radio ...
Writing from /tmp/radio.rom to radio ...
Unlocking board ...
Writing from /tmp/mac.rom to board ...
All eeprom stuff is done!
Now for reverting back to VxWorks you need to:
1) prepare raw VxWorks image from correct firmware update image
by truncating first 20 bytes of it's header
Be CAREFULL - choosing wrong image will brick your device!!!
2) put raw image into working TFTP server directory, say vxworks.raw
3) restart your unit with pressed RESET key for !!!LESS then 5 sec!!!
be carefull, do not let to start this linux again because
it will revert board eeprom to linux version on restart
4) telnet to 192.168.1.1:9000
5) in RedBoot prompt do
RedBoot> ^C
RedBoot> ip_address -h 192.168.1.10 // your TFTP server IP
IP: 192.168.1.1, Default server: 192.168.1.10
RedBoot> load -r -b %{FREEMEMLO} vxworks.raw
Using default protocol (TFTP)
Raw file loaded 0x80033800-0x8010e587, assumed entry at 0x80033800
RedBoot> fis write -b %{FREEMEMLO} -l 0x120000 -f 0xbfc00000
* CAUTION * about to program FLASH
at 0xbfc00000..0xbfd1ffff from 0x80033800 - continue (y/n)? y // carefully wait here about a one-two minute for complition
... Erase from 0xbfc00000-0xbfd20000: ..................
... Program from 0x80033800-0x80153800 at 0xbfc00000: ..................
RedBoot>reset
enjoy old days of VxWorks
root@OpenWrt:/#
Thanks.