Penta hat can't see any drives - 2023

Can’t see any drives. Can anyone help?

Here is the entire setup:

# flash emmc with balenaEtcher

# info at: https://wiki.radxa.com/Rock4/downloads

# use image: 
# https://github.com/radxa/debos-radxa/releases/download/20221109-1007/rockpi-4b-ubuntu-focal-server-arm64-20221109-1331-gpt.img.xz

# boot up, find IP in router ARP table

ssh rock@10.1.10.230 

rock/rock

sudo su
apt-get update

# error:
# W: GPG error: http://apt.radxa.com/focal-stable focal InRelease: The following signatures couldn't be verified because the
# public key is not available: NO_PUBKEY 9B98116C9AA302C7 
# E: The repository 'http://apt.radxa.com/focal-stable focal InRelease' is not signed.

# fix the error:
export DISTRO=focal-stable
wget -O - apt.radxa.com/$DISTRO/public.key | sudo apt-key add -
apt-get update
apt-get upgrade

# restart
shutdown -r now

# ssh back in
ssh rock@10.1.10.23

rock/rock

sudo su

# add the penta sata hat on the Rock Pi 4b
# see: https://wiki.radxa.com/Penta_SATA_HAT
curl -sL https://rock.sh/get-rockpi-penta | sudo -E bash -

# if curl is missing:
sudo apt-get install curl

# possible error:
# Reading state information... Done
# E: Unable to locate package rockpi4b-rk-u-boot-latest
# Traceback (most recent call last):
#   File "setup.py", line 3, in <module>
#     from setuptools import setup, find_packages
# ModuleNotFoundError: No module named 'setuptools'
# fix with:
sudo apt-get install python3-setuptools

# possible error:
# ModuleNotFoundError: No module named 'pip'
# ModuleNotFoundError: No module named 'ensurepip'

# fix:
sudo apt-get install python3-pip

# run the setup script again
curl -sL https://rock.sh/get-rockpi-penta | sudo -E bash -

# restart
sudo shutdown -r now

# ssh in
ssh rock@10.1.10.230
rock/rock

# check status of penta service
sudo systemctl status rockpi-penta.service

# proper output:
# rockpi-penta.service - Rockpi SATA Hat
#      Loaded: loaded (/lib/systemd/system/rockpi-penta.service; enabled; vendor preset: enabled)
#      Active: active (running) since Tue 2023-09-26 04:34:14 UTC; 16s ago
#    Main PID: 456 (python3)
#       Tasks: 2 (limit: 4546)
#      Memory: 13.0M
#      CGroup: /system.slice/rockpi-penta.service
#              ├─456 /usr/bin/python3 /usr/bin/rockpi-penta/main.py on
#              └─875 /usr/bin/python3 /usr/bin/rockpi-penta/main.py on
# 
# Sep 26 04:34:14 rockpi-4b systemd[1]: Started Rockpi SATA Hat.
# Sep 26 04:34:14 rockpi-4b libmraa[456]: libmraa version v2.1.0 initialised by user 'root' with EUID 0
# Sep 26 04:34:14 rockpi-4b libmraa[456]: gpio: platform doesn't support chardev, falling back to sysfs
# Sep 26 04:34:14 rockpi-4b libmraa[456]: libmraa initialised for platform 'ROCK Pi 4' of type 20


# do this
sudo i2cdetect -y 1

# should see this:
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


# at this point you should be able to see drives with
sudo fdisk -l
# or
sudo lsblk

# I can't.

# see the sata controller:
# sudo lspci
# 00:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd RK3399 PCI Express Root Port
# 01:00.0 SATA controller: JMicron Technology Corp. Device 0585


# to fix error:
#  E: Unable to locate package rockpi4b-rk-u-boot-latest
sudo su
cd /root
wget https://apt.radxa.com/bionic-stable/pool/main/r/rockpi4b-rk-ubootimg/rockpi4b-rk-ubootimg_2017.09-2700-g70b4cfe057_all.deb
dpkg -i rockpi4b-rk-ubootimg_2017.09-2700-g70b4cfe057_all.deb
y

wget https://apt.radxa.com/bionic-stable/pool/main/r/rockpi4b-rk-u-boot-latest/rockpi4b-rk-u-boot-latest_2017.09-2700-g70b4cfe057_all.deb
dpkg -i rockpi4b-rk-u-boot-latest_2017.09-2700-g70b4cfe057_all.deb

shutdown -r now

# run the setup script again
curl -sL https://rock.sh/get-rockpi-penta | sudo -E bash -

# looks good, no errors


# root@rockpi-4b:~# fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mmcblk1: 29.12 GiB, 31268536320 bytes, 61071360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D6A63D4E-3609-4FE1-8BA9-69D6C9CA2D5E

Device           Start      End  Sectors  Size Type
/dev/mmcblk1p1      64     8063     8000  3.9M Microsoft basic data
/dev/mmcblk1p2   16384    24575     8192    4M Microsoft basic data
/dev/mmcblk1p3   24576    32767     8192    4M Microsoft basic data
/dev/mmcblk1p4   32768  1081343  1048576  512M EFI System
/dev/mmcblk1p5 1081344 61069407 59988064 28.6G Linux filesystem

Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes



# can't see any of the drives plugged in. 



root@rockpi-4b:~# lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk1      179:0    0 29.1G  0 disk
|-mmcblk1p1  179:1    0  3.9M  0 part
|-mmcblk1p2  179:2    0    4M  0 part
|-mmcblk1p3  179:3    0    4M  0 part
|-mmcblk1p4  179:4    0  512M  0 part /boot
`-mmcblk1p5  179:5    0 28.6G  0 part /
mmcblk1boot0 179:32   0    4M  1 disk
mmcblk1boot1 179:64   0    4M  1 disk
mmcblk1rpmb  179:96   0    4M  0 disk


# can't see any drives.