Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

cannot build on armbian ubuntu kernal 5.10.110 #64

Open
EricYin opened this issue Apr 9, 2023 · 10 comments
Open

cannot build on armbian ubuntu kernal 5.10.110 #64

EricYin opened this issue Apr 9, 2023 · 10 comments

Comments

@EricYin
Copy link

EricYin commented Apr 9, 2023

I have orangepi5 board with armbian linux installed (Armbian 23.02 Jammy Gnome, kernel 5.10.110). but when i run "sudo dkms build nintendo -v 3.2" on this orangepi 5, i got error below. is anyone know how i can fix it? I installed linux-headers-legacy-rockchip-rk3588_23.02.2_arm64.deb to build this driver before i got this error. it looks the make behavir is changed after kernal 5.10, as someone mentioned that module.lds is missing and only modules.lds.S in header scripts folder. how can i get module.lds without building the whole kernel by myself?
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1906131

DKMS make.log for nintendo-3.2 for kernel 5.10.110-rockchip-rk3588 (aarch64)
Sat Apr 8 01:47:55 PM CST 2023
make: Entering directory '/usr/src/linux-headers-5.10.110-rockchip-rk3588'
CC [M] /var/lib/dkms/nintendo/3.2/build/src/hid-nintendo.o
MODPOST /var/lib/dkms/nintendo/3.2/build/src/Module.symvers
make[2]: *** No rule to make target 'scripts/module.lds', needed by '/var/lib/dkms/nintendo/3.2/build/src/hid-nintendo.ko'. Stop.
make[2]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/nintendo/3.2/build/src/hid-nintendo.mod.o
make[1]: *** [scripts/Makefile.modpost:175: __modpost] Error 2
make: *** [Makefile:1822: modules] Error 2
make: Leaving directory '/usr/src/linux-headers-5.10.110-rockchip-rk3588'

@EricYin EricYin changed the title cannot build on armbian ubuntu cannot build on armbian ubuntu kernal 5.10.100 Apr 9, 2023
@EricYin EricYin changed the title cannot build on armbian ubuntu kernal 5.10.100 cannot build on armbian ubuntu kernal 5.10.110 Apr 9, 2023
@nicman23
Copy link
Owner

i would suggest just going with a backport kernel as upstream includes this driver. also i do not have an arm system to test anything on.

@EricYin
Copy link
Author

EricYin commented Apr 11, 2023

i would suggest just going with a backport kernel as upstream includes this driver. also i do not have an arm system to test anything on.

Thanks, I figured out the module.lds missing is a bug of armbian build code. I switch to use its master build code and get module.lds. then I can build and install nintendo hid driver. and also installed joycond. my switch pro controller can be paired and connect in my ubuntu arm OS, that is great. one problem I found is each time my ubuntu os is restarted, i cannot connect to pro controller directly but windows 10 can connect swith pro controller automatically when pro controller wake up. to connect in ubuntu I have to make switch pro controller into pair mode again and connect then. any thing I missed?

@EricYin
Copy link
Author

EricYin commented Apr 15, 2023

some update here: I bought new bluetooth adapter (real csr8510 chip). it is better than old one. but it seem after several minunites( playing the game), connection is dropped. the log of bluetooth said: host is down, cannot read hidinfo, something like this. the switch pro controller works great in windows 10. so after several days effort, I have to say hard to play with arm linux using swith pro controller.

@nfp0
Copy link

nfp0 commented Apr 15, 2023

connection is dropped

@EricYin It's a known issue that it's trying to be solved. It happens during rumble.
You might want to subscribe to this issue from the kernel: DanielOgorchock/linux#33

@EricYin
Copy link
Author

EricYin commented Apr 16, 2023

connection is dropped

@EricYin It's a known issue that it's trying to be solved. It happens during rumble. You might want to subscribe to this issue from the kernel: DanielOgorchock/linux#33

Thanks, rumble is impartant for game, hope this can be fixed.

@nicman23
Copy link
Owner

one workaround is to play with the controller plugged in

@nfp0
Copy link

nfp0 commented Apr 16, 2023

Another possible workaround is to use the controller through Steam, as the Steam driver does not seem to cause disconnects.

@nicman23
Copy link
Owner

does armbian have steam? wut

@EricYin
Copy link
Author

EricYin commented Apr 19, 2023

does armbian have steam? wut

no, I did not see steam on armbian(box64/box86 may be a workaround, but I didnot try). I tried moonlight client streaming steam game from remote machine. lose bluetooth connection after several minutes..if i disable rumble, it seems i can play a long time.

@nfp0
Copy link

nfp0 commented Apr 19, 2023

does armbian have steam? wut

My bad, I forgot he was talking specifically about armbian.

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

No branches or pull requests

3 participants