PENTA SATA HAT INSTALL FAILS on ROCK3a :-((

sudo systemctl status rockpi-penta.service

● rockpi-penta.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-penta.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-01-19 07:06:46 UTC; 31s ago
Process: 13117 ExecStart=/usr/bin/python3 /usr/bin/rockpi-penta/main.py on (code=exited, status=1/FAILURE)
Main PID: 13117 (code=exited, status=1/FAILURE)

Jan 19 07:06:46 rock-3a systemd[1]: rockpi-penta.service: Scheduled restart job, restart counter is at 5.
Jan 19 07:06:46 rock-3a systemd[1]: Stopped Rockpi SATA Hat.
Jan 19 07:06:46 rock-3a systemd[1]: rockpi-penta.service: Start request repeated too quickly.
Jan 19 07:06:46 rock-3a systemd[1]: rockpi-penta.service: Failed with result β€˜exit-code’.
Jan 19 07:06:46 rock-3a systemd[1]: Failed to start Rockpi SATA Hat.

cat /boot/uEnv.txt
verbosity=7
overlay_prefix=rockchip
rootfstype=ext4
fdtfile=rockchip/rk3568-rock-3-a.dtb
overlays=rk3568-can1-m0 rk3568-pwm8-m0-fan rk3568-pwm15-m0 rk3568-i2c3-m0
rootuuid=904e53b0-d795-415f-8020-2ed2ef1d9e9d
initrdsize=0x9e2bcf
kernelversion=4.19.193-24-rockchip-g526c758e05e0
initrdimg=initrd.img-4.19.193-24-rockchip-g526c758e05e0
kernelimg=vmlinuz-4.19.193-24-rockchip-g526c758e05e0

Please tell me the result of the following command @Karl-W

sudo python3 /usr/bin/rockpi-penta/fan.py
sudo python3 /usr/bin/rockpi-penta/oled.py

Traceback (most recent call last):
File β€œ/usr/bin/rockpi-penta/fan.py”, line 6, in
pin13 = mraa.Pwm(13)
File β€œ/usr/local/lib/python3.8/dist-packages/mraa.py”, line 579, in init
this = _mraa.new_Pwm(pin, owner, chipid)
ValueError: Error initialising PWM on pin

sudo python3 /usr/bin/rockpi-penta/oled.py
Invalid GPIO pin specified
Invalid GPIO pin specified
Traceback (most recent call last):
File β€œ/usr/bin/rockpi-penta/oled.py”, line 28, in
disp = disp_init()
File β€œ/usr/bin/rockpi-penta/oled.py”, line 22, in disp_init
disp = Adafruit_SSD1306.SSD1306_128_32(rst=None, i2c_bus=3)
File β€œ/usr/local/lib/python3.8/dist-packages/Adafruit_SSD1306-1.6.2-py3.8.egg/Adafruit_SSD1306/SSD1306.py”, line 287, in init
File β€œ/usr/local/lib/python3.8/dist-packages/Adafruit_SSD1306-1.6.2-py3.8.egg/Adafruit_SSD1306/SSD1306.py”, line 85, in init
File β€œ/usr/local/lib/python3.8/dist-packages/Adafruit_GPIO-1.0.6-py3.8.egg/Adafruit_GPIO/GPIO.py”, line 432, in get_platform_gpio
RuntimeError: Could not determine platform.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File β€œ/usr/bin/rockpi-penta/oled.py”, line 32, in
disp = disp_init()
File β€œ/usr/bin/rockpi-penta/oled.py”, line 22, in disp_init
disp = Adafruit_SSD1306.SSD1306_128_32(rst=None, i2c_bus=3)
File β€œ/usr/local/lib/python3.8/dist-packages/Adafruit_SSD1306-1.6.2-py3.8.egg/Adafruit_SSD1306/SSD1306.py”, line 287, in init
File β€œ/usr/local/lib/python3.8/dist-packages/Adafruit_SSD1306-1.6.2-py3.8.egg/Adafruit_SSD1306/SSD1306.py”, line 85, in init
File β€œ/usr/local/lib/python3.8/dist-packages/Adafruit_GPIO-1.0.6-py3.8.egg/Adafruit_GPIO/GPIO.py”, line 432, in get_platform_gpio
RuntimeError: Could not determine platform.

Cables are all plugged in and Penta SATA Hat is mounted according to Youtube instruction.
No brideges set or pins shorted. All hardware was shiped form Radxa in late November 2021.

cat /proc/device-tree/model

Would you like to install a new system using an SD card and test it out? I don’t know what environment is messing with it.

karl@rock-3a:~$ cat /proc/device-tree/mode
cat: /proc/device-tree/mode: No such file or directory
karl@rock-3a:~$ sudo cat /proc/device-tree/mode
cat: /proc/device-tree/mode: No such file or directory
???

Any reccommendation regarding der Version and Linux Brand? Ubuntu or Debian or what and packaging date / Version?
Further Question: What would you reccomend ro use to tranfer the hopfully working SD Image onto the eMMC? DD?
Would you or others recommend a direct transfer or would you make use of an image that then may be transfered via an other machine? Or woul youm after knowing all Parameters and sving tthese to on of the HDDs redo the intstall from the scratch havint to take appart the whole Rock 3a SBC plus the HAT?

Sorry, typo. cat /proc/device-tree/model

You can test it with the latest Ubuntu. It looks like you tried to install other libmraa earlier, I don’t know if you messed up the environment.

karl@rock-3a:~$

sudo cat /proc/device-tree/model

Radxa ROCK 3 Model AοΏ½karl@rock-3a:~$

Wierd behavior

β€œlibrmaa” install … did so as instructed… Will give it a Try and come back if needed, after wiping and Disassembly

what i did to run ubuntu from emmc:

  1. download image https://github.com/radxa/debos-radxa/releases/download/main-7f328c0c/rock-3a-ubuntu-focal-server-arm64-20220117-0232-gpt.img.xz
  2. flash it on sd card via Balena Etcher
  3. insert it in rock-3a
  4. put emmc module
  5. assemble penta hat
  6. power it up with penta hat dc
  7. then dd
    sudo dd if=/dev/mmcblk0 of=/dev/sda bs=1M status=progress
    where mmcblk0 - my sd card, sda - emmc
    when it is done, i made resize via parted (to bring back size of emmc)
  8. sudo shutdown and eject sd card

after that i’m booting from emmc

After that u can do apt update and everything else

Perfect description THX.
Next question Do you haven any stratey to make the rock 3a boot from /dev/sda or any other SSD or HDD (eg.a seperate boot partition hdd)?

Problem :
The eMMC must have same or bigger size than the SD Card.
The correct command line would be :
sudo dd if=/dev/mmcblk1 of=/dev/mmcblk0 bs=1M status=progress.
SDA would be one of the HDDs.

So, there’s no way around a fresh upload the UBUNTU IMG to the eMMC by etcher.

Also the hat’s fan finally seems to be woking, still the HAT’s LCD-Display remains dead.

yes, emmc must be >= than SD card
sda, mmcblk and etc. – can different for everyone, use lsblk in terminal to identify what if what

to flash emmc - u should use emmc to sdcard to usb adapter (easy* way) or google how to do it (i didnt do that, dd from sd card suite me)

I dont want to make my hdd and ssd bootable, gonna stay on emmc. No secret reason here, just easier for me to play with emmc rather than hdd with 500gb+ storage :smiley:

p.s. good to hear that fan is working now :slight_smile:
https://wiki.radxa.com/Device-tree-overlays

check this one, maybe it will help with lcd (read carefully, choose RK3566/RK3568 Available Overlay (ROCK 3 A, ROCK 3 B, Radxa CM3) if that your case)

Yes at least . and it is not really getting warm,
The ROCK PI QUAD SATA HAT I Do own siince more than a year is porducing much more heat! in comparism

LCD is still not working.:frowning:

Ideas how to fix ? cat /boot/uEnv.txt Shows the followig

verbosity=7
overlay_prefix=rockchip
rootfstype=ext4
fdtfile=rockchip/rk3568-rock-3-a.dtb
overlays=rk3568-can1-m0 rk3568-pwm8-m0-fan rk3568-pwm15-m0 rk3568-i2c3-m0
rootuuid=29d09f88-a0e1-4993-b749-979cad36f58d
initrdsize=0x9e27ce
kernelversion=4.19.193-26-rockchip-gfc6004006609
initrdimg=initrd.img-4.19.193-26-rockchip-gfc6004006609
kernelimg=vmlinuz-4.19.193-26-rockchip-gfc6004006609

Cannot find anything about LCD plus the Button in the Link you mentioned :-((

please tell me the result of sudo i2cdetect -y 0

Blockquote
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- UU – -- –
20: UU – -- – -- – -- – -- – -- – -- – -- –
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: 50 51 52 53 54 55 56 57 – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --

sorry for the format and not seeing your request ,I was ofsite for some time!

Any hints?
Somehow it works and the fan is rotating. Still i do have an uncertain Feeling regarding Stability.
Will there be an updated patch/Install process to prevent a full reinstall from the scratch.
Especially as the LCD still is dead.