Open Linrox opened 1 year ago
The compilation looks OK. I am not sure about the compiler warning. Does this go away if you do:
sudo apt-get build-dep linux-image-`uname -r`
to install the compiler used also for the kernel build?
The command to insert the module does not use the square braces, this is just to indicate the argument is optional, in your case you would do:
sudo modprobe firmata_mod firmata_port=ttyAMC0
The port starts with lower-case "tty", I think. If unsure, could you look into what "sudo dmesg | tail" prints out the moment you plug the arduino? And then, if this still fails, could you send the output of dmesg once the modprobe fails?
I tried the sudo apt-get build-dep linux-image-`uname -r
it returned
linrox@Lucidmare2:~$ sudo apt-get build-dep linux-image-`uname -r`
[sudo] password for linrox:
Reading package lists... Done
Picking 'linux-signed' as source package instead of 'linux-image-5.19.0-46-generic'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
builddeps:linux-signed : Depends: linux-image-unsigned-5.19.0-46-generic (= 5.19.0-46.47) but it is not going to be installed
Depends: linux-generate (= 5.19.0-46.47) but it is not installable
E: Unable to correct problems, you have held broken packages.
The second command returned nothing.
Regarding the packages, can you manually also install linux-image-unsigned-5.19.0-46-generic
and
linux-generate
, to fix the dependency problem?
sudo modprobe firmata_mod firmata_port=ttyAMC0
should not return anything, it will wait for about 3 seconds for the firmata firmware to start up after resetting the Arduino. Then, the module should be inserted, and you should be able to see it with
lsmod | grep firmata
I am using kubuntu 22.10 and arduino mega 2560 R3 to be detected by the OS as a joystick/buttonbox. I can only find the ttyAMC0 connection and the serial folders has the
usb-Arduino__www.arduino.cc__0042_754363435303517181D0-if00
and a PCIpci-0000:01:00.0-usb-0:9:1.0
From my research it appears that MEGA2560 only has serial connection and no USBHID, so i was trying to get the firmata_mod work so i can connect and test. However when i tried to make firmata_mod, it return this:
Not sure if this built correctly.
When i ran the
sudo make modules_install
it returned``cp *.ko /lib/modules/
uname -r`/kernel depmod