Package Details: spi-ch341-usb-dkms r16.79bbe57-1

Git Clone URL: https://aur.archlinux.org/spi-ch341-usb-dkms.git (read-only, click to copy)
Package Base: spi-ch341-usb-dkms
Description: SPI/GPIO driver for CH341
Upstream URL: https://github.com/gschorcht/spi-ch341-usb
Licenses: GPL
Submitter: sergej
Maintainer: sergej
Last Packager: sergej
Votes: 1
Popularity: 0.025057
First Submitted: 2019-06-28 14:43
Last Updated: 2019-06-28 14:43

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

dimich commented on 2020-07-30 16:34

@politas, in dkms.conf:

SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build

must be changed to:

M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build

politas commented on 2020-07-27 03:50

Install DKMS modules
==> dkms install --no-depmod -m spi-ch341-usb -v r16.79bbe57 -k 5.7.9-1-MANJARO
Error! Bad return status for module build on kernel: 5.7.9-1-MANJARO (x86_64)
Error while configuring 
Consult /var/lib/dkms/spi-ch341-usb/r16.79bbe57/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m spi-ch341-usb -v r16.79bbe57 -k 
5.7.9-1-MANJARO' returned 10
==> depmod 5.7.9-1-MANJARO

/var/lib/dkms/spi-ch341-usb/r16.79bbe57/build/make.log

DKMS make.log for spi-ch341-usb-r16.79bbe57 for kernel 5.7.9-1-MANJARO (x86_64)
Mon 27 Jul 2020 13:47:39 AEST
make: Entering directory '/usr/lib/modules/5.7.9-1-MANJARO/build'

scripts/Makefile.build:44: arch/x86/entry/syscalls/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/x86/entry/syscalls/Makefile'.  Stop.
make: *** [arch/x86/Makefile:217: archheaders] Error 2
make: *** Waiting for unfinished jobs....
make[1]: Nothing to be done for 'objtool'.
make: Leaving directory '/usr/lib/modules/5.7.9-1-MANJARO/build'

What am I missing?

dimich commented on 2020-02-12 11:52

I faced some issues while installing the driver for 5.5.2-arch2-2. They can be fixed by following changes:

1. In Makefile change KERNEL_DIR = /usr/src/linux-headers-$(KVERSION)/
to
KERNEL_DIR = /lib/modules/$(KVERSION)/build/
or
KERNEL_DIR = /usr/src/linux/

2. In spi-ch341-usb.c add
#define SPI_BIT_MASK(bits) (((bits) == 32) ? ~0U : (BIT(bits) - 1))