2013/9/9 Rafał Miłecki <zaj...@gmail.com>:
> Unfortunately this Linksys compiled&installed CFE without web server
> or "tftpd" command, so I cant's use any of that 2 alternative methods.

My CFE has 3 interesting commands: upgrade, flash and save (for the
full list see cfe.help.txt).

1) flash [options] source-file [destination-file]
Passing source-file is easy (like 192.168.1.2:/bin/code.bin), but I'm
not sure about destination-file.

> The destination-device parameter may be a flash device or an EEPROM. If not 
> specified, destination-device defaults to flash0, which is typically the boot 
> ROM.

If I don't pass anything as destination-file argument... Is CFE going
to write to the flash at offset 0x0? Overwriting itself? Or is it
going to write to the correct TRX offset? If it's going to use 0x0 by
default, should I pass -offset=value to avoid killing the CFE?

2) upgrade

It's not documented in my CFE manual.

3) save

It seems to be the opposite of "flash". It reads some device memory
and saves it somewhere, for example in the remote TFTP server.

-- 
Rafał
CFE> help
CMD: [help]
Available commands:

upgrade             Upgrade Firmware
et                  Broadcom Ethernet utility.
modify              Modify flash data.
nvram               NVRAM utility.
reboot              Reboot.
flash               Update a flash memory device
memtest             Test memory.
f                   Fill contents of memory.
e                   Modify contents of memory.
d                   Dump memory.
u                   Disassemble instructions.
batch               Load a batch file into memory and execute it
go                  Verify and boot OS image.
boot                Load an executable file into memory and execute it
load                Load an executable file into memory without executing it
save                Save a region of memory to a remote file via TFTP
ttcp                TCP test command.
tcp constest        tcp console test.
tcp listen          port listener.
tcp connect         TCP connection test.
rlogin              mini rlogin client.
client              Show the client of the dhcp server.
ping                Ping a remote IP host.
arp                 Display or modify the ARP Table
ifconfig            Configure the Ethernet interface
show clocks         Show current values of the clocks.
show heap           Display information about CFE's heap
show memory         Display the system physical memory map.
show devices        Display information about the installed devices.
unsetenv            Delete an environment variable.
printenv            Display the environment variables
setenv              Set an environment variable.
help                Obtain help for CFE commands

For more information about a command, enter 'help command-name'
*** command status = 0
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to