UVC Quanta 0408:4035 camera PROBLEM

Bug #2000947 reported by Giuliano Lotta
70
This bug affects 13 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I bought a Acer Nitro 5 AN517-55 with Quanta ACER HD User Facing', USB 0408:4035.

The camera is reported to have problems by many users:
https://linux-hardware.org/?id=usb:0408-4035
The uvc camera Quanta 0408:4035 does not work with ubuntu 22,04. the camera is “recongized” but fails installation.

My console commands report similar info to other users:
https://unix.stackexchange.com/questions/723504/integrated-camera-not-detected-working-on-acer-nitro-5-an515-58

PROPOSED SOLUTION
I got in contact with <email address hidden> and with <email address hidden> , and subscribed to https://www.linuxtv.org/lists. And <email address hidden> mailinglist.

Laurent proposed me a fix and I modified the 5,15 uvc_driver.c version, and loaded it on github

https://github.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-/blob/main/uvc_driver.c

I offered to test the fix, so I tried to compile the module with the new source.

COMPILING PROBLEMS
I’m running **Ubuntu 22.04.1 LTS, with kernel
giuliano@Astra2A:/usr/src$ cat /proc/version_signature
Ubuntu 5.15.0-56.62-generic 5.15.64

BUT the linux-source that I found installed seems to be different
tgiuliano@Astra2A:/usr/src$ ls -al linux-so*
lrwxrwxrwx 1 root root 47 nov 22 16:08 linux-source-5.15.0.tar.bz2 -> linux-source-5.15.0/linux-source-5.15.0.tar.bz2

I expanded the tar file, configured the IDE and compiled without error any errors…
I manually copied the uvcvideo.ko in
/lib/modules/5.15.0-56-
sudo cp…...

then tryed to intall the new uvcvideo.ko module
sudo rmmod uvcvideo && sudo modprobe uvcvideo

BUT… IT FAILS
giuliano@Astra2A:~$ sudo rmmod uvcvideo && sudo modprobe uvcvideo
modprobe: ERROR: could not insert 'uvcvideo': Exec format error

and dmesg shows
[25961.151982] usbcore: registered new interface driver uvcvideo
[26323.125534] usbcore: deregistering interface driver uvcvideo
[26323.189294] uvcvideo: disagrees about version of symbol module_layout

These are the TWO modinfo from the old and new uvcvideo modules
https://pastebin.com/tSj8Exm6
Basically
OLD module: vermagic: 5.15.0-56-generic SMP mod_unload modversions
NEW module: vermagic: 5.15.64 SMP mod_unload modversions

-kindly ASK

HOW can FORCE the uvcdriver.c to match mi kernel version ?
Have I got OTHER ways to make the kernel module I’m compiling, match my running system ?

I would like to test the module so to confirm the patch and let it enter the kernel main stream...

BR
Giuliano

PS
btw…. to allow Eclipse to compile the kernel, I had to pass this commands
scripts/config --disable CONFIG_SYSTEM_REVOCATION_KEYS
scripts/config --disable SYSTEM_REVOCATION_KEYS
scripts/config --disable SYSTEM_TRUSTED_KEYS

hope that this does not affect the module layout & checking
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: giuliano 2142 F.... pulseaudio
 /dev/snd/pcmC1D0p: giuliano 2142 F...m pulseaudio
 /dev/snd/controlC0: giuliano 2142 F.... pulseaudio
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-11-03 (66 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
MachineType: Acer Nitro AN517-55
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-57-generic root=UUID=f07e25f9-07e7-4a29-a15e-f481aa0ee0f2 ro rootflags=subvol=@ quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.15.0-57.63-generic 5.15.74
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-57-generic N/A
 linux-backports-modules-5.15.0-57-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.9
Tags: jammy
Uname: Linux 5.15.0-57-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo wireshark
_MarkForUpload: True
dmi.bios.date: 04/20/2022
dmi.bios.release: 1.6
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: V1.06
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: Ignis_ADH
dmi.board.vendor: ADL
dmi.board.version: V1.06
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.version: V1.06
dmi.ec.firmware.release: 1.6
dmi.modalias: dmi:bvnInsydeCorp.:bvrV1.06:bd04/20/2022:br1.6:efr1.6:svnAcer:pnNitroAN517-55:pvrV1.06:rvnADL:rnIgnis_ADH:rvrV1.06:cvnAcer:ct10:cvrV1.06:sku0000000000000000:
dmi.product.family: Nitro 5
dmi.product.name: Nitro AN517-55
dmi.product.sku: 0000000000000000
dmi.product.version: V1.06
dmi.sys.vendor: Acer
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: giuliano 2142 F.... pulseaudio
 /dev/snd/pcmC1D0p: giuliano 2142 F...m pulseaudio
 /dev/snd/controlC0: giuliano 2142 F.... pulseaudio
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-11-03 (66 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
MachineType: Acer Nitro AN517-55
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-57-generic root=UUID=f07e25f9-07e7-4a29-a15e-f481aa0ee0f2 ro rootflags=subvol=@ quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.15.0-57.63-generic 5.15.74
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-57-generic N/A
 linux-backports-modules-5.15.0-57-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.9
Tags: jammy
Uname: Linux 5.15.0-57-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo wireshark
_MarkForUpload: True
dmi.bios.date: 04/20/2022
dmi.bios.release: 1.6
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: V1.06
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: Ignis_ADH
dmi.board.vendor: ADL
dmi.board.version: V1.06
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.version: V1.06
dmi.ec.firmware.release: 1.6
dmi.modalias: dmi:bvnInsydeCorp.:bvrV1.06:bd04/20/2022:br1.6:efr1.6:svnAcer:pnNitroAN517-55:pvrV1.06:rvnADL:rnIgnis_ADH:rvrV1.06:cvnAcer:ct10:cvrV1.06:sku0000000000000000:
dmi.product.family: Nitro 5
dmi.product.name: Nitro AN517-55
dmi.product.sku: 0000000000000000
dmi.product.version: V1.06
dmi.sys.vendor: Acer

Revision history for this message
Giuliano Lotta (giuliano69) wrote :
tags: added: patch
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2000947

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: apport-collected jammy
description: updated
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Giuliano Lotta (giuliano69) wrote : AlsaInfo.txt

apport information

description: updated
Revision history for this message
Giuliano Lotta (giuliano69) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : IwConfig.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : Lspci.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : Lspci-vt.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : Lsusb.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : Lsusb-t.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : Lsusb-v.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : PaInfo.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : ProcModules.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : PulseList.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote : RfKill.txt

apport information

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

I made a bash script to show the exact way I proceed in the compiling the module with the Pinchard code.
https://github.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-

BUT I'm facing problem loading the module in the kernel.
with the said bash script, the dmesg after modproble failure shows "failed to validate module [uvcvideo] BTF: -22"

I would gladly test the patched module, but I'm facing difficulties in compiling it.

Does the bash script shows what am I missing ?

I see also that modinfo and cat /proc/version_signature shows different values... (Ubuntu 5.15.0-57.63-generic 5.15.74. vs vermagic: 5.15.0-57-generic SMP mod_unload modversions)

I you could help me in compiling the module, I would be quick in testing it .-))

