radxa-repo / rbuild

Radxa Image Builder (Maintenance mode)
https://radxa-repo.github.io/rbuild/
GNU General Public License v3.0
53 stars 44 forks source link

r8125-dkms and radxa-cm3-io #18

Closed NickEngmann closed 1 year ago

NickEngmann commented 1 year ago

Been utilizing the bsp repositories to build the u-boot(latest, 2023.04) and kernel (latest, 6.3.2) to then use rbuild to compile a working image using the command below: ./rbuild radxa-cm3-io bullseye cli -c latest

Currently facing an issue where I am not getting the image to properly compile with rebuild because the compilation seems to be breaking on the r8125-dkms build with the following error:

2023/05/31 20:41:50 set -e... | Setting up dkms (2.8.4-3) ...
2023/05/31 20:41:52 set -e... | Setting up r8125-dkms (9.010.01-1) ...
2023/05/31 20:41:54 set -e... | Loading new r8125-9.010.01 DKMS files...
2023/05/31 20:42:01 set -e... | It is likely that 5.10.0-18-amd64 belongs to a chroot's host
2023/05/31 20:42:01 set -e... | Building for 6.3.2-1-latest
2023/05/31 20:42:05 set -e... | Building initial module for 6.3.2-1-latest
2023/05/31 20:43:05 set -e... | Error! Bad return status for module build on kernel: 6.3.2-1-latest (aarch64)
2023/05/31 20:43:05 set -e... | Consult /var/lib/dkms/r8125/9.010.01/build/make.log for more information.
2023/05/31 20:43:05 set -e... | dpkg: error processing package r8125-dkms (--configure):
2023/05/31 20:43:05 set -e... |  installed r8125-dkms package post-installation script subprocess returned error exit status 10
2023/05/31 20:43:05 set -e... | Processing triggers for libc-bin (2.31-13+deb11u6) ...
2023/05/31 20:43:06 set -e... | Processing triggers for man-db (2.9.4-2) ...
https://github.com/armbian/build/pull/47942023/05/31 20:43:56 set -e... | Processing triggers for initramfs-tools (0.140) ...
2023/05/31 20:43:58 set -e... | update-initramfs: Generating /boot/initrd.img-6.3.2-1-latest
2023/05/31 20:47:07 set -e... | I: The initramfs will attempt to resume from /dev/vda3
2023/05/31 20:47:07 set -e... | I: (UUID=2eb29ed5-48eb-4758-80c0-fb42e95611f2)
2023/05/31 20:47:08 set -e... | I: Set the RESUME variable to override this.
2023/05/31 20:47:39 set -e... | Errors were encountered while processing:
2023/05/31 20:47:39 set -e... |  r8125-dkms
2023/05/31 20:47:41 set -e... | E: Sub-process /usr/bin/dpkg returned an error code (1)
2023/05/31 20:47:41 Action `Install dkms packages` failed at stage Run, error: exit status 100
Powering off.

Is there any way to debug this error and compile an image on a new kernel?

I have also tried compiling images created using the armbian build system(kernel 5.10.0), but those images are running into a similar error.

RadxaYuntian commented 1 year ago

r8125-dkms does not support the latest kernel. You can remove BOARD_DKMS from configs/radxa-cm3-io.conf and build your image. For CM3 IO this package is not essential.