Page MenuHomeFreeBSD

sfxge: modify nvram update functions for uio platform to support RFID-selectable presets
ClosedPublic

Authored by arybchik on Nov 27 2015, 4:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 9 2025, 2:45 PM
Unknown Object (File)
Dec 10 2024, 10:52 PM
Unknown Object (File)
Nov 28 2024, 8:51 AM
Unknown Object (File)
Nov 24 2024, 1:17 AM
Unknown Object (File)
Sep 17 2024, 7:56 PM
Unknown Object (File)
Sep 1 2024, 6:41 AM
Unknown Object (File)
Aug 27 2024, 1:09 AM
Unknown Object (File)
Aug 7 2024, 6:00 AM
Subscribers

Details

Summary

Dynamic config partitions on boards that support RFID are divided into
a number of segments, each formatted like a partition, with header,
trailer and end tags. The first segment is the current active configuration.

The segments are initialised by manftest and each contain a different
configuration e.g. firmware variant. The firmware can be instructed
via RFID to copy a segment over the first segment, hence changing the
active configuration. This allows ops to change the configuration of
a board prior to shipment using RFID.

Changes to the dynamic config may need to be written to all segments (in
particular firmware versions written by manftest) or just the first
segment (changes to the active configuration). See SF-111324-SW.
If only the first segment is written the code still needs to be aware of
the possible presence of subsequent segments as writing to a segment may
cause its size to increase, which would overwrite the subsequent segments
and invalidate them.

Boards that do not support RFID will only have one segment in their
dynamic config partition.

Submitted by: Paul Fox <pfox at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days

Test Plan

FreeBSD head build tested.
Functionality tested internall during development.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

arybchik retitled this revision from to sfxge: modify nvram update functions for uio platform to support RFID-selectable presets.
arybchik updated this object.
arybchik edited the test plan for this revision. (Show Details)
arybchik added a reviewer: gnn.
This revision was automatically updated to reflect the committed changes.