Revision history for this message
Jeremy (wa113y3s) wrote :

First, enable source code repositories, then fetch the source code with the following in terminal

apt-get source linux-modules-extra-$(uname -r)

Then navigate to the /drivers/media/usb/uvc directory and rename the uvcdriver.c to uvcdriver.old, choose open directory in terminal then

wget https://raw.githubusercontent.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-/main/uvc_driver.c

make -j4 -C /lib/modules/$(uname -r)/build M=$(pwd) modules
sudo cp uvcvideo.ko /lib/modules/$(uname -r)/kernel/drivers/media/usb/uvc/

Then see if it works

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

Thanks Jeremy, you help solved my issues with compiling the module with Laurent Pinchart modification.
installing with modprobe, the dmesg shows:
[103970.912878] usb 3-6: Found UVC 1.50 device ACER HD User Facing (0408:4035)
[103970.912882] usb 3-6: Forcing UVC version to 1.0a
[103970.949432] input: ACER HD User Facing: ACER HD Us as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/input/input38
[103970.949630] usbcore: registered new interface driver uvcvideo

Cheese video is working.

BUT audio is NOT working..... any idea ?

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

UPDATE:
after resuming the nobebook, the system crashed with the following message:

usb 3-6: Failed to query (SET_CUR) UVC control 4 on unit 1: -32 (exp. 4)
uvcvideo 3-6:1.0: reset_resume error -5

WHERE / HOW may I find other useful information to debug the problem ?

Giuliano

Revision history for this message
Kolbjorn Blix Dahle (kolbjorn) wrote : [Kernel-packages] [Bug 2000947] Re: UVC Quanta 0408:4035 camera PROBLEM

Just to inform you that the patched also works with ID 0408:4033 Quanta
Computer, Inc. ACER HD User Facing after changing 4035 to 4033.

Revision history for this message
Sandrino Patrulescu (sandrinopatrulescu) wrote :

#19 fixed the problem for me.
I wasn't sure where should I run the make command, so I ran it inside the uvc directory.

I also get the following messages in dmesg when resuming from sleep, but it did not crash or anything:
usb 3-6: Failed to query (SET_CUR) UVC control 4 on unit 1: -32 (exp. 4)
uvcvideo 3-6:1.0: reset_resume error -5

Not sure it is related to this, but my webcam still not working. Here's some info from dmesg and guvcview: https://pastebin.com/SQn7cVnq.

Nonetheless, thank you very much!

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@Sandrino
Thanks for your reply
-From your pastebin I can NOT understand if your Quanta camera is 0408:4035. Could you check the ID
?

-After copying the module file in the appropriate directory AND giving the command
sudo rmmod uvcvideo && sudo modprobe uvcvideo
the camera worked untill first suspend &resume. I
 had the said error message and the system halted. The halt problem could anyway been generated from the nvidia RTX driver that are also showing some incompatibilities wit wayland....

- At next reboot the new module did NOT worked. Trying with modprobe it didn t load, and dmesg was not giving info.
Very strangely, I resolved using the command
sudo insmod uvcvideo.ko
straight from the directory where the module has been copied.

AFAIK , the modprobe command should use "internally" the insmod command, but clearly something is different.
I'm currently using the camera with zoom and Google Meet

BR
Giuliano

Revision history for this message
Sandrino Patrulescu (sandrinopatrulescu) wrote :

@giuliano69

My builtin camera is indeed 0408:4035 Quanta Computer, Inc. ACER HD User Facing and now it's working.

I was talking about an external (I should have specified that) webcam in the paste.

