
GORAMO – Janusz Górecki
MultiLink Router and MikroRouter
www.goramo.com.pl
age 35 from 41
... Program from 0x01fe0000-0x02000000 at 0x50fe0000: .
... Lock from 0x50fe0000-0x51000000: .
RedBoot> reset
After this command, there should be a normal boot, you can also go to RedBoot
Useful commands:
fis list –shows the contents of Flash memory
fis list –c –d –shows the contents of Flash memory and Checksum
6.1
Create a copy of the operating system and configuration
settings
In the directory
/dev/mtd/IXP4XX-Flash.0
Located a file (character device) with the whole 16 MB of flash files.
For example you can copy from him everything without RedBoot file:
dd bs=$((0x20000)) if=/dev/mtd/IXP4XX-Flash.0 of=input_file skip=3
In this way we write down flash image to RAM.
If we want to write down flash image to local computer we should execute on this computer following
command:
nc –l 1234 > flash_image
and on router we execute:
dd bs=$((0x20000)) if=/dev/mtd/IXP4XX-Flash.0 skip=3 | nc xxx.xxx.xxx.xxx
1234
where: xxx.xxx.xxx.xxx local computer IP address and 1234 is the port number of this local computer
(skip=3 skips 3 RedBoot blocks, it means that specific setting for hardware router version are not
copied.)
You can do the opposite direction (MultiLink routers only!):
dd bs=$((0x20000)) of=/dev/mtd/IXP4XX-Flash.0 if=output_file seek=3
For MicroRouter update have to use RedBoot application p.6
Warning!
Do not just wrong directions: skip=X skips blocks to the entrance,
seek=X starts recording from the block X to exit bs=block size, if=input
file,
of=output file. ???????
"
Read-only filesystem" means that a block is protected
record, you need to do then RedBoot eg
fis unlock -f 0x50060000 -l 0xFA0000
dd output can also refer to the pipe (if we do not give of = XXX)
description is in google man dd.
6.2
Backup and Restore Features
The router's Flash memory has been set aside two areas of configuration:
- Conf (core area which is read the current configuration)
- Conf2 (additional area to which you can save the configuration of the reserve)
To save the current configuration in addition to conf2 area should be from the console command:
/etc/UI/scripts/backupGUI
To recover the reserve configuration is the console command:
Comentarios a estos manuales