matsujirushi / seeed-linux-dtoverlays

Device Tree Overlays for Seeed boards
Other
1 stars 2 forks source link

[64-bit 2024-03-12-raspios-bookworm-arm64] An error occurred in "dkms build mipi_dsi/0.1" #12

Open matsujirushi opened 8 months ago

matsujirushi commented 8 months ago
$ sudo ./scripts/reTerminal2.sh

### Environment
# script commit:                2.0.0-2-gcd30fcd
# model:                        reTerminal
# generator comment:            Raspberry Pi reference 2024-03-12
# distributor ID:               Debian
# distributor code:             bookworm
# kernel release:               6.6.20+rpt-rpi-v8
# machine:                      aarch64
# package manager architecture: arm64
# bootfs:                       /boot/firmware
# kernel package name:          linux-image-rpi-v8
# kernel headers package name:  linux-headers-rpi-v8
# display manager:              lightdm
# greeter session:              pi-greeter-wayfire
# user session:                 LXDE-pi-wayfire

### Options
# exit after print environment: n
# uninstall modules only:       n

### Check prerequisites
## Update package list
# apt-get update
## Check distributor
## Check user
## Check bootfs free space
## Check kernel version

### Packages required
## Install/upgrade packages
# apt-get -y --no-install-recommends install dkms

### Kernel header package required
## Get the version of the kernel package
# 1:6.6.20-1+rpt1
## Get the version of the kernel headers package
# 1:6.6.20-1+rpt1

### Install modules
## Remove modules
# dkms remove mipi_dsi/0.1 --all
# dkms remove ltr30x/0.1 --all
# dkms remove lis3lv02d/0.1 --all
# dkms remove bq24179_charger/0.1 --all
## Remove all module source
# rm -rf /usr/src/mipi_dsi-0.1
# rm -rf /usr/src/ltr30x-0.1
# rm -rf /usr/src/lis3lv02d-0.1
# rm -rf /usr/src/bq24179_charger-0.1
## Copy all module source
# rm -rf /usr/src/mipi_dsi-0.1
# cp -r /home/pi/seeed-linux-dtoverlays/modules/mipi_dsi /usr/src/mipi_dsi-0.1
# rm -rf /usr/src/ltr30x-0.1
# cp -r /home/pi/seeed-linux-dtoverlays/modules/ltr30x /usr/src/ltr30x-0.1
# rm -rf /usr/src/lis3lv02d-0.1
# cp -r /home/pi/seeed-linux-dtoverlays/modules/lis3lv02d /usr/src/lis3lv02d-0.1
# rm -rf /usr/src/bq24179_charger-0.1
# cp -r /home/pi/seeed-linux-dtoverlays/modules/bq24179_charger /usr/src/bq24179_charger-0.1
## Build modules
# dkms build mipi_dsi/0.1
ERROR: An error occurred in the module build. Check the log file. /var/lib/dkms/mipi_dsi/0.1/6.6.20+rpt-rpi-v8/aarch64/log/make.log
$ sudo dkms build mipi_dsi/0.1
Sign command: /lib/modules/6.6.20+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.20+rpt-rpi-v8 all KVERSION=6.6.20+rpt-rpi-v8....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.20+rpt-rpi-v8 (aarch64)
Consult /var/lib/dkms/mipi_dsi/0.1/build/make.log for more information.
$ cat /var/lib/dkms/mipi_dsi/0.1/6.6.20+rpt-rpi-v8/aarch64/log/make.log
cat: /var/lib/dkms/mipi_dsi/0.1/6.6.20+rpt-rpi-v8/aarch64/log/make.log: No such file or directory
matsujirushi commented 8 months ago
$ cd modules/mipi_dsi
$ make
make -C /lib/modules/6.6.20+rpt-rpi-v8/build M=/home/pi/seeed-linux-dtoverlays/modules/mipi_dsi modules
make[1]: Entering directory '/usr/src/linux-headers-6.6.20+rpt-rpi-v8'
  CC [M]  /home/pi/seeed-linux-dtoverlays/modules/mipi_dsi/mipi_dsi_drv.o
/home/pi/seeed-linux-dtoverlays/modules/mipi_dsi/mipi_dsi_drv.c: In function ‘i2c_md_probe’:
/home/pi/seeed-linux-dtoverlays/modules/mipi_dsi/mipi_dsi_drv.c:380:19: error: ‘struct drm_panel’ has no member named ‘prepare_upstream_first’; did you mean ‘prepare_prev_first’?
  380 |         md->panel.prepare_upstream_first = true;
      |                   ^~~~~~~~~~~~~~~~~~~~~~
      |                   prepare_prev_first
/home/pi/seeed-linux-dtoverlays/modules/mipi_dsi/mipi_dsi_drv.c: At top level:
/home/pi/seeed-linux-dtoverlays/modules/mipi_dsi/mipi_dsi_drv.c:462:18: error: initialization of ‘int (*)(struct i2c_client *)’ from incompatible pointer type ‘int (*)(struct i2c_client *, const struct i2c_device_id *)’ [-Werror=incompatible-pointer-types]
  462 |         .probe = i2c_md_probe,
      |                  ^~~~~~~~~~~~
/home/pi/seeed-linux-dtoverlays/modules/mipi_dsi/mipi_dsi_drv.c:462:18: note: (near initialization for ‘i2c_md_driver.probe’)
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /home/pi/seeed-linux-dtoverlays/modules/mipi_dsi/mipi_dsi_drv.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:1938: /home/pi/seeed-linux-dtoverlays/modules/mipi_dsi] Error 2
make[1]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:246: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.20+rpt-rpi-v8'
make: *** [Makefile:15: all] Error 2
matsujirushi commented 8 months ago

https://github.com/matsujirushi/seeed-linux-dtoverlays/commit/fc43c3d5a7813c6cb5f621bf059ca33185c9f34a

matsujirushi commented 8 months ago

The latest bookworm support is currently in the vnext branch.

https://github.com/matsujirushi/seeed-linux-dtoverlays/blob/main/README_reTerminal2.md