Closed alvinpeters closed 10 months ago
I tried to run this PR, but an error occurred:
~/Linux/strickzkof-fork/intel-ipu6ep-camera-bin ~/Linux/strickzkof-fork
/home/mrtrukiny/Linux/strickzkof-fork/intel-ipu6ep-camera-bin/PKGBUILD: line 20: syntax error near unexpected token {a' /home/mrtrukiny/Linux/strickzkof-fork/intel-ipu6ep-camera-bin/PKGBUILD: line 20:
pkgver() {a'
==> ERROR: Failed to source /home/mrtrukiny/Linux/strickzkof-fork/intel-ipu6ep-camera-bin/PKGBUILD
@MrTrukiny whoops sorry, try again
lesson learned: don't submit a PR whilst sleepy
@striczkof hmm, the intel-ipu6ep-camera-hal-git
build fails for me with this:
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:17 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- install prefix: /usr
INFOadd definition -DIPU_SYSVER_ipu6v5 for ipu6ep
Install camera configure files foripu6ep
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/awly/src/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/src/build
[ 1%] Building CXX object CMakeFiles/camhal_static.dir/src/3a/I3AControlFactory.cpp.o
In file included from /home/awly/src/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/src/ipu6-camera-hal/src/3a/MakerNote.h:26,
from /home/awly/src/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/src/ipu6-camera-hal/src/platformdata/AiqInitData.h:28,
from /home/awly/src/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/src/ipu6-camera-hal/src/platformdata/PlatformData.h:32,
from /home/awly/src/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/src/ipu6-camera-hal/src/3a/I3AControlFactory.cpp:20:
/home/awly/src/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/src/ipu6-camera-hal/modules/algowrapper/IntelCca.h:19:10: fatal error: IntelCCA.h: No such file or directory
19 | #include <IntelCCA.h>
| ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/camhal_static.dir/build.make:272: CMakeFiles/camhal_static.dir/src/3a/I3AControlFactory.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:356: CMakeFiles/camhal_static.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
where /home/awly/src/archlinux-ipu6-webcam/
is where this repo is checked out on your branch.
Weird, it works for an EndeavourOS fresh install just now.
Can you rerun the install script again and save the logs to a file? ./install.sh 2>&1 | tee -a install.log
Also would it be possible to describe your environment? Laptop, OS, whether it is a fresh install, etc.
Here's the install.log
This is running on Dell XPS 13 Plus (9320), EndeavourOS (sway edition). The system is a little over 1 month old, all packages up to date.
I did install the AUR versions of these packages in the past in attempts to make the camera work. It did work for a happy period of a few days on the LTS kernel before the kernel got updated :cry:
Kinda close to pinpointing the cause. reinstalling/updating linux and linux-headers is enough to break it on EndeavourOS. My hypothesis is it might be related to dracut.
I don't get why your HAL build is failing. Here is my successful HAL build
```
==> Making package: intel-ipu6ep-camera-hal-git-fix r85.a1fd78c-1 (Fri 18 Aug 2023 21:59:09)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning ipu6-camera-hal git repo...
Cloning into bare repository '/home/striczkof/Development/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/ipu6-camera-hal'...
==> Validating source files with sha256sums...
ipu6-camera-hal ... Skipped
==> Extracting sources...
-> Creating working copy of ipu6-camera-hal git repo...
Cloning into 'ipu6-camera-hal'...
done.
==> Starting pkgver()...
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:17 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument
Weird, after wiping and re-cloning the repo, build succeeds. Maybe there was some cached bad build state :shrug: Thanks for your help!
The webcam still doesn't work, as before, with:
$ sudo dmesg | ag ipu6
[ 1.372640] intel-ipu6 0000:00:05.0: enabling device (0000 -> 0002)
[ 1.372802] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2)
[ 1.373263] intel-ipu6 0000:00:05.0: physical base address 0x603e000000
[ 1.373265] intel-ipu6 0000:00:05.0: mapped as: 0x000000003d54052c
[ 1.373415] intel-ipu6 0000:00:05.0: Unable to set secure mode
[ 1.373417] intel-ipu6 0000:00:05.0: IPU in non-secure mode
[ 1.373418] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0
[ 1.373420] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff
[ 1.373426] intel-ipu6 0000:00:05.0: Skip ipc reset for non-secure mode
[ 1.373427] intel-ipu6 0000:00:05.0: IPC reset done
[ 1.373428] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin
[ 1.373453] intel-ipu6 0000:00:05.0: Direct firmware load for intel/ipu6ep_fw.bin failed with error -2
[ 1.373455] intel-ipu6 0000:00:05.0: Requesting signed firmware failed
[ 1.373487] intel-ipu6: probe of 0000:00:05.0 failed with error -2
But that's not caused by this PR, feel free to proceed :+1:
Weird, after wiping and re-cloning the repo, build succeeds. Maybe there was some cached bad build state :shrug: Thanks for your help!
The webcam still doesn't work, as before, with:
$ sudo dmesg | ag ipu6 [ 1.372640] intel-ipu6 0000:00:05.0: enabling device (0000 -> 0002) [ 1.372802] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 1.373263] intel-ipu6 0000:00:05.0: physical base address 0x603e000000 [ 1.373265] intel-ipu6 0000:00:05.0: mapped as: 0x000000003d54052c [ 1.373415] intel-ipu6 0000:00:05.0: Unable to set secure mode [ 1.373417] intel-ipu6 0000:00:05.0: IPU in non-secure mode [ 1.373418] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 1.373420] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 1.373426] intel-ipu6 0000:00:05.0: Skip ipc reset for non-secure mode [ 1.373427] intel-ipu6 0000:00:05.0: IPC reset done [ 1.373428] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 1.373453] intel-ipu6 0000:00:05.0: Direct firmware load for intel/ipu6ep_fw.bin failed with error -2 [ 1.373455] intel-ipu6 0000:00:05.0: Requesting signed firmware failed [ 1.373487] intel-ipu6: probe of 0000:00:05.0 failed with error -2
But that's not caused by this PR, feel free to proceed :+1:
Welcome to the club! check out #21 and see how we are going so far and how you can help
Just wanted to mention that I got the camera working using this branch on 6.4.10-zen2-1-zen.
Lenovo X1 Gen 10
Thinkpad X1 Gen 11 here, v4l2-relayd is segfaulting even with this fix :(
Aug 21 15:19:55 rocket systemd[1]: Starting v4l2-relay daemon service...
Aug 21 15:19:55 rocket systemd[1]: Started v4l2-relay daemon service.
Aug 21 15:19:56 rocket systemd[1]: v4l2-relayd.service: Main process exited, code=dumped, status=11/SEGV
Aug 21 15:19:56 rocket systemd[1]: v4l2-relayd.service: Failed with result 'core-dump'.
Aug 21 15:19:56 rocket systemd[1]: v4l2-relayd.service: Scheduled restart job, restart counter is at 2.
Aug 21 15:19:56 rocket systemd[1]: Stopped v4l2-relay daemon service.
Any suggestion for how to debug? Thanks for working on this!
Just tested this PR – works for, so I merged it.
However, I initially had an issue causing the test.sh
script to output an error related to icamerasrc
. Unfortunately, I don't remember the exact error message. Also, I can't reproduce it. It was something along those lines: "Broken pipeline ... icamerasrc ...".
Can't say for sure, what exactly fixed it. But I ended up reinstalling icamerasrc-git
from AUR and rebooted, reinstalled from a freshly cloned repository, rebooted again and it worked.
Thanks for the effort! :heart:
No worries!
so literally the same thing is happening to me in my fresh arch linux install. icamerasrc somehow 'disappears' on next reboot and shows the same error as yours, I then reinstall the AUR icamerasrc. Same thing happens on next reboot.
Currently investigating it.
I followed the steps mentioned by @stefanpartheym, and it's working smoothly (the ./test.sh and Firefox). I really hope a system update won't break it.
Added IPU6 camera binary fix PKGBUILD, also did some cleanup on the install script. Fixes #34
Adding in more clean up in a bit