# start with a brand new Rock Pi, with an eMMC module
# Using the Penta Penta HAT from: https://wiki.radxa.com/Penta_SATA_HAT
# go to downloads
# https://wiki.radxa.com/Rockpi4/downloads
# look for the latest, I used the Rock Pi 4 SE board, which is the same as the 4C
# https://github.com/radxa-build/rock-pi-4c/releases
# I chose this image:
https://github.com/armbian/community/releases/download/24.5.0-trunk.367/Armbian_community_24.5.0-trunk.367_Rockpi-4c_bookworm_current_6.6.25_minimal.img.xz
# get it
curl -L -O https://github.com/armbian/community/releases/download/24.5.0-trunk.367/Armbian_community_24.5.0-trunk.367_Rockpi-4c_bookworm_current_6.6.25_minimal.img.xz
# unzip it
xz -d Armbian_community_24.5.0-trunk.367_Rockpi-4c_bookworm_current_6.6.25_minimal.img.xz
# download this USB Imager tool:
# https://gitlab.com/bztsrc/usbimager
# run it
usbimager
# write the image to the eMMC
# Find the device IP in the router and ssh to it:
ssh root@10.1.10.230 - default password is 1234
# continue setup, change root password, create second user, etc.
apt-get update
apt-get upgrade
# The upgrade breaks the system, makes the file system read-only:
...
Get:76 http://deb.debian.org/debian bullseye/main arm64 libpixman-1-0 arm64 0.40.0-1.1~deb11u1 [445 kB]
Get:77 http://deb.debian.org/debian bullseye/main arm64 libx11-data all 2:1.7.2-1+deb11u2 [311 kB]
Get:78 http://deb.debian.org/debian bullseye/main arm64 libx11-6 arm64 2:1.7.2-1+deb11u2 [744 kB]
Get:79 http://deb.debian.org/debian bullseye/main arm64 openssl arm64 1.1.1w-0+deb11u1 [837 kB]
Get:80 http://deb.debian.org/debian bullseye/main arm64 sudo arm64 1.9.5p2-3+deb11u1 [996 kB]
Fetched 47.6 MB in 1s (34.1 MB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
debconf: DbDriver "templatedb": could not sync /var/cache/debconf/templates.dat-new: Input/output error
(Reading database ... 27178 files and directories currently installed.)
Preparing to unpack .../base-files_11.1+deb11u9_arm64.deb ...
Unpacking base-files (11.1+deb11u9) over (11.1+deb11u5) ...
dpkg: unrecoverable fatal error, aborting:
unable to fsync updated status of 'base-files': Input/output error
/usr/lib/armbian/armbian-apt-updates: line 53: /var/cache/apt/archives/updates.number: Read-only file system
/usr/lib/armbian/armbian-apt-updates: line 61: /var/cache/apt/archives/updates.list: Read-only file system
E: Sub-process /usr/bin/dpkg returned an error code (2)
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - pkgDPkgPM::Go (30: Read-only file system)
root@rockpi-4c:~#
root@rockpi-4c:~#
root@rockpi-4c:~# apt-get upgrade
W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@rockpi-4c:~# dpkg --configure -a
dpkg: error: unable to access the dpkg database directory /var/lib/dpkg: Read-only file system
# reboot once
root@rockpi-4c:~# sudo reboot
# run the rock pi penta script:
curl -sL https://rock.sh/get-rockpi-penta | sudo -E bash -
# list the drives
lsblk
AME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
└─sda1 8:1 0 465.8G 0 part
mmcblk1 179:0 0 29.1G 0 disk
└─mmcblk1p1 179:1 0 28.8G 0 part /
mmcblk1boot0 179:32 0 4M 1 disk
mmcblk1boot1 179:64 0 4M 1 disk
zram0 252:0 0 1.9G 0 disk [SWAP]
zram1 252:1 0 50M 0 disk /var/log
# sda is visible! we can add more drives.
Here it is with all the drives taken out.
If using the Ubuntu image from: https://wiki.radxa.com/Rock4/downloads
ex: curl -OL https://github.com/radxa/debos-radxa/releases/download/20221109-1007/rockpi-4b-ubuntu-focal-server-arm64-20221109-1331-gpt.img.xz
apt-get will be broken, so you might need to run:
wget -O - apt.radxa.com/focal-stable/public.key | sudo apt-key add -
sudo apt-get update