Ok, I've found that is needed to connect with FTP client only in the first seconds of router boot.
It seems that if you try to login with FTP, then the router doesn't start all the firmware (the status led remains off and the ADAM2 FTP server waits login), and if you want normal operation then the router must be restarted again.
Other informations detected for (some?) 504T:
- The username and password can be lowcase (adam2 adam2)
- in GNU/Linux the lftp tool is the one to manage right the remote commands and responses:
lftp ftp://adam2:adam2@10.8.8.8
After this, I pick the information for the 5 partitions:
mtd0 0x900a0000,0x903f0000
mtd1 0x90010000,0x900a0000
mtd2 0x90000000,0x90010000
mtd3 0x903f0000,0x90400000
mtd4 environment variable not set.
Which match with ZioFork tutorial.
One problem to transfer the new firmware is that when changing of FTP client (bye "lftp" and enter "ftp"), ADAM2 server doesn't accept a second FTP client connection. I needed to reboot the router to have FTP access again, and I've run again the two last commands:
quote "SETENV modulation MMODE"
quote "SETENV autoload 1"
quote "SETENV mtd4,0x90010000,0x903f0000"
But I'm at this point: the new firmware image isn't transferred entirely for me. At the first try I've transferred 2.4MiB (of the total 2.6MiB), and at all the next tries only 16KiB are transferred. Here the log of each try:
$ ftp 10.8.8.8
Connected to 10.8.8.8.
220 ADAM2 FTP Server ready.
Name (10.8.8.8:narcisg): adam2
331 Password required for adam2.
Password:
230 User adam2 successfully logged in.
Remote system type is UNIX.
ftp> quote "SETENV modulation MMODE"
200 SETENV command successful
ftp> quote "SETENV autoload 1"
200 SETENV command successful
ftp> quote "SETENV mtd4,0x90010000,0x903f0000"
200 SETENV command successful
ftp> quote "MEDIA FLSH"
200 Media set to FLSH.
ftp> bin
200 Type set to I.
ftp> debug
Debugging on (debug=1).
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> put "openwrt-ar7-squashfs.bin" "OpenWRT mtd4"
local: openwrt-ar7-squashfs.bin remote: OpenWRT mtd4
ftp: setsockopt (ignored): Permission denied
---> PORT 10,8,8,1,229,152
200 Port command successful.
---> STOR OpenWRT mtd4
150 Opening BINARY mode data connection for file transfer.
########
ADAM2 is still accessible with the flashing procedure, but in normal boot the status led doesn't bright again.