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
Issues with Ubuntu running on reTerminal #28
Comments
OK,we will fix this in the future.And I will let you know if there is progress. |
Hi, lakshanthad. 2 flash the CM4 with Raspberry Pi Imager 3 update the kernel to 5.10.17 4 install seeed-linux-dtoverlay driver apt install build-essential 4.3.3 modify the reTerminal-overlay.dts and compile it again.
make all_rpi 5 install the ubuntu-desktop reboot and enjoy the ubuntu with desktop. |
@bigbearishappy can we use one shell script to reach this goal ? |
of course.I'll do it later. |
waiting for a one shell script and I will test it. Thank you |
Waiting as well. Reterminal is completely unusable at the moment, as the supplied raspbian image breaks after updating, and the drivers don't install at all on Ubuntu Arm. I tried the steps listed above but they would not work on my hardware, couldn't get past step 3.3 |
Hi @Kuuchuu , |
I tried this on a Ubuntu server 20 armhf (32bit). I ended up with an unbootable image. @lakshanthad Did you get it to work? |
@Sondree Still my colleague is working on a fix for this. I will mention it here once it's fixed. |
Having same issue here. I initially tried 21.04 server, and then switched to 20.04.03 after finding this Github issue... Is there a reason the driver package is focused on kernel 5.10.17? [e.g. is it since that's what raspbian uses]? 20.04.3 LTS HWE is now based on the 5.11.x kernel series. It would make much more sense if we could use that... or even better, make it work with default kernel of 21.04 and next month's 21.10... |
you origin kernel is 32bit.but the kernel and kernel header you download is 64bit.you can flash a 64bit image or download the 32bit kernel and kernel header and then retry it . |
I replaced arm64 with armhf in the relevant places. Still no go.
…On Sat, Sep 25, 2021, 08:40 BBear ***@***.***> wrote:
3 update the kernel to 5.10.17
3.1 download the kernel and kernel-header (wget ...)
http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel-headers_1.20210303-1_arm64.deb
http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel_1.20210303-1_arm64.deb
3.2 install the deb file (sudo dpkg -i ...)
PS: when you install the raspberrypi-kernel_1.20210303-1_arm64.deb.
It will failed in the first time.the log says can not fine
bcm2711-rpi-4-b.dtb in /etc//flash-kernel/dtbs/.
just copy bcm2711-rpi-4-b.dtb to /etc//flash-kernel/dtbs/ and then install
the kernel again.
3.3 change the running kernel to 5.10.17
cd /boot/
cp vmlinuz-5.4.0-1028-raspi vmlinuz-5.4.0-1028-raspi.bak
cp kernel8.img vmlinuz-5.4.0-1028-raspi
cp bcm2711-rpi-cm4.dtb dtbs/5.10.17-v8+/./
rm dtb-5.10.17-v8+
ln -s dtbs/5.10.17-v8+/./bcm2711-rpi-cm4.dtb dtb-5.10.17-v8+
sudo update-initramfs -u
sync
reboot
3.4 check if the kernel version changed to 5.10.17
I tried this on a Ubuntu server 20 armhf (32bit). I ended up with an
unbootable image. @lakshanthad <https://github.com/lakshanthad> Did you
get it to work?
you origin kernel is 32bit.but the kernel and kernel header you download
is 64bit.you can flash a 64bit image or download the 32bit kernel and
kernel header and then retry it .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARMAWJJ6KYTAGM5B3QSGP3UDVVHLANCNFSM5C2SYVPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hello everyone, Now there is a workaround to install Ubuntu on reTerminal. Please follow the steps below:
Finally, enjoy the Ubuntu Desktop on reTerminal! Please try it and let us know your experience. |
Am I reading this right? You disable hdmi support to make it work on ubuntu? |
Yes, you are right. If we don't disable HDMI, the LCD on reTerminal cannot work. We are finding a fix for this. |
Thanks for the clarification. I will try it out on Ubuntu. I hope you get HDMI working |
ok, it works with Ubuntu 21.04 and built-in LCD . By default, it boots in "portrait" mode but it is easy to switch to landscape mode (Settings, Display, Built-in display, ...). However, external HDMI screen is gone... |
Running Script 2 fails @lakshanthad :
I'm using the image "ubuntu-21.04-preinstalled-server-arm64+raspi.img.xz" |
Can confirm, same result for ubuntu-20.04.3-preinstalled-server-arm64+raspi |
The screen however stays off after this. |
@Kuuchuu @AIWintermuteAI The link for script 2 has been updated. |
The screen fails to continue to work after doing a system upgrade to Ubuntu 21.10. Rerunning the script after the update does not fix it, and waiting to run both scripts after a fresh install and immediate upgrade do not get it working either. |
Hello. Following the comments below, I installed Ubuntu and the screen was successful. However, the F1, F2, F3 and OK buttons are not working. According to the following SDK: I think it is because there is no "gpio_keys" event in the OS event area. Is there any solution? |
@lakshanthad please support this issue |
Hello @fastsystem, Could you please edit the file "/boot/firmware/config.txt" and replace the line which says "dtoverlay=reTerminal" with the following: dtoverlay=reTerminal,addr=0x20,mcp23008,tp_rotate=1 |
Hello @lakshanthad, I changed it, but it didn't change.
|
Can you show the output of command: i2cdetect -y 1? |
Hello @bigbearishappy, "ll /dev/i2c*" was empty. As you can see from the picture, since 0 x 38 is valid, we use "dtooverlay = reTerminal,tp_rotate=1". "dmesg" looks like gpio_keys still has errors. |
As we can see from the output of sudo i2cdetect -y 1. |
Hello @Chick92, I have tested with Ubuntu 21.10 according to this wiki, and the LCD comes up now. The LCD did not work before because LCD did not support the new kernel 5.15. Now it works after this pr. However, there is a new issue now. Steps to reproduce
@bigbearishappy Could you please help look into this problem? Thank you. Best Regards, |
It should be the same issue with the IMU.I am trying to fix it. |
Thank you @bigbearishappy . Looking forward to the fix. |
The issue is there, even after this commit: The above commit only fixes for RPi OS. Best Regards, |
I have found a workaround. Add the following inside "~/.config/monitors.xml" and reboot the reTerminal <monitors version="2">
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>DSI-1</connector>
<vendor>unknown</vendor>
<product>unknown</product>
<serial>unknown</serial>
</monitorspec>
<mode>
<width>720</width>
<height>1280</height>
<rate>60.000</rate>
</mode>
</monitor>
<transform>
<rotation>right</rotation>
</transform>
</logicalmonitor>
</configuration>
</monitors> The LCD comes back in correct orientation: However, there is one problem. The onscreen keyboard is not visible on the login page. I had to connect an external keyboard to enter the password and login. I have also tried without adding the above "monitors.xml" file and executing the following: ubuntu@ubuntu:~$ xrandr --output DSI-1 --rotate left
warning: output DSI-1 not found; ignoring But it does not seem to work. |
Can confirm the updated kernel stuff works on Ubuntu 20.04. |
Bluetooth not working, but fixed with sudo apt-get install pi-bluetooth. Might be worth adding to the install script. I've backed up my Ub20 image before i've added the stuff i need to it, if anybody wants it give me a shout. It's about 3 gig though so not sure where best to host it. Not managed to get network manager working properly and am relying on manually editing netplan config files, e.g editing the config for wifi and leaving eth as dhcp |
That is great! Could you please try Ubuntu 21.04 also and confirm with my findings? Thanks |
Could you please list all the problems you faced with Ubuntu 20.04? Thanks |
Problems on Ubuntu 20 - Bluetooth driver not installed - sudo apt-get install pi-bluetooth network manager unavailable. This is because Ubuntu server uses netplan, so and the desktop environment is then loaded on top of that. I disabled the config from the raspberry pi imager as per the instructions in /etc/netplan/50******* can't remember the file name but it starts with 50, and also deleted the file contents as it had the same SSID name, and created another cinfig file 10***** something something with a config for dhcp wifi and static ethernet as per my needs. The touch screen isn't brilliant, seems considerably less precise than the raspberry pi os version On / off button doesn't work Accelerometer not tested Not really a problem, but not sure how to tag the function keys to something, althoguh this info is probably available somewhere. If I can remember any other issues i'll post here. I'll try and test Ub21 for you, but it's not compatible with my use case and i'm away on business for a few weeks as of this friday. |
For this, open /boot/firmware/config.txt and add where number is from 0-3 which corresponds to F1,F2,F3,O For example: You can refer here for key codes: Finally, reboot reTerminal |
Now the onscreen keyboard works at login for Ubuntu Server 21.10. I only found a couple of other issues. Accelerometer and light sensor are not loaded at boot. However they can be manually loaded by:
|
Hmmm, it would seem Ub20 isn't stable after all. After reboot screen is blank / black. reflashed my last working image, which works fine until reboot and then same functionality. I adjusted some network settings and installed ROS, that's about it. I've tried the following via an ssh connection:
but get the following - modprobe: FATAL: Module mipi_dsi not found. I'll roll back to my previous version without ROS and the netwroking changes, and see if the problems persist. If so i'll probably give up with it and either find some way to make use of Raspberry pi os or just scrap the unit and go with an android tablet. |
I'd given up on this, as the device owuld only work for a few hours and then when booted, the screen doesn't work. I decided to give it a go so reinstalled everything (the updates now allow the instructions from https://wiki.seeedstudio.com/reTerminal-FAQ/#q10-how-can-i-install-ubuntu-on-reterminal to work fine). I then used the desktopify scripts to properly install and configure network manager (otherwise the ethernet is unmanaged and must be configured via netplan scripts). The device worked fine accros reboots, with ethernet plugged in or unplugged, with wifi on or off. Then today, i took it into the office and the screen is blank. Same issue as before when I gave up. The dmesg output is below. Any ideas? [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083] |
Perhaps you should remove any reference to ubuntu support in your marketing material, since as though A) it quite clearly doesn't work, and B) you're not actively doing anything about it not working. |
@Chick92 : I second that |
@lakshanthad maybe Seeed can create a guide like:
The critical part is to start from the version of Ubuntu for ARM coming directly from Canonical. |
I can confirm that following the instructions from @lakshanthad using ubuntu server 20.04.5 LTS 64bits works, and just the screen is in portrait mode, but after changing it it will work. The next issue is that upon the first reboot, the hdmi was enabled again, so the LCD screen does not work... is there a workaround for that? Also, pressing the function keys, gives mes ASD for each of keys. |
You can create a daemon at boot like I have that looks for runlevel 5 and modprobes to get Ubuntu booting the display every time. |
!/bin/bash GUI_TARGET_RUNLEVEL=5 while : ; do
done |
@lakshanthad - Is there a method that works for Ubuntu 20.04.5? I have not been able to make this work. Getting the black screen at best or compile-time errors for the modules. |
Watch out ! Updating the Raspbian OS on the reTerminal results in a blank screen. I have not found a reliable solution. |
I gave up with Ubuntu on reTerminal. And now even Raspbian is failing. |
I got 22.04 to work: That being said... I would really like 20.04 for ROS1 support. I am digging into other options for building out what I need but getting a workable solution for 20.04 would be ideal. |
Facing the same issue; Literally just broke. Edit: For the future:
This should help avoid breakage. |
Hey is this issue still open? |
Yes. |
I fixed this issue. |
The following are issues when running Ubuntu on reTerminal.
reTerminal cannot reboot from Ubuntu. It gets stuck and the "SYS LED" stays turned ON
When reTerminal is powered off and powered back on, mipi LCD driver is not loaded. Need to do the following steps every time I turn on reTerminal
The above has been tested after installing Ubuntu Server, installing reTerminal drivers and installing Ubuntu Desktop
The text was updated successfully, but these errors were encountered: