Skip to content

accton/as9726-32d: Modify onlpdump -x output format and support show MFU ver#180

Merged
akenliu merged 2 commits into
accton:support_linux_4.19from
rayxhuangEC:as9726-32d-linux_4.19
Jun 3, 2026
Merged

accton/as9726-32d: Modify onlpdump -x output format and support show MFU ver#180
akenliu merged 2 commits into
accton:support_linux_4.19from
rayxhuangEC:as9726-32d-linux_4.19

Conversation

@rayxhuangEC
Copy link
Copy Markdown

What did I do

Output

root@localhost:~# uname -a
Linux localhost 4.19.81-OpenNetworkLinux #1 SMP Mon Jun 1 06:15:33 UTC 2026 x86_64 GNU/Linux
root@localhost:~# onlpdump -x
        CPLD Versions:
           CPU CPLD(0x65): E1
           FPGA(0x60): 08
           Main CPLD2(0x61): 07
           Main CPLD3(0x62): 04
           FAN CPLD(0x66): A4
        Other Versions:
           BIOS: v45.0a.02.00
           ONIE: 2020.08.00.14
           MFU:
root@localhost:~# ls /var/tmp/last_updated_MFU_version
ls: cannot access '/var/tmp/last_updated_MFU_version': No such file or directory
root@localhost:~# ls /var/tmp
root@localhost:~# echo '0xa0' > /var/tmp/last_updated_MFU_version
root@localhost:~# ls /var/tmp
last_updated_MFU_version
root@localhost:~# onlpdump -x
        CPLD Versions:
           CPU CPLD(0x65): E1
           FPGA(0x60): 08
           Main CPLD2(0x61): 07
           Main CPLD3(0x62): 04
           FAN CPLD(0x66): A4
        Other Versions:
           BIOS: v45.0a.02.00
           ONIE: 2020.08.00.14
           MFU: 0xa0

Willy Liu and others added 2 commits June 3, 2026 13:49
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.
@akenliu akenliu merged commit f86ca7d into accton:support_linux_4.19 Jun 3, 2026
@rayxhuangEC rayxhuangEC deleted the as9726-32d-linux_4.19 branch June 3, 2026 09:24
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.

3 participants