Skip to content

feat(smbios): add smbios store V1 mechanism - #20

Merged
MarsDoge merged 1 commit into
MarsDoge:masterfrom
lioyking:feat/add-smbios-store-update-v1
Nov 13, 2026
Merged

MarsDoge merged 1 commit into
MarsDoge:masterfrom
lioyking:feat/add-smbios-store-update-v1

Conversation

@lioyking

Copy link
Copy Markdown
Contributor

Add compatibility between legacy V0 and new V1 mechanisms. BIOS creates smbiosstore header at SMBIOS_OFFSET(0x3d0000) for V1. OsTools identifies version by checking header signature: 0x45534253 means V1, otherwise fall back to V0.
OsTools sends different data structure according to version.

Add '-c' option to set max smbios storage size, default 0x3000. Example: -c 0x4000 limits storage size to 0x4000 bytes.

Validation:

  • BIOS flash script using OsTools: smbiosstore.sh
  • 7A flash script using OsTools: smbiosstore7a.sh
  • BIOS Shell script using "smbiosupdate": smbiosupdate.nsh

Change-Id: Iee5e61bf644c0f07e59806646cf150af7e94e98a

Add compatibility between legacy V0 and new V1 mechanisms.
BIOS creates smbiosstore header at SMBIOS_OFFSET(0x3d0000) for V1.
OsTools identifies version by checking header signature:
0x45534253 means V1, otherwise fall back to V0.
OsTools sends different data structure according to version.

Add '-c' option to set max smbios storage size, default 0x3000.
Example: -c 0x4000 limits storage size to 0x4000 bytes.

Validation:
- BIOS flash script using OsTools: smbiosstore.sh
- 7A flash script using OsTools: smbiosstore7a.sh
- BIOS Shell script using "smbiosupdate": smbiosupdate.nsh

Signed-off-by: Fei Shen <shenfei@loongson.cn>
Change-Id: Iee5e61bf644c0f07e59806646cf150af7e94e98a

@MarsDoge MarsDoge left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MarsDoge
MarsDoge merged commit 3378b99 into MarsDoge:master Nov 13, 2026
1 check passed
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