seeed-linux-dtoverlays
seeed-linux-dtoverlays copied to clipboard
Issues with Ubuntu running on reTerminal
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
- sudo modprobe -r mipi_dsi
- sudo modprobe mipi_dsi
- sudo systemctl restart systemd-logind
- Accelerometer is not loaded on boot. Need to load the accelerometer manually by:
- sudo modprobe lis331dlh-i2c
- Sometimes when you type password in Ubuntu Desktop log in screen, the "Enter" button doesnt work and it is not possible to log in to Ubuntu.
The above has been tested after installing Ubuntu Server, installing reTerminal drivers and installing Ubuntu Desktop
OK,we will fix this in the future.And I will let you know if there is progress.
Hi, lakshanthad. I have find a new way to install the ubuntu with desktop on reterminal. After these steps. your question 1 and 2 will be fixed. Util now, the question 3 and 4 is still there. Here is the detail steps: 1 download the Ubuntu Server for raspberrypi https://ubuntu.com/download/raspberry-pi/thank-you?version=20.04.3&architecture=server-arm64+raspi
2 flash the CM4 with Raspberry Pi Imager
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 sudo update-initramfs -u sync reboot 3.4 check if the kernel version changed to 5.10.17
4 install seeed-linux-dtoverlay driver 4.1 prepare work cp /boot/firmware/bcm2711-rpi-cm4.dtb /boot/firmware/bcm2711-rpi-cm4.dtb.bak cp /boot/bcm2711-rpi-cm4.dtb /boot/firmware/ cd /boot/ cp bcm2711-rpi-cm4.dtb dtbs/5.4.0-1028-raspi/./ rm dtb ln -s dtbs/5.4.0-1028-raspi/./bcm2711-rpi-cm4.dtb dtb rm dtb-5.4.0-1028-raspi ln -s dtbs/5.4.0-1028-raspi/./bcm2711-rpi-cm4.dtb dtb-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+
apt install build-essential git clone https://github.com/Seeed-Studio/seeed-linux-dtoverlays.git 4.2 compile and install cd seeed-linux-dtoverlay make all_rpi make install_rpi 4.3 additonal setup 4.3.1 modify the config.txt add the following code into /boot/firmware/config.txt #------------------------------------------- dtoverlay=vc4-fkms-v3d enable_uart=1 dtoverlay=dwc2,dr_mode=host dtparam=ant2 disable_splash=1 ignore_lcd=1 dtoverlay=vc4-kms-v3d-pi4 dtoverlay=i2c3,pins_4_5 gpio=13=pu dtoverlay=reTerminal,tp_rotate=1 #------------------------------------------ 4.3.2 copy the dtoverlay to the right directory cp /boot/overlays/reTerminal.dtbo /boot/firmware/overlays/reTerminal.dtbo
4.3.3 modify the reTerminal-overlay.dts and compile it again. add follow code into reTerminal-overlay.dts to disable the hdmi0 and hdmi1:
fragment@8 {
target = <&hdmi0>;
__overlay__ {
status = "disabled";
};
};
fragment@9 {
target = <&hdmi1>;
__overlay__ {
status = "disabled";
};
};
make all_rpi cp reTerminal-overlay.dtbo /boot/firmware/overlays/reTerminal.dtbo
5 install the ubuntu-desktop apt install ubuntu-desktop
reboot and enjoy the ubuntu with desktop.
@bigbearishappy can we use one shell script to reach this goal ?
@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 , We have updated the RPi OS image for reTerminal and it fixes the isssue of causing black screen on system update. Please flash it to your reTerminal. https://wiki.seeedstudio.com/reTerminal-FAQ/#q2-how-can-i-flash-raspberry-pi-os-which-is-originally-shipped-with-reterminal The next reTerminal batch will be shipped with this image. Also, I will test the above Ubuntu installation and let you know.
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 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... The Seeed-Studio wiki should be updated to reflect status of this issue; otherwise I imagine lots of people wasting their time and/or getting frustrated with the product.
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...
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 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 .
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 https://github.com/Seeed-Studio/seeed-linux-dtoverlays/issues/28#issuecomment-927020569, 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:
- Download and flash the Ubuntu Server image on reTerminal: https://ubuntu.com/download/raspberry-pi/thank-you?version=20.04.3&architecture=server-arm64+raspi
- wget https://files.seeedstudio.com/wiki/ReTerminal/ubuntu/script1.sh
- wget https://files.seeedstudio.com/wiki/ReTerminal/ubuntu/script2.1.sh
- chmod +x script1.sh script2.1.sh
- sudo ./script1.sh
- sudo reboot
- sudo ./script2.1.sh
- sudo reboot
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 :
ubuntu@ubuntu:~$ sudo ./script2.sh
Cloning into 'seeed-linux-dtoverlays'...
remote: Enumerating objects: 2513, done.
remote: Counting objects: 100% (854/854), done.
remote: Compressing objects: 100% (600/600), done.
remote: Total 2513 (delta 485), reused 574 (delta 239), pack-reused 1659
Receiving objects: 100% (2513/2513), 3.27 MiB | 3.69 MiB/s, done.
Resolving deltas: 100% (1262/1262), done.
DTC overlays/rpi/grove-led-overlay.dtbo
overlays/rpi/grove-led-overlay.dts:33.3-32: Warning (label_is_string): /__overrides__:label: property is not a string
overlays/rpi/grove-led-overlay.dts:30.3-31.26: Warning (gpios_property): /__overrides__:gpio: property size (22) is invalid, expected multiple of 4
DTC overlays/rpi/2xMCP2517FD-overlay.dtbo
overlays/rpi/2xMCP2517FD-overlay.dts:93.25-102.15: Warning (spi_bus_reg): /fragment@5/__overlay__/can@1: SPI bus unit address format error, expected "0"
DTC overlays/rpi/tpm-spi-slx9670-overlay.dtbo
DTC overlays/rpi/lis331dlh-overlay.dtbo
DTC overlays/rpi/bma456-i2c1-overlay.dtbo
DTC overlays/rpi/2xMCP2518FD-spi0-overlay.dtbo
overlays/rpi/2xMCP2518FD-spi0-overlay.dts:59.25-68.15: Warning (spi_bus_reg): /fragment@4/__overlay__/can@0: SPI bus unit address format error, expected "1"
overlays/rpi/2xMCP2518FD-spi0-overlay.dts:70.25-78.15: Warning (spi_bus_reg): /fragment@4/__overlay__/can@1: SPI bus unit address format error, expected "0"
DTC overlays/rpi/reTerminal-overlay.dtbo
Error: overlays/rpi/reTerminal-overlay.dts:239.3-25 Properties must precede subnodes
FATAL ERROR: Unable to parse input tree
make[1]: *** [Makefile:217: overlays/rpi/reTerminal-overlay.dtbo] Error 1
make: *** [Makefile:156: all_rpi] Error 2
install 2xMCP2517FD-overlay.dtbo /boot/overlays/2xMCP2517FD.dtbo
install 2xMCP2518FD-spi0-overlay.dtbo /boot/overlays/2xMCP2518FD-spi0.dtbo
install bma456-i2c1-overlay.dtbo /boot/overlays/bma456-i2c1.dtbo
install grove-led-overlay.dtbo /boot/overlays/grove-led.dtbo
install lis331dlh-overlay.dtbo /boot/overlays/lis331dlh.dtbo
cp: cannot stat 'reTerminal-overlay.dtbo': No such file or directory
make[2]: *** [Makefile:46: install] Error 1
make[1]: *** [Makefile:227: install_arch] Error 2
make: *** [Makefile:164: install_rpi] Error 2
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
It seems that switching to earlier commit does the trick (acfdbcf5c2d8d2d40753b1c1a46ebf3cb7bb58ab)
@bigbearishappy did something go wrong when changing DTS recently?
The screen however stays off after this.
@Kuuchuu @AIWintermuteAI The link for script 2 has been updated.
https://github.com/Seeed-Studio/seeed-linux-dtoverlays/issues/28#issuecomment-939662366
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. Any ideas?
Hello.
Following the comments below, I installed Ubuntu and the screen was successful.
https://github.com/Seeed-Studio/seeed-linux-dtoverlays/issues/28#issuecomment-911520201 https://github.com/Seeed-Studio/seeed-linux-dtoverlays/issues/28#issuecomment-939662366
However, the F1, F2, F3 and OK buttons are not working.
According to the following SDK: https://github.com/Seeed-Studio/Seeed_Python_ReTerminal
I think it is because there is no "gpio_keys" event in the OS event area. Is there any solution?
There was only "seeed-tp" in the event.
@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.
dtoverlay=reTerminal,tp_rotate=1
↓
dtoverlay=reTerminal,addr=0x20,mcp23008,tp_rotate=1

