Skip to content

system.board improvements#36

Open
dhewg wants to merge 3 commits intoopenwrt:mainfrom
dhewg:system
Open

system.board improvements#36
dhewg wants to merge 3 commits intoopenwrt:mainfrom
dhewg:system

Conversation

@dhewg
Copy link
Copy Markdown
Contributor

@dhewg dhewg commented May 4, 2026

This is Just one cleanup patch, one fix and one improvement.

ubus call system board, "system" before:
RISC-V (4imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zaamo_zalrsc_zfh_zca_zcd_zba_zbb_zbc_zbs_zkt_zve32f_zve32x_zve64d_zve64f_zve64x_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt

after:
RISC-V (rv64imafdcv zicbom zicbop zicboz zicntr zicond zicsr zifencei zihintpause zihpm zaamo zalrsc zfh zca zcd zba zbb zbc zbs zkt zve32f zve32x zve64d zve64f zve64x zvfh zvkt sscofpmf sstc svinval svnapot svpbmt)

dhewg added 3 commits May 5, 2026 06:02
Unify the "val + 2" access with a potential invalid access.

Signed-off-by: Andre Heider <a.heider@gmail.com>
snprintf(p, "%s", p + x) produces unexpected results, like "4imafdcv" instead
of "rv64imafdcv" on my riscv board.

Also bump the buffer size while at it, the 'isa' line already has a
length of 216 on one of my boards.

Signed-off-by: Andre Heider <a.heider@gmail.com>
The used 'isa' line from /proc/cpuinfo contains a '_' seperated long list
of features.

Break them apart for the human readable string, which also makes the related
luci box less insane, as the browser will now use multiple lines for the long
list.

Signed-off-by: Andre Heider <a.heider@gmail.com>
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