Open FStefanni opened 2 years ago
Installing Ubuntu server on Raspberry Pi 4B with Advantech UNO-220-P4N2AE HAT
sudo nano /etc/modules-load.d/modules.conf
rtc_rx8010
$ sudo nano /boot/firmware/config.txt
dtoverlay=pca953x,addr=0x27
$ dtc -I dtb -O dts /boot/firmware/overlays/tpm-slb9670.dtbo -o tpm-slb9670-ce0.dts
$ nano tpm-slb9670-ce0.dts
$ sudo dtc -I dts -O dtb tpm-slb9670-ce0.dts -o /boot/firmware/overlays/tpm-slb9670-ce0.dtbo
$ sudo nano /boot/firmware/config.txt
dtoverlay=tpm-slb9670-ce0
$ sudo timedatectl set-timezone Asia/Jakarta
Reboot
Get RTC time:
$ sudo hwclock -r --verbose
$ sudo hwclock -w --verbose
$ sudo apt-get install gpiod
$ gpiodetect
$ gpioinfo
$ gpioset 2 0=0
$ gpioget 2 1
$ gpioset 2 0=1
$ gpioget 2 1
$ sudo modprobe -r gpio_pca953x
Control PL1 GPIO LED using rpi gpio out node on PIN 32 (GPIO 12)
Test TPM support:
$ sudo apt-get install tpm2-tools
$ sudo tpm2_getrandom 8 | xxd -p
$ sudo tpm2_getrandom 16 | xxd -p
$ sudo tpm2_getrandom 32 | xxd -p
$ minicom -D /dev/ttyUSB0 -b 115200 -con
$ sudo nano /boot/firmware/cmdline.txt
$ sudo apt-get install minicom
$ minicom -D /dev/ttyS0 -b 115200 -con
Hi,
thank you for the proposed procedure, I will eventually try it.
In the meantime, I have done some tests, and I am able to install and run GPIO's. Follows what I have discovered (I also report some documentation found scattered in various places).
Before installing:
# Check the package status: if installed and its version
apt list firmware-misc-nonfree
# If installed, downgrade its version and put on hold:
apt install firmware-misc-nonfree=1:20210315-3+rpt5
apt-mark hold firmware-misc-nonfree
To install:
Nevertheless, an up-to-date version of Advantech packages would be welcome.
Regards.
Hi,
Thanks for your advise.
Advantech has upgrade the RTC packages to support new Bullseye version. The version is V0.1-6. You can try it again. Please follow the below step to install all packages. Thanks. https://github.com/Advantech-IIoT/UNO-220-POE-/tree/docs/dpkg/README/#how-to-install-uno-220-packages
Hi,
I know that the official docs say that the supported RaspberryOS version is Buster, but the porting to the latest stable would be great.
At the moment I have seen these issues with Bullseye:
Regards