Revision history for this message
Laurent Pinchart (laurent-pinchart-ideasonboard) wrote :

@kolbjorn could you please provide the output of `lsusb -v -d 0408:4033` (running as root, for instance with sudo, if possible) ? Attaching a file would be preferred to avoid messing up formatting.

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@jeremy
Hi Jeremy.
with new kernel 5.15.0-58-generic, I removed the linux5.15.0 dir, got the apt-get source linux-modules-extra-$(uname -r), recompiled the module and copied it

Everything is working fine BUT the dmesg claims about not signed module/tainted
[ 3.560011] uvcvideo: loading out-of-tree module taints kernel.
[ 3.560159] uvcvideo: module verification failed: signature and/or required key missing - tainting kernel

Have you any advice on how to sign the module, so to prevent the tainted kernel ?
May the /usr/src/linux-source-5.15.0/debian/*.pem help in the matter ?

BR
Giuliano

Revision history for this message
io (no-such-user) wrote :

@Laurent
I can provide the output of `lsusb -v -d 0408:4033` running as root. It's attached.

Revision history for this message
Douglas (douglas-rauber) wrote :

Same problema here!

I bougth a new Acer Nitro 5, and this problem is very boring.

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@Douglas
Please follow message #19, download, compile and install the patched usbvideo driver.
The patch is working perfectly (with zoom, chees, skyupe, goggle meet,...)

Don't know when it will be included in the official kernel...

BR
Giuliano

Revision history for this message
Douglas (douglas-rauber) wrote :

Thanks for your support @giuliano69

With a broken heart, I ended up deciding to kiss Linux goodbye. At least for a while.
This process of compiling and searching for solutions does not fit into my day-to-day life.
In addition to the webcam problem, the headset microphone does not work, the video card depends on complex configuration to run on the notebook monitor and on the secondary monitor, the boot had to be corrected in txts, and even so it kept showing the annoying message " not enougth memory".
I need to use MS Teams for my work, and it works with limitations on Linux. So, bye linux, at least for now.

Today linux has -1

:(

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@Laurent
so far, uvcvideo patch seems fine & working.

which kernel version will "officially" include UVC Quanta 0408:4035 ?

BR
Giuliano

Revision history for this message
Marcos Bernardo Jr (mxreloaded) wrote :

Same problem...
I have an Aspire A515-57 and i am running into the same issue :/
I have tried replicating the steps from #19, but didn't manage to fix it. Probably due to my lack of experience using Linux. Mine is the 0408:4033

BTW could any of you gentlemen do a more detailed step-by-step or video for the layman such as myself?

Thanks in advance!

BR
Marcos

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

Well, you camera model is 0408:4033, so it is NOT 0408:4035....

So it will bot be recognized by the uvc driver... You could try to download and modify
https://github.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-/blob/main/uvc_driver.c
al line 2676, and changing the line accordingly:
.idProduct = 0x4033

Then compile and install as explained above at #19

Probably it should work.
Let us know.

BR
Giuliano

Revision history for this message
Marcos Bernardo Jr (mxreloaded) wrote :

It worked like a charm, @giuliano69
After modifying said line, i compiled and installed, and then ran "sudo rmmod uvcvideo && sudo modprobe uvcvideo" as said in #24, and boom.

I`ll do my part and share this solution on every other page where i`ve seen this problem reported.

Thanks for the help (and for the quick answer!)

BR
Marcos

Revision history for this message
Joseph (josephm6754) wrote :

@giuliano69, thank you a lot for you work!

So, i also have the same problem in Acer Aspire 5 A515-57

I have Linux Mint 21.1 5.15.0-69-generic

And try to run commands in #19, but i have problems when i try to compile the file

I think that i did it in bad directory

Can you explain me this path /drivers/media/usb/uvc in Linux Mint?
I don`t have this path or i found it in bad way
I found answers in Google, but... May be i don`t understand something

I also have .idProduct = 0x4033, but i didn`t change it in .c file `cause i need to find the right way to download the file from github

Pls help me, i don`t want to use Windows, but i really need my laptop webcam :D

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

Hi Joseph
here are the needed bash command, you need to insert in a terminal window. You can also save these commands in a update_video.sh command file, so to update the video driver each time system is updated (in that case you probably need to delete the old ~/linux-* directory first, so not to mess something...) .

Each line is commented with #, so you know what you are doing... :-))
BR

#!/bin/bash
cd ~ # change to your home directory
apt-get source linux-modules-extra-$(uname -r) #download in your home, the kernel source file version that match your used kernel
cd ~/linux-*/drivers/media/usb/uvc # change to the currently created uvc directory
mv uvc_driver.c uvc_driver.old # rename/backup the uvc driver soruce file, that need to be updated
wget https://raw.githubusercontent.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-/main/uvc_driver.c # download the updated driver source file
make -j4 -C /lib/modules/$(uname -r)/build M=$(pwd) modules # complie the updated video modules for your kernel version
sudo cp uvcvideo.ko /lib/modules/$(uname -r)/kernel/drivers/media/usb/uvc/ #install the video driver module in the system
reboot #reboot to check your camera is working

Revision history for this message
Joseph (josephm6754) wrote (last edit ):

Thank you very much!

