reTerminal Drivers can't install on Kali Linux- Errors

Ill try to make it quick.

The first failure:


┌──(kali㉿kali-raspberry-pi)-[~/seeed-linux-dtoverlays]
└─$ sudo ./scripts/reTerminal.sh

### Install required tool packages
Hit:1 http://kali.download/kali kali-rolling InRelease
Hit:2 http://http.re4son-kernel.com/re4son kali-pi InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dkms is already the newest version (2.8.7-2).
0 upgraded, 0 newly installed, 0 to remove and 1093 not upgraded.

### Will compile with the latest kernel...

### Uninstall previous dkms module

### Install required kernel package
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package raspberrypi-kernel is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  kalipi-kernel

Package raspberrypi-kernel-headers is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  kalipi-kernel-headers
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Package 'raspberrypi-kernel-headers' has no installation candidate
E: Package 'raspberrypi-kernel' has no installation candidate
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-raspi
E: Unable to locate package linux-headers-raspi
E: Unable to locate package linux-image-raspi
E: Can't select candidate version from package raspberrypi-kernel as it has no candidate
--2022-05-24 17:06:44--  http://raspberrypi-kernel__arm64.deb/
Resolving raspberrypi-kernel__arm64.deb (raspberrypi-kernel__arm64.deb)... failed: Name or service not known.
wget: unable to resolve host address ‘raspberrypi-kernel__arm64.deb’
--2022-05-24 17:06:44--  http://raspberrypi-kernel__arm64.deb/
Resolving raspberrypi-kernel__arm64.deb (raspberrypi-kernel__arm64.deb)... failed: Name or service not known.
wget: unable to resolve host address ‘raspberrypi-kernel__arm64.deb’
--2022-05-24 17:06:44--  http://raspberrypi-kernel__arm64.deb/
Resolving raspberrypi-kernel__arm64.deb (raspberrypi-kernel__arm64.deb)... failed: Name or service not known.
wget: unable to resolve host address ‘raspberrypi-kernel__arm64.deb’
dpkg-deb: error: '/tmp/raspberrypi-kernel__arm64.deb' is not a Debian format archive
dpkg: error processing archive /tmp/raspberrypi-kernel__arm64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 /tmp/raspberrypi-kernel__arm64.deb
Error: Install kernel or header failed

After I edited reTerminal.sh to instead have kalipi-kernel and kalipi-kernel-headers
I re-ran the script. Mostly went ok until the very end?

┌──(kali㉿kali-raspberry-pi)-[~/seeed-linux-dtoverlays]
└─$ sudo ./scripts/reTerminal.sh

### Install required tool packages
Hit:1 http://kali.download/kali kali-rolling InRelease
Hit:2 http://http.re4son-kernel.com/re4son kali-pi InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dkms is already the newest version (2.8.7-2).
0 upgraded, 0 newly installed, 0 to remove and 1091 not upgraded.

### Will compile with the latest kernel...

### Uninstall previous dkms module

### Install required kernel package
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
kalipi-kernel is already the newest version (5.10.103-20220504).
kalipi-kernel-headers is already the newest version (5.10.103-20220504).
0 upgraded, 0 newly installed, 0 to remove and 1091 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
grep: /boot/kernel8.img: No such file or directory

gzip: stdin: unexpected end of file
 !!! Your kernel version is
     Couldn't find *** corresponding *** kernel headers with apt-get.
     This may happen if you ran 'rpi-update'.
 Choose  *** y *** to install kernel-headers to version 5.4.83-Re4son-v8l+ and continue.
 Choose  *** N *** to exit without this driver support, by default.
Would you like to proceed? (y/N)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
kalipi-kernel-headers is already the newest version (5.10.103-20220504).
0 upgraded, 0 newly installed, 0 to remove and 1091 not upgraded.
grep: /boot/kernel8.img: No such file or directory

gzip: stdin: unexpected end of file
Creating symlink /var/lib/dkms/mipi_dsi/0.1/source -> /usr/src/mipi_dsi-0.1
Error! Your kernel headers for kernel -m cannot be found at /lib/modules/-m/build or /lib/modules/-m/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Can't compile with this kernel, aborting
Please try to compile with the option --compat-kernel

