Hello.
I want to build a kernel for patch mlx4_core drivers. but I got this error:
git checkout:
git submodule:
can somebody give me some tips?![Oops! :oops: :oops:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I want to build a kernel for patch mlx4_core drivers. but I got this error:
Code:
test -f "submodules/ubuntu-kernel/README" || git submodule update --init submodules/ubuntu-kernel
test -f "submodules/zfsonlinux/Makefile" || git submodule update --init --recursive submodules/zfsonlinux
rm -rf proxmox-kernel-6.2.16/modules/pkg-zfs proxmox-kernel-6.2.16/modules/tmp pkg-zfs.prepared
mkdir -p proxmox-kernel-6.2.16/modules/tmp
cp -a submodules/zfsonlinux/* proxmox-kernel-6.2.16/modules/tmp
cd proxmox-kernel-6.2.16/modules/tmp; make kernel
make[1]: Entering directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp'
test -f "upstream/README.md" || git submodule update --init
rm -rf zfs-linux_2.1.12 zfs-linux_2.1.12.tmp
cp -a upstream zfs-linux_2.1.12.tmp
cp -a debian zfs-linux_2.1.12.tmp/debian
mv zfs-linux_2.1.12.tmp zfs-linux_2.1.12
tar czf zfs-linux_2.1.12.orig.tar.gz --exclude="zfs-linux_2.1.12/debian" zfs-linux_2.1.12
tar czf zfs-linux_.orig.tar.gz zfs-linux_2.1.12
cd zfs-linux_2.1.12; dpkg-buildpackage -S -uc -us -d
dpkg-buildpackage: info: source package zfs-linux
dpkg-buildpackage: info: source version 2.1.12-pve1
dpkg-buildpackage: info: source distribution bookworm
dpkg-buildpackage: info: source changed by Proxmox Support Team <support@proxmox.com>
dpkg-source --before-build .
fakeroot debian/rules clean
make[2]: Entering directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp/zfs-linux_2.1.12'
dh clean --with autoreconf,python3,sphinxdoc
debian/rules override_dh_auto_clean
make[3]: Entering directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp/zfs-linux_2.1.12'
find . -name .gitignore -delete
rm -rf zfs-2.1.12
dh_auto_clean
make[3]: Leaving directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp/zfs-linux_2.1.12'
dh_clean
make[2]: Leaving directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp/zfs-linux_2.1.12'
dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building zfs-linux using existing ./zfs-linux_2.1.12.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|From: Debian ZFS on Linux maintainers
| <pkg-zfsonlinux-devel@alioth-lists.debian.net>
|Date: Wed, 30 Jan 2019 15:12:04 +0100
|Subject: [PATCH] Check-for-META-and-DCH-consistency-in-autoconf
|
|Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|---
| config/zfs-meta.m4 | 34 +++++++++++++++++++++++++++++-----
| 1 file changed, 29 insertions(+), 5 deletions(-)
|
|diff --git a/config/zfs-meta.m4 b/config/zfs-meta.m4
|index 20064a0fb..4d5f545ad 100644
|--- a/config/zfs-meta.m4
|+++ b/config/zfs-meta.m4
--------------------------
No file to patch. Skipping patch.
3 out of 3 hunks ignored
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
dpkg-source: info: if patch '0001-Check-for-META-and-DCH-consistency-in-autoconf.patch' is correctly applied by quilt, use 'quilt refresh' to update it
dpkg-source: info: if the file is present in the unpacked source, make sure it is also present in the orig tarball
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch/ --reject-file=- < zfs-linux_2.1.12.orig.9eIUBV/debian/patches/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch subprocess returned exit status 1
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
make[1]: *** [Makefile:65: zfs-linux_2.1.12-pve1.dsc] Error 2
make[1]: Leaving directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp'
make: *** [Makefile:120: pkg-zfs.prepared] Error 2
git checkout:
Code:
HEAD detached at 9219ee1
git submodule:
Code:
1e60c4f3601e8d00341d9a20756a742b90d68681 submodules/ubuntu-kernel (Ubuntu-6.2.0-25.25-933-g1e60c4f3601e)
f5ed5be89a89ff5f7ee76c8caaf2115eac2d46c5 submodules/zfsonlinux (remotes/origin/HEAD)
can somebody give me some tips?