All commands were execute succesfully, but the webcam still didn`t work

Cheese said me that device not found

I changed the line with x4035 with x4033, but nothing

May be i need to install additional drivers?

I tried a lot of methods before and may be i can delete any useful packages

I also can reinstall OS again and start from 0

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

mmm... some questions..

did you reboot ?
did you changed .idProduct = 0x4033 (the 0 is important)

Maybe Marcos Bernardos Jr, who has the same camera, may help.. @mxreloaded

What are reporting the commands:
sudo dmesg | grep uvc
sudo rmmod uvcvideo && sudo modprobe uvcvideo -vv
uname -r

PS
reinstalling the OS again will have no help... we have to change and recompile the kernel driver for the new camera, as Bernardo did...

Revision history for this message
Joseph (josephm6754) wrote :

yes, i did both reboot and changed .idProduct to 0x4033

reporting is:

sudo dmesg | grep uvc
[ 5.090901] uvcvideo: loading out-of-tree module taints kernel.
[ 5.090985] uvcvideo: module verification failed: signature and/or required key missing - tainting kernel

sudo rmmod uvcvideo && sudo modprobe uvcvideo -vv
rmmod: ERROR: Module uvcvideo is not currently loaded

uname -r
5.15.0-69-generic

as i see, something get wrong with module uvcvideo
Do I need to get rights for file uvcvideo.ko?

52 comments hidden view all 132 comments
Revision history for this message
Giuliano Lotta (giuliano69) wrote :

UPDATE
even without the BPF Type Format (BTF), the compiling process of uvcvideo.ko DOES work

The problem with Type format seems not to prevent the new driver to became working (teste right now)

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

UPDATE 2
It seems that to solve the BTF problem, we can copy the current version of vmlinux, in the appropriate directory:

sudo cp /sys/kernel/btf/vmlinux /usr/lib/modules/$(uname -r)/build/

THEN
Compiling the driver, the claim about BTF is no more raised

Revision history for this message
Samer Attrah (samerattrah) wrote (last edit ):

@Giuliano

thanks so much for your effort.
but, I deleted the old linux-generic-5.*** directory from my home directory, and now I only have
linux-hwe-6.2-6.2.0

also, run the command sudo cp /sys/kernel/btf/vmlinux /usr/lib/modules/$(uname -r)/build/
before running the script.

and it still gives the same error, you can find it in the file attached with a few different lines.

Kind regards
Samer Attrah

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@Samer
Problem 1: /bin/sh: 1: pahole: not found
solution to problem 1: you need to install
sudo apt install dwarves
(dwarves will also install pahole)

Problem 2: [Makefile:1943: modules] Error 2
Solution (possibile) to problem2 : DELETE (please DO delete !)
- all the files inux-hwe-6.2_6.2.0-*
- AS WELL AS the DIRECTORY linux-hwe-6.2-6.2.0
the first time you run make, it (the make program) changes some makefile inside the dirtree so that the configuration is not “vanilla” as we need it

Revision history for this message
Samer Attrah (samerattrah) wrote :

@Giuliano

Once again it works, you are awesome, thanks a lot.

Kind regards
Samer Attrah

Revision history for this message
kur1977 (kur1977) wrote :

Hi there.
Kernel 6.2.0-31.31

I did

sudo apt-get install build-essential
git clone https://github.com/Kvalme/uvc.git
cd ./uvc/
git checkout 5ea688c
make

It makes well
after that I did

sudo rmmod uvcvideo
sudo insmod ./uvcvideo.ko

But webcam still not working ((((

Revision history for this message
kur1977 (kur1977) wrote :

@Giuliano

Trying to start you script and got this error (((

home/serg/linux-hwe-6.2-6.2.0/drivers/media/usb/uvc/uvc_driver.c:254:39: error: ‘struct uvc_format’ has no member named ‘name’
  254 | strscpy(format->name, fmtdesc->name,
      | ^~
/home/serg/linux-hwe-6.2-6.2.0/drivers/media/usb/uvc/uvc_driver.c:255:46: error: ‘struct uvc_format’ has no member named ‘name’
  255 | sizeof(format->name));
      | ^~
/home/serg/linux-hwe-6.2-6.2.0/drivers/media/usb/uvc/uvc_driver.c:260:40: error: ‘struct uvc_format’ has no member named ‘name’
  260 | snprintf(format->name, sizeof(format->name), "%pUl\n",
      | ^~
/home/serg/linux-hwe-6.2-6.2.0/drivers/media/usb/uvc/uvc_driver.c:260:61: error: ‘struct uvc_format’ has no member named ‘name’
  260 | snprintf(format->name, sizeof(format->name), "%pUl\n",
      | ^~
/home/serg/linux-hwe-6.2-6.2.0/drivers/media/usb/uvc/uvc_driver.c:273:47: error: ‘struct uvc_format’ has no member named ‘name’
  273 | strscpy(format->name, "Greyscale 8-bit (Y8 )",
      | ^~
/home/serg/linux-hwe-6.2-6.2.0/drivers/media/usb/uvc/uvc_driver.c:274:54: error: ‘struct uvc_format’ has no member named ‘name’
  274 | sizeof(format->name));

Revision history for this message
kur1977 (kur1977) wrote :

Got 0x4033 webcam to work.

First of all install 6.3 kernel with Mainline Kernels software.
than

sudo apt-get install dwarves build-essential
sudo cp /sys/kernel/btf/vmlinux /usr/lib/modules/`uname -r`/build/
git clone https://github.com/Kvalme/uvc.git
cd ./uvc/

than change 4035 to 4033 in uvc_driver.c

make

sudo cp /lib/modules/$(uname -r)/kernel/drivers/media/usb/uvc/uvcvideo.ko{,.back}
sudo cp uvcvideo.ko /lib/modules/$(uname -r)/kernel/drivers/media/usb/uvc/uvcvideo.ko
sudo reboot

Voila. Camera works

Revision history for this message
Yash Oswal (yashoswalyo) wrote :

Hi @giuliano69 I followed the steps from #19 for Fedora 38 (linux kernel 6.4).

I got it working by just replacing the code part for `usb_device_id uvc_ids[]`, but after reboot it gets removed and I have to do insmod ./path_to_uvc/uvcvideo.ko

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@Kur1977 @yash

AFAIK
version users with version 22.04 (born with kernel 5.x) are supposed to follow my approach on github
version users with version >= 23.x (with kernel 6.x) are supposed to follow the https://github.com/Kvalme/uvc.git

Strange thing, is that now 22.04 is using kernel 6.2, but still works with "old" approach...

Revision history for this message
Takshak Mudgal (takshak) wrote :

# Here is a README file for people who will need it to install the driver correctly, this guide is made for Fedora users but other Linux users can also adopt it as per their distros. Make sure to change the code for the driver as per your lsusb output.

1. Open **terminal** and do: `cd $HOME`
2. Then run this command: `dnf download --source kernel-modules-extra-$(uname -r)`
3. Then run unzip command to extract the source: `unzip kernel-6.4.12-200.fc38.src.zip -d kernel; cd kernel;`
4. Then extract the **linux-*.tar.xz**: `tar -xvf linux-*.tar.xz;`
5. Then change directory _replace x here_ : `cd linux-x.x.xx/drivers/media/usb/uvc`
6. Then Type : `gnome-text-editor uvc_driver.c`
7. Now search for this line with `ctrl+f` **static const struct usb_device_id uvc_ids[] = {**
8. Add the following on the next line:
```
/* Quanta ACER HD User Facing 4033 - Experimental !! */
  { .match_flags = USB_DEVICE_ID_MATCH_DEVICE
                        | USB_DEVICE_ID_MATCH_INT_INFO,
    .idVendor = 0x0408,
    .idProduct = 0x4033,
    .bInterfaceClass = USB_CLASS_VIDEO,
    .bInterfaceSubClass = 1,
    .bInterfaceProtocol = UVC_PC_PROTOCOL_15,
    .driver_info = (kernel_ulong_t) &(const struct uvc_device_info ) {
                                                                       .uvc_version = 0x010a, } },
