If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.
Property:PreEVA
BoxMatrix >> Lexicon >> FRITZ-Terms >> PreEVA | @ BoxMatrix - IRC-Chat - Translate: de es fr it nl pl |
News | Selectors | Models | Accessories | Components | Environment | Config | Commands | System | Webif | Software | Develop | Lexicon | Community | Project | Media |
Computer | FRITZ | I18N | Telephony | Smarthome | Internet | Protocols | Multimedia | Formats | Hardware | Software | Research |
Term
Term: | PreEVA | Wiki | Freetz | IPPF | whmf | AVM | Web |
Short for: | Pre-EVA Bootloader | ||||||
Location: | Lexicon >> FRITZ-Terms | ||||||
Weblinks: | |||||||
Description: | Stage-1 Bootloader on MIPS equipped Multi-EVA models |
Goto: FRITZ!OS - Seale - Falcon - SMW-Browser
Details
PreEVA is the term used here for the Stage-1 Bootloader on MIPS equipped Multi-EVA models, until a better term is found.
It is executed when the MIPS leaves the Reset state, ie. on Powerup, and starts one of the Stage-2 EVA instances.
On Single-EVA MIPS based models EVA is started directly after Reset.
On Multi-EVA MIPS based models EVA is splitted into approx. 20% Stage-1 PreEVA and the remaining 80% Stage-2 EVA.
This is evaluated from the bytes effectively used in flash, excluding longer 0xFF blocks, regardless of partition sizes.
Stage-1 performs early low-level hardware detection and initialisation. and validates the integrity of the Stage-2 partitions.
It then boots the first valid Stage-2 bootloader, if none was found it gives up.
FRITZ!OS
There are 2 MIPS based Multi-EVA architectures, the Seale GRX500 and the Falcon PRX300 series of SoCs:
Multi-EVA boot on Lantiq-MIPS:
- SoCs: Seale, Falcon
- Lexicon: Bootcore, Interaptiv, PreEVA, EVA
- Commands: urladerupdate
- Kconfig: CONFIG_BOOTCORE_LOAD_ADDR
- Kconfig: CONFIG_SOC_PRX300_BOOTCORE, CONFIG_PRX300_BOOTCORE_WDT
- Kconfig: CONFIG_SOC_GRX500_BOOTCORE, CONFIG_SERIAL_GRX500_BOOTCORE_CONSOLE
- Kernel: cpunet.ko, grx_switch_console.ko
- Sysfs: switch_console
Seale
The first Multi-EVA model by AVM is the Seale based 7590ac. It has a 1 MB mtd2 partition with this internal partition layout:
- 0x000000 - 0x040000 -
PreEVA #0
- First stage EVA (256k) - 0x040000 - 0x080000 -
PreEVA #1
- First stage EVA (256k) - 0x080000 - 0x0C0000 -
EVA #0
- Second stage EVA (256k) - 0x0C0000 - 0x100000 -
EVA #1
- Second stage EVA (256k)
The contents of the #0
and #1
instances of both bootloader stages are identical each.
A Firmware-Image may provide the approx. 1 MB sized urladerupdate command, containing the blobs to update mtd2.
This command merges device specific config on mtd2, like MAC addresses, with the blobs it containins before updating mtd2.
Falcon
No mtd2 partition dump yet to analyze. Please help if you have a 5530 with a shell.
The 5590 uses an ARM based Hawkeye as main CPU, which is Multi-EVA booted as explained in the SBL article.
The Falcon is Single-EVA booted by upx-hwk-boot-prx, so no PreEVA required there.