I don’t know what to do at this point. Plz help.

PLEASE keep in mind that I am a COMPLETE NOOB and getting past the first error was sheer luck (and perhaps the cause of the second error)

Bump

Any suggestions? Any luck installing Kali on the reTerminal?

We have not made a similar attempt. From the error message displayed, it appears that some packages are not found, this could be a network issue or it could be that the installation method you are following is out of date.

The installation method is directly from the getting started wiki

Thank you for your feedback, I will take the time to test it out today.

1 Like

any news? I would really like to get Kali going!

It may not be so fast, it will take some time for this problem to be solved, please wait.

1 Like

Hello, has any progress been made on this subject?

Hi, sorry for the delay!XD
The problem is that the reTerminal driver you were trying to install only supports Raspberry Pi OSs. You may want to take a look at these two places:

Meanwhile, you could just run the script from the first link to install kali tools on top of the original reTerminal OS, to flash back to the original reTerminal OS please follow this link:

Hello again!

The Kali distribution that I am using is designed for Raspberry Pi 4 and 400 as to be compatible with the ReTerminal. I have enough sense to install a “raspberry pi OS” on a rasbperry pi

Secondly, Katoolin has not been updated in 5 years and does not work at all.

I appreciate your response, but I am at this point 2 months into an issue that would be simple to resolve by the person that created the script in the first place.

The script appears to be attempting to download the wrong files:

“http://raspberrypi-kernel__arm64.deb/” does not exist.

It should be looking for:
kalipi-kernel_5.4.83-20211204_arm64.deb
and
kalipi-kernel-headers_5.4.83-20211204_arm64.deb
Not
raspberrypi-kernel__arm64.deb

As you can see by the filename that is being generated by the script, its no wonder.

Skipping the download of those files as it is unnecessary to update the already installed headers produces an error:

So, really, the solution at this point appears to be to use the command:

“Please try to compile with the option --compat-kernel”

However I do not know where to type “–compat-kernel” or where to place it in the script.

Please, if you could, forward this problem to the person that created the driver install script.

Thanks.

Hi, the reTerminal indeed is built based on CM4 like Raspberry Pi 4, but there are still some peripheral design difference between them, as it may not be compatible in this Kali Linux case. You can always try to make it compatible, but we are terribly sorry that we currently have no further plan to develop Kali Linux supporting.

I found a solution to the USB input issue and thus was able to login to Kali with HDMI external display attached.

add this to your /boot/config.txt

dtoverlay=dwc2,dr_mode=host

HOWEVER I am still unable to to get the DSI display to work.

There are instructions to install the display drivers:

Code:
Step 1. Clone the following repo

Step 2. Enter the repo
cd seeed-linux-dtoverlays

Step 3. Type the following to install the drivers
sudo ./scripts/reTerminal.sh

The script ultimately fails with this at the end:

Code:
┌──(kali㉿kali-raspberry-pi)-[~/seeed-linux-dtoverlays]
└─$ sudo ./scripts/reTerminal.sh

Install required tool packages

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
dkms is already the newest version (2.8.7-2).
0 upgraded, 0 newly installed, 0 to remove and 1091 not upgraded.

Will compile with the latest kernel…

Uninstall previous dkms module

Install required kernel package

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
kalipi-kernel is already the newest version (5.10.103-20220504).
kalipi-kernel-headers is already the newest version (5.10.103-20220504).
0 upgraded, 0 newly installed, 0 to remove and 1091 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
grep: /boot/kernel8.img: No such file or directory

This may help you,
Rachel Gomez

If there is still interest, I have managed to get the touchscreen working on kali - I had to edit the script as well as some of the drivers to get them to build but ultimately I succeeded. I just need to figure out

  • How to calibrate the touchscreen: I think there is a rotation/reflection correction that needs to be made, since the cursor/arrow doesn’t “follow” the touch

  • How to get the sd card recognized in kali - dmesg finds mmc1 but doesn’t create a device for it in /dev