Skip to content

accton/as7326-56x: support linux 4.19#173

Open
rayxhuangEC wants to merge 5 commits into
accton:support_linux_4.19from
rayxhuangEC:as7326-56x-linux_4.19
Open

accton/as7326-56x: support linux 4.19#173
rayxhuangEC wants to merge 5 commits into
accton:support_linux_4.19from
rayxhuangEC:as7326-56x-linux_4.19

Conversation

@rayxhuangEC
Copy link
Copy Markdown

@rayxhuangEC rayxhuangEC commented Jun 2, 2026

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:~# onl-platform-show
Model: AS7326-56X
Manufacturer: Accton
Ports: 56 (48x25 + 8x100)
Platform Revision: r0
System Object Id: 1.3.6.1.4.1.42623.1.1.2.259.7326.56
System Information:
    Device Version: 0
    MAC: 00:00:00:00:00:00
    DMI BIOS Version: v40.01.01.01
    DMI System Version: R01I
root@localhost:~# onlpdump -x
        CPLD Versions:
           CPU CPLD(0x65): 0F
           Fan CPLD(0x66): D3
           Main CPLD(0x60): 02
           Main CPLD(0x62): 04
           Main CPLD(0x64): 03
        Other Versions:
           BIOS: v40.01.01.01
           ONIE: 2020.08.00.02
           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:~# echo 0x81 > /var/tmp/last_updated_MFU_version
root@localhost:~# onlpdump -x
        CPLD Versions:
           CPU CPLD(0x65): 0F
           Fan CPLD(0x66): D3
           Main CPLD(0x60): 02
           Main CPLD(0x62): 04
           Main CPLD(0x64): 03
        Other Versions:
           BIOS: v40.01.01.01
           ONIE: 2020.08.00.02
           MFU: 0x81

rayxhuangEC and others added 5 commits May 29, 2026 15:32
The onlbuilder script used Python 2 syntax (print statements,
except comma syntax, identity comparison with literals) which
fails on systems without Python 2 installed.

- Change shebang to #!/usr/bin/env python
- Convert print statements to print() function calls
- Replace 'except Exception, e' with 'except Exception as e'
- Replace 'is 0' with '== 0'
Replace apt.opennetlinux.org with archive.debian.org

Signed-off-by: rayx_huang <rayx_huang@edge-core.com>
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.

2 participants