-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cross-built kernel/dkms improvements #46332
Conversation
7e1ae20
to
babf74c
Compare
Was able to install ddcci-dkms for a natively compiled 6.3.13_2 kernel on my aarch64-musl system zfs dkms failing, but there's no hard errors in the /var/lib/dkms/zfs/2.1.12/build/build/build.log, although there is a warning modpost: "blk_register_queue" [/var/lib/dkms/zfs/2.1.12/build/build/bio_bdev_disk/bio_bdev_disk.ko] undefined! and many "Skipping BTF generation for /var/lib/dkms/zfs/2.1.12/build/build/foobar/foobar.ko due to unavailability of vmlinux" The issue with the missing headers appears to have been resolved though |
can you try |
Getting error linux6.3-6.3.13_2: configuring ... |
I think I got something. I cross-built "linux6.1" and "linux6.5" packages for "aarch64" and "aarch64-musl" from this PR. If you would like to pull them, you can get them from My findings executing
After adding them, the command succeeds. @Calandracas606, you seem to run into the same issue with 6.3. Shouldn't actually everything in Will test dkms after that got fixed, but probably we are good after adding those files. |
Packages for "linux6.3" are also available now. The same files are also missing there. When they have been added, dkms seems to be working fine. installing dkms package "ddcci-dkms"
|
I don't think that's needed, from my testing. what needed it? |
babf74c
to
551befc
Compare
ZFS builds after changing /usr/src/zfs*/META from CDDL to GPL |
some less-powerful platforms may be overwhelmed by the default `-j$(nproc)`. Allow overriding this by setting `DKMS_JOBS` in `/etc/default/dkms` `bc` is needed for `make prepare0` on kernel 6.1+, which is run on cross.
adds the ability to limit the number of makejobs to the dkms trigger
551befc
to
d51a4c7
Compare
The difference is, I added asm-offsets.c but the new version of package includes asm-offsets.s. The .s file was not part of the original linux kernel tarball, I was using as a reference and is a generated file. Regeneration obviously requires the kvm-headers. |
I have rebuilt the packages in this PR with the latest changes (aarch64 and aarch64-musl), source is still Testing dkms on "aarch64-musl" by installing "ddcci-dkms" was successful and it also respected the dkms ddcci-dkms install log
make processes during zfs install
So, in general probably a success, beside "zfs" on the Zero 2W. |
-j$(nproc)
. Allow overriding this by settingDKMS_JOBS
in/etc/default/dkms
bc
is needed formake prepare0
on kernel 6.1+, which is run on cross.The same fix could be applied to linux6.3 and linux6.4, but with the impending zfs 2.1.13 bump (#46304), I don't see much point.
fixes #44807
Testing the changes
@moabeat-berlin, @r-ricci, @Calandracas606: please test
[ci skip]