show dmeg
Hello @lakshanthad,
I changed it, but it didn't change.
dtoverlay=reTerminal,tp_rotate=1 ↓ dtoverlay=reTerminal,addr=0x20,mcp23008,tp_rotate=1
![]()
show dmeg
Can you show the output of command: i2cdetect -y 1? if you can see the device 0x20. Add "dtoverlay=reTerminal,addr=0x20,mcp23008,tp_rotate=1" is ok. if you can see the device 0x38. Just add "dtoverlay=reTerminal,tp_rotate=1" if you can't see both of them. please check your hardware.
Hello @bigbearishappy,
"ll /dev/i2c*" was empty. So I installed "raspi-config" on ubuntu and enabled I2C.

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. The actual key does not work either.

Hello @bigbearishappy,
"ll /dev/i2c*" was empty. So I installed "raspi-config" on ubuntu and enabled I2C.
![]()
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. The actual key does not work either.
![]()
As we can see from the output of sudo i2cdetect -y 1. The IO extend chip's kernel driver is working fine now. But some thing wrong with the kernel driver gpio_keys. It show the log: Unable to get irq number for GPIO 0, error -6. Here is the source code of this error log
Hello @bigbearishappy,
"ll /dev/i2c*" was empty. So I installed "raspi-config" on ubuntu and enabled I2C.
![]()
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. The actual key does not work either.
![]()
I have just test your problem with the PCB board version 1.6 of reterminal. The IO extend chip works fine with my machine. I am wondering if you are using the different version of PCB board with me? Please tell my your version of PCB board. Waiting for your reply.