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

Unable to build at aarch64 #7

Open
omikron88 opened this issue May 24, 2023 · 2 comments
Open

Unable to build at aarch64 #7

omikron88 opened this issue May 24, 2023 · 2 comments

Comments

@omikron88
Copy link

Hello,
I am unable to build the driver at aarch64. It says multiple casting errors after sudo dpkg -i, see the log.

make.log

@lelegard
Copy link
Member

Hi @omikron88

It works for me on Ubuntu 23.04, on a Raspberry 4, Linux kernel 6.2. See the log below. It also works on the same Ubuntu version on a VM running on a MacBook M1.

I see that your logs mention the kernel 5.10 (older). There is maybe an issue with this version of the kernel but I have no other Arm64 system with that version.

$ uname -a
Linux rasptest 6.2.0-1004-raspi #5-Ubuntu SMP PREEMPT Mon Apr  3 11:15:14 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
$ 
$ wget -q https://github.com/tsduck/hides-drivers/releases/download/v7/hides-dkms_18.04.16.2w_all.deb
$ 
$ sudo dpkg -i hides-dkms_18.04.16.2w_all.deb
Selecting previously unselected package hides-dkms.
(Reading database ... 171725 files and directories currently installed.)
Preparing to unpack hides-dkms_18.04.16.2w_all.deb ...
Unpacking hides-dkms (18.04.16.2w) ...
Setting up hides-dkms (18.04.16.2w) ...
Deprecated feature: REMAKE_INITRD (/usr/src/hides-18.04.16.2w/dkms.conf)
Creating symlink /var/lib/dkms/hides/18.04.16.2w/source -> /usr/src/hides-18.04.16.2w
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/hides/18.04.16.2w/source/dkms.conf)

Building module:
Cleaning build area...
'make' KERNELDIR=/lib/modules/6.2.0-1004-raspi/build...............
Cleaning build area...
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/hides/18.04.16.2w/source/dkms.conf)

usb-it950x.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.2.0-1004-raspi/updates/dkms/
depmod...
$ 
$ sudo modprobe usb-it950x
$ 
$ lsmod | head -2
Module                  Size  Used by
usb_it950x            229376  0
$ 

@lelegard
Copy link
Member

Hi @omikron88

I also tried on a Debian 11.7 VM on the MacBook M1, with kernel 5.10 and gcc 10.2, and it works correctly, the driver is built and loaded. So, this does not seem to be a kernel version issue.

I looked into my dkms make.log files. I see the same warnings as you, with kernels 5.10 and 6.2, but the build completes successfully.

However, in your log file, each warning is followed by "error, forbidden warning". Do you use some special kernel configuration? Your kernel is identified as "5.10.110-rockchip-rk3588". There is probably some special configuration with this one which fails on these warnings. I mentioned that it works with a "standard" Raspberry Pi 4, which is a similar type of system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants