Skip to content
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

Kernel 6.6.31 install fails on reComputer-R100x #105

Closed
robertsLando opened this issue Jul 26, 2024 · 1 comment
Closed

Kernel 6.6.31 install fails on reComputer-R100x #105

robertsLando opened this issue Jul 26, 2024 · 1 comment
Assignees
Labels
seeed-linux-dtoverlays Label for seeed-linux-dtoverlays UAY Unassigned yet

Comments

@robertsLando
Copy link

Describe the bug

I have followed the steps described on docs.

After cloning this repo and running the command: sudo ./scripts/reTerminal.sh --device reComputer-R100x

I get many errors related to latest kernel installation: linux-headers-6.6.31+rpt-rpi-v8

To Reproduce

Steps to reproduce the behavior:

See above

Expected behavior

The installation to complete successfully

Additional context

Script error

### Install required kernel package
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-image-rpi-v8 is already the newest version (1:6.6.31-1+rpt1).
linux-headers-rpi-v8 is already the newest version (1:6.6.31-1+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-6.6.31+rpt-rpi-v8 (1:6.6.31-1+rpt1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.6.31+rpt-rpi-v8.
Sign command: /lib/modules/6.6.31+rpt-rpi-v8/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.6.31+rpt-rpi-v8 all KVERSION=6.6.31+rpt-rpi-v8....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.31+rpt-rpi-v8 (aarch64)
Consult /var/lib/dkms/ch34x/0.1/build/make.log for more information.
Sign command: /lib/modules/6.6.31+rpt-rpi-v8/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.6.31+rpt-rpi-v8 all KVERSION=6.6.31+rpt-rpi-v8....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.31+rpt-rpi-v8 (aarch64)
Consult /var/lib/dkms/ili9881d/0.1/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.6.31+rpt-rpi-v8 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.6.31+rpt-rpi-v8 (--configure):
 installed linux-image-6.6.31+rpt-rpi-v8 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-rpi-v8:
 linux-image-rpi-v8 depends on linux-image-6.6.31+rpt-rpi-v8 (= 1:6.6.31-1+rpt1); however:
  Package linux-image-6.6.31+rpt-rpi-v8 is not configured yet.

dpkg: error processing package linux-image-rpi-v8 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-6.6.31+rpt-rpi-v8:
 linux-headers-6.6.31+rpt-rpi-v8 depends on linux-image-6.6.31+rpt-rpi-v8 (= 1:6.6.31-1+rpt1) | linux-image-6.6.31+rpt-rpi-v8-unsigned (= 1:6.6.31-1+rpt1); however:
  Package linux-image-6.6.31+rpt-rpi-v8 is not configured yet.
  Package linux-image-6.6.31+rpt-rpi-v8-unsigned is not installed.

dpkg: error processing package linux-headers-6.6.31+rpt-rpi-v8 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-rpi-v8:
 linux-headers-rpi-v8 depends on linux-headers-6.6.31+rpt-rpi-v8 (= 1:6.6.31-1+rpt1); however:
  Package linux-headers-6.6.31+rpt-rpi-v8 is not configured yet.

dpkg: error processing package linux-headers-rpi-v8 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-6.6.31+rpt-rpi-v8
 linux-image-rpi-v8
 linux-headers-6.6.31+rpt-rpi-v8
 linux-headers-rpi-v8
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-image-rpi-v8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Version '' for 'linux-image-rpi-v8' was not found
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-headers-rpi-v8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Version '' for 'linux-headers-rpi-v8' was not found
KBUILD: /lib/modules/6.1.0-rpi6-rpi-v8/build
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /var/lib/dkms/rtc-pcf8563w/0.1/source -> /usr/src/rtc-pcf8563w-0.1

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.1.0-rpi6-rpi-v8 all KVERSION=6.1.0-rpi6-rpi-v8....
Signing module /var/lib/dkms/rtc-pcf8563w/0.1/build/rtc-pcf8563w.ko
Cleaning build area...

rtc-pcf8563w.ko.xz:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-rpi6-rpi-v8/updates/dkms/
depmod....
  DTC     overlays/rpi/reComputer-R100x-overlay.dtbo
'overlays/rpi/reComputer-R100x-overlay.dtbo' -> '/boot/firmware/overlays/reComputer-R100x.dtbo'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libgpiod-dev is already the newest version (1.6.3-1+b3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-6.6.31+rpt-rpi-v8 (1:6.6.31-1+rpt1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.6.31+rpt-rpi-v8.
Sign command: /lib/modules/6.6.31+rpt-rpi-v8/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.6.31+rpt-rpi-v8 all KVERSION=6.6.31+rpt-rpi-v8....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.31+rpt-rpi-v8 (aarch64)
Consult /var/lib/dkms/ch34x/0.1/build/make.log for more information.
Sign command: /lib/modules/6.6.31+rpt-rpi-v8/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.6.31+rpt-rpi-v8 all KVERSION=6.6.31+rpt-rpi-v8....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.31+rpt-rpi-v8 (aarch64)
Consult /var/lib/dkms/ili9881d/0.1/build/make.log for more information.
Sign command: /lib/modules/6.6.31+rpt-rpi-v8/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.6.31+rpt-rpi-v8 all KVERSION=6.6.31+rpt-rpi-v8....
Signing module /var/lib/dkms/rtc-pcf8563w/0.1/build/rtc-pcf8563w.ko
Cleaning build area...

rtc-pcf8563w.ko.xz:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.6.31+rpt-rpi-v8/updates/dkms/
depmod....
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.6.31+rpt-rpi-v8 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.6.31+rpt-rpi-v8 (--configure):
 installed linux-image-6.6.31+rpt-rpi-v8 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-rpi-v8:
 linux-image-rpi-v8 depends on linux-image-6.6.31+rpt-rpi-v8 (= 1:6.6.31-1+rpt1); however:
  Package linux-image-6.6.31+rpt-rpi-v8 is not configured yet.

dpkg: error processing package linux-image-rpi-v8 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-6.6.31+rpt-rpi-v8:
 linux-headers-6.6.31+rpt-rpi-v8 depends on linux-image-6.6.31+rpt-rpi-v8 (= 1:6.6.31-1+rpt1) | linux-image-6.6.31+rpt-rpi-v8-unsigned (= 1:6.6.31-1+rpt1); however:
  Package linux-image-6.6.31+rpt-rpi-v8 is not configured yet.
  Package linux-image-6.6.31+rpt-rpi-v8-unsigned is not installed.

dpkg: error processing package linux-headers-6.6.31+rpt-rpi-v8 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-rpi-v8:
 linux-headers-rpi-v8 depends on linux-headers-6.6.31+rpt-rpi-v8 (= 1:6.6.31-1+rpt1); however:
  Package linux-headers-6.6.31+rpt-rpi-v8 is not configured yet.

dpkg: error processing package linux-headers-rpi-v8 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-6.6.31+rpt-rpi-v8
 linux-image-rpi-v8
 linux-headers-6.6.31+rpt-rpi-v8
 linux-headers-rpi-v8
E: Sub-process /usr/bin/dpkg returned an error code (1)

Make log

pi@raspberrypi:~/seeed-linux-dtoverlays $ cat /var/lib/dkms/ch34x/0.1/build/make.log
DKMS make.log for ch34x-0.1 for kernel 6.6.31+rpt-rpi-v8 (aarch64)
Fri 26 Jul 09:03:22 CEST 2024
make -C /lib/modules/6.6.31+rpt-rpi-v8/build M=/var/lib/dkms/ch34x/0.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-6.6.31+rpt-rpi-v8'
  CC [M]  /var/lib/dkms/ch34x/0.1/build/ch343.o
/var/lib/dkms/ch34x/0.1/build/ch343.c:1251:20: error: initialization of ‘void (*)(struct tty_port *, bool)’ {aka ‘void (*)(struct tty_port *, _Bool)’} from incompatible pointer type ‘void (*)(struct tty_port *, int)’ [-Werror=incompatible-pointer-types]
 1251 |         .dtr_rts = ch343_port_dtr_rts,
      |                    ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/ch34x/0.1/build/ch343.c:1251:20: note: (near initialization for ‘ch343_port_ops.dtr_rts’)
/var/lib/dkms/ch34x/0.1/build/ch343.c:1803:18: error: initialization of ‘ssize_t (*)(struct tty_struct *, const u8 *, size_t)’ {aka ‘long int (*)(struct tty_struct *, const unsigned char *, long unsigned int)’} from incompatible pointer type ‘int (*)(struct tty_struct *, const unsigned char *, int)’ [-Werror=incompatible-pointer-types]
 1803 |         .write = ch343_tty_write,
      |                  ^~~~~~~~~~~~~~~
/var/lib/dkms/ch34x/0.1/build/ch343.c:1803:18: note: (near initialization for ‘ch343_ops.write’)
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-6.6.31+rpt-common-rpi/scripts/Makefile.build:248: /var/lib/dkms/ch34x/0.1/build/ch343.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.31+rpt-common-rpi/Makefile:1938: /var/lib/dkms/ch34x/0.1/build] Error 2
make[1]: *** [/usr/src/linux-headers-6.6.31+rpt-common-rpi/Makefile:246: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.31+rpt-rpi-v8'
make: *** [Makefile:13: all] Error 2
@robertsLando robertsLando changed the title Kernel install fails on reComputer-R100x Kernel 6.6.31 install fails on reComputer-R100x Jul 26, 2024
@MatthewJeffson MatthewJeffson added UAY Unassigned yet seeed-linux-dtoverlays Label for seeed-linux-dtoverlays labels Oct 9, 2024
@is-qian
Copy link
Contributor

is-qian commented Oct 16, 2024

Please use the latest code where the unnecessary drivers, ch343 and ili9881d, have been removed. The compilation error issues for these two drivers have also been fixed in commit .Feel free to raise any further questions you may have.

@is-qian is-qian closed this as completed Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
seeed-linux-dtoverlays Label for seeed-linux-dtoverlays UAY Unassigned yet
Projects
Status: Done
Development

No branches or pull requests

3 participants