DeskPi-Team / deskpi

DeskPi Pro is the Ultimate Case Kit for Raspberry Pi 4 with Full Size HDMI/2.5 Hard Disk Support and Safe Power Button, It has QC 3.0 Power Supply inside and New ICE Tower Cooler inside.
GNU General Public License v3.0
140 stars 46 forks source link

What version for Umbrel? #143

Open kenwdelong opened 1 year ago

kenwdelong commented 1 year ago

I have an Umbrel 0.5.3 running on a RPi 4 Model B. I just put it in a DeskPi Pro v2 case (awesome case, BTW).

I used the base install.sh to install the fan control, but it's not working.

Based on

    umbrel@umbrel:~ $ uname -a
    Linux umbrel 5.10.103-v8+ #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64 GNU/Linux

I wonder if I should have used the 64 bit Raspberry Pi OS (aarm64)?

Also, the device for the fan looks fishy

    crw--w---- 1 root tty       4,  8 Apr 25 15:32 /dev/tty8
    crw--w---- 1 root tty       4,  9 Apr 25 15:32 /dev/tty9
    crw-rw---- 1 root dialout 204, 64 Apr 25 15:32 /dev/ttyAMA0
    crw------- 1 root root      5,  3 Apr 25 15:32 /dev/ttyprintk
    -rw-r--r-- 1 root root          8 Apr 25 15:36 /dev/ttyUSB0
kenwdelong commented 1 year ago

Ah, I found the install-raspios-64bit.sh script and I ran that. That seemed successful, but the fan does not run.

The /dev/ttyUSB0 still has 0644 and shows as a regular file.

Something is wrong with the serial port:

umbrel@umbrel:~ $ /usr/bin/pwmFanControl64 
Can not open /dev/ttyUSB0 serial port ErrorCode: Permission denied
Please check the /boot/config.txt file and add dtoverlay=dwc2, dr_mode=host and reboot RPi 
Please check serial port over OTG
---Serial Port Can not detected---

So I deleted the bogus /dev/ttyUSB0 and rebooted. The file did not come back.

kenwdelong commented 1 year ago

It appears all USB 2 functionality is broken, I plugged in a device to the front panel, and there was no device created in /dev. Oh well, nice case anyway...

yoyojacky commented 8 hours ago

yes, the Umbrel system may not work properly and we did not test it on this system. we are recommended you to use Raspberry Pi OS instead due to the official team has been optimized a lot of thing for the hardware on Raspberry Pi. so it will be stable and nice, and we are always update the driver on official Raspberry Pi OS first. if you can compile a new dwc2 overlay on your system and make it recognized the serial port on deskpi daugher board's MCU, it may become easy to fix the bug, it needs to generate the '/dev/ttyUSB0' device and the front usb will work properly too. we are trying to make it works on UBUNTU 24.04 LTS but no luck, it will not generate ‘/dev/ttyUSB0' device , so that it means we can not send the serial command to the MCU's Serial port to control the fan. it make me frustrated .... and I am working on manjaro and dietPi OS too.

yoyojacky commented 8 hours ago

if you can see '/dev/ttyUSB0', you can try to use the python script to test the fan which is in the folder "drivers/python" , all you need is to install the pyserial library to you system and execute the python script. if it works fine. maybe i can help you create a installation script for the umbrel OS.