Skip to content

Enable openhisilicon modules for hi3516cv500 builds#1987

Merged
widgetii merged 1 commit intomasterfrom
opensdk-cv500-modules
Apr 9, 2026
Merged

Enable openhisilicon modules for hi3516cv500 builds#1987
widgetii merged 1 commit intomasterfrom
opensdk-cv500-modules

Conversation

@widgetii
Copy link
Copy Markdown
Member

@widgetii widgetii commented Apr 9, 2026

Summary

Enable openhisilicon (opensdk) kernel modules for all hi3516cv500 firmware builds, replacing vendor binary modules with open-source rebuilt ones.

Changes

  • hi3516cv500_lite_defconfig: enable BR2_PACKAGE_HISILICON_OPENSDK=y
  • opensdk.mk: add post-install hook that copies open_*.ko modules to /lib/modules/*/hisilicon/ with vendor-compatible names (e.g. open_base.kohi3516cv500_base.ko)
  • opensdk.mk: bump version to 6fe935a (hi3516cv500 support commit)

How it works

The opensdk package builds 38 kernel modules. A post-install hook renames them to match vendor module names expected by load_hisilicon. The osdrv package still provides the load script, sensor configs, and userspace libraries — only the .ko files are replaced.

The load_hisilicon script requires no changes — it picks up the opensdk modules transparently since they have the same filenames.

Verified on hardware

Tested on hi3516av300 + imx415 camera:

  • All 25 modules loaded successfully (matching the vendor load order)
  • Majestic serves JPEG snapshots and RTSP streams
  • Both open kernel modules and open libisp.so verified working

🤖 Generated with Claude Code

- Enable BR2_PACKAGE_HISILICON_OPENSDK in hi3516cv500_lite_defconfig
- Add post-install hook that copies opensdk open_*.ko modules over
  vendor osdrv modules in /lib/modules/*/hisilicon/ with matching
  vendor names, so load_hisilicon picks them up transparently
- Bump HISILICON_OPENSDK_VERSION to 6fe935a (hi3516cv500 support)

The opensdk modules are built from source (ISP, OSAL, MIPI, cipher,
watchdog, etc.) or from vendor blobs with open init wrappers. They
are ABI-compatible with the vendor modules and drop-in replace them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@widgetii widgetii force-pushed the opensdk-cv500-modules branch from 681353d to 839893a Compare April 9, 2026 15:42
@widgetii widgetii merged commit c450963 into master Apr 9, 2026
88 checks 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