hisilicon-opensdk: wire up hi3519v101 open_ modules into firmware - #2010
Merged
Conversation
Add V3A (hi3519v101) support — same pattern as CV500. hi3519v101 has OSAL (source-compiled), so blobs call osal_* wrappers and no code fixes were needed in openhisilicon. Key details: - Kernel 3.18.20 (module path /lib/modules/3.18.20/hisilicon/) - Blob prefix: hi3519v101_*, source prefix: hi_* - 38 modules installed with vendor-compatible names - Image fits lite flash (5048KB < 5120KB) Also enables opensdk for hi3516av200 (same SOC_FAMILY=hi3519v101). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
widgetii
force-pushed
the
feat/3519v101-opensdk-modules
branch
from
April 16, 2026 14:23
d92c9a8 to
c30265e
Compare
5 tasks
5 tasks
widgetii
added a commit
that referenced
this pull request
Jun 19, 2026
In per-package mode, target-finalize merges per-package/*/target/ into
output/target/ via $(call per-package-rsync,$(sort $(PACKAGES)),...).
The $(sort ...) is alphabetical, so hisilicon-osdrv-* always rsyncs
after hisilicon-opensdk and clobbers any file we install at the same
path -- even though HISILICON_OPENSDK_DEPENDENCIES sequences us after
osdrv during build.
Net effect: every file opensdk and osdrv share a path for ends up as
the osdrv vendor blob in the shipped image. Verified on a hi3516av200
(hi3519v101 SDK) test camera:
- /usr/lib/sensors/libsns_imx385.so -- vendor blob (stSnsObj),
not opensdk's source-built lib (stSnsImx385Obj). Majestic fails:
sensor_getsnsobj@101 Cannot load symbol 'stSnsImx385Obj' from driver
Cannot init sensor / Cannot start SDK
- /lib/modules/3.18.20/hisilicon/hi_mipi.ko -- vendor blob,
not opensdk's open_mipi_rx.ko (so PR #2010's open kernel modules
have been silently inactive on hi3519v101 since it landed).
Same trap exists for hi3516cv500 (imx335/307/415 + ~30 .ko files)
and hi3516ev200 (imx307).
Fix: register a TARGET_FINALIZE_HOOK that re-rsyncs opensdk's
per-package target tree onto output/target/ after buildroot's
alphabetical merge runs. Opensdk's per-package staging is already
"osdrv contents + opensdk overlay" (because of the existing
_DEPENDENCIES), so a plain rsync -a is exactly what we want
to apply on top.
Gated on BR2_PER_PACKAGE_DIRECTORIES=y; without per-package mode
install ordering already does the right thing.
Verified post-fix on the same camera: source-built libsns_imx385.so
loads, sensor inits ("-------Sony IMX385 Sensor 1080p30 Initial OK!-------"),
RTSP starts, /image.jpg returns a valid 1920x1080 JPEG.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
widgetii
added a commit
that referenced
this pull request
Jun 19, 2026
In per-package mode, target-finalize merges per-package/*/target/ into
output/target/ via $(call per-package-rsync,$(sort $(PACKAGES)),...).
The $(sort ...) is alphabetical, so hisilicon-osdrv-* always rsyncs
after hisilicon-opensdk and clobbers any file we install at the same
path -- even though HISILICON_OPENSDK_DEPENDENCIES sequences us after
osdrv during build.
Net effect: every file opensdk and osdrv share a path for ends up as
the osdrv vendor blob in the shipped image. Verified on a hi3516av200
(hi3519v101 SDK) test camera:
- /usr/lib/sensors/libsns_imx385.so -- vendor blob (stSnsObj),
not opensdk's source-built lib (stSnsImx385Obj). Majestic fails:
sensor_getsnsobj@101 Cannot load symbol 'stSnsImx385Obj' from driver
Cannot init sensor / Cannot start SDK
- /lib/modules/3.18.20/hisilicon/hi_mipi.ko -- vendor blob,
not opensdk's open_mipi_rx.ko (so PR #2010's open kernel modules
have been silently inactive on hi3519v101 since it landed).
Same trap exists for hi3516cv500 (imx335/307/415 + ~30 .ko files)
and hi3516ev200 (imx307).
Fix: register a TARGET_FINALIZE_HOOK that re-rsyncs opensdk's
per-package target tree onto output/target/ after buildroot's
alphabetical merge runs. Opensdk's per-package staging is already
"osdrv contents + opensdk overlay" (because of the existing
_DEPENDENCIES), so a plain rsync -a is exactly what we want
to apply on top.
Gated on BR2_PER_PACKAGE_DIRECTORIES=y; without per-package mode
install ordering already does the right thing.
Verified post-fix on the same camera: source-built libsns_imx385.so
loads, sensor inits ("-------Sony IMX385 Sensor 1080p30 Initial OK!-------"),
RTSP starts, /image.jpg returns a valid 1920x1080 JPEG.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add V3A (hi3519v101) support — fifth platform after CV200, CV100, AV100, CV500.
hi3519v101 has OSAL (source-compiled) like CV500, so blobs call
osal_*wrappers. Zero code fixes needed in openhisilicon — only firmware wiring./lib/modules/3.18.20/hisilicon/hi3519v101_*, source prefix:hi_*Test plan
make BOARD=hi3519v101_lite allbuilds successfullymake BOARD=hi3516av200_lite allbuilds successfully (4508KB < 5120KB)extra/cleanedload_hisilicon/dev/hi_mipicreated, sensor library loaded🤖 Generated with Claude Code