Can't Build Linux Kernel from Tutorial
Hello Julia,
I have been trying to build the Linux Kernel via the tutorial on my machine to no avail.
This has prevented me from making a PATCH.
This is the Os and Kernel version of my machine
OS: Parrot Security 6.3 (lorikeet) x86_64
Kernel: 6.5.0-13parrot1-amd64
Below is the error I got while installing the kernel build
...
INSTALL /lib/modules/6.14.0-rc1custom- ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko
INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/vmw_vsock/hv_sock.ko
INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/vmw_vsock/vsock_loopback.ko
INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr-
mhi.ko
DEPMOD /lib/modules/6.14.0-rc1custom-ola+
INSTALL /boot
run-parts: executing /etc/kernel/postinst.d/dkms 6.14.0-rc1custom-ola+ /boot/vmlinuz-6.14.0-rc1custom-ola+
dkms: running auto installation service for kernel 6.14.0-rc1custom- ola+.
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
Sign command: /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign- file
Binary /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not found, modules won't be signed
Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+ KVER=6.14.0-rc1custom- ola+........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.14.0-rc1custom- ola+ (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
Sign command: /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign- file
Binary /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not found, modules won't be signed
Building module:
Cleaning build area...(bad exit status: 2) kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.14.0-rc1custom- ola+ (x86_64)
Consult /var/lib/dkms/realtek- rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more information.
Sign command: /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign- file
Binary /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not found, modules won't be signed
Building module:
Cleaning build area...(bad exit status: 2)
'make' -j4 KVER=6.14.0-rc1custom-ola+ KSRC=/lib/modules/6.14.0- rc1custom-ola+/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.14.0-rc1custom- ola+ (x86_64)
Consult /var/lib/dkms/realtek- rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more information.
Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11 make[2]: *** [arch/x86/Makefile:321: install] Error 1 make[1]: *** [/home/laolu/Desktop/Outreachy_Contributions/Linux- Kernel/git/kernels/staging/Makefile:372: __build_one_by_one] Error 2 make[1]: Target 'modules_install' not remade because of errors. make[1]: Target 'install' not remade because of errors.
make: *** [Makefile:251: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make: Target 'install' not remade because of errors.
Quoted 10 lines · Richard Akintola
Hello Julia,
I have been trying to build the Linux Kernel via the tutorial on my machine to no avail.
This has prevented me from making a PATCH.
This is the Os and Kernel version of my machine
OS: Parrot Security 6.3 (lorikeet)x86_64
Kernel: 6.5.0-13parrot1-amd64
Sort of basic questions are whether you are using a VM and how much memory you have.
Afterwards, maybe it is a configuration problems? Are you reusing the configuration of your host machine? Here are some old posts on disabling module signing:
https://stackoverflow.com/questions/29806414/how-to-disable-kernel-module-signing-in-linux
https://kernelnewbies.kernelnewbies.narkive.com/kKXLBu8C/how-to-disable-module-verification-failed-signature-and-or-required-key-missing-tainting-kernel
If you change the configuration file, do make olddefconfig afterwards to make sure your changes are take into account.
Let me know how it goes.
julia
Quoted 105 lines
Below is the error I got while installing the kernel build
...
INSTALL
/lib/modules/6.14.0-rc1custom-ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko
INSTALL/lib/modules/6.14.0-rc1custom-ola+/kernel/net/vmw_vsock/hv_sock.ko
INSTALL/lib/modules/6.14.0-rc1custom-ola+/kernel/net/vmw_vsock/vsock_loopback.ko
INSTALL/lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.koINSTALL/lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.koINSTALL/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.koINSTALL/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr-
mhi.ko
DEPMOD/lib/modules/6.14.0-rc1custom-ola+
INSTALL /boot
run-parts: executing/etc/kernel/postinst.d/dkms6.14.0-rc1custom-ola+/boot/vmlinuz-6.14.0-rc1custom-ola+
dkms: running auto installation service for kernel 6.14.0-rc1custom- ola+.
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
Sign command:/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file
Binary/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot found, modules won't be signedBuilding module:
Cleaning build area...
make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+ KVER=6.14.0-rc1custom- ola+........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.14.0-rc1custom- ola+ (x86_64)
Consult/var/lib/dkms/broadcom-sta/6.30.223.271/build/make.logfor more information.
Sign command:/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file
Binary/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot found, modules won't be signedBuilding module:
Cleaning build area...(bad exit status: 2) kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.14.0-rc1custom- ola+ (x86_64)
Consult/var/lib/dkms/realtek-rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more information.
Sign command:/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file
Binary/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot found, modules won't be signedBuilding module:
Cleaning build area...(bad exit status: 2)
'make' -j4 KVER=6.14.0-rc1custom-ola+ KSRC=/lib/modules/6.14.0- rc1custom-ola+/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.14.0-rc1custom- ola+ (x86_64)
Consult/var/lib/dkms/realtek-rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more information.
Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed!
run-parts:/etc/kernel/postinst.d/dkmsexited with return code 11 make[2]: *** [arch/x86/Makefile:321: install] Error 1 make[1]: *** [/home/laolu/Desktop/Outreachy_Contributions/Linux-Kernel/git/kernels/staging/Makefile:372:__build_one_by_one] Error 2 make[1]: Target 'modules_install' not remade because of errors. make[1]: Target 'install' not remade because of errors.
make: *** [Makefile:251: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make: Target 'install' not remade because of errors.
A message that is not in the archive (sent off-list or not yet received): CAMyr_bLnE22pObV784EKpabb-R8w64o0fYDf8_x8h9rmySCoVA@mail.gmail.com
Quoted 8 lines · Richard Akintola
Good to hear from you Julia,
For the first question: No, I am not using a VM, I am building the kernel on my machine's Os which is Parrot Linux Os.
And as for the configuration: yes, I am reusing the the configuration of my host machine - I copied my machine's configuration to the repository as shown in the tutorial.
OK, try to find something related to signatures in your configuration. Distro configurations often have this issue. For Debian there is some PEM thing.
julia
Quoted 191 lines
Richard Akintola
On Mon, 24 Mar 2025, 14:57 Julia Lawall, <[email protected]> wrote:
On Mon, 24 Mar 2025, Richard Akintola wrote:
> Hello Julia,
>
> I have been trying to build the Linux Kernel via the tutorial on my
> machine to no avail.
>
> This has prevented me from making a PATCH.
>
> This is the Os and Kernel version of my machine
> OS: Parrot Security 6.3 (lorikeet)x86_64
> Kernel: 6.5.0-13parrot1-amd64Sort of basic questions are whether you are using a VM and how much memory
you have.Afterwards, maybe it is a configuration problems? Are you reusing the
configuration of your host machine? Here are some old posts on disabling
module signing:https://stackoverflow.com/questions/29806414/how-to-disable-kernel-module-s
igning-in-linux
https://kernelnewbies.kernelnewbies.narkive.com/kKXLBu8C/how-to-disable-mod
ule-verification-failed-signature-and-or-required-key-missing-tainting-kernel If you change the configuration file, do make olddefconfig afterwards to make sure your changes are take into account. Let me know how it goes. julia > > Below is the error I got while installing the kernel build > > ... > > INSTALL /lib/modules/6.14.0-rc1custom- > ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko > INSTALL /lib/modules/6.14.0-rc1custom- > ola+/kernel/net/vmw_vsock/hv_sock.ko > INSTALL /lib/modules/6.14.0-rc1custom- > ola+/kernel/net/vmw_vsock/vsock_loopback.ko > INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko > INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko > INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko > INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr- > mhi.ko > DEPMOD /lib/modules/6.14.0-rc1custom-ola+ > INSTALL /boot > run-parts: executing /etc/kernel/postinst.d/dkms 6.14.0-rc1custom-ola+ > /boot/vmlinuz-6.14.0-rc1custom-ola+ > dkms: running auto installation service for kernel 6.14.0-rc1custom- > ola+. > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > readelf: Error: Not an ELF file - it has the wrong magic bytes at the > start > Sign command: /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign- > file > Binary /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not > found, modules won't be signed > > Building module: > Cleaning build area... > make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+ KVER=6.14.0-rc1custom- > ola+........(bad exit status: 2) > Error! Bad return status for module build on kernel: 6.14.0-rc1custom- > ola+ (x86_64) > Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more > information. > Sign command: /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign- > file > Binary /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not > found, modules won't be signed > > Building module: > Cleaning build area...(bad exit status: 2) > kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit status: 2) > Error! Bad return status for module build on kernel: 6.14.0-rc1custom- > ola+ (x86_64) > Consult /var/lib/dkms/realtek- > rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more > information. > Sign command: /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign- > file > Binary /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not > found, modules won't be signed > > Building module: > Cleaning build area...(bad exit status: 2) > 'make' -j4 KVER=6.14.0-rc1custom-ola+ KSRC=/lib/modules/6.14.0- > rc1custom-ola+/build...(bad exit status: 2) > Error! Bad return status for module build on kernel: 6.14.0-rc1custom- > ola+ (x86_64) > Consult /var/lib/dkms/realtek- > rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more > information. > Error! One or more modules failed to install during autoinstall. > Refer to previous errors for more information. > dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed! > run-parts: /etc/kernel/postinst.d/dkms exited with return code 11 > make[2]: *** [arch/x86/Makefile:321: install] Error 1 > make[1]: *** [/home/laolu/Desktop/Outreachy_Contributions/Linux- > Kernel/git/kernels/staging/Makefile:372: __build_one_by_one] Error 2 > make[1]: Target 'modules_install' not remade because of errors. > make[1]: Target 'install' not remade because of errors. > make: *** [Makefile:251: __sub-make] Error 2 > make: Target 'modules_install' not remade because of errors. > make: Target 'install' not remade because of errors. > > >
A message that is not in the archive (sent off-list or not yet received): CAMyr_bJyn3Krz0R5tYooQRP6A3=bj_H_f3f4rejGJGkS8LQaLg@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): CAMyr_b+rJBRQFrFCnB=kq33XCyo=twuRQ-OrQC50D0mH9CaRUg@mail.gmail.com
Quoted 2 lines · Richard Akintola
Hi Julia,
The reason I haven't sent feedback is that the kernel I built and installed resulted in kernel panic which I am trying to recover from and if I am not able to, I will install a new Os and try again (until I successfully build the kernel).
OK, thanks for the update. If you can't make it work in th short term, you could start working on some patches while continuing to try to get the build to work.
julia
Quoted 227 lines
Thank you for the support so far.
Richard Akintola
On Monday, March 24, 2025, Richard Akintola <[email protected]> wrote:
Thank you Julia, I will go about resolving it as recommended
Richard Akintola
On Mon, 24 Mar 2025, 16:06 Julia Lawall, <[email protected]> wrote:
On Mon, 24 Mar 2025, Richard Akintola wrote:
> Good to hear from you Julia,
>
> For the first question: No, I am not using a VM, I am building the kernel on > my machine's Os which is Parrot Linux Os.
>
> And as for the configuration: yes, I am reusing the the configuration of my > host machine - I copied my machine's configuration to the repository as > shown in the tutorial.OK, try to find something related to signatures in your configuration. Distro configurations often have this issue. For Debian there is some PEM thing.
julia
>
> Richard Akintola
>
> On Mon, 24 Mar 2025, 14:57 Julia Lawall, <[email protected]> wrote:
>
>
> On Mon, 24 Mar 2025, Richard Akintola wrote:
>
> > Hello Julia,
> >
> > I have been trying to build the Linux Kernel via the tutorial > on my
> > machine to no avail.
> >
> > This has prevented me from making a PATCH.
> >
> > This is the Os and Kernel version of my machine
> > OS: Parrot Security 6.3 (lorikeet)x86_64
> > Kernel: 6.5.0-13parrot1-amd64
>
> Sort of basic questions are whether you are using a VM and how > much memory
> you have.
>
> Afterwards, maybe it is a configuration problems? Are you > reusing the
> configuration of your host machine? Here are some old posts on > disabling
> module signing:
>
> https://stackoverflow.com/questions/29806414/how-to-disable-kernel-module-s
> igning-in-linux
> https://kernelnewbies.kernelnewbies.narkive.com/kKXLBu8C/how-to-disable-mod
> ule-verification-failed-signature-and-or-required-key-missing-tainting-ker > nel
>
> If you change the configuration file, do make olddefconfig > afterwards to
> make sure your changes are take into account.
>
> Let me know how it goes.
>
> julia
>
>
> >
> > Below is the error I got while installing the kernel build > >
> > ...
> >
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/hv_sock.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vsock_loopback.ko
> > INSTALL
> /lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko > > INSTALL
> /lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko > > INSTALL
> /lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko > > INSTALL
> /lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr- > > mhi.ko
> > DEPMOD/lib/modules/6.14.0-rc1custom-ola+
> > INSTALL /boot
> > run-parts: executing/etc/kernel/postinst.d/dkms
> 6.14.0-rc1custom-ola+
> >/boot/vmlinuz-6.14.0-rc1custom-ola+
> > dkms: running auto installation service for kernel
> 6.14.0-rc1custom-
> > ola+.
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes > at the
> > start
> > Sign command:
> /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
> /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not > > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...
> > make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+
> KVER=6.14.0-rc1custom-
> > ola+........(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log> for more
> > information.
> > Sign command:
> /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
> /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not > > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit > status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more > > information.
> > Sign command:
> /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
> /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not > > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > 'make' -j4 KVER=6.14.0-rc1custom-ola+
> KSRC=/lib/modules/6.14.0-
> > rc1custom-ola+/build...(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more > > information.
> > Error! One or more modules failed to install during
> autoinstall.
> > Refer to previous errors for more information.
> > dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed! > > run-parts:/etc/kernel/postinst.d/dkmsexited with return code > 11
> > make[2]: *** [arch/x86/Makefile:321: install] Error 1 > > make[1]: ***
> [/home/laolu/Desktop/Outreachy_Contributions/Linux-
> > Kernel/git/kernels/staging/Makefile:372:__build_one_by_one] > Error 2
> > make[1]: Target 'modules_install' not remade because of > errors.
> > make[1]: Target 'install' not remade because of errors. > > make: *** [Makefile:251: __sub-make] Error 2
> > make: Target 'modules_install' not remade because of errors. > > make: Target 'install' not remade because of errors.
> >
> >
> >
>
>
>
A message that is not in the archive (sent off-list or not yet received): CAMyr_bKWDLGZLQgducONi=H_107UydmaOErRcRythgw9FR9CFw@mail.gmail.com
Hi Julia,
I want to inform you that I have successfully built the kernel. After building successfully, I could not install, I searched on how to build Linux kernel on Debian, so I found the command "make -jN bindeb-pkg" which created a debian packages for easy installation in the parent directory which I installed with the command "sudo apt install ./*.deb".
Thank you for the support so far, I really appreciate, now nothing is standing in the way of sending my patches.
Richard Akintola
Quoted 250 lines · Richard Akintola
Thank you Julia, do expect my patches.
Richard
Quoted 243 lines · On Tue, 25 Mar 2025, 21:25 Julia Lawall, <[email protected]> wrote:
Quoted 2 lines · Richard Akintola
Hi Julia,
The reason I haven't sent feedback is that the kernel I built and installed resulted in kernel panic which I am trying to recover from and if I am not able to, I will install a new Os and try again (until I successfully build the kernel).OK, thanks for the update. If you can't make it work in th short term, you could start working on some patches while continuing to try to get the build to work.
julia
Quoted 227 lines
Thank you for the support so far.
Richard Akintola
On Monday, March 24, 2025, Richard Akintola <[email protected]> wrote:
Thank you Julia, I will go about resolving it as recommended
Richard Akintola
On Mon, 24 Mar 2025, 16:06 Julia Lawall, <[email protected]> wrote:
On Mon, 24 Mar 2025, Richard Akintola wrote:
> Good to hear from you Julia,
>
> For the first question: No, I am not using a VM, I am building the kernel on > my machine's Os which is Parrot Linux Os.
>
> And as for the configuration: yes, I am reusing the the configuration of my > host machine - I copied my machine's configuration to the repository as > shown in the tutorial.OK, try to find something related to signatures in your configuration. Distro configurations often have this issue. For Debian there is some PEM thing.
julia
>
> Richard Akintola
>
> On Mon, 24 Mar 2025, 14:57 Julia Lawall, <[email protected]> wrote:
>
>
> On Mon, 24 Mar 2025, Richard Akintola wrote:
>
> > Hello Julia,
> >
> > I have been trying to build the Linux Kernel via the tutorial
> on my
> > machine to no avail.
> >
> > This has prevented me from making a PATCH.
> >
> > This is the Os and Kernel version of my machine
> > OS: Parrot Security 6.3 (lorikeet)x86_64
> > Kernel: 6.5.0-13parrot1-amd64
>
> Sort of basic questions are whether you are using a VM and how
> much memory
> you have.
>
> Afterwards, maybe it is a configuration problems? Are you
> reusing the
> configuration of your host machine? Here are some old posts on
> disabling
> module signing:
>
> https://stackoverflow.com/questions/29806414/how-to-disable-kernel-module-s
> igning-in-linux
> https://kernelnewbies.kernelnewbies.narkive.com/kKXLBu8C/how-to-disable-mod
> ule-verification-failed-signature-and-or-required-key-missing-tainting-ker
> nel
>
> If you change the configuration file, do make olddefconfig
> afterwards to
> make sure your changes are take into account.
>
> Let me know how it goes.
>
> julia
>
>
> >
> > Below is the error I got while installing the kernel build
> >
> > ...
> >
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/hv_sock.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vsock_loopback.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr-
> > mhi.ko
> > DEPMOD/lib/modules/6.14.0-rc1custom-ola+
> > INSTALL /boot
> > run-parts: executing/etc/kernel/postinst.d/dkms
> 6.14.0-rc1custom-ola+
> >/boot/vmlinuz-6.14.0-rc1custom-ola+
> > dkms: running auto installation service for kernel
> 6.14.0-rc1custom-
> > ola+.
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...
> > make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+
> KVER=6.14.0-rc1custom-
> > ola+........(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
> for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit
> status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > 'make' -j4 KVER=6.14.0-rc1custom-ola+
> KSRC=/lib/modules/6.14.0-
> > rc1custom-ola+/build...(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more
> > information.
> > Error! One or more modules failed to install during
> autoinstall.
> > Refer to previous errors for more information.
> > dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed!
> > run-parts:/etc/kernel/postinst.d/dkmsexited with return code
> 11
> > make[2]: *** [arch/x86/Makefile:321: install] Error 1
> > make[1]: ***
> [/home/laolu/Desktop/Outreachy_Contributions/Linux-
> > Kernel/git/kernels/staging/Makefile:372:__build_one_by_one]
> Error 2
> > make[1]: Target 'modules_install' not remade because of
> errors.
> > make[1]: Target 'install' not remade because of errors.
> > make: *** [Makefile:251: __sub-make] Error 2
> > make: Target 'modules_install' not remade because of errors.
> > make: Target 'install' not remade because of errors.
> >
> >
> >
>
>
>
Quoted 11 lines · Richard Akintola
Hi Julia,
I want to inform you that I have successfully built the kernel. After building successfully, I could not install, I searched on how to build Linux kernel on Debian, so I found the command "make -jN bindeb-pkg" which created a debian packages for easy installation in the parent directory which I installed with the command "sudo apt install ./*.deb".
Thank you for the support so far, I really appreciate, now nothing is standing in the way of sending my patches.
OK, sounds good.
It could be good to review the previous messages on the mailing list to get suggestions of what to focus on and to see what others have done. I will post some more suggestions this weekend.
julia
Quoted 258 lines
Richard Akintola
Quoted 250 lines · Richard Akintola
Thank you Julia, do expect my patches.
Richard
Quoted 243 lines · On Tue, 25 Mar 2025, 21:25 Julia Lawall, <[email protected]> wrote:
Quoted 2 lines · Richard Akintola
Hi Julia,
The reason I haven't sent feedback is that the kernel I built and installed resulted in kernel panic which I am trying to recover from and if I am not able to, I will install a new Os and try again (until I successfully build the kernel).OK, thanks for the update. If you can't make it work in th short term, you could start working on some patches while continuing to try to get the build to work.
julia
Quoted 227 lines
Thank you for the support so far.
Richard Akintola
On Monday, March 24, 2025, Richard Akintola <[email protected]> wrote:
Thank you Julia, I will go about resolving it as recommended
Richard Akintola
On Mon, 24 Mar 2025, 16:06 Julia Lawall, <[email protected]> wrote:
On Mon, 24 Mar 2025, Richard Akintola wrote:
> Good to hear from you Julia,
>
> For the first question: No, I am not using a VM, I am building the kernel on > my machine's Os which is Parrot Linux Os.
>
> And as for the configuration: yes, I am reusing the the configuration of my > host machine - I copied my machine's configuration to the repository as > shown in the tutorial.OK, try to find something related to signatures in your configuration. Distro configurations often have this issue. For Debian there is some PEM thing.
julia
>
> Richard Akintola
>
> On Mon, 24 Mar 2025, 14:57 Julia Lawall, <[email protected]> wrote:
>
>
> On Mon, 24 Mar 2025, Richard Akintola wrote:
>
> > Hello Julia,
> >
> > I have been trying to build the Linux Kernel via the tutorial
> on my
> > machine to no avail.
> >
> > This has prevented me from making a PATCH.
> >
> > This is the Os and Kernel version of my machine
> > OS: Parrot Security 6.3 (lorikeet)x86_64
> > Kernel: 6.5.0-13parrot1-amd64
>
> Sort of basic questions are whether you are using a VM and how
> much memory
> you have.
>
> Afterwards, maybe it is a configuration problems? Are you
> reusing the
> configuration of your host machine? Here are some old posts on
> disabling
> module signing:
>
> https://stackoverflow.com/questions/29806414/how-to-disable-kernel-module-s
> igning-in-linux
> https://kernelnewbies.kernelnewbies.narkive.com/kKXLBu8C/how-to-disable-mod
> ule-verification-failed-signature-and-or-required-key-missing-tainting-ker
> nel
>
> If you change the configuration file, do make olddefconfig
> afterwards to
> make sure your changes are take into account.
>
> Let me know how it goes.
>
> julia
>
>
> >
> > Below is the error I got while installing the kernel build
> >
> > ...
> >
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/hv_sock.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vsock_loopback.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr-
> > mhi.ko
> > DEPMOD/lib/modules/6.14.0-rc1custom-ola+
> > INSTALL /boot
> > run-parts: executing/etc/kernel/postinst.d/dkms
> 6.14.0-rc1custom-ola+
> >/boot/vmlinuz-6.14.0-rc1custom-ola+
> > dkms: running auto installation service for kernel
> 6.14.0-rc1custom-
> > ola+.
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...
> > make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+
> KVER=6.14.0-rc1custom-
> > ola+........(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
> for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit
> status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > 'make' -j4 KVER=6.14.0-rc1custom-ola+
> KSRC=/lib/modules/6.14.0-
> > rc1custom-ola+/build...(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more
> > information.
> > Error! One or more modules failed to install during
> autoinstall.
> > Refer to previous errors for more information.
> > dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed!
> > run-parts:/etc/kernel/postinst.d/dkmsexited with return code
> 11
> > make[2]: *** [arch/x86/Makefile:321: install] Error 1
> > make[1]: ***
> [/home/laolu/Desktop/Outreachy_Contributions/Linux-
> > Kernel/git/kernels/staging/Makefile:372:__build_one_by_one]
> Error 2
> > make[1]: Target 'modules_install' not remade because of
> errors.
> > make[1]: Target 'install' not remade because of errors.
> > make: *** [Makefile:251: __sub-make] Error 2
> > make: Target 'modules_install' not remade because of errors.
> > make: Target 'install' not remade because of errors.
> >
> >
> >
>
>
>
Hi Julia,
Having reviewed previous messages on the mailing list, and running the command:
perl scripts/checkpatch.pl --strict -f drivers/staging/sm750fb/* | less
I found:
------------------------------------drivers/staging/sm750fb/ddk750_dvi.c
------------------------------------
CHECK: Avoid CamelCase: <sii164GetDeviceID> #19: FILE: drivers/staging/sm750fb/ddk750_dvi.c:19:
+ .get_device_id = sii164GetDeviceID,
CHECK: Avoid CamelCase: <sii164ResetChip> #21: FILE: drivers/staging/sm750fb/ddk750_dvi.c:21:
+ .reset_chip = sii164ResetChip,
CHECK: Avoid CamelCase: <sii164GetChipString> #22: FILE: drivers/staging/sm750fb/ddk750_dvi.c:22:
+ .get_chip_string = sii164GetChipString,
CHECK: Avoid CamelCase: <sii164SetPower> #23: FILE: drivers/staging/sm750fb/ddk750_dvi.c:23:
+ .set_power = sii164SetPower,
CHECK: Avoid CamelCase: <sii164EnableHotPlugDetection> #24: FILE: drivers/staging/sm750fb/ddk750_dvi.c:24:
+ .enable_hot_plug_detection = sii164EnableHotPlugDetection,
CHECK: Avoid CamelCase: <sii164IsConnected> #25: FILE: drivers/staging/sm750fb/ddk750_dvi.c:25:
+ .is_connected = sii164IsConnected,
CHECK: Avoid CamelCase: <sii164CheckInterrupt> #26: FILE: drivers/staging/sm750fb/ddk750_dvi.c:26:
+ .check_interrupt = sii164CheckInterrupt,
CHECK: Avoid CamelCase: <sii164ClearInterrupt> #27: FILE: drivers/staging/sm750fb/ddk750_dvi.c:27:
+ .clear_interrupt = sii164ClearInterrupt,
total: 0 errors, 0 warnings, 8 checks, 62 lines checked
I would love to have all the 8 checks done, although I learnt it is one check at a time.
Please how do I go about sending the patches, given the fact that same definitions are
found in file: drivers/staging/sm750fb/ddk750_dvi.c and file:drivers/staging/sm750fb/ddk750_sii164.h
and I don't know which other files they are defined.
Richard Akintola
Quoted 284 lines · Julia Lawall
Quoted 11 lines · Richard Akintola
Hi Julia,
I want to inform you that I have successfully built the kernel. After building successfully, I could not install, I searched on how to build Linux kernel on Debian, so I found the command "make -jN bindeb-pkg" which created a debian packages for easy installation in the parent directory which I installed with the command "sudo apt install ./*.deb".
Thank you for the support so far, I really appreciate, now nothing is standing in the way of sending my patches.
OK, sounds good.
It could be good to review the previous messages on the mailing list to get suggestions of what to focus on and to see what others have done. I will post some more suggestions this weekend.
julia
Quoted 258 lines
Richard Akintola
Quoted 250 lines · Richard Akintola
Thank you Julia, do expect my patches.
Richard
Quoted 243 lines · On Tue, 25 Mar 2025, 21:25 Julia Lawall, <[email protected]> wrote:
Quoted 2 lines · Richard Akintola
Hi Julia,
The reason I haven't sent feedback is that the kernel I built and installed resulted in kernel panic which I am trying to recover from and if I am not able to, I will install a new Os and try again (until I successfully build the kernel).OK, thanks for the update. If you can't make it work in th short term, you could start working on some patches while continuing to try to get the build to work.
julia
Quoted 227 lines
Thank you for the support so far.
Richard Akintola
On Monday, March 24, 2025, Richard Akintola <[email protected]> wrote:
Thank you Julia, I will go about resolving it as recommended
Richard Akintola
On Mon, 24 Mar 2025, 16:06 Julia Lawall, <[email protected]> wrote:
On Mon, 24 Mar 2025, Richard Akintola wrote:
> Good to hear from you Julia,
>
> For the first question: No, I am not using a VM, I am building the kernel on > my machine's Os which is Parrot Linux Os.
>
> And as for the configuration: yes, I am reusing the the configuration of my > host machine - I copied my machine's configuration to the repository as > shown in the tutorial.OK, try to find something related to signatures in your configuration. Distro configurations often have this issue. For Debian there is some PEM thing.
julia
>
> Richard Akintola
>
> On Mon, 24 Mar 2025, 14:57 Julia Lawall, <[email protected]> wrote:
>
>
> On Mon, 24 Mar 2025, Richard Akintola wrote:
>
> > Hello Julia,
> >
> > I have been trying to build the Linux Kernel via the tutorial
> on my
> > machine to no avail.
> >
> > This has prevented me from making a PATCH.
> >
> > This is the Os and Kernel version of my machine
> > OS: Parrot Security 6.3 (lorikeet)x86_64
> > Kernel: 6.5.0-13parrot1-amd64
>
> Sort of basic questions are whether you are using a VM and how
> much memory
> you have.
>
> Afterwards, maybe it is a configuration problems? Are you
> reusing the
> configuration of your host machine? Here are some old posts on
> disabling
> module signing:
>
> https://stackoverflow.com/questions/29806414/how-to-disable-kernel-module-s
> igning-in-linux
> https://kernelnewbies.kernelnewbies.narkive.com/kKXLBu8C/how-to-disable-mod
> ule-verification-failed-signature-and-or-required-key-missing-tainting-ker
> nel
>
> If you change the configuration file, do make olddefconfig
> afterwards to
> make sure your changes are take into account.
>
> Let me know how it goes.
>
> julia
>
>
> >
> > Below is the error I got while installing the kernel build
> >
> > ...
> >
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/hv_sock.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vsock_loopback.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr-
> > mhi.ko
> > DEPMOD/lib/modules/6.14.0-rc1custom-ola+
> > INSTALL /boot
> > run-parts: executing/etc/kernel/postinst.d/dkms
> 6.14.0-rc1custom-ola+
> >/boot/vmlinuz-6.14.0-rc1custom-ola+
> > dkms: running auto installation service for kernel
> 6.14.0-rc1custom-
> > ola+.
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...
> > make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+
> KVER=6.14.0-rc1custom-
> > ola+........(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
> for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit
> status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > 'make' -j4 KVER=6.14.0-rc1custom-ola+
> KSRC=/lib/modules/6.14.0-
> > rc1custom-ola+/build...(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more
> > information.
> > Error! One or more modules failed to install during
> autoinstall.
> > Refer to previous errors for more information.
> > dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed!
> > run-parts:/etc/kernel/postinst.d/dkmsexited with return code
> 11
> > make[2]: *** [arch/x86/Makefile:321: install] Error 1
> > make[1]: ***
> [/home/laolu/Desktop/Outreachy_Contributions/Linux-
> > Kernel/git/kernels/staging/Makefile:372:__build_one_by_one]
> Error 2
> > make[1]: Target 'modules_install' not remade because of
> errors.
> > make[1]: Target 'install' not remade because of errors.
> > make: *** [Makefile:251: __sub-make] Error 2
> > make: Target 'modules_install' not remade because of errors.
> > make: Target 'install' not remade because of errors.
> >
> >
> >
>
>
>
Quoted 47 lines · Richard Akintola
Hi Julia,
Having reviewed previous messages on the mailing list, and running the command:
perlscripts/checkpatch.pl--strict -fdrivers/staging/sm750fb/*| lessI found:
------------------------------------drivers/staging/sm750fb/ddk750_dvi.c
------------------------------------
CHECK: Avoid CamelCase: <sii164GetDeviceID> #19: FILE:drivers/staging/sm750fb/ddk750_dvi.c:19:
+ .get_device_id = sii164GetDeviceID,CHECK: Avoid CamelCase: <sii164ResetChip> #21: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:21:
+ .reset_chip = sii164ResetChip,CHECK: Avoid CamelCase: <sii164GetChipString> #22: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:22:
+ .get_chip_string = sii164GetChipString,CHECK: Avoid CamelCase: <sii164SetPower> #23: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:23:
+ .set_power = sii164SetPower,CHECK: Avoid CamelCase: <sii164EnableHotPlugDetection> #24: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:24:
+ .enable_hot_plug_detection = sii164EnableHotPlugDetection,CHECK: Avoid CamelCase: <sii164IsConnected> #25: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:25:
+ .is_connected = sii164IsConnected,CHECK: Avoid CamelCase: <sii164CheckInterrupt> #26: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:26:
+ .check_interrupt = sii164CheckInterrupt,CHECK: Avoid CamelCase: <sii164ClearInterrupt> #27: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:27:
+ .clear_interrupt = sii164ClearInterrupt,total: 0 errors, 0 warnings, 8 checks, 62 lines checked
I would love to have all the 8 checks done, although I learnt it is one check at a time.
Quoted 8 lines
Please how do I go about sending the patches, given the fact that same definitions are
found in file:drivers/staging/sm750fb/ddk750_dvi.cand file:drivers/staging/sm750fb/ddk750_sii164.h
and I don't know which other files they are defined.Richard Akintola
Hello Richard
Here are some steps to send your patch
1. Since you have identified the files that checkpatch has checks for, you can pick some of the files to modify and assess if it is
appropriate to modify the file
2. If it is appropriate to modify, then modify it to adhere to Linux coding styles and/or any other files you want to modify
3. Rebuild to be sure nothing breaks and no compiler errors using make drivers/staging/
4. If nothing breaks and all is fine, you can view your modified files with git diff
5. Add your modified file to the staging area using git add -A
6. Commit your changes using git commit -s -v, writing your commit messages
7. Use git format-patch -o /tmp/ HEAD^ to format your commit into a patch
8. Use mutt -H /tmp/<filename.patch> or git send-mail to send your patch
I hope this helps
Adekunle
Quoted 43 lines · Richard Akintola
Hi Julia,
Having reviewed previous messages on the mailing list, and running the command:
perlscripts/checkpatch.pl--strict -fdrivers/staging/sm750fb/*| lessI found:
------------------------------------drivers/staging/sm750fb/ddk750_dvi.c
------------------------------------
CHECK: Avoid CamelCase: <sii164GetDeviceID> #19: FILE:drivers/staging/sm750fb/ddk750_dvi.c:19:
+ .get_device_id = sii164GetDeviceID,CHECK: Avoid CamelCase: <sii164ResetChip> #21: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:21:
+ .reset_chip = sii164ResetChip,CHECK: Avoid CamelCase: <sii164GetChipString> #22: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:22:
+ .get_chip_string = sii164GetChipString,CHECK: Avoid CamelCase: <sii164SetPower> #23: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:23:
+ .set_power = sii164SetPower,CHECK: Avoid CamelCase: <sii164EnableHotPlugDetection> #24: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:24:
+ .enable_hot_plug_detection = sii164EnableHotPlugDetection,CHECK: Avoid CamelCase: <sii164IsConnected> #25: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:25:
+ .is_connected = sii164IsConnected,CHECK: Avoid CamelCase: <sii164CheckInterrupt> #26: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:26:
+ .check_interrupt = sii164CheckInterrupt,CHECK: Avoid CamelCase: <sii164ClearInterrupt> #27: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:27:
+ .clear_interrupt = sii164ClearInterrupt,total: 0 errors, 0 warnings, 8 checks, 62 lines checked
Quoted 8 lines
I would love to have all the 8 checks done, although I learnt it is one check at a time.
Please how do I go about sending the patches, given the fact that same definitions are
found in file:drivers/staging/sm750fb/ddk750_dvi.cand file:drivers/staging/sm750fb/ddk750_sii164.h
and I don't know which other files they are defined.
It looks like you should be able to find the function definitions using grep. You can make one patch that contains all of the changes in all the relevant files. Remember to compile your kernel to be sure that everything is consistent.
julia
Quoted 289 lines
Richard Akintola
Quoted 284 lines · Julia Lawall
Quoted 11 lines · Richard Akintola
Hi Julia,
I want to inform you that I have successfully built the kernel. After building successfully, I could not install, I searched on how to build Linux kernel on Debian, so I found the command "make -jN bindeb-pkg" which created a debian packages for easy installation in the parent directory which I installed with the command "sudo apt install ./*.deb".
Thank you for the support so far, I really appreciate, now nothing is standing in the way of sending my patches.
OK, sounds good.
It could be good to review the previous messages on the mailing list to get suggestions of what to focus on and to see what others have done. I will post some more suggestions this weekend.
julia
Quoted 258 lines
Richard Akintola
Quoted 250 lines · Richard Akintola
Thank you Julia, do expect my patches.
Richard
Quoted 243 lines · On Tue, 25 Mar 2025, 21:25 Julia Lawall, <[email protected]> wrote:
Quoted 2 lines · Richard Akintola
Hi Julia,
The reason I haven't sent feedback is that the kernel I built and installed resulted in kernel panic which I am trying to recover from and if I am not able to, I will install a new Os and try again (until I successfully build the kernel).OK, thanks for the update. If you can't make it work in th short term, you could start working on some patches while continuing to try to get the build to work.
julia
Quoted 227 lines
Thank you for the support so far.
Richard Akintola
On Monday, March 24, 2025, Richard Akintola <[email protected]> wrote:
Thank you Julia, I will go about resolving it as recommended
Richard Akintola
On Mon, 24 Mar 2025, 16:06 Julia Lawall, <[email protected]> wrote:
On Mon, 24 Mar 2025, Richard Akintola wrote:
> Good to hear from you Julia,
>
> For the first question: No, I am not using a VM, I am building the kernel on > my machine's Os which is Parrot Linux Os.
>
> And as for the configuration: yes, I am reusing the the configuration of my > host machine - I copied my machine's configuration to the repository as > shown in the tutorial.OK, try to find something related to signatures in your configuration. Distro configurations often have this issue. For Debian there is some PEM thing.
julia
>
> Richard Akintola
>
> On Mon, 24 Mar 2025, 14:57 Julia Lawall, <[email protected]> wrote:
>
>
> On Mon, 24 Mar 2025, Richard Akintola wrote:
>
> > Hello Julia,
> >
> > I have been trying to build the Linux Kernel via the tutorial
> on my
> > machine to no avail.
> >
> > This has prevented me from making a PATCH.
> >
> > This is the Os and Kernel version of my machine
> > OS: Parrot Security 6.3 (lorikeet)x86_64
> > Kernel: 6.5.0-13parrot1-amd64
>
> Sort of basic questions are whether you are using a VM and how
> much memory
> you have.
>
> Afterwards, maybe it is a configuration problems? Are you
> reusing the
> configuration of your host machine? Here are some old posts on
> disabling
> module signing:
>
> https://stackoverflow.com/questions/29806414/how-to-disable-kernel-module-s
> igning-in-linux
> https://kernelnewbies.kernelnewbies.narkive.com/kKXLBu8C/how-to-disable-mod
> ule-verification-failed-signature-and-or-required-key-missing-tainting-ker
> nel
>
> If you change the configuration file, do make olddefconfig
> afterwards to
> make sure your changes are take into account.
>
> Let me know how it goes.
>
> julia
>
>
> >
> > Below is the error I got while installing the kernel build
> >
> > ...
> >
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/hv_sock.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vsock_loopback.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr-
> > mhi.ko
> > DEPMOD/lib/modules/6.14.0-rc1custom-ola+
> > INSTALL /boot
> > run-parts: executing/etc/kernel/postinst.d/dkms
> 6.14.0-rc1custom-ola+
> >/boot/vmlinuz-6.14.0-rc1custom-ola+
> > dkms: running auto installation service for kernel
> 6.14.0-rc1custom-
> > ola+.
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...
> > make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+
> KVER=6.14.0-rc1custom-
> > ola+........(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
> for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit
> status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > 'make' -j4 KVER=6.14.0-rc1custom-ola+
> KSRC=/lib/modules/6.14.0-
> > rc1custom-ola+/build...(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more
> > information.
> > Error! One or more modules failed to install during
> autoinstall.
> > Refer to previous errors for more information.
> > dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed!
> > run-parts:/etc/kernel/postinst.d/dkmsexited with return code
> 11
> > make[2]: *** [arch/x86/Makefile:321: install] Error 1
> > make[1]: ***
> [/home/laolu/Desktop/Outreachy_Contributions/Linux-
> > Kernel/git/kernels/staging/Makefile:372:__build_one_by_one]
> Error 2
> > make[1]: Target 'modules_install' not remade because of
> errors.
> > make[1]: Target 'install' not remade because of errors.
> > make: *** [Makefile:251: __sub-make] Error 2
> > make: Target 'modules_install' not remade because of errors.
> > make: Target 'install' not remade because of errors.
> >
> >
> >
>
>
>
Finally submitted a patch.
Thank you Julia.
Thank you Adekunle.
Richard Akintola
Quoted 353 lines · Julia Lawall
Quoted 43 lines · Richard Akintola
Hi Julia,
Having reviewed previous messages on the mailing list, and running the command:
perlscripts/checkpatch.pl--strict -fdrivers/staging/sm750fb/*| lessI found:
------------------------------------drivers/staging/sm750fb/ddk750_dvi.c
------------------------------------
CHECK: Avoid CamelCase: <sii164GetDeviceID> #19: FILE:drivers/staging/sm750fb/ddk750_dvi.c:19:
+ .get_device_id = sii164GetDeviceID,CHECK: Avoid CamelCase: <sii164ResetChip> #21: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:21:
+ .reset_chip = sii164ResetChip,CHECK: Avoid CamelCase: <sii164GetChipString> #22: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:22:
+ .get_chip_string = sii164GetChipString,CHECK: Avoid CamelCase: <sii164SetPower> #23: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:23:
+ .set_power = sii164SetPower,CHECK: Avoid CamelCase: <sii164EnableHotPlugDetection> #24: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:24:
+ .enable_hot_plug_detection = sii164EnableHotPlugDetection,CHECK: Avoid CamelCase: <sii164IsConnected> #25: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:25:
+ .is_connected = sii164IsConnected,CHECK: Avoid CamelCase: <sii164CheckInterrupt> #26: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:26:
+ .check_interrupt = sii164CheckInterrupt,CHECK: Avoid CamelCase: <sii164ClearInterrupt> #27: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:27:
+ .clear_interrupt = sii164ClearInterrupt,total: 0 errors, 0 warnings, 8 checks, 62 lines checked
Quoted 8 lines
I would love to have all the 8 checks done, although I learnt it is one check at a time.
Please how do I go about sending the patches, given the fact that same definitions are
found in file:drivers/staging/sm750fb/ddk750_dvi.cand file:drivers/staging/sm750fb/ddk750_sii164.h
and I don't know which other files they are defined.It looks like you should be able to find the function definitions using grep. You can make one patch that contains all of the changes in all the relevant files. Remember to compile your kernel to be sure that everything is consistent.
julia
Quoted 289 lines
Richard Akintola
Quoted 284 lines · Julia Lawall
Quoted 11 lines · Richard Akintola
Hi Julia,
I want to inform you that I have successfully built the kernel. After building successfully, I could not install, I searched on how to build Linux kernel on Debian, so I found the command "make -jN bindeb-pkg" which created a debian packages for easy installation in the parent directory which I installed with the command "sudo apt install ./*.deb".
Thank you for the support so far, I really appreciate, now nothing is standing in the way of sending my patches.
OK, sounds good.
It could be good to review the previous messages on the mailing list to get suggestions of what to focus on and to see what others have done. I will post some more suggestions this weekend.
julia
Quoted 258 lines
Richard Akintola
Quoted 250 lines · Richard Akintola
Thank you Julia, do expect my patches.
Richard
Quoted 243 lines · On Tue, 25 Mar 2025, 21:25 Julia Lawall, <[email protected]> wrote:
Quoted 2 lines · Richard Akintola
Hi Julia,
The reason I haven't sent feedback is that the kernel I built and installed resulted in kernel panic which I am trying to recover from and if I am not able to, I will install a new Os and try again (until I successfully build the kernel).OK, thanks for the update. If you can't make it work in th short term, you could start working on some patches while continuing to try to get the build to work.
julia
Quoted 227 lines
Thank you for the support so far.
Richard Akintola
On Monday, March 24, 2025, Richard Akintola <[email protected]> wrote:
Thank you Julia, I will go about resolving it as recommended
Richard Akintola
On Mon, 24 Mar 2025, 16:06 Julia Lawall, <[email protected]> wrote:
On Mon, 24 Mar 2025, Richard Akintola wrote:
> Good to hear from you Julia,
>
> For the first question: No, I am not using a VM, I am building the kernel on > my machine's Os which is Parrot Linux Os.
>
> And as for the configuration: yes, I am reusing the the configuration of my > host machine - I copied my machine's configuration to the repository as > shown in the tutorial.OK, try to find something related to signatures in your configuration. Distro configurations often have this issue. For Debian there is some PEM thing.
julia
>
> Richard Akintola
>
> On Mon, 24 Mar 2025, 14:57 Julia Lawall, <[email protected]> wrote:
>
>
> On Mon, 24 Mar 2025, Richard Akintola wrote:
>
> > Hello Julia,
> >
> > I have been trying to build the Linux Kernel via the tutorial
> on my
> > machine to no avail.
> >
> > This has prevented me from making a PATCH.
> >
> > This is the Os and Kernel version of my machine
> > OS: Parrot Security 6.3 (lorikeet)x86_64
> > Kernel: 6.5.0-13parrot1-amd64
>
> Sort of basic questions are whether you are using a VM and how
> much memory
> you have.
>
> Afterwards, maybe it is a configuration problems? Are you
> reusing the
> configuration of your host machine? Here are some old posts on
> disabling
> module signing:
>
> https://stackoverflow.com/questions/29806414/how-to-disable-kernel-module-s
> igning-in-linux
> https://kernelnewbies.kernelnewbies.narkive.com/kKXLBu8C/how-to-disable-mod
> ule-verification-failed-signature-and-or-required-key-missing-tainting-ker
> nel
>
> If you change the configuration file, do make olddefconfig
> afterwards to
> make sure your changes are take into account.
>
> Let me know how it goes.
>
> julia
>
>
> >
> > Below is the error I got while installing the kernel build
> >
> > ...
> >
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/hv_sock.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vsock_loopback.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr-
> > mhi.ko
> > DEPMOD/lib/modules/6.14.0-rc1custom-ola+
> > INSTALL /boot
> > run-parts: executing/etc/kernel/postinst.d/dkms
> 6.14.0-rc1custom-ola+
> >/boot/vmlinuz-6.14.0-rc1custom-ola+
> > dkms: running auto installation service for kernel
> 6.14.0-rc1custom-
> > ola+.
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...
> > make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+
> KVER=6.14.0-rc1custom-
> > ola+........(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
> for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit
> status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > 'make' -j4 KVER=6.14.0-rc1custom-ola+
> KSRC=/lib/modules/6.14.0-
> > rc1custom-ola+/build...(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more
> > information.
> > Error! One or more modules failed to install during
> autoinstall.
> > Refer to previous errors for more information.
> > dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed!
> > run-parts:/etc/kernel/postinst.d/dkmsexited with return code
> 11
> > make[2]: *** [arch/x86/Makefile:321: install] Error 1
> > make[1]: ***
> [/home/laolu/Desktop/Outreachy_Contributions/Linux-
> > Kernel/git/kernels/staging/Makefile:372:__build_one_by_one]
> Error 2
> > make[1]: Target 'modules_install' not remade because of
> errors.
> > make[1]: Target 'install' not remade because of errors.
> > make: *** [Makefile:251: __sub-make] Error 2
> > make: Target 'modules_install' not remade because of errors.
> > make: Target 'install' not remade because of errors.
> >
> >
> >
>
>
>
Quoted 1 line · Richard Akintola
Finally submitted a patch.
Looks good. Now do another.
julia
Quoted 360 lines
Thank you Julia.
Thank you Adekunle.Richard Akintola
Quoted 353 lines · Julia Lawall
Quoted 43 lines · Richard Akintola
Hi Julia,
Having reviewed previous messages on the mailing list, and running the command:
perlscripts/checkpatch.pl--strict -fdrivers/staging/sm750fb/*| lessI found:
------------------------------------drivers/staging/sm750fb/ddk750_dvi.c
------------------------------------
CHECK: Avoid CamelCase: <sii164GetDeviceID> #19: FILE:drivers/staging/sm750fb/ddk750_dvi.c:19:
+ .get_device_id = sii164GetDeviceID,CHECK: Avoid CamelCase: <sii164ResetChip> #21: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:21:
+ .reset_chip = sii164ResetChip,CHECK: Avoid CamelCase: <sii164GetChipString> #22: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:22:
+ .get_chip_string = sii164GetChipString,CHECK: Avoid CamelCase: <sii164SetPower> #23: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:23:
+ .set_power = sii164SetPower,CHECK: Avoid CamelCase: <sii164EnableHotPlugDetection> #24: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:24:
+ .enable_hot_plug_detection = sii164EnableHotPlugDetection,CHECK: Avoid CamelCase: <sii164IsConnected> #25: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:25:
+ .is_connected = sii164IsConnected,CHECK: Avoid CamelCase: <sii164CheckInterrupt> #26: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:26:
+ .check_interrupt = sii164CheckInterrupt,CHECK: Avoid CamelCase: <sii164ClearInterrupt> #27: FILE:
drivers/staging/sm750fb/ddk750_dvi.c:27:
+ .clear_interrupt = sii164ClearInterrupt,total: 0 errors, 0 warnings, 8 checks, 62 lines checked
Quoted 8 lines
I would love to have all the 8 checks done, although I learnt it is one check at a time.
Please how do I go about sending the patches, given the fact that same definitions are
found in file:drivers/staging/sm750fb/ddk750_dvi.cand file:drivers/staging/sm750fb/ddk750_sii164.h
and I don't know which other files they are defined.It looks like you should be able to find the function definitions using grep. You can make one patch that contains all of the changes in all the relevant files. Remember to compile your kernel to be sure that everything is consistent.
julia
Quoted 289 lines
Richard Akintola
Quoted 284 lines · Julia Lawall
Quoted 11 lines · Richard Akintola
Hi Julia,
I want to inform you that I have successfully built the kernel. After building successfully, I could not install, I searched on how to build Linux kernel on Debian, so I found the command "make -jN bindeb-pkg" which created a debian packages for easy installation in the parent directory which I installed with the command "sudo apt install ./*.deb".
Thank you for the support so far, I really appreciate, now nothing is standing in the way of sending my patches.
OK, sounds good.
It could be good to review the previous messages on the mailing list to get suggestions of what to focus on and to see what others have done. I will post some more suggestions this weekend.
julia
Quoted 258 lines
Richard Akintola
Quoted 250 lines · Richard Akintola
Thank you Julia, do expect my patches.
Richard
Quoted 243 lines · On Tue, 25 Mar 2025, 21:25 Julia Lawall, <[email protected]> wrote:
Quoted 2 lines · Richard Akintola
Hi Julia,
The reason I haven't sent feedback is that the kernel I built and installed resulted in kernel panic which I am trying to recover from and if I am not able to, I will install a new Os and try again (until I successfully build the kernel).OK, thanks for the update. If you can't make it work in th short term, you could start working on some patches while continuing to try to get the build to work.
julia
Quoted 227 lines
Thank you for the support so far.
Richard Akintola
On Monday, March 24, 2025, Richard Akintola <[email protected]> wrote:
Thank you Julia, I will go about resolving it as recommended
Richard Akintola
On Mon, 24 Mar 2025, 16:06 Julia Lawall, <[email protected]> wrote:
On Mon, 24 Mar 2025, Richard Akintola wrote:
> Good to hear from you Julia,
>
> For the first question: No, I am not using a VM, I am building the kernel on > my machine's Os which is Parrot Linux Os.
>
> And as for the configuration: yes, I am reusing the the configuration of my > host machine - I copied my machine's configuration to the repository as > shown in the tutorial.OK, try to find something related to signatures in your configuration. Distro configurations often have this issue. For Debian there is some PEM thing.
julia
>
> Richard Akintola
>
> On Mon, 24 Mar 2025, 14:57 Julia Lawall, <[email protected]> wrote:
>
>
> On Mon, 24 Mar 2025, Richard Akintola wrote:
>
> > Hello Julia,
> >
> > I have been trying to build the Linux Kernel via the tutorial
> on my
> > machine to no avail.
> >
> > This has prevented me from making a PATCH.
> >
> > This is the Os and Kernel version of my machine
> > OS: Parrot Security 6.3 (lorikeet)x86_64
> > Kernel: 6.5.0-13parrot1-amd64
>
> Sort of basic questions are whether you are using a VM and how
> much memory
> you have.
>
> Afterwards, maybe it is a configuration problems? Are you
> reusing the
> configuration of your host machine? Here are some old posts on
> disabling
> module signing:
>
> https://stackoverflow.com/questions/29806414/how-to-disable-kernel-module-s
> igning-in-linux
> https://kernelnewbies.kernelnewbies.narkive.com/kKXLBu8C/how-to-disable-mod
> ule-verification-failed-signature-and-or-required-key-missing-tainting-ker
> nel
>
> If you change the configuration file, do make olddefconfig
> afterwards to
> make sure your changes are take into account.
>
> Let me know how it goes.
>
> julia
>
>
> >
> > Below is the error I got while installing the kernel build
> >
> > ...
> >
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/hv_sock.ko
> > INSTALL/lib/modules/6.14.0-rc1custom-
> >ola+/kernel/net/vmw_vsock/vsock_loopback.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko
> > INSTALL
>/lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr-
> > mhi.ko
> > DEPMOD/lib/modules/6.14.0-rc1custom-ola+
> > INSTALL /boot
> > run-parts: executing/etc/kernel/postinst.d/dkms
> 6.14.0-rc1custom-ola+
> >/boot/vmlinuz-6.14.0-rc1custom-ola+
> > dkms: running auto installation service for kernel
> 6.14.0-rc1custom-
> > ola+.
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > readelf: Error: Not an ELF file - it has the wrong magic bytes
> at the
> > start
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...
> > make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+
> KVER=6.14.0-rc1custom-
> > ola+........(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
> for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit
> status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more
> > information.
> > Sign command:
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-
> > file
> > Binary
>/lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-filenot
> > found, modules won't be signed
> >
> > Building module:
> > Cleaning build area...(bad exit status: 2)
> > 'make' -j4 KVER=6.14.0-rc1custom-ola+
> KSRC=/lib/modules/6.14.0-
> > rc1custom-ola+/build...(bad exit status: 2)
> > Error! Bad return status for module build on kernel:
> 6.14.0-rc1custom-
> > ola+ (x86_64)
> > Consult/var/lib/dkms/realtek-
> > rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more
> > information.
> > Error! One or more modules failed to install during
> autoinstall.
> > Refer to previous errors for more information.
> > dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed!
> > run-parts:/etc/kernel/postinst.d/dkmsexited with return code
> 11
> > make[2]: *** [arch/x86/Makefile:321: install] Error 1
> > make[1]: ***
> [/home/laolu/Desktop/Outreachy_Contributions/Linux-
> > Kernel/git/kernels/staging/Makefile:372:__build_one_by_one]
> Error 2
> > make[1]: Target 'modules_install' not remade because of
> errors.
> > make[1]: Target 'install' not remade because of errors.
> > make: *** [Makefile:251: __sub-make] Error 2
> > make: Target 'modules_install' not remade because of errors.
> > make: Target 'install' not remade because of errors.
> >
> >
> >
>
>
>