Flashing AVM 300E (Repeater)

Hello,

I am trying to flash my old AVM 300E to give it "last life" ;-).

Using this firmware:
[OpenWrt Wiki] Techdata: AVM FRITZ!WLAN Repeater 300E

Following these advices (using ncftp):
[OpenWrt Wiki] Installing OpenWrt over FTP (generic)

I am stuck at:
put empty.file mtd3
getting an output like "empty.file no such variable" :frowning:

What is the point I don't get?
(Yes I am logged in to the adam-bootloader...)

Does it work if you follow the instructions from https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e7cd6f5d66b827e31cfa7e7bc019ac1b86aac770?

I'll give it a try!

In addition to git.openwrt.org Git - openwrt/openwrt.git/commit

I set my folder to the folder including the image (lcd )
lls is showing the correct file

but
put image.bin mtd1

is generating the following output:

ncftp / > put image.bin mtd1
> put image.bin mtd1

Cmd: REST 1
502: Command not implemented
Cmd: SIZE image.bin
502: Command not implemented
Cmd: STAT NoSuchFile
502: Command not implemented
Cmd: PWD
502: Command not implemented
Cmd: TYPE A
200: Type set to ASCII
Cmd: PASV
227: Entering Passive Mode (192,168,178,1,12,8)
Connected to 192.168.178.1:3080 for PASV.
Cmd: NLST NoSuchFile
502: Command not implemented
Cmd: PWD
502: Command not implemented
Cmd: TYPE I
200: Type set to BINARY
Cmd: PASV
227: Entering Passive Mode (192,168,178,1,12,10)
Connected to 192.168.178.1:3082 for PASV.
Cmd: STOR image.bin
501: unknown variable image.bin
put image.bin: server said: unknown variable image.bin
put image.bin: server said: unknown variable image.bin
Cannot open local file mtd1 for reading (errno = 2).
Cannot open local file mtd1 for reading (errno = 2).
put mtd1: could not open file.
put mtd1: could not open file.
ncftp / >

This is wrong, using ncftp it must be
put -z image.bin mtd1
!!!

next try.... :frowning:

after trying "put -z" it seamed to work, but the device is now stuck in the bootloader
I am still able to connect and log in but as soon as I try to execute any quote command the response is
"could not write to control stream (errno = 0)."

edit: after power cycling several times I now was able to repeat the flashing process.

Okay finally my AVM 300E is UP AND RUNNING

For anyone who perhaps is trying to run OpenWRT on a AVM 300E
this it how it will work
Still with a risk of bricking it!
Only try if you can accept to throw it away finally.

PREPARATION
download image file (Firmware OpenWrt Upgrade URL) from https://openwrt.org/toh/hwdata/avm/avm_fritz_wlan_repeater_300e
and save it e.g. in c:\imagefile
Im sure you will (do it!) rename the file with a shorter name e.g. image.bin
In the same folder add an new empty file called empty.file
on Windows download and install ncftp (https://www.ncftp.com/download/),
because you will have to use ftp passive mode!

AVM 300E has a bootloader containing an FTP server
it is running on the follwing IP-address: 192.168.178.1
Give your PC a static IP-address e.g. use 192.168.178.2
connect your PC with the LAN-Port of the 300E
Disconnect other network connection (other LAN or WIFI)

Let's GO
start ncftp (should be located within your startmenue)
power cycle the router and after about 3 seconds enter the following:

open -u adam2 192.168.178.1
as prompted for password enter: adam2

CHANGE LOCAL FOLDER
(in this case c:\imagefile)

lcd c:\imagefile

check with command

lls

should output the name of your image file

THEN EXECUTE THE FOLLWING COMMANDS
(commands will vary in other tools than ncftp)

quote USER adam2
quote PASS adam2
debug
binary
passive
quote MEDIA FLSH
put -z empty.file mtd3
put -z empty.file mtd4
put -z image.bin mtd1
*(you should get a prompt "transfer complete" for each put)*
quit

powercycle the device

booting will take some time
the device should then be running with IP-address 192.168.1.1
for getting it finally runnig, read this: https://openwrt.org/docs/guide-quick-start/walkthrough_login

if the power LED ist not switched on and the wlan-LED is blinking 2 times break 2 times ...
plug it out an wait for a minute or so and power it on again.
check for changes
if nothing has changed try to connect as before.
If still possible you can try it again and/or try another image.
(I had to flash it twice including some problems solved by power cycling several times)
but... as mentioned, there is a risk to end up with a "dead" 300E

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.