PDA

Bekijk de volledige versie : Q:Backup of Firmware+files ?



Mickego
15-09-2008, 12:21
Is it possible to create a complete backup of
firmware from an Oleg-Loaded WL500gp ?

(If I upgrade FW and then want to go back,
or load another Router with same stuff)

And also need to know best way to backup
files and scripts I changed in Flash.

Most stuff I run from USB-Stick
byt some files &stuff are located in Flash memory.

brgds Mickego

raas
15-09-2008, 14:51
Hi,

I've never done this, so I could be very very wrong, but, if I'm not mistaken, when you execute the following command


flashfs save

the router creates a firmware package in /tmp/flash.tar.gz


So normally, after you've edited something in the flash memory, to save to the router you use:

flashfs save && flashfs commit && flashfs enable && reboot

Now, you only use, the flashfs save command to create the 'firmware-package'



If I remember correctly, the normal boot procedure from the router is:

-power on
-load firmware package from location somewhere in flash and extract
-load the extracted package as firmware/os of router.

When you change something in your firmware/files on flash, and want to commit these changes to the router, you are only changing the firmware package that gets loaded at bootup. So, by changing files, creating a package of it, putting it in the router, you can manipulate the router its behaviour from the next boot. (where the modified package gets loaded)

If I'm completely wrong, please forgive me. I don't know this exactly, just trying to help. (but issueing the command, and check for the file can't do much harm)

Mickego
16-09-2008, 06:01
Thank You, Will give it a try

vbrgds Mickego

velcrow
16-09-2008, 17:44
http://wl500g.info/showthread.php?t=10307

Part 16 of the tutorial may be of help