Skip to content
forked from torvalds/linux

About

Backports to get the Dell Pro 14 Plus' webcam to work on Linux

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1,485,429 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small patches to support my Dell Pro 14 Plus (PB14250)'s webcam.

This repo takes the form of a fork of the Linux kernel to maintain authorship information, make rebasing easy, and faciliate a user like you auditing the code. Only a small handful of files are actually used.

The target is Fedora's stock 7.3.x kernel. The linux-cachyos kernel will not work because it disables certain modules. These patches come from linux 7.4 mainline, so 7.4+ will not need this.

Disclaimers

Following these instructions will modify your system files. Never blindly run random scripts you find on the internet without knowing what you're doing or having a recovery plan.

This project is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Install

Step 1: Remove conflicting packages.

This is a non-exhuastive list:

sudo dnf remove intel-vision

Step 2: Install the intel drivers.

This is the longest step and doesn't involve my repo. You may also be able to install prebuilt versions from third-party repos. For more detailed instructions, see the various intel repos: ipu7-drivers ipu7-camera-bins ipu7-camera-hal icamerasrc.

Abridged install of intel drivers
mkdir ~/Documents/Sources/ipu7
cd ~/Documents/Sources/ipu7

git clone https://github.com/intel/ipu7-drivers
git clone https://github.com/intel/ipu7-camera-bins
git clone https://github.com/intel/ipu7-camera-hal
git clone https://github.com/intel/icamerasrc -b icamerasrc_slim_api

sudo dkms add ipu7-drivers
sudo dkms autoinstall ipu7-drivers/0.0.0

mkdir -p /lib/firmware/intel/ipu
cp -r ipu7-camera-bins/lib/firmware/intel/ipu/*.bin /lib/firmware/intel/ipu
cp -P ipu7-camera-bins/lib/lib* /usr/lib/
mkdir -p /usr/include/ipu7 /usr/lib/pkgconfig
cp -r ipu7-camera-bins/include/* /usr/include/
cp -r ipu7-camera-bins/lib/pkgconfig/* /usr/lib/pkgconfig/

sudo dnf install expat-devel jsoncpp-devel automake libtool gstreamer1-devel gstreamer1-plugins-base-devel
cd ipu7-camera-hal && mkdir build && cd build
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
# If this step fails due to a jsoncpp import, change it from <jsoncpp/json/json.h> to <json/json.h>.
cmake -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DBUILD_CAMHAL_ADAPTOR=ON \
    -DBUILD_CAMHAL_PLUGIN=ON \
    -DIPU_VERSIONS="ipu7x;ipu75xa;ipu8" \
    -DUSE_STATIC_GRAPH=ON \
    -DUSE_STATIC_GRAPH_AUTOGEN=ON \
    ..
make && sudo make install
cd ../../

sudo dnf install libdrm-devel libva-devel gstreamer1-plugins-bad-free-devel
cd icamerasrc
export CHROME_SLIM_CAMHAL=ON
./autogen.sh
./configure --prefix=/usr
make
sudo make install
cd ../

Step 3: Install this repo

ln -f drivers/media/i2c/cvs/{core.c,icvs.h,v4l2.c} dellpro/dkms/intel_cvs-1.0/
sudo dkms add dellpro/dkms/intel_cvs-1.0
sudo dkms autoinstall intel_cvs/1.0

ln -f drivers/media/pci/intel/ipu-bridge.c dellpro/dkms/ipu-bridge-patched-1.0/
sudo dkms add dellpro/dkms/ipu-bridge-patched-1.0
sudo dkms autoinstall ipu-bridge-patched/1.0

ln -f drivers/media/i2c/ov05c10.c dellpro/dkms/ov05c10-1.0/
sudo dkms add dellpro/dkms/ov05c10-1.0
sudo dkms autoinstall ov05c10/1.0

Step 4: Reboot and pray

Hopefully your webcam works now. I unfortunately cannot help you further. You may find extra information with these commands, among others:

  • sudo dmesg | grep -i -E '05c1|00:05|ipu|cam|gpio'
  • cam -l
  • qcam
  • sudo -E gst-launch-1.0 icamerasrc device-name=ov05c10-uf af-mode=2 ! video/x-raw,format=NV12,width=1280,height=720 ! videoconvert ! ximagesink

Uninstall

sudo dkms remove --all intel_cvs/1.0
sudo dkms remove --all ipu-bridge-patched/1.0
sudo dkms remove --all ov05c10/1.0

AI disclaimer

I used AI for debugging and reading logs, but the actual kernel patches are taken from upstream Linux and were reviewed by the Linux maintainers.

About

Backports to get the Dell Pro 14 Plus' webcam to work on Linux

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages