Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion pkgbuilds/intel-ipu7-camera/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=intel-ipu7-camera
pkgver=1.0.6
pkgrel=3
pkgrel=4
pkgdesc="Intel IPU7 MIPI camera stack for Hurrican/Performance (OV08X40 + hardware ISP)"
arch=('x86_64')
url="https://github.com/TsaiGaggery/hurrican_omarchy_enabling"
Expand All @@ -26,6 +26,7 @@ makedepends=(
'automake'
'libtool'
'pkgconf'
'7zip'
)
checkdepends=('linux-omarchy-headers')
install=intel-ipu7-camera.install
Expand Down Expand Up @@ -55,6 +56,19 @@ _icamerasrc_commit="4fb31db76b618aae72184c59314b839dedb42689"
# - 0009: icamerasrc pinned auto exposure to exactly 1/30 s; its new
# fps-range property lets AE lengthen frames in dim light instead of
# adding gain (see v4l2-relayd-ipu7.conf).
#
# The OV08X40 tuning (OV08X40_KAFE799_PTL.aiqb) in ipu7-camera-hal is an
# early bring-up build (IQStudio 24.15, 2024-04-17, "Default comment"), and
# Intel has not published a newer one. Dell's Windows camera driver for the
# XPS 14 / 16 (DA14260 / DA16260, ACPI SUBSYS 0DB9/0DBA) ships the production
# tuning of the same module (IQStudio 25.35, 2025-11-04, "[PTL][POR][OV08x40]
# 25ww45_3"), with a year of lens shading, TNR, noise, CMC and AWB work. Both
# are LibIQ 2.0.359.0, so it replaces the bring-up file as is. The installer is
# unpacked without running it, and the one file taken from it is checked
# against the SHA-256 it was matched to.
_dell_camera_driver="Intel-2D-Imaging-USB-IO-Vision-Driver-for-Camera_YMY0G_WIN64_81.26100.0.13_A01_01.EXE"
_dell_tuning_dir="16299/Drivers/MIPI_Camera_81.26100.0.13/MIPI_Camera_81.26100.0.13/3.IPU"
_dell_tuning_sha256="228db510688be547c2a1f7e7c36f239f65efbba6f38ca3aedefc686974476e38"

source=(
"ipu7-drivers::git+https://github.com/intel/ipu7-drivers.git#commit=${_ipu7_drivers_commit}"
Expand Down Expand Up @@ -89,13 +103,16 @@ source=(
"v4l2-relayd-ipu7.conf"
"v4l2-relayd-ipu7-override.conf"
"camera-videosrc-init"
"${_dell_camera_driver}::https://dl.dell.com/FOLDER13986670M/2/${_dell_camera_driver}"
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
)
noextract=("${_dell_camera_driver}")
sha256sums=(
'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP'
'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP'
'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP'
'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP'
'SKIP' 'SKIP' 'SKIP' 'SKIP'
'510eb985ad01e22e866560fcba1944633174d70bea790a70157574ddce1b99d8'
)

prepare() {
Expand Down Expand Up @@ -124,6 +141,13 @@ prepare() {
cd "${srcdir}/icamerasrc"
patch -Np1 -i "${srcdir}/0009-icamerasrc-add-an-fps-range-property-for-auto-exposure.patch"

# Dell's production OV08X40 tuning, from its Windows driver (see above)
rm -rf "${srcdir}/dell-camera-driver"
7z x -y -o"${srcdir}/dell-camera-driver" "${srcdir}/${_dell_camera_driver}" \
"${_dell_tuning_dir}/OV08X40_KAFE799_PTL.aiqb" >/dev/null
echo "${_dell_tuning_sha256} ${srcdir}/dell-camera-driver/${_dell_tuning_dir}/OV08X40_KAFE799_PTL.aiqb" |
sha256sum -c --quiet

# Stage proprietary libs/headers for build-time use
local staging="${srcdir}/staging"
rm -rf "${staging}"
Expand Down Expand Up @@ -270,6 +294,12 @@ package() {
install -Dm644 config/linux/ipu75xa/*.aiqb \
-t "${pkgdir}/usr/share/defaults/etc/camera/"

# Replace the bring-up OV08X40 tuning with Dell's production one, in both
# places the HAL's install and the defaults copy put it.
local _dell_aiqb="${srcdir}/dell-camera-driver/${_dell_tuning_dir}/OV08X40_KAFE799_PTL.aiqb"
install -Dm644 "${_dell_aiqb}" "${pkgdir}/etc/camera/ipu75xa/OV08X40_KAFE799_PTL.aiqb"
install -Dm644 "${_dell_aiqb}" "${pkgdir}/usr/share/defaults/etc/camera/OV08X40_KAFE799_PTL.aiqb"

install -dm755 "${pkgdir}/etc/camera/ipu75xa/gcss"
install -Dm644 config/linux/ipu75xa/gcss/*.bin \
-t "${pkgdir}/etc/camera/ipu75xa/gcss/"
Expand Down
Loading