Skip to content

[Accton][AS7326-56X] Show MFU ver with onlpdump -x#163

Open
vincentchiang-ec wants to merge 1 commit intoaccton:support_linux_6.1from
vincentchiang-ec:as7326-56x/add-mfu-display
Open

[Accton][AS7326-56X] Show MFU ver with onlpdump -x#163
vincentchiang-ec wants to merge 1 commit intoaccton:support_linux_6.1from
vincentchiang-ec:as7326-56x/add-mfu-display

Conversation

@vincentchiang-ec
Copy link
Copy Markdown

Summary

  • Display MFU (Modular Firmware Upgrade) version in onlpdump -x output.
  • The last_updated_MFU_version file in ONIE partition is copied to /var/tmp/ on ONL boot.
  • onlpdump -x reads /var/tmp/last_updated_MFU_version for MFU version.
  • Move BIOS_VER_PATH from sysi.c to platform_lib.h and add MFU_VER_PATH macro.
  • Use intermediate const char* to avoid passing NULL to aim_fstrdup when BIOS/MFU file is missing.

Same approach as PR #90 (as9716-32d) applied to AS7326-56X. Existing dual-path IDPROM decode loop preserved.

Test plan

  • Built and verified on hardware: onlpdump -x shows BIOS / ONIE / MFU lines.
  • When /var/tmp/last_updated_MFU_version does not exist, MFU shows empty (no crash).

1. The last_updated_MFU_version file in ONIE partition is copied
   to ONL's /var/tmp/ on ONL boot.
2. onlpdump -x reads /var/tmp/last_updated_MFU_version for MFU ver.
3. Move BIOS_VER_PATH from sysi.c to platform_lib.h and add
   MFU_VER_PATH macro.
4. Use intermediate const char* to avoid passing NULL to aim_fstrdup
   when BIOS/MFU file is missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant