I am trying to setup my I-Pi for a robotics projet and am running into issues all over the place. Hopefully you guys can suggest some options for me to continue to use this board otherwise I will just switch back to a standard Pi.
First when I setup the device with the factory Ubuntu image provided apt update fails with the following error:
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.39 80]
I am also trying to setup a joystick as an input device but cant figure out how to enable it. (I.E. I cant see the device under /dev/input/js0)
I've tried installing several packages but none of them make the device availble
-- sudo apt install joystick, jstest-gtk, xboxdrv
If I run lsusb I can see the device.
-- Bus 001 Device 003: ID 046d:c21f Logitech, Inc. F710 Wireless Gamepad [XInput Mode]
I then tried to install xpad from source but that fails because I dont have the linux headers installed.
$ sudo dkms install -m xpad -v 0.4
Creating symlink /var/lib/dkms/xpad/0.4/source ->
/usr/src/xpad-0.4
DKMS: add completed.
Error! Your kernel headers for kernel 5.4.70-2.3.0+g4f2631b022d8 cannot be found.
Please install the linux-headers-5.4.70-2.3.0+g4f2631b022d8 package,
or use the --kernelsourcedir option to tell DKMS where it's located
So after that I tried to insall the headers with
-- sudo apt install linux-headers-$(uname -r)
But that fails with the following error
E: Unable to locate package linux-headers-5.4.70-2.3.0+g4f2631b022d8
E: Couldn't find any package by glob 'linux-headers-5.4.70-2.3.0+g4f2631b022d8'
I then tried one last attempt with
-- sudo apt install linux-generic
But this fails when installing flash kernel:
dpkg: error processing package flash-kernel (--configure):
installed flash-kernel package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-91-generic (5.4.0-91.102) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-91-generic
Warning: root device does not exist
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-flash-kernel:
flash-kernel: deferring update (trigger activated)
Errors were encountered while processing:
flash-kernel
E: Sub-process /usr/bin/dpkg returned an error code (1)
After some more reasearch and it seems like this might need to be compiled as part of the default configuration when you build the Ubuntu Image with the option CONFIG_JOYSTICK_XPAD. Anyone have suggestions on how I can get this rebuilt into the kernel or how to install the linux-headers?