Текстовая копия страницы; без скриптов и внешних ресурсов. Источник: https://github.com/OpenIPC/openhisilicon
GitHub - OpenIPC/openhisilicon: Opensource Hisilicon SoCs SDK · GitHub
Skip to content
Navigation MenuSign inAppearance settingsPlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesCode QualityEnforce quality at mergeAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricingSearch/Sign inSign upAppearance settings
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
OpenIPCopenhisiliconRepository navigationCodeIssues17 (17)Pull requests3 (3)ActionsProjectsSecurity and qualityInsightsMore items
openhisiliconPublicSponsorNotificationsYou must be signed in to change notification settingsFork26 (26)Star57 (57)You must be signed in to star a repositoryAboutOpensource Hisilicon SoCs SDKopenipc.orgTopicsgokehisiliconopenipcResourcesReadmeGPL-3.0 licenseCode of conductCode of conductActivityCustom propertiesStars57 starsWatchers3 watchingForks26 forksReport repositorymainBranchesTagsGo to fileCodeOpen more actions menuLatest commit History289 Commits289 CommitsFolders and filesNameNameLast commit messageLast commit date.github.github bootrombootrom docsdocs includeinclude kernelkernel librarieslibraries samplessamples scriptsscripts .clang-format.clang-format .gitignore.gitignore LICENSELICENSE README.mdREADME.md View all filesRepository files navigationREADMECode of conductGPL-3.0 licenseMore itemsOpenHisilicon
Open-source kernel modules and sensor libraries for HiSilicon/Goke IP camera SoCs, covering eight chip generations from V1 through V5.
Replaces the proprietary SDK that HiSilicon ships to camera manufacturers. Used by OpenIPC firmware and can be used independently in your own projects.
Supported hardware
Generation
SoC family
Chip IDs
CPU
CHIPARCH
V1
hi3516cv100
hi3516cv100, hi3518cv100, hi3518ev100
ARM926EJ-S
hi3516cv100
V2
hi3516cv200
hi3516cv200, hi3518ev200, hi3518ev201
ARM926EJ-S
hi3516cv200
V2A
hi3516av100
hi3516av100, hi3516dv100
Cortex-A7
hi3516av100
V3
hi3516cv300
hi3516cv300, hi3516ev100
ARM926EJ-S
hi3516cv300
V3A
hi3519v101
hi3519v101, hi3516av200
Cortex-A17+A7
hi3519v101
V3.5
hi3516cv500
hi3516cv500, hi3516av300, hi3516dv300
Cortex-A7
hi3516cv500
V4
hi3516ev200
hi3516ev200, hi3516ev300, hi3518ev300, hi3516dv200
Cortex-A7
hi3516ev200
V4/Goke
gk7205v200
gk7205v200, gk7205v300, gk7202v300, gk7605v100
Cortex-A7
gk7205v200
V4/XMedia
gk7205v500
gk7205v500, gk7205v510, gk7205v530, gk7202v330, gk7201v200
Cortex-A7
gk7205v500 (XM_SET=V200 for gk7201v200)
Goke/XMedia Lotus
gk7206v100
gk7206v10, gk7206v10b, gk7206v11, gk7206v11a, gk7206v11at, gk7206v12a
2× Cortex-A7 + RISC-V MCU
gk7206v100
NVR
hi3536dv100
hi3536dv100
Cortex-A7
hi3536dv100
V5
hi3516cv610
hi3516cv610, hi3516cv608
Cortex-A7
hi3516cv6xx
V5
hi3519dv500
hi3519dv500, hi3516dv500
Cortex-A55 (aarch64)
hi3519dv500
Generation labels match qemu-hisilicon. The hi3516ev200 and gk7205v200 are pin-compatible — the same source compiles for both via CHIPARCH. A conversion script translates between HiSilicon and Goke naming.
How HiSilicon SDK modules work
If you're new to HiSilicon camera SoCs, this section explains the concepts you'll encounter throughout the codebase.
The vendor SDK problem
HiSilicon ships camera manufacturers a proprietary SDK containing pre-compiled kernel modules (.ko files) built for a specific Linux kernel version. These modules implement the video pipeline — capturing frames from the image sensor, running them through the ISP (Image Signal Processor), encoding to H.264/H.265, and outputting the stream. The source code for most of these modules is not provided.
When projects like OpenIPC want to run a different kernel version, or build firmware from source, these vendor .ko files become a problem: a module compiled for kernel 3.18 won't load on kernel 4.9 due to symbol versioning (vermagic). This repository provides the infrastructure to rebuild loadable modules that incorporate the vendor binary code.
Key SDK components
MMZ (Media Memory Zone) — IP cameras need large contiguous blocks of physical memory for DMA transfers between hardware blocks (sensor → ISP → encoder). Linux's default memory allocator doesn't guarantee contiguous pages. MMZ carves out a dedicated region of RAM at boot (configured via kernel bootargs like mmz=anonymous,0,0x82000000,32M) and provides hil_mmb_alloc/hil_mmb_free for the video pipeline to allocate from it. Think of it as a specialized memory pool sitting alongside Linux's normal memory management.
himedia — A media device registration framework. Where Linux has misc_register() for simple character devices, HiSilicon's SDK has himedia_register() which creates /dev/ entries for each pipeline stage (ISP, VI, VPSS, VENC, etc.) and manages their lifecycle. The base module uses himedia to register itself and provide inter-module communication.
OSAL (OS Abstraction Layer) — HiSilicon shipped each SDK in two variants: one for Linux and one for Huawei LiteOS (their proprietary RTOS for resource-constrained devices). OSAL was created to isolate the multimedia IP block drivers from the OS — the video pipeline code calls osal_mutex_lock() instead of Linux's mutex_lock() or LiteOS's LOS_MuxPend(). The OSAL source provides the OS-specific implementation (mutexes, timers, proc filesystem, memory mapping, interrupts), while the pre-compiled multimedia blobs remain identical across both operating systems. For us, this design is a gift: because the blobs call OSAL functions instead of kernel functions directly, the OSAL source can be recompiled for a new kernel version while the blobs remain unchanged. This is the key mechanism that allows vendor modules from kernel 4.9 to run on kernel 7.0.
How it evolved across generations
The generation number tracks the peripheral address map and SDK architecture. The letter suffix tracks CPU upgrades within the same architecture:
Generation
SoC
CPU
Memory layer
Module init
Notes
V1
CV100
ARM926EJ-S
Standalone MMZ
.ko blobs via objcopy
First generation, VIC interrupts
V2
CV200
ARM926EJ-S
MMZ + himedia
.ko blobs via objcopy
Added himedia device framework
V2A
AV100
Cortex-A7
MMZ + himedia
.ko blobs via objcopy
V2 SDK with ARM upgrade + GIC
V3
CV300
ARM926EJ-S
OSAL
Raw .o + init wrappers
New 0x12xxxxxx address map, OSAL replaces MMZ/himedia
V3A
3519V101
Cortex-A17+A7
OSAL
.ko blobs via objcopy
V3 SDK with big.LITTLE for 4K
V3.5
CV500
Cortex-A7
OSAL
Raw .o + init wrappers
Incremental V3, snake_case SDK symbols
V4
EV200
Cortex-A7
OSAL
Source-based Kbuild
Redesigned modular SDK, Goke compat, mainline kernel
V5
CV610
Cortex-A7
OSAL + MMZ split
Raw .o + vendor init wrappers
Hi3516CV610/CV608, MMZ separated from OSAL again, vendor ships init wrappers as source
V5
DV500
Cortex-A55 (aarch64)
OSAL + MMZ split
Raw .o + vendor init wrappers
Hi3519DV500/Hi3516DV500, 64-bit ABI (-DUSER_BIT_64/-DKERNEL_BIT_64), 59 modules (42 blob + OSAL/MMZ/sys_config + peripherals + mipi_rx/tx + gfbg + crypto cipher/km/otp/hardware_cryptodev)
Dealing with vendor .ko blobs
A vendor .ko is an ELF relocatable object containing:
The module's compiled code (video pipeline logic, hardware register programming)
init_module / cleanup_module entry points
__ksymtab_* entries for exported symbols (like CMPI_MmzMalloc, VB_Init)
We use two strategies to build new .ko modules that incorporate this vendor code:
Strategy A: Raw .o blobs (CV300, CV500, CV6xx SDKs). The SDK provides separate .o object files without init_module/cleanup_module. We write a thin C wrapper (init/hi3516cv300/base_init.c) that calls the blob's init function and re-exports its symbols, then link them together via Kbuild into a new open_base.ko. Clean and simple. The CV6xx SDK is unusually generous: vendor ships the init wrappers as source (out/init/src/*_init.c), so we drop them in directly instead of hand-writing them.
Strategy B: objcopy on .ko (CV100, CV200, AV100, 3519V101). The SDK only provides complete .ko files. We use objcopy --redefine-sym init_module=_renamed_init to rename the embedded entry points, write a new wrapper that forwards to them, and link both into our open_*.ko. The blob's __ksymtab_* entries survive, so the wrapper must not re-export the same symbols.
Strategy C: Source compilation (all platforms). For modules where HiSilicon provides GPL source (MMZ, OSAL, sys_config, MIPI, watchdog, ISP firmware, cipher, etc.), we compile directly from source. These have no kernel version lock — they build against whatever kernel headers are available.
The kernel compatibility layer
The file kernel/compat/kernel_compat.h is included in every compilation unit via -include in the top-level Kbuild. It provides transparent API compatibility across Linux 3.0 through 7.0:
Timer API: init_timer (3.x) → timer_setup (4.15+) → timer_delete (7.0)
Memory mapping: ioremap_nocache removed in 5.6, set_fs/get_fs removed in 5.10
SPI/I2C: spi_busnum_to_master → spi_busnum_to_controller (5.0) → removed (6.4)
Proc filesystem: struct file_operations → struct proc_ops (5.6)
Sysctl: register_sysctl_table removed in 6.6
CMA: dma_alloc_from_contiguous gained no_warn parameter in 4.15
Platform driver: .remove return type changed from int to void in 6.11
No #ifdef soup in driver code — the compat header handles everything. This is how the hi3516ev300 builds cleanly on kernels 4.9, 6.6, 6.18, and 7.0 from identical source.
Supported kernels
Kernel
Status
Platforms
3.0.8 (vendor)
Production
hi3516cv100
3.18.20 (vendor)
Production
hi3516cv300, hi3519v101
4.9.37 (vendor)
Production
hi3516cv200, hi3516av100, hi3516cv500, hi3516ev300, gk7205v200, gk7205v500
5.10.221 (vendor)
Production
hi3516cv6xx
5.10.0 (vendor)
Production
hi3519dv500
5.10.130 (vendor, XMedia Lotus SDK)
Build-tested
gk7206v100
6.6 LTS
Production
hi3516ev300 (neo)
6.18 LTS
Tested
hi3516ev300 (CI-verified)
7.0-rc6 (mainline)
Production
hi3516ev300 (neo)
Repository structure
├── kernel/ Kernel modules (out-of-tree)
│ ├── hi3516cv100.kbuild V1 monolithic build config
│ ├── hi3516cv200.kbuild V2 monolithic build config
│ ├── hi3516cv300.kbuild V3 monolithic build config (OSAL)
│ ├── hi3516cv500.kbuild V3.5 monolithic build config (OSAL)
│ ├── hi3516av100.kbuild V2A monolithic build config
│ ├── hi3519v101.kbuild V3A monolithic build config (OSAL)
│ ├── hi3516cv6xx.kbuild V5 monolithic build config (OSAL + MMZ split)
│ ├── hi3519dv500.kbuild V5 aarch64 build config (64-bit, OSAL + MMZ split)
│ ├── gk7205v500.kbuild XMedia build config (V200/V500 blob sets, XM_SET)
│ ├── gk7206v100.kbuild GK7206V1 (XMedia Lotus) build config (vendor .ko relinked)
│ ├── hi3536dv100.kbuild NVR build config (OSAL + drivers from source, MPP .ko relinked)
│ ├── Kbuild Main entry — dispatches by CHIPARCH
│ ├── compat/ Kernel version compatibility (3.0 – 7.0)
│ ├── obj/<chiparch>/ Pre-built vendor .o blobs
│ ├── init/<chiparch>/ Module init/exit wrappers for blobs
│ ├── include/<chiparch>/ SDK headers per platform
│ ├── osal/<chiparch>/ OSAL source (V3, V3A, V3.5)
│ ├── mmz/<chiparch>/ MMZ source (V1, V2, V2A)
│ ├── himedia/<chiparch>/ himedia source (V2, V2A)
│ ├── isp/arch/<chiparch>/ ISP firmware source
│ ├── sys_config/<chiparch>/ Pin mux / clock config source
│ ├── mipi_rx/<chiparch>/ MIPI CSI-2 receiver source
│ ├── cipher/<chiparch>/ Cipher / crypto source
│ ├── wdt/, ir/, rtc/, pwm/ Peripheral driver sources
│ ├── adc/, piris/ Additional peripheral driver sources
│ ├── spi_dma_transfer/, user/ V5 peripheral driver sources
│ ├── sensor_i2c/, sensor_spi/ Sensor bus driver sources
│ ├── osal/linux/kernel/ V4 shared OSAL (hi3516ev200 path)
│ ├── base/, sys/, vi/, ... V4 per-module Kbuild dirs
│ ├── ive/ Vendor IVE blob (all platforms)
│ ├── ive_neo/ Clean-room IVE (EV200/EV300 only)
│ └── ext_inc/ Cross-module headers (V4)
│
├── libraries/ User-space libraries
│ ├── include/ Shared HI_* headers
│ ├── sensor/<chiparch>/ Image sensor drivers per platform
│ ├── isp/arch/<chiparch>/ ISP algorithm source per platform
│ ├── mpi_neo/ libmpi_neo.so (platform-agnostic)
│ ├── ive_neo/ libive_neo.so (platform-agnostic)
│ ├── ivp_neo/ libivp_neo.so (platform-agnostic)
│ ├── xmedia_npu/ libxmedia_npu.so (gk7205v500 NPU)
│ └── gk7206v100/ GK7206 SDK userspace rebuilt from source (msensor, svp, dump tools)
│
├── include/ Shared headers (kernel + userspace, V4)
└── scripts/ Build utilities
Each CHIPARCH has its own monolithic .kbuild file (except V4 which uses modular per-module Kbuild files). The main kernel/Kbuild dispatches to the right one based on the CHIPARCH variable.
Building
Via OpenIPC firmware (recommended)
git clone --depth 1 https://github.com/openipc/firmware
cd firmware
# Build for any supported platform:
make BOARD=hi3516cv100_lite br-hisilicon-opensdk # V1
make BOARD=hi3516cv200_lite br-hisilicon-opensdk # V2
make BOARD=hi3516av100_lite br-hisilicon-opensdk # V2A
make BOARD=hi3516cv300_lite br-hisilicon-opensdk # V3
make BOARD=hi3519v101_lite br-hisilicon-opensdk # V3A
make BOARD=hi3516cv500_lite br-hisilicon-opensdk # V3.5
make BOARD=hi3516ev300_lite br-hisilicon-opensdk # V4
make BOARD=gk7205v200_lite br-hisilicon-opensdk # V4/Goke
make BOARD=hi3516ev300_neo br-hisilicon-opensdk # V4 mainline kernel
make BOARD=hi3516cv6xx_lite br-hisilicon-opensdk # V5
Standalone (for development)
# Kernel modules — set CHIPARCH for your platform
make -C /path/to/firmware/output/build/linux-custom \
M=$(pwd)/kernel CHIPARCH=hi3516ev200 modules
# Sensor libraries
make CROSS_COMPILE=arm-openipc-linux-musleabi- \
CHIPARCH=hi3516ev200 -C libraries all
Supported sensors
Sensor drivers are per-platform — each generation's SDK provides drivers for the sensors available on boards of that era. Some sensors (like IMX307, OV2718) appear across multiple platforms.
For the API surface differences between platforms — what changes in the
sensor_register_callback signature across CV100 / CV200 / V101 / CV500 /
EV200, the side-by-side porting diffs, and how to identify which SDK a
sensor driver found online came from — see
docs/sensor-driver-api.md.
Manufacturer
Sensor
CV100
CV200
AV100
CV300
3519V101
CV500
EV200
CV6xx
Sony
IMX104
x
IMX117
x
IMX122
x
IMX123
x
IMX138
x
IMX178
x
IMX185
x
IMX222
x
IMX226
x
IMX236
x
IMX274
x
IMX290
x
x
x
IMX307
x
x
x
IMX323
x
IMX326
x
IMX327
x
x
x
IMX335
x
x
x
IMX385
x
x
IMX390
x
IMX415
x
IMX458
x
ICX692
x
Aptina
AR0130
x
x
AR0230
x
x
AR0237
x
x
x
AR0330
x
x
MT9P006
x
9M034
x
x
OmniVision
OV2718
x
x
x
OV4689
x
x
OV5658
x
OV9712
x
x
OV9732
x
OV9750
x
OV9752
x
OS04B10
x
OS04D10
x
OS05A
x
x
x
OS08A
x
x
SmartSens
SC1135
x
SC2035
x
SC2135
x
SC2235
x
x
x
SC4210
x
SC4236
x
x
SC431HAI
x
SC4336P
x
SC450AI
x
SC500AI
x
Panasonic
MN34031
x
MN34041
x
MN34220
x
x
MN34222
x
Silicon Optronics (JX)
JXH22
x
JXH42
x
x
JXH63
x
JXF22
x
x
JXF23
x
JXF37
x
GalaxyCore
GC2053
x
x
GC2083
x
GC4023
x
Each sensor has .so (shared) and .a (static) library builds. The goal is to eventually unify sensor drivers across platforms where the same sensor model is used.
Some sensors have modes faster than the vendor driver's (IMX335, IMX307,
MIS2009); docs/high-framerate-modes.md lists
them with measured frame rates.
Kernel modules
All modules are prefixed open_ to distinguish from vendor SDK modules. The set of modules varies by platform generation:
Module
Function
V1
V2
V2A
V3
V3A
V3.5
V4
V5
open_mmz
Media memory zone
x
x
x
x
open_himedia
Media device framework
x
x
open_osal
OS abstraction layer
x
x
x
x
x
open_sys_config
Pin/clock configuration
x
x
x
x
x
x
open_base
Module registry, IPC
x
x
x
x
x
x
x
x
open_sys
System control
x
x
x
x
x
x
x
x
open_isp
Image Signal Processor
x
x
x
x
x
x
x
x
open_vi
Video input
x
x
x
x
x
x
x
x
open_vb
Video buffer pool
x
open_vca
Video capture aggregator
x
open_vpp
Video pre-processor
x
open_vpss
Video processing
x
x
x
x
x
x
x
x
open_venc
Video encoder framework
x
x
x
x
x
x
x
x
open_h264e
H.264 codec engine
x
x
x
x
x
x
x
x
open_h265e
H.265 codec engine
x
x
x
x
x
x
open_svac3e
SVAC v3 codec engine
x
open_jpege
JPEG encoder
x
x
x
x
x
x
x
x
open_rc
Rate control
x
x
x
x
x
x
x
x
open_rgn
OSD / region overlay
x
x
x
x
x
x
x
x
open_vgs
Video graphics / DSU
x
x
x
x
x
x
x
x
open_chnl
MPP channel router
x
open_ive
Intelligent video engine
x
x
x
x
x
x
x
x
open_ive_neo
IVE clean-room (C source)
x
open_svp_npu
SVP NPU (V5 successor to NNIE)
x
open_npu
XMedia NPU, C source (gk7205v500 V500 set)
x
open_aiisp
AI-assisted ISP
x
open_tde
2D graphics engine
x
x
x
x
x
x
open_aio
Audio I/O
x
x
x
x
x
x
x
open_ai / open_ao
Audio input/output
x
x
x
x
x
x
x
x
open_aenc / open_adec
Audio encode/decode
x
x
x
x
x
x
x
x
open_acodec
On-chip audio codec
x
x
x
x
x
x
x
x
open_mipi_rx
MIPI CSI-2 receiver
x
x
x
x
x
x
x
open_sensor_i2c
I2C sensor bus
x
x
x
x
x
x
x
x
open_sensor_spi
SPI sensor bus
x
x
x
x
x
x
open_pwm
PWM controller
x
x
x
x
x
x
x
x
open_piris
Programmable IRIS
x
open_wdt
Watchdog timer
x
x
x
x
x
x
x
x
open_adc
ADC controller
x
x
open_spi_dma_transfer
SPI DMA transfer
x
open_user
User chrdev
x
open_user_proc
User /proc interface
x
open_uvc
USB Video Class device
x
open_devstat
Device statistics
x
open_vo
Video output
x
x
x
x
x
x
open_cipher
Crypto engine
x
x
open_vedu
Video encoder device
x
x
x
x
open_hidmac
DMA controller
x
open_vda
Video detection analysis
x
x
open_ir
Infrared receiver
x
x
x
x
x
open_rtc
Real-time clock
x
x
x
x
x
open_pm
Power management
x
x
open_fisheye
Fisheye correction
x
open_nnie
Neural network engine
x
open_gdc
Geometric distortion
x
open_dis
Digital stabilization
x
gk7206v100 (GK7206V1, XMedia Lotus SDK) has its own module set and is not in the table. Its SDK ships only
finished xm_*.ko files, which scripts/ko2obj.sh turns into relinkable objects; base
and sys are folded into open_common, MIPI RX into open_vi, pin muxing into the device tree, and the ISP
kernel half is closed. From source: open_osal, open_adc, open_misc, open_msensor_{spi,mng,chip}.
Relinked: open_common, open_pm, open_vgs, open_tde, open_region, open_isp, open_vpss,
open_npu, open_vi, open_chnl, open_vedu, open_rc, open_jpege, open_h265e, open_h264e,
open_venc, open_vo, open_fb, open_cipher_drv, open_ive, and audio open_acomm/aio/ao/ai/
aenc/adec. The blobs import symbols only the SDK's 5.10.130 kernel exports (its lotus/ tree), so
that kernel is the only target. All SDK userspace with source is built here too: the 52 sensor drivers in
libraries/sensor/gk7206v100, and libxmedia_msensor, libxmedia_svp and the VI/VPSS/VO dump tools in
libraries/gk7206v100 (SVP links the SDK's sourceless libwarp_affine.a). The vendor libraries are
hard-float, so this family's firmware uses a musleabihf toolchain.
Module load order
Load order matters — see /usr/bin/load_hisilicon on the camera:
V1: mmz → base → sys → everything else
V2/V2A: mmz → himedia → (sys_config) → base → sys → everything else
V3/V3A/V3.5/V4: osal → sys_config → base → sys → everything else
V5: sys_config → osal → mmz (separate) → base → vb → vca → sys → everything else
User-space libraries (neo)
Three clean-room libraries replace vendor binaries for IVE motion detection, MMZ memory allocation, and object detection:
Library
Replaces
API
libmpi_neo.so
libmpi.so
HI_MPI_SYS_Init/Exit/MmzAlloc/MmzFree/MmzFlushCache
libive_neo.so
libive.so
HI_MPI_IVE_* (19 IVE ops) + SVP/XNN helpers
libivp_neo.so
libivp.so
hi_ivp_* object-detection API
libxmedia_npu.so
libxmedia_npu.so (XMedia SPC020)
xmedia_npu_*, gh_npu_*, NPU memory and model-file helpers
These are platform-agnostic — the same binaries work across all CHIPARCH targets. The public headers match the vendor ABI byte-for-byte (struct sizes locked via _Static_assert in CI).
libxmedia_npu.so keeps the vendor's name because the vendor's graph runtime, libxmedia_cl.so, links against it by that name; it is gk7205v500-only and talks to open_npu.ko. libraries/xmedia_npu/BENCHMARKS.md has its cross-check against the vendor library.
The open_ive_neo.ko kernel module (the driver that libive_neo.so talks to) is currently hi3516ev200/ev300 only. On other platforms, use the vendor open_ive.ko blob with libive_neo.so in userspace.
Build:
make -C libraries/mpi_neo CC=arm-openipc-linux-musleabi-gcc
make -C libraries/ive_neo CC=arm-openipc-linux-musleabi-gcc
make -C libraries/ivp_neo CC=arm-openipc-linux-musleabi-gcc
CI
Every push and PR runs 22 jobs:
Build SDK (8 platforms):
Platform
Kernel
Generation
hi3516cv100_lite
3.0.8
V1
hi3516cv200_lite
4.9.37
V2
hi3516av100_lite
4.9.37
V2A
hi3516cv300_lite
3.18.20
V3
hi3519v101_lite
3.18.20
V3A
hi3516cv500_lite
4.9.37
V3.5
hi3516ev200_lite
4.9.37
V4
gk7205v200_lite
4.9.37
V4/Goke
Plus 3 mainline kernel builds for hi3516ev300_neo (6.6, 6.18, 7.0).
QEMU boot smoke-tests (8 platforms): CV100, CV200, AV100, CV300, 3519V101, CV500, EV200, GK7205V200 — boots OpenIPC firmware under qemu-hisilicon and verifies the kernel reaches userspace.
Library checks (3 jobs): header syntax + ABI struct sizes, ARM cross-compile + symbol verification, QEMU IVE register regression.
License
Kernel modules: GPL v3
Sensor libraries: MIT (for use with OpenIPC and third-party software)
AboutOpensource Hisilicon SoCs SDKopenipc.orgTopicsgokehisiliconopenipcResourcesReadmeGPL-3.0 licenseCode of conductCode of conductActivityCustom propertiesStars57 starsWatchers3 watchingForks26 forksReport repositorySponsor this projectUsed byContributorsLanguages
Footer
© 2026 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Community
Docs
Contact
Manage cookies
Do not share my personal information
You can’t perform that action at this time.GitHub CopilotWrite better code with AI
GitHub Copilot appDirect agents from issue to merge
MCP RegistryIntegrate external tools
CodespacesInstant dev environments
Code ReviewManage code changes
Code QualityEnforce quality at merge
GitHub Advanced SecurityFind and fix vulnerabilities
Code securitySecure your code as you build
Secret protectionStop leaks before they start
GitHub SponsorsFund open source developers
Enterprise platformAI-powered developer platform
GitHub Advanced SecurityEnterprise-grade security features
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
https://github.com/OpenIPC/openhisilicon
https://github.com/OpenIPC/openhisilicon/branches
https://github.com/OpenIPC/openhisilicon/tags
https://github.com/OpenIPC/openhisilicon/commits/main/
https://github.com/OpenIPC/openhisilicon/actions/workflows/build.yml