Microsemi application note covering Linux customizations for WebStaX switch products, including modular firmware images, ServiceD, JSON-IPC and boot-time…
This Microsemi application note (ENT-AN1163-4.1, VPPD-04449) provides a collection of options to customize the firmware images managed by the WebStaX software application used in Microsemi switch products. The facilities described do not require source code access, but do require a board support package (BSP), and can be used to customize without recompiling the WebStaX image.
The document covers modular firmware images (MFI) with stage1 and stage2 sections, the mfi.rb tool, ServiceD, JSON-IPC, boot-time configuration, and use cases such as custom web interfaces, Quagga integration, a JSON CLI-client and a custom default configuration.
| Document number | ENT-AN1163-4.1 / VPPD-04449 |
|---|---|
| Revision | 1.0 |
| Firmware image type | Modular Firmware Images (MFI) with stage1 and stage2 |
| Stage1 TLV types | KERNEL, SIGNATURE, INITRD, KERNEL_CMD, METADATA, LICENSES |
| Stage2 TLV types | ROOTFS (type 2) |
| Signature algorithms | MD5, SHA256, SHA512 |
| MFI tool | mfi.rb, written in Ruby |
MFI is a new image type introduced with the Linux-based version of the WebStaX family. Its modular firmware architecture is designed to be flexible and allow the user to replace and append various components without the need to recompile/rebuild all the components.
The mfi.rb script, provided as part of the BSP, is used to build, alter and/or inspect the MFI files. It is written in Ruby and should work across platforms (WIN, OSX, and LINUX) as long as Ruby is supported and properly installed.
The stage2 part does not have a common header; it is just a sequence of stage2 TLVs. Each stage2 TLV embeds the signature directly, so stage2 TLVs are signed individually. Only the ROOTFS TLV type is currently supported.
No. All facilities presented in the document do not require source code access for the software, but do require a board support package (BSP), and can be used to customize without recompiling the WebStaX image.