Skip to content

hisilicon-opensdk: fix CV500 module install and enable av300/dv300 - #1989

Merged
widgetii merged 1 commit into
masterfrom
fix-cv500-osdrv
Apr 10, 2026
Merged

hisilicon-opensdk: fix CV500 module install and enable av300/dv300#1989
widgetii merged 1 commit into
masterfrom
fix-cv500-osdrv

Conversation

@widgetii

Copy link
Copy Markdown
Member

Problem

The previous PR #1987 enabled opensdk for hi3516cv500_lite, but:

  1. osdrv vendor .ko modules overwrote opensdk modules during buildroot per-package merge (osdrv installs later alphabetically)
  2. opensdk libisp.so was not installed, causing Majestic to fail with "cannot open shared object file"
  3. hi3516av300 and hi3516dv300 boards were not enabled

Fix

  • osdrv: when BR2_PACKAGE_HISILICON_OPENSDK=y, skip installing .ko modules, vendor sensor .so, and vendor libisp.so — opensdk provides these
  • opensdk: install libisp.so built from source to /usr/lib/
  • opensdk: add dependency on osdrv for correct install ordering
  • defconfigs: enable opensdk for hi3516av300_lite and hi3516dv300_lite

Verified on hardware

  • hi3516ev300_lite: open_ modules loaded, JPEG OK (no regression)
  • hi3516av300 + imx415: opensdk modules with vendor names in hisilicon/, opensdk libisp.so (1020K), Majestic serving JPEG

🤖 Generated with Claude Code

Problems fixed:
- osdrv vendor .ko modules were overwriting opensdk modules in
  buildroot per-package merge (osdrv installed last alphabetically)
- libisp.so from opensdk was not being installed
- opensdk was only enabled for hi3516cv500_lite, not av300/dv300

Changes:
- osdrv: skip .ko, sensor .so, libisp.so install when opensdk enabled
- opensdk: install libisp.so built from source to /usr/lib/
- opensdk: add dependency on osdrv so install ordering is correct
- Enable BR2_PACKAGE_HISILICON_OPENSDK for av300_lite and dv300_lite

Verified on hardware:
- hi3516ev300_lite: open_ modules loaded, JPEG OK (no regression)
- hi3516av300 + imx415: opensdk modules in hisilicon/ dir,
  opensdk libisp.so, Majestic serving JPEG

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@widgetii
widgetii merged commit 25d65f7 into master Apr 10, 2026
88 checks passed
@widgetii
widgetii deleted the fix-cv500-osdrv branch April 10, 2026 08:47
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