EasyNetDev / atomisp-6.10-dkms

Atom ISP Camera (Image Signal Processor for camera) DKMS driver for Kernels >= 6.10
GNU General Public License v3.0
0 stars 1 forks source link

How does this work? #2

Open rmast opened 2 weeks ago

rmast commented 2 weeks ago

I have now succesfully run make and make install in Fedora 41, but I have no clue what dkms commands to issue to make it work.

Or should I just use modprobe like

sudo modprobe /lib/modules/6.11.5-300.fc41.x86_64/kernel/extra/atomisp/staging/media/atomisp/i2c/atomisp-mt9m114.ko

rmast commented 2 weeks ago

By the way, tail +2 in the Makefile doesn't work in Fedora, I changed it to tail -n+2

EasyNetDev commented 2 weeks ago

The idea of this package is to build .deb package which contains the correct dkms.conf for each module. Unfortunately I didn't use Fedora for very long time, because the RPM packages was very strange to build.

The DKMS config is auto-generated by the build-dkms and then is debian/rules is generating the necessary packages when dpkg-buildpackage is run. As an example you have debian/dkms-6.10.conf which is a correct DKMS file to be used.

Regarding this :

By the way, tail +2 in the Makefile doesn't work in Fedora, I changed it to tail -n+2

This is interesting. I have to test on Debian also. I didn't know there are such differences between the executable. What version do you have? Mine is:

# tail --version
tail (GNU coreutils) 9.4
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, Ian Lance Taylor,
and Jim Meyering.
EasyNetDev commented 2 weeks ago

By the way, tail +2 in the Makefile doesn't work in Fedora, I changed it to tail -n+2

Is working in Debian also. I will push a change for this.

EasyNetDev commented 2 weeks ago

By the way, tail +2 in the Makefile doesn't work in Fedora, I changed it to tail -n+2

Fixed in commit 0f50fdb

EasyNetDev commented 1 week ago

I have now succesfully run make and make install in Fedora 41, but I have no clue what dkms commands to issue to make it work.

Or should I just use modprobe like

sudo modprobe /lib/modules/6.11.5-300.fc41.x86_64/kernel/extra/atomisp/staging/media/atomisp/i2c/atomisp-mt9m114.ko

Normally using insmod if you don't have the driver in /lib/modules/..

Unfortunately DKMS files are built by debian/rules. But you can find a prebuild one here https://github.com/EasyNetDev/atomisp-6.10-dkms/tree/main/debian/dkms-6.10.conf

rmast commented 1 week ago

I just ran sudo make install with blacklist atomisp-mt9m114 in /etc/modprobe.d/atomisp.conf and a lot of dyndbg-settings for the surrounding modules. The "extra" modules will come up themselves without explicitly invoking dkms or modprobe.

rmast commented 4 days ago

There's something with the module signing though. The aptina-pll module isn't loaded due to signing issues. Dkms should probably take care of that.

rmast commented 4 days ago

Studying Fedora signing could take a week

https://sysguides.com/fedora-uefi-secure-boot-with-custom-keys#12-6-sign-binaries

rmast commented 3 days ago

This might be a shortcut:

https://discussion.fedoraproject.org/t/tainted-kernel/85099

rmast commented 3 days ago

As your current version doesn't create a dkms.conf in /usr/src/atomisp-mt9m114-6.11,

Which is needed with

sudo dkms add atomisp-mt9m114/6.11 sudo dkms install atomisp-mt9m114/6.11

I looked for dkms examples in Fedora.

This could be a viable structure:

https://forums.fedoraforum.org/showthread.php?325601-How-to-install-customer

rmast commented 2 days ago

My current mt9m114.c-version just crashes at enumerating the devices in the atomisp-v4l2 module. I'll go back to the atomisp-mt9m114 as Hans' last fix for that driver was with that enumerator I believe.

My current branch for mt9m114 is renamed to robert.

I'll make a new branch focusing on getting atomisp-mt9m114 to show what's missing in mt9m114.c. I still don't have the timers in sync, but the defaults might have gotten Hans one step further at enumerating.

Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg


From: Robert Mast @.> Sent: Saturday, November 16, 2024 11:23:36 AM To: EasyNetDev/atomisp-6.10-dkms @.>; EasyNetDev/atomisp-6.10-dkms @.> Cc: Author @.> Subject: Re: [EasyNetDev/atomisp-6.10-dkms] How does this work? (Issue #2)

As your current version doesn't create a dkms.conf in /usr/src/atomisp-mt9m114-6.11,

Which is needed with

sudo dkms add atomisp-mt9m114/6.11 sudo dkms install atomisp-mt9m114/6.11

I looked for dkms examples in Fedora.

This could be a viable structure:

https://forums.fedoraforum.org/showthread.php?325601-How-to-install-customer

Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg


From: Robert Mast @.> Sent: Saturday, November 16, 2024 9:35:07 AM To: EasyNetDev/atomisp-6.10-dkms @.>; EasyNetDev/atomisp-6.10-dkms @.> Cc: Author @.> Subject: Re: [EasyNetDev/atomisp-6.10-dkms] How does this work? (Issue #2)

This might be a shortcut:

https://discussion.fedoraproject.org/t/tainted-kernel/85099

Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg


From: Robert Mast @.> Sent: Friday, November 15, 2024 9:48:32 PM To: EasyNetDev/atomisp-6.10-dkms @.>; EasyNetDev/atomisp-6.10-dkms @.> Cc: Author @.> Subject: Re: [EasyNetDev/atomisp-6.10-dkms] How does this work? (Issue #2)

Studying Fedora signing could take a week

https://sysguides.com/fedora-uefi-secure-boot-with-custom-keys#12-6-sign-binaries

Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg


From: Robert Mast @.> Sent: Friday, November 15, 2024 4:47:03 PM To: EasyNetDev/atomisp-6.10-dkms @.>; EasyNetDev/atomisp-6.10-dkms @.> Cc: Author @.> Subject: Re: [EasyNetDev/atomisp-6.10-dkms] How does this work? (Issue #2)

There's something with the module signing though. The aptina-pll module isn't loaded due to signing issues. Dkms should probably take care of that.

Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg


From: Robert Mast @.> Sent: Monday, November 11, 2024 4:13:41 PM To: EasyNetDev/atomisp-6.10-dkms @.>; EasyNetDev/atomisp-6.10-dkms @.> Cc: Author @.> Subject: Re: [EasyNetDev/atomisp-6.10-dkms] How does this work? (Issue #2)

I just ran sudo make install with blacklist atomisp-mt9m114 in /etc/modprobe.d/atomisp.conf and a lot of dyndbg-settings for the surrounding modules. The "extra" modules will come up themselves without explicitly invoking dkms or modprobe.

Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg


From: EasyNet @.> Sent: Monday, November 11, 2024 3:46:50 PM To: EasyNetDev/atomisp-6.10-dkms @.> Cc: rmast @.>; Author @.> Subject: Re: [EasyNetDev/atomisp-6.10-dkms] How does this work? (Issue #2)

I have now succesfully run make and make install in Fedora 41, but I have no clue what dkms commands to issue to make it work.

Or should I just use modprobe like

sudo modprobe /lib/modules/6.11.5-300.fc41.x86_64/kernel/extra/atomisp/staging/media/atomisp/i2c/atomisp-mt9m114.ko

Normally using insmod if you don't have the driver in /lib/modules/..

Unfortunately DKMS files are built by debian/rules. But you can find a prebuild one here https://github.com/EasyNetDev/atomisp-6.10-dkms/tree/main/debian/dkms-6.10.conf

— Reply to this email directly, view it on GitHubhttps://github.com/EasyNetDev/atomisp-6.10-dkms/issues/2#issuecomment-2468351491, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAZPZ5QHCK7DU6SBBYHXTR32AC7NVAVCNFSM6AAAAABRBYVCU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRYGM2TCNBZGE. You are receiving this because you authored the thread.Message ID: @.***>