```
9. Save this file.
10. Run: `sudo make -j4 -C /lib/modules/$(uname -r)/build M=$(pwd) modules`
11. Now run: `sudo rmmod uvcvideo.ko`
12. Then run: `sudo insmod ./uvcvideo.ko`

Revision history for this message
Takshak Mudgal (takshak) wrote :

Here is a README file for people who will need it to install the driver correctly.

Revision history for this message
Souvik Kumar (souvikkumar) wrote :

make: Entering directory '/usr/src/linux-headers-6.2.0-33-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  You are using: gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
scripts/Makefile.build:41: /home/souvik/Makefile: No such file or directory
make[1]: *** No rule to make target '/home/souvik/Makefile'. Stop.
make: *** [Makefile:2026: /home/souvik] Error 2
make: Leaving directory '/usr/src/linux-headers-6.2.0-33-generic'
cp: cannot stat 'uvcvideo.ko': No such file or directory

This error while running your script @giuliano69

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@Souvik
It's a typical error that happens when:
-you have already run once the compiler (each run delete the makefile, so ... "no rule to make target"
-or your have many directory linux* in your home directory....

in the both situations DELETE all the linux-* directory and linux-* files in your homedir, and run once again the script.

Revision history for this message
Devika B S (devyca) wrote :

Hi

@giuliano

I followed the steps from #37, and they worked initially. However, after a recent update, my kernel changed to 6.2.0-33, and now it no longer functions properly. When I attempted to retrace the steps from #37, I encountered error #99, even though I had deleted all the files created during each execution of the commands.

I have an Acer Aspire A515-57G laptop with the camera identified as '0408:4033 Quanta Computer, Inc. ACER HD User Facing,' running Ubuntu 22.04.3 LTS.

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@devyca

Hi, truly speaking, Ubuntu 22.04 uses are NOT supposed to follow #37 ...

they are supposed to use ONLY
https://github.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-/blob/main/compile_module.sh

I understand your problem, but cannot follow each particular method users are choosing to patch the camera...
sorry :-(

Giulano

Revision history for this message
Douglas (douglas-rauber) wrote : Re: [Bug 2000947] Re: UVC Quanta 0408:4035 camera PROBLEM
Download full text (8.3 KiB)

Hello Brothers!

Shouldn't Quanta or Acer accurately propose a patch to make your device
work natively on recent kernels?
Or do they do this but the team that maintains the kernel takes a while to
accept the changes?

 []s

Em sex., 29 de set. de 2023 às 09:00, Giuliano Lotta <
<email address hidden>> escreveu:

> @devyca
>
> Hi, truly speaking, Ubuntu 22.04 uses are NOT supposed to follow #37 ...
>
> they are supposed to use ONLY
>
> https://github.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-/blob/main/compile_module.sh
>
> I understand your problem, but cannot follow each particular method users
> are choosing to patch the camera...
> sorry :-(
>
>
> Giulano
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2000947
>
> Title:
> UVC Quanta 0408:4035 camera PROBLEM
>
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I bought a Acer Nitro 5 AN517-55 with Quanta ACER HD User Facing',
> USB 0408:4035.
>
> The camera is reported to have problems by many users:
> https://linux-hardware.org/?id=usb:0408-4035
> The uvc camera Quanta 0408:4035 does not work with ubuntu 22,04. the
> camera is “recongized” but fails installation.
>
> My console commands report similar info to other users:
>
> https://unix.stackexchange.com/questions/723504/integrated-camera-not-detected-working-on-acer-nitro-5-an515-58
>
>
> PROPOSED SOLUTION
> I got in contact with <email address hidden> and with
> <email address hidden> , and subscribed to https://www.linuxtv.org/lists.
> And <email address hidden> mailinglist.
>
> Laurent proposed me a fix and I modified the 5,15 uvc_driver.c
> version, and loaded it on github
>
> https://github.com/Giuliano69/uvc_driver-for-Quanta-HD-User-
> Facing-0x0408-0x4035-/blob/main/uvc_driver.c
>
> I offered to test the fix, so I tried to compile the module with the
> new source.
>
> COMPILING PROBLEMS
> I’m running **Ubuntu 22.04.1 LTS, with kernel
> giuliano@Astra2A:/usr/src$ cat /proc/version_signature
> Ubuntu 5.15.0-56.62-generic 5.15.64
>
> BUT the linux-source that I found installed seems to be different
> tgiuliano@Astra2A:/usr/src$ ls -al linux-so*
> lrwxrwxrwx 1 root root 47 nov 22 16:08 linux-source-5.15.0.tar.bz2 ->
> linux-source-5.15.0/linux-source-5.15.0.tar.bz2
>
> I expanded the tar file, configured the IDE and compiled without error
> any errors…
> I manually copied the uvcvideo.ko in
> /lib/modules/5.15.0-56-
> sudo cp…...
>
> then tryed to intall the new uvcvideo.ko module
> sudo rmmod uvcvideo && sudo modprobe uvcvideo
>
> BUT… IT FAILS
> giuliano@Astra2A:~$ sudo rmmod uvcvideo && sudo modprobe uvcvideo
> modprobe: ERROR: could not insert 'uvcvideo': Exec format error
>
> and dmesg shows
> [25961.151982] usbcore: registered new interface driver uvcvideo
> [26323.125534] usbcore: deregistering interface driver uvcvideo
> [26323.189294] uvcvideo: disagrees about version of symbol module_layout
>
>
> These are the TWO modinfo from the old and new uvcvideo modules
> https://pastebin.com/tSj8Exm6
> Basically
> ...

Read more...

Revision history for this message
Devika B S (devyca) wrote :

@giuliano

Thank you for sharing the link. I found the solution there. Have a great day!

1 comments hidden view all 132 comments
Revision history for this message
Souvik Kumar (souvikkumar) wrote :

Giuliano, can you please guide me through teamviewer? That issue is still not getting fixed.

Revision history for this message
Souvik Kumar (souvikkumar) wrote :

or anydesk please ? talking regarding #106 & #108

Revision history for this message
Moncif Bounif (backslash04) wrote :

Tested with the compile file used by Devika on post #110
working like a charm
My laptop is Acer AN515-58
Linux distribution: Ubuntu 22.04.3 LTS

Revision history for this message
ivuser (ivuser12) wrote (last edit ):

I used compile_module.sh from #110 and got message: "cp: cannot stat 'uvcvideo.ko': No such file or directory".
I have Acer Nitro 5 AN515-57 and same problem happened when executing post #19.

This is whole problem:

make: Entering directory '/usr/src/linux-headers-6.2.0-37-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  You are using: gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
scripts/Makefile.build:41: /home/$(uname -r)/Makefile: No such file or directory
make[1]: *** No rule to make target '/home/$(uname -r)/Makefile'. Stop.
make: *** [Makefile:2026: /home/$(uname -r)] Error 2
make: Leaving directory '/usr/src/linux-headers-6.2.0-37-generic'
cp: cannot stat 'uvcvideo.ko': No such file or directory

What should I do?

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@Ivuser

are you using the script from your home directory, or running each command manually ?

BR

Revision history for this message
ivuser (ivuser12) wrote (last edit ):

@giuliano69,

when I was following post #19, each command was separately run in terminal.

I got message from post #115 when I compiled script from directory ("./compile_module.sh").

EDIT:
If I type "modinfo uvcvideo", this is the output:

filename: /lib/modules/6.2.0-37-generic/kernel/drivers/media/usb/uvc/uvcvideo.ko

Also tried:
"~$ sudo modprobe -r uvcvideo
~$ sudo modprobe uvcvideo",
 but no effect

Revision history for this message
ivuser (ivuser12) wrote :

Does anyone have an idea how this problem could be solved?

I'm trying to set up the camera for this week's meetings. Thanks in advance.

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

maybe a directory problem

find in your home directory, each "old" downloaded dir as "linux-****", and delete them
Delete also old linux-***.gz files.

then run again the script.

Maybe multiple "linux-**" directory presence, makes automatic dir change to fail.

Giuliano

Revision history for this message
ivuser (ivuser12) wrote (last edit ):

Thanks, I did, but same thing happens. Before error written in post #115, I got this message, that seems fine:

./compile_module.sh: line 25: cd: too many arguments
mv: cannot stat 'uvc_driver.c': No such file or directory
--2023-12-13 09:50:21-- https://raw.githubusercontent.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-/main/uvc_driver.c
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8001::154, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8001::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85917 (84K) [text/plain]
Saving to: ‘uvc_driver.c’

Revision history for this message
Giuliano Lotta (giuliano69) wrote :
Download full text (5.8 KiB)

@ivuser
today I made a new install, deleting the old directoryes and files.
Many messages are in italian, but as you can see The driver was created and installed correctly...

(base) giuliano@Astra2A:~$ ./uvc_quanta.sh
[sudo] password di giuliano:
I seguenti pacchetti sono stati mantenuti alla versione attuale:
  gjs libgjs0g python3-update-manager update-manager update-manager-core
0 aggiornati, 0 installati, 0 da rimuovere e 5 non aggiornati.
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
build-essential è già alla versione più recente (12.9ubuntu3).
I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
  libaccinj64-11.5 libcub-dev libcublas11 libcublaslt11 libcudart11.0 libcufft10 libcufftw10 libcupti-dev libcupti-doc
  libcupti11.5 libcurand10 libcusolver11 libcusolvermg11 libcusparse11 libgl1-mesa-dev libllvm13 libllvm13:i386 libnppc11
  libnppial11 libnppicc11 libnppidei11 libnppif11 libnppig11 libnppim11 libnppist11 libnppisu11 libnppitc11 libnpps11 libnvblas11
  libnvjpeg11 libnvrtc-builtins11.5 libnvrtc11.2 libnvtoolsext1 libnvvm4 liborcus-0.17-0 liborcus-parser-0.17-0 libtbb-dev
  libthrust-dev libvdpau-dev libwmf0.2-7 libxmlsec1 libxmlsec1-nss node-html5shiv nsight-compute nsight-compute-target
  nvidia-cuda-gdb nvidia-cuda-toolkit-doc nvidia-opencl-dev ocl-icd-opencl-dev opencl-c-headers opencl-clhpp-headers
Usare "sudo apt autoremove" per rimuoverli.
0 aggiornati, 0 installati, 0 da rimuovere e 5 non aggiornati.
Lettura elenco dei pacchetti... Fatto
Scelto "linux-hwe-6.2" come pacchetto sorgente al posto di "linux-modules-extra-6.2.0-39-generic"
Nota: il processo di pacchettizzazione di "linux-hwe-6.2" è mantenuto
all'interno del sistema di controllo della versione "Git" presso:
git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy
Utilizzare:
git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy
per recuperare gli ultimi (forse non rilasciati) aggiornamenti del pacchetto.
È necessario scaricare 229 MB di sorgenti.
Scaricamento di:1 http://it.archive.ubuntu.com/ubuntu jammy-updates/main linux-hwe-6.2 6.2.0-39.40~22.04.1 (dsc) [8.838 B]
Scaricamento di:2 http://it.archive.ubuntu.com/ubuntu jammy-updates/main linux-hwe-6.2 6.2.0-39.40~22.04.1 (tar) [219 MB]
Scaricamento di:3 http://it.archive.ubuntu.com/ubuntu jammy-updates/main linux-hwe-6.2 6.2.0-39.40~22.04.1 (diff) [10,5 MB]
Recuperati 229 MB in 13s (17,8 MB/s)
dpkg-source: Informazioni: extracting linux-hwe-6.2 in linux-hwe-6.2-6.2.0
dpkg-source: Informazioni: unpacking linux-hwe-6.2_6.2.0.orig.tar.gz
dpkg-source: Informazioni: applying linux-hwe-6.2_6.2.0-39.40~22.04.1.diff.gz
patching file Documentation/ABI/testing/configfs-usb-gadget-uvc
patching file Documentation/ABI/testing/ima_policy
patching file Documentation/ABI/testing/sysfs-devices-system-cpu
patching file Documentation/ABI/testing/sysfs-driver-eud
patching file Documentation/A...

Read more...

Revision history for this message
Devika B S (devyca) wrote :

@giuliano

Hi, recently, I updated to 6.5.0-14-generic, and the bash file you mentioned in #108 is not working. I have attached the error file if you would like to take a look.

Thanks in advance.

Revision history for this message
Pedro Tibúrcio Pires de Oliveira (pedrotpo) wrote :

@giuliano69,

Newest kernel update (6.5.0-14-generic) seems to have broken both approaches (yours and https://github.com/Kvalme/uvc)

While trying to compile I get this:

make -C /lib/modules/6.5.0-14-generic/build M=/home/pedro/uvc modules
make[1]: Entering directory '/usr/src/linux-headers-6.5.0-14-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  You are using:
  CC [M] /home/pedro/uvc/uvc_driver.o
/bin/sh: 1: gcc-12: not found
make[3]: *** [scripts/Makefile.build:251: /home/pedro/uvc/uvc_driver.o] Error 127
make[2]: *** [/usr/src/linux-headers-6.5.0-14-generic/Makefile:2037: /home/pedro/uvc] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-14-generic'
make: *** [Makefile:10: all] Error 2

It was working fine up until that last kernel update. Any idea on a possible fix?

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@Devica, @Pedro
Actually the 6.5 kernel uvc driver source has changed and it is NOT compatible with 6.2 ...
Needed to update the uvc_driver.c file on github

Tested and Now it seems to work.
Please, have a try

BR
Giuliano

Revision history for this message
Devika B S (devyca) wrote :

@Giuliano

Thanks a lot for the update. It resolved the camera issues.

BR
Devika

Revision history for this message
Bevz Vasyl (vbevz) wrote :

Hi @Giuliano

Will be good If you could help me.

I have Acer with Quanta 4033 camera
Previously I used your script and camera worked. But yesterday I got update from 6.2 kernel to 6.5 and now it is not working. I saw that you create new commit today but still not working. Error the same as in #123

Here is error
************************************************************************************************
 linux-hwe-6.5-6.5.0/ubuntu/include/README
 linux-hwe-6.5-6.5.0/ubuntu/ubuntu-host/Kconfig
 linux-hwe-6.5-6.5.0/ubuntu/ubuntu-host/Makefile
 linux-hwe-6.5-6.5.0/ubuntu/ubuntu-host/ubuntu-host.c
 linux-hwe-6.5-6.5.0/update-dkms-versions
 linux-hwe-6.5-6.5.0/virt/kvm/vfio.c
--2024-01-16 18:34:02-- https://raw.githubusercontent.com/Giuliano69/uvc_driver-for-Quanta-HD-User-Facing-0x0408-0x4035-/main/uvc_driver.c
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 89121 (87K) [text/plain]
Saving to: ‘uvc_driver.c’

uvc_driver.c 100%[================================================================================================================>] 87,03K 538KB/s in 0,2s

2024-01-16 18:34:02 (538 KB/s) - ‘uvc_driver.c’ saved [89121/89121]

make: Entering directory '/usr/src/linux-headers-6.5.0-14-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  You are using:
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_driver.o
/bin/sh: 1: gcc-12: not found
make[2]: *** [scripts/Makefile.build:251: /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_driver.o] Error 127
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.5.0-14-generic/Makefile:2037: /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc] Error 2
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.5.0-14-generic'
cp: cannot stat 'uvcvideo.ko': No such file or directory
rmmod: ERROR: Module uvcvideo is not currently loaded

****************************************************************************************************
1. I removed all directories in home, which starts from "linux"
2. I removed add documents and archives in home, which starts from "linux"
3. I put your script into home and launch it. (Tested with sudo and without)

Could you help me or tell what to check?

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

@Bevz
I tested again the script with the new code from github and it works

For what I can see from your consolle output:
- there is a "file not found" error (Error 127), so that no driver is compiled nor installed
- make is NOT running in your home directory but in the root (/) directory, ("make: Leaving directory '/usr/src/linux-headers-6.5.0-14-generic'") .... and this also explain previous error

please check better where and how you are running the script

BR
Giuliano

Revision history for this message
Bevz Vasyl (vbevz) wrote :

@Giuliano

Still in progress ...

1. Installed: sudo apt install gcc-12
2. Then: sudo apt install dwarves
3. Then: cp /sys/kernel/btf/vmlinux /usr/lib/modules/$(uname -r)/build/
4. Made reinstall kernell: sudo apt-get install --reinstall linux-image-6.5.0-14-generic
5. Deleted all version "linux" in home directory

And now have Error: Failed to parse base BTF 'vmlinux': -22

Could you give me some more ideas to fix this?

Below Error from terminal after started "make"
****************************************
make: Entering directory '/usr/src/linux-headers-6.5.0-14-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_driver.o
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_queue.o
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_v4l2.o
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_video.o
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_ctrl.o
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_status.o
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_isight.o
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_debugfs.o
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_metadata.o
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvc_entity.o
  LD [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvcvideo.o
  MODPOST /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/Module.symvers
  CC [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvcvideo.mod.o
  LD [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvcvideo.ko
  BTF [M] /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvcvideo.ko
Failed to parse base BTF 'vmlinux': -22
make[2]: *** [scripts/Makefile.modfinal:60: /home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvcvideo.ko] Error 1
make[2]: *** Deleting file '/home/vasyl/linux-hwe-6.5-6.5.0/drivers/media/usb/uvc/uvcvideo.ko'
make[1]: *** [/usr/src/linux-headers-6.5.0-14-generic/Makefile:1957: modules] Error 2
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.5.0-14-generic'
cp: cannot stat 'uvcvideo.ko': No such file or directory
rmmod: ERROR: Module uvcvideo is not currently loaded
***************************************************************************

Revision history for this message
arman naeimi (arman-nm) wrote :

hi
i made a simple gist file to document steps:

https://gist.github.com/aRmanNM/722eed098a35fa70b22063518a48c46f

notes:
- source code is for 0x4033 model
- tested on debian and fedora (optional steps required on fedora)
- with every kernel update you have to repeat this process

Revision history for this message
Daniel Tang (daniel-z-tg) wrote :

Is there any progress upstreaming this patch?

Revision history for this message
Daniel Tang (daniel-z-tg) wrote :

@arman-nm I converted your gist into a bash script: https://askubuntu.com/a/1506007/1004020

Revision history for this message
Giuliano Lotta (giuliano69) wrote :

Just to inform that
Very Kindly, Richardo Ribalda has confirmed the patch to the UVC Quanta 0408:4035 camera, allowing it to join the official source code.

Hope that in few releases the uvc driver will be normally recognising the camera.

BR

PS
Seems that it should also apply to UVC Quanta 0408:4033 camera

Displaying first 40 and last 40 comments. View all 132 comments or add a comment.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.