DevTerm R-01 - Ubuntu

Hardware info on main page.

Links

wiki Create DevTerm R01 OS image from scratch, forums, DevTerm, andypiper/DevTerm-KB, Debian on Devterm R-01, forum threads: R01 OS Early Hints, Battery information for the R01, R01 and HDMI output,

other links

VirtualT, Tandy TRS-80 Model 100 emulator for DevTerm A06 & A04,

local links

FreeBSD workstation c2,

History

2022-07-16: mmcblk0p4 - version and so on

tingo@devterm-R01:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:    22.04
Codename:   jammy

kernel

tingo@devterm-R01:~$ uname -a
Linux devterm-R01 5.4.61 #12 PREEMPT Wed Mar 30 14:44:22 CST 2022 riscv64 riscv64 riscv64 GNU/Linux

2022-07-16: mmcblk0p4 - apt - check and so on

tingo@devterm-R01:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libpython3.9-minimal libpython3.9-stdlib libssl1.1 python3-debconf python3-debian python3.9 python3.9-minimal
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

autoremove

tingo@devterm-R01:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libpython3.9-minimal libpython3.9-stdlib libssl1.1 python3-debconf python3-debian python3.9 python3.9-minimal
0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
After this operation, 21.1 MB disk space will be freed.
[..]
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...

autoclean

tingo@devterm-R01:~$ sudo apt autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

2022-07-16: mmcblk0p4 - apt - check status

tingo@devterm-R01:~$ sudo apt upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

fix

tingo@devterm-R01:~$ sudo dpkg --configure -a
Setting up cups-ipp-utils (2.4.1op1-1ubuntu4.1) ...
Setting up libxklavier16:riscv64 (5.4-4build2) ...
Setting up networkd-dispatcher (2.1-2ubuntu0.22.04.2) ...
Setting up libcanberra-pulse:riscv64 (0.30-10ubuntu1) ...
Setting up cups-ppdc (2.4.1op1-1ubuntu4.1) ...
Setting up xserver-xorg-video-amdgpu (22.0.0-1build1) ...
Setting up python3-gdbm:riscv64 (3.10.4-0ubuntu1) ...
Setting up gnome-menus (3.36.0-1ubuntu3) ...
Setting up python3-problem-report (2.20.11-0ubuntu82.1) ...
Setting up xserver-xorg-video-ati (1:19.1.0-2build3) ...
Setting up python3-yaml (5.4.1-1ubuntu1) ...
Setting up libswresample3:riscv64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up cups-client (2.4.1op1-1ubuntu4.1) ...
Setting up gvfs-daemons (1.48.2-0ubuntu1) ...
Setting up libfreetype6-dev:riscv64 (2.11.1+dfsg-1build1) ...
Setting up cups-daemon (2.4.1op1-1ubuntu4.1) ...
Setting up avahi-daemon (0.8-5ubuntu5) ...
Setting up at-spi2-core (2.44.0-3) ...
Setting up xserver-xorg-video-vesa (1:2.5.0-1build4) ...
Setting up gnupg (2.2.27-3ubuntu2.1) ...
Setting up libavcodec58:riscv64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up x11-session-utils (7.7+4build2) ...
Setting up libswscale5:riscv64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up ubuntu-advantage-tools (27.9~22.04.1) ...
Installing new version of config file /etc/ubuntu-advantage/help_data.yaml ...
Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ...
Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-advantage.service  /lib/systemd/system/ubuntu-advan
tage.service.
Setting up bind9-dnsutils (1:9.18.1-1ubuntu1.1) ...
Setting up sane-utils (1.1.1-5) ...
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
usermod: no changes
saned.socket is a disabled or a static unit not running, not starting it.
Setting up lsb-release (11.1.0ubuntu4) ...
Setting up libsdl2-2.0-0:riscv64 (2.0.20+dfsg-2ubuntu1.22.04.1) ...
Setting up python3-lib2to3 (3.10.4-0ubuntu1) ...
Setting up python3-distro-info (1.1build1) ...
Setting up libcupsfilters1:riscv64 (1.28.15-0ubuntu1) ...
Setting up python3-cffi-backend:riscv64 (1.15.0-1build2) ...
Setting up xfce4-helpers (4.16.2-1ubuntu2) ...
Setting up python3-distutils (3.10.4-0ubuntu1) ...
Setting up cups-browsed (1.28.15-0ubuntu1) ...
Setting up cloud-init (22.2-0ubuntu1~22.04.3) ...
Installing new version of config file /etc/cloud/cloud.cfg ...
Setting up gvfs:riscv64 (1.48.2-0ubuntu1) ...
Setting up ubuntu-minimal (1.481) ...
Setting up cups-bsd (2.4.1op1-1ubuntu4.1) ...
Setting up python3-bcrypt (3.2.0-1build1) ...
Setting up ubuntu-standard (1.481) ...
Setting up cups-filters-core-drivers (1.28.15-0ubuntu1) ...
Setting up python3-apport (2.20.11-0ubuntu82.1) ...
Setting up python3-software-properties (0.99.22.2) ...
Setting up python3-cryptography (3.4.8-1ubuntu2) ...
Setting up xserver-xorg-video-all (1:7.7+23ubuntu2) ...
Setting up cups-core-drivers (2.4.1op1-1ubuntu4.1) ...
Setting up xserver-xorg (1:7.7+23ubuntu2) ...
Setting up software-properties-common (0.99.22.2) ...
Setting up apport (2.20.11-0ubuntu82.1) ...
Installing new version of config file /etc/apport/crashdb.conf ...
Installing new version of config file /etc/init.d/apport ...
apport-autoreport.service is a disabled or a static unit, not starting it.
Setting up python3-twisted (22.1.0-2ubuntu2.1) ...
Setting up landscape-common (19.12-0ubuntu13) ...
Setting up python3-distupgrade (1:22.04.11) ...
Setting up ubuntu-release-upgrader-core (1:22.04.11) ...

Configuration file '/etc/update-motd.d/91-release-upgrade'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** 91-release-upgrade (Y/I/N/O/D/Z) [default=N] ? 
[..]
Setting up python3-update-manager (1:22.04.9) ...
Setting up update-manager-core (1:22.04.9) ...
Processing triggers for sgml-base (1.30) ...
Setting up libfontconfig1:riscv64 (2.13.1-4.2ubuntu5) ...
Processing triggers for install-info (6.8-4build1) ...
Processing triggers for menu (2.1.47ubuntu4) ...
Setting up libbluray2:riscv64 (1:1.3.1-1) ...
Setting up fontconfig (2.13.1-4.2ubuntu5) ...
Regenerating fonts cache... done.
Setting up libxft2:riscv64 (2.3.4-1) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...
Setting up libgs9:riscv64 (9.55.0~dfsg1-0ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for dictionaries-common (1.28.14) ...
Setting up libfontconfig-dev:riscv64 (2.13.1-4.2ubuntu5) ...
Setting up libavformat58:riscv64 (7:4.4.2-0ubuntu0.22.04.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Setting up libpango-1.0-0:riscv64 (1.50.6+ds-2) ...
Setting up libqt5gui5:riscv64 (5.15.3+dfsg-2ubuntu0.1) ...
Setting up x11-apps (7.7+8build2) ...
Setting up libqt5widgets5:riscv64 (5.15.3+dfsg-2ubuntu0.1) ...
Processing triggers for ufw (0.36.1-4build1) ...
Setting up ghostscript (9.55.0~dfsg1-0ubuntu5) ...
Setting up libqt5help5:riscv64 (5.15.3-1) ...
Setting up libqt5printsupport5:riscv64 (5.15.3+dfsg-2ubuntu0.1) ...
Processing triggers for plymouth-theme-ubuntu-text (0.9.5+git20211018-1ubuntu3) ...
update-initramfs: deferring update (trigger activated)
Setting up libqt5opengl5:riscv64 (5.15.3+dfsg-2ubuntu0.1) ...
Setting up x11-utils (7.7+5build2) ...
Setting up cups-filters (1.28.15-0ubuntu1) ...
Setting up libpangoft2-1.0-0:riscv64 (1.50.6+ds-2) ...
Setting up libqt5quick5:riscv64 (5.15.3+dfsg-1) ...
Setting up libpangocairo-1.0-0:riscv64 (1.50.6+ds-2) ...
Setting up libxft-dev:riscv64 (2.3.4-1) ...
Setting up gtk2-engines-murrine:riscv64 (0.98.2-3build2) ...
Setting up libdbusmenu-gtk3-4:riscv64 (16.04.1+18.10.20180917-0ubuntu8) ...
Setting up libfontconfig1-dev:riscv64 (2.13.1-4.2ubuntu5) ...
Setting up libpangoxft-1.0-0:riscv64 (1.50.6+ds-2) ...
Setting up libqt5designer5:riscv64 (5.15.3-1) ...
Setting up cups (2.4.1op1-1ubuntu4.1) ...
Updating PPD files for cups ...
Updating PPD files for cups-filters ...
Setting up libgtk-3-0:riscv64 (3.24.33-1ubuntu2) ...
Setting up libgtk2.0-0:riscv64 (2.24.33-2ubuntu2) ...
Setting up libqt5svg5:riscv64 (5.15.3-1) ...
Setting up libgtk-3-bin (3.24.33-1ubuntu2) ...
Setting up libcanberra-gtk3-0:riscv64 (0.30-10ubuntu1) ...
Setting up libqt5webkit5:riscv64 (5.212.0~alpha4-15ubuntu1) ...
Setting up libvte-2.91-0:riscv64 (0.68.0-1) ...
Setting up libnautilus-extension1a:riscv64 (1:42.2-0ubuntu1) ...
Setting up qt5-gtk-platformtheme:riscv64 (5.15.3+dfsg-2ubuntu0.1) ...
Setting up libcanberra-gtk3-module:riscv64 (0.30-10ubuntu1) ...
Setting up libwxgtk3.0-gtk3-0v5:riscv64 (3.0.5.1+dfsg-4) ...
Setting up xorg (1:7.7+23ubuntu2) ...
Setting up libqt5quickwidgets5:riscv64 (5.15.3+dfsg-1) ...
Setting up gir1.2-pango-1.0:riscv64 (1.50.6+ds-2) ...
Setting up libdecor-0-plugin-1-cairo:riscv64 (0.1.0-3build1) ...
Setting up libgail18:riscv64 (2.24.33-2ubuntu2) ...
Setting up libwebkit2gtk-4.0-37:riscv64 (2.36.3-0ubuntu0.22.04.1) ...
Setting up libgtk2.0-bin (2.24.33-2ubuntu2) ...
Setting up libwnck-3-0:riscv64 (40.1-1) ...
Setting up xfce4-settings (4.16.2-1ubuntu2) ...
Setting up python3-pyqt5 (5.15.6+dfsg-1ubuntu3) ...
Setting up gnome-terminal (3.44.0-1ubuntu1) ...
Setting up devterm-thermal-printer-cups (0.12) ...
Stopping cups (via systemctl): cups.serviceWarning: Stopping cups.service, but it can still be activated by:
  cups.socket
  cups.path
.
Starting cups (via systemctl): cups.service.
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
Setting up python3-pyqt5.qtsql (5.15.6+dfsg-1ubuntu3) ...
Setting up python3-pyqt5.qtopengl (5.15.6+dfsg-1ubuntu3) ...
Setting up libgail-common:riscv64 (2.24.33-2ubuntu2) ...
Setting up libgtkmm-3.0-1v5:riscv64 (3.24.5-1build1) ...
Setting up gir1.2-gtk-3.0:riscv64 (3.24.33-1ubuntu2) ...
Setting up libyelp0:riscv64 (42.1-1) ...
Setting up zenity (3.42.1-0ubuntu1) ...
Setting up nautilus-extension-gnome-terminal (3.44.0-1ubuntu1) ...
Setting up python3-pyqt5.qtwebkit (5.15.6+dfsg-1ubuntu3) ...
Setting up python3-pyqt5.qtquick (5.15.6+dfsg-1ubuntu3) ...
Setting up yelp (42.1-1) ...
Setting up qutebrowser-qtwebkit (2.5.0-1) ...
Setting up qutebrowser (2.5.0-1) ...
update-alternatives: using /usr/bin/qutebrowser to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Processing triggers for menu (2.1.47ubuntu4) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...

2022-07-16: mmcblk0p4 - I forcibly turned off the machine, hoping that nothing would be broken. Upon power on, nmcli g showed that the wifi readio was disabled, a quick sudo nmcli radio wifi on fixed that and now the machine is on the net again

2022-07-16: mmcblk0p4 - apt update (640 package can be upgraded), then upgrade

tingo@devterm-R01:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libpython3.9-minimal libpython3.9-stdlib libssl1.1 python3-debconf python3-debian python3.9 python3.9-minimal
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libgl1-amber-dri libnftables1 libxcvt0 mesa-utils-bin nftables xcvt
The following packages will be upgraded:
  alsa-ucm-conf apparmor apport apt apt-utils aspell at-spi2-core avahi-daemon base-files base-passwd bc bcache-tools
  bind9-dnsutils bind9-host bind9-libs build-essential bzip2 cloud-init cpp-10 cpp-11 cron cups cups-browsed cups-bsd
  cups-client cups-common cups-core-drivers cups-daemon cups-filters cups-filters-core-drivers cups-ipp-utils
  cups-ppdc cups-server-common curl dash dbus dbus-user-session dbus-x11 debianutils desktop-file-utils
  devterm-thermal-printer devterm-thermal-printer-cups diffutils dirmngr distro-info distro-info-data dnsmasq-base
  dosfstools dpkg dpkg-dev e2fsprogs eatmydata file findutils firmware-sof-signed fontconfig fontconfig-config ftp
  fuse3 g++-11 gawk gcc-10 gcc-10-base gcc-11 gcc-11-base gdisk geoclue-2.0 gettext-base ghostscript gir1.2-atk-1.0
  gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0 gir1.2-pango-1.0 git git-man gnome-keyring gnome-keyring-pkcs11 gnome-menus
  gnome-terminal gnome-terminal-data gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf
  gpgsm gpgv grep groff-base gtk-update-icon-cache gtk2-engines-murrine gvfs gvfs-common gvfs-daemons gvfs-libs gzip
  hdparm hostname htop iproute2 iptables irqbalance isc-dhcp-client isc-dhcp-common iw kbd landscape-common less
  libaa1 libaio1 libamd2 libapparmor1 libapt-pkg6.0 libarchive13 libasan6 libaspell15 libassuan0 libasyncns0
  libatasmart4 libatk1.0-0 libatk1.0-data libatkmm-1.6-1v5 libatm1 libatspi2.0-0 libattr1 libavahi-client3
  libavahi-common-data libavahi-common3 libavahi-core7 libavahi-glib1 libavc1394-0 libavcodec58 libavformat58
  libavutil56 libbabl-0.1-0 libbluray2 libboost-filesystem1.74.0 libboost-thread1.74.0 libbrotli-dev libbrotli1
  libbz2-1.0 libcaca0 libcairomm-1.0-1v5 libcamd2 libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra-pulse
  libcanberra0 libcap2 libcap2-bin libccolamd2 libcdio-cdda2 libcdio19 libcdparanoia0 libcholmod3 libcolamd2
  libcom-err2 libcups2 libcupsfilters1 libcurl3-gnutls libcurl4 libdaemon0 libdb5.3 libdbus-1-3 libdbus-glib-1-2
  libdbusmenu-glib4 libdbusmenu-gtk3-4 libdecor-0-0 libdecor-0-plugin-1-cairo libdeflate0 libdjvulibre-text
  libdjvulibre21 libdns-export1110 libdpkg-perl libdv4 libeatmydata1 libedit2 libegl-mesa0 libelf1 libepoxy0 libestr0
  libevdev2 libevent-core-2.1-7 libexif12 libexiv2-27 libext2fs2 libfastjson4 libfftw3-double3 libfftw3-single3
  libflac8 libflashrom1 libfontconfig-dev libfontconfig1 libfontconfig1-dev libfontembed1 libfontenc1 libfreetype-dev
  libfreetype6 libfreetype6-dev libfribidi0 libfuse3-3 libgail-common libgail18 libgbm1 libgc1 libgcab-1.0-0
  libgcc-10-dev libgcc-11-dev libgcrypt20 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common
  libgexiv2-2 libgif7 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgles2-mesa libglib2.0-0 libglib2.0-bin
  libglib2.0-data libglx-mesa0 libgpgme11 libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgraphite2-3 libgs9
  libgs9-common libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkmm-3.0-1v5
  libgtop-2.0-11 libgtop2-common libgudev-1.0-0 libhogweed6 libhttp-daemon-perl libhunspell-1.7-0 libhyphen0 libice6
  libidn12 libidn2-0 libiec61883-0 libieee1284-3 libijs-0.35 libinih1 libinput-bin libinput10 libip4tc2 libip6tc2
  libisc-export1105 libisl23 libisns0 libjansson4 libjavascriptcoregtk-4.0-18 libjbig0 libjbig2dec0 libjpeg8
  libjson-c5 libjson-glib-1.0-0 libjson-glib-1.0-common libksba8 liblcms2-2 libldap-2.5-0 libldap-common liblmdb0
  liblouis-data liblouis20 libltdl7 liblua5.3-0 liblz4-1 liblzma5 liblzo2-2 libmagic-mgc libmagic1 libmanette-0.2-0
  libmaxminddb0 libmbim-glib4 libmbim-proxy libmd0 libmetis5 libmnl0 libmp3lame0 libmpc3 libmpdec3 libmpfr6
  libmpg123-0 libmtdev1 libnautilus-extension1a libndp0 libnettle8 libnfnetlink0 libnftnl11 libnghttp2-14 libnm0
  libnotify-bin libnotify4 libnpth0 libnsl-dev libnsl2 libnspr4 libnss-systemd libnss3 libntfs-3g89 libnuma1 libogg0
  libopus0 libotf1 libp11-kit0 libpam-cap libpam-gnome-keyring libpam-systemd libpango-1.0-0 libpangocairo-1.0-0
  libpangoft2-1.0-0 libpangoxft-1.0-0 libpaper-utils libpaper1 libparted-fs-resize0 libparted2 libpcap0.8
  libpcre2-16-0 libpcre2-8-0 libpcre3 libpixman-1-0 libpng-dev libpng-tools libpng16-16 libpopt0 libproxy1v5 libpsl5
  libpthread-stubs0-dev libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib libpython3.10
  libpython3.10-minimal libpython3.10-stdlib libqt5core5a libqt5dbus5 libqt5designer5 libqt5gui5 libqt5help5
  libqt5network5 libqt5opengl5 libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5qmlmodels5 libqt5quick5
  libqt5quickwidgets5 libqt5sensors5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5test5 libqt5webchannel5
  libqt5webkit5 libqt5widgets5 libqt5xml5 libraw1394-11 libraw20 librevenge-0.0-0 librtmp1 libsamplerate0
  libsane-common libsane1 libsdl2-2.0-0 libselinux1 libsensors-config libsensors5 libsepol2 libshout3
  libsigc++-2.0-0v5 libsigsegv2 libslang2 libsm6 libsnappy1v5 libsndfile1 libsnmp-base libsnmp40 libsodium23 libsoxr0
  libsrt1.4-gnutls libss2 libssh-4 libssh-gcrypt-4 libssl3 libstartup-notification0 libstdc++-11-dev libstemmer0d
  libsuitesparseconfig5 libswresample3 libswscale5 libsystemd0 libtasn1-6 libtcl8.6 libteamdctl0 libthai-data
  libthai0 libtheora0 libtirpc-common libtirpc-dev libtirpc3 libtwolame0 libuchardet0 libudev1 libudisks2-0
  libumfpack5 libusb-1.0-0 libusbmuxd6 libutempter0 libv4l-0 libv4lconvert0 libvdpau1 libvisual-0.4-0 libvorbis0a
  libvorbisenc2 libvorbisfile3 libvpx7 libvte-2.91-0 libvte-2.91-common libwacom-bin libwacom-common libwacom9
  libwavpack1 libwebkit2gtk-4.0-37 libwebrtc-audio-processing1 libwnck-3-0 libwnck-3-common libwoff1 libwpd-0.10-10
  libwpg-0.3-3 libwrap0 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 libx11-6 libx11-data libx11-dev libx11-xcb1 libxau-dev
  libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-icccm4 libxcb-keysyms1 libxcb-present0 libxcb-randr0
  libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0
  libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxcb-xtest0 libxcb-xv0 libxcb1 libxcb1-dev libxcomposite1 libxcursor1
  libxdamage1 libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxfont2 libxft-dev libxft2 libxi6 libxkbfile1
  libxklavier16 libxml2 libxmlb2 libxpm4 libxrandr2 libxrender-dev libxrender1 libxshmfence1 libxslt1.1 libxss1
  libxtables12 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 libyaml-0-2 libyelp0 libzstd1 linux-firmware linux-libc-dev
  logrotate logsave lsb-base lsb-release lshw lsof lto-disabled-list man-db mesa-utils mesa-va-drivers
  mesa-vdpau-drivers motd-news-config nautilus-extension-gnome-terminal net-tools network-manager networkd-dispatcher
  ntfs-3g openssl p11-kit p11-kit-modules parted patch pinentry-curses pinentry-gnome3 pkg-config pptp-linux psmisc
  python2.7 python2.7-minimal python3 python3-apport python3-bcrypt python3-cffi-backend python3-cryptography
  python3-distro-info python3-distupgrade python3-distutils python3-gdbm python3-lib2to3 python3-minimal
  python3-netifaces python3-numpy python3-problem-report python3-pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qtquick
  python3-pyqt5.qtsql python3-pyqt5.qtwebkit python3-serial python3-six python3-software-properties python3-twisted
  python3-tz python3-update-manager python3-yaml python3.10 python3.10-minimal qt5-gtk-platformtheme
  qttranslations5-l10n qutebrowser qutebrowser-qtwebkit rpcsvc-proto rsync rsyslog rtkit sane-airscan sane-utils sed
  snapd socat software-properties-common squashfs-tools systemd systemd-sysv systemd-timesyncd tar tcl tcl8.6 tcpdump
  telnet time tmux tnftp u-boot-sifive ubuntu-advantage-tools ubuntu-minimal ubuntu-release-upgrader-core
  ubuntu-standard udev udisks2 update-manager-core usb-modeswitch usb.ids usbmuxd usbutils vdpau-driver-all vim
  vim-common vim-runtime vim-tiny wpasupplicant x11-apps x11-common x11-session-utils x11-utils x11-xkb-utils
  x11-xserver-utils xauth xbitmaps xdg-user-dirs xdg-utils xfce4-helpers xfce4-settings xfonts-utils xinit xinput
  xorg xserver-common xserver-xephyr xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-wacom
  xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati
  xserver-xorg-video-fbdev xserver-xorg-video-radeon xserver-xorg-video-vesa xxd xz-utils yelp zenity zenity-common
  zlib1g zlib1g-dev zstd
640 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
81 standard security updates
Need to get 536 MB of archives.
After this operation, 4772 kB of additional disk space will be used.
[..]
Setting up xinput (1.6.3-1build2) ...
Setting up geoclue-2.0 (2.5.7-3ubuntu3) ...
geoclue.service is a disabled or a static unit not running, not starting it.
Setting up network-manager (1.36.6-0ubuntu2) ...
[..]

and here the network connection was lost. nmcli g shows that everything is enabled, but the connection is disconnected. Heh - even systemctl list-units times out.

2022-07-16: mmcblk0p4 - reboot, everything still works.

2022-07-16: mmcblk0p4 - apt - fix /etc/apt/sources.list (change devel to jammy)

tingo@devterm-R01:~$ sudo sed -i 's/devel/jammy/g' /etc/apt/sources.list

verified ok.

2022-07-16: mmcblk0p4 - apt - remove some uneeded packages

tingo@devterm-R01:~$ sudo apt remove update-notifier-common linux-*5.*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'linux-image-unsigned-5.11.0-1007-generic' for glob 'linux-*5.*'
Note, selecting 'linux-oracle-headers-5.15.0-1001' for glob 'linux-*5.*'
Note, selecting 'linux-tools-5.15.0-1004-generic' for glob 'linux-*5.*'
Note, selecting 'linux-buildinfo-5.15.0-1004-generic' for glob 'linux-*5.*'
Note, selecting 'linux-modules-5.11.0-1007-generic' for glob 'linux-*5.*'
Note, selecting 'linux-modules-extra-5.15.0-1004-generic' for glob 'linux-*5.*'
Note, selecting 'linux-headers-5.15.0-1004-generic' for glob 'linux-*5.*'
Note, selecting 'linux-aws-headers-5.15.0-1002' for glob 'linux-*5.*'
Note, selecting 'linux-image-5.13.0-1010-generic' for glob 'linux-*5.*'
Note, selecting 'linux-modules-extra-5.11.0-1007-generic' for glob 'linux-*5.*'
Note, selecting 'linux-riscv-headers-5.11.0-1007' for glob 'linux-*5.*'
Note, selecting 'linux-lowlatency-headers-5.15.0-22' for glob 'linux-*5.*'
Note, selecting 'linux-kvm-headers-5.15.0-1002' for glob 'linux-*5.*'
Note, selecting 'linux-headers-5.11.0-1007-generic' for glob 'linux-*5.*'
Note, selecting 'linux-tools-5.13.0-1010-generic' for glob 'linux-*5.*'
Note, selecting 'linux-modules-extra-5.13.0-1010-generic' for glob 'linux-*5.*'
Note, selecting 'linux-riscv-headers-5.15.0-1004' for glob 'linux-*5.*'
Note, selecting 'linux-azure-headers-5.15.0-1001' for glob 'linux-*5.*'
Note, selecting 'linux-riscv-source-5.11.0' for glob 'linux-*5.*'
Note, selecting 'linux-riscv-source-5.15.0' for glob 'linux-*5.*'
Note, selecting 'linux-source-5.15.0' for glob 'linux-*5.*'
Note, selecting 'linux-image-5.15.0-1004-generic' for glob 'linux-*5.*'
Note, selecting 'linux-headers-5.15.0-23' for glob 'linux-*5.*'
Note, selecting 'linux-headers-5.13.0-1010-generic' for glob 'linux-*5.*'
Note, selecting 'linux-image-unsigned-5.15.0-1004-generic' for glob 'linux-*5.*'
Note, selecting 'linux-image-5.11.0-1007-generic' for glob 'linux-*5.*'
Note, selecting 'linux-riscv-tools-5.15.0-1004' for glob 'linux-*5.*'
Note, selecting 'linux-modules-5.15.0-1004-generic' for glob 'linux-*5.*'
Package 'linux-headers-5.13.0-1010-generic' is not installed, so not removed
Package 'linux-image-unsigned-5.15.0-1004-generic' is not installed, so not removed
Package 'linux-riscv-source-5.15.0' is not installed, so not removed
Package 'linux-image-5.13.0-1010-generic' is not installed, so not removed
Package 'linux-modules-extra-5.13.0-1010-generic' is not installed, so not removed
Package 'linux-tools-5.13.0-1010-generic' is not installed, so not removed
Package 'linux-image-unsigned-5.11.0-1007-generic' is not installed, so not removed
Package 'linux-riscv-source-5.11.0' is not installed, so not removed
Package 'linux-aws-headers-5.15.0-1002' is not installed, so not removed
Package 'linux-azure-headers-5.15.0-1001' is not installed, so not removed
Package 'linux-buildinfo-5.15.0-1004-generic' is not installed, so not removed
Package 'linux-headers-5.15.0-23' is not installed, so not removed
Package 'linux-kvm-headers-5.15.0-1002' is not installed, so not removed
Package 'linux-lowlatency-headers-5.15.0-22' is not installed, so not removed
Package 'linux-oracle-headers-5.15.0-1001' is not installed, so not removed
Package 'linux-riscv-tools-5.15.0-1004' is not installed, so not removed
Package 'linux-source-5.15.0' is not installed, so not removed
Package 'linux-tools-5.15.0-1004-generic' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libssl1.1 python3-debconf python3-debian
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-generic linux-headers-5.11.0-1007-generic linux-headers-5.15.0-1004-generic linux-headers-generic
  linux-image-5.11.0-1007-generic linux-image-5.15.0-1004-generic linux-image-generic
  linux-modules-5.11.0-1007-generic linux-modules-5.15.0-1004-generic linux-modules-extra-5.11.0-1007-generic
  linux-modules-extra-5.15.0-1004-generic linux-riscv-headers-5.11.0-1007 linux-riscv-headers-5.15.0-1004
  update-notifier-common
0 upgraded, 0 newly installed, 14 to remove and 139 not upgraded.
After this operation, 2843 MB disk space will be freed.
[..]
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.4.61
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.61
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-1004-generic
/etc/kernel/postrm.d/zz-u-boot-menu:
P: Checking for EXTLINUX directory... found.
P: Writing config for vmlinuz-5.4.61...
P: Updating /boot/extlinux/extlinux.conf...
Removing linux-image-5.11.0-1007-generic (5.11.0-1007.7) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.11.0-1007-generic
/etc/kernel/postrm.d/zz-u-boot-menu:
P: Checking for EXTLINUX directory... found.
P: Writing config for vmlinuz-5.4.61...

2022-07-16: mmcblk0p4 - check and fix the u-boot update file. Before

tingo@devterm-R01:~$ more /etc/default/u-boot 
## /etc/default/u-boot - configuration file for u-boot-update(8)

#U_BOOT_UPDATE="true"

#U_BOOT_ALTERNATIVES="default recovery"
#U_BOOT_DEFAULT="l0"
#U_BOOT_ENTRIES="all"
#U_BOOT_MENU_LABEL="Debian GNU/Linux"
#U_BOOT_PARAMETERS="ro quiet"
#U_BOOT_ROOT=""
#U_BOOT_TIMEOUT="50"
#U_BOOT_FDT=""
#U_BOOT_FDT_DIR="/usr/lib/linux-image-"

after

tingo@devterm-R01:~$ more /etc/default/u-boot 
## /etc/default/u-boot - configuration file for u-boot-update(8)

#U_BOOT_UPDATE="true"

#U_BOOT_ALTERNATIVES="default recovery"
#U_BOOT_DEFAULT="l0"
#U_BOOT_ENTRIES="all"
#U_BOOT_MENU_LABEL="Debian GNU/Linux"
#U_BOOT_PARAMETERS="ro quiet"
#U_BOOT_ROOT=""
#U_BOOT_TIMEOUT="50"
#U_BOOT_FDT=""
#U_BOOT_FDT_DIR="/usr/lib/linux-image-"
U_BOOT_ALTERNATIVES="default"
U_BOOT_MENU_LABEL="DevTerm R01 OS"
U_BOOT_PARAMETERS="earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 console=t
ty0 cma=8M LANG=en_US.UTF-8 fbcon=rotate:1"
U_BOOT_TIMEOUT="0"
U_BOOT_FDT="board.dtb"
U_BOOT_FDT_DIR="/usr/lib/linux-image-"

2022-07-16: mmcblk0p4 - turn off autologin - before

cpi@devterm-R01:~$ more /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin cpi --noclear %I $TERM

after

cpi@devterm-R01:~$ more /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
#ExecStart=
#ExecStart=-/sbin/agetty --autologin cpi --noclear %I $TERM

check

cpi@devterm-R01:~$ systemctl status getty@tty1.service | more
Warning: The unit file, source configuration file or drop-ins of getty@tty1.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● getty@tty1.service - Getty on tty1
     Loaded: loaded (/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/getty@tty1.service.d
             └─override.conf
     Active: active (running) since Fri 2022-03-18 17:12:41 CET; 3 months 28 days ago
       Docs: man:agetty(8)
             man:systemd-getty-generator(8)
             http://0pointer.de/blog/projects/serial-console.html
   Main PID: 366 (login)
      Tasks: 0 (limit: 1143)
     Memory: 1.1M
        CPU: 113ms
     CGroup: /system.slice/system-getty.slice/getty@tty1.service
              366 /bin/login -f "" "" "" ""

reload

cpi@devterm-R01:~$ sudo systemctl daemon-reload

and check again

cpi@devterm-R01:~$ systemctl status getty@tty1.service
● getty@tty1.service - Getty on tty1
     Loaded: loaded (/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/getty@tty1.service.d
             └─override.conf
     Active: active (running) since Fri 2022-03-18 17:12:41 CET; 3 months 28 days ago
       Docs: man:agetty(8)
             man:systemd-getty-generator(8)
             http://0pointer.de/blog/projects/serial-console.html
   Main PID: 366 (login)
      Tasks: 0 (limit: 1143)
     Memory: 1.1M
        CPU: 113ms
     CGroup: /system.slice/system-getty.slice/getty@tty1.service
              366 /bin/login -f "" "" "" ""

2022-07-16: mmcblk0p4 - check and change timezone

cpi@devterm-R01:~$ timedatectl status
               Local time: Sat 2022-07-16 17:39:33 UTC
           Universal time: Sat 2022-07-16 17:39:33 UTC
                 RTC time: Sat 2022-07-16 17:39:33
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

change it

cpi@devterm-R01:~$ sudo timedatectl set-timezone Europe/Oslo
cpi@devterm-R01:~$ timedatectl status
               Local time: Sat 2022-07-16 19:40:55 CEST
           Universal time: Sat 2022-07-16 17:40:55 UTC
                 RTC time: Sat 2022-07-16 17:40:56
                Time zone: Europe/Oslo (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

2022-07-16: mmcblk0p4 - set up a user for myself

cpi@devterm-R01:~$ sudo useradd -m tingo
cpi@devterm-R01:~$ sudo usermod -a  -G adm,dialout,cdrom,floppy,sudo,audio,dip,video,plugdev,netdev,lxd,pulse,pulse-access tingo

check

cpi@devterm-R01:~$ id tingo
uid=1002(tingo) gid=1002(tingo) groups=1002(tingo),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),117(netdev),118(lxd),127(pulse),128(pulse-access)
cpi@devterm-R01:~$ groups tingo
tingo : tingo adm dialout cdrom floppy sudo audio dip video plugdev netdev lxd pulse pulse-access

and change the shell to bash

cpi@devterm-R01:~$ sudo chsh -s /bin/bash tingo

2022-07-16: mmcblk0p4 - a fresh start looks like this

$ ssh cpi@devterm-r01.local
cpi@devterm-r01.local's password: 
Hello RISC-V!
       _            _                        _          _ 
      | |          | |                      | |        (_)
   ___| | ___   ___| | ____      _____  _ __| | ___ __  _ 
  / __| |/ _ \ / __| |/ /\ \ /\ / / _ \| '__| |/ / '_ \| |
 | (__| | (_) | (__|   <  \ V  V / (_) | |  |   <| |_) | |
  \___|_|\___/ \___|_|\_\  \_/\_/ \___/|_|  |_|\_\ .__/|_|
                                                 | |      
                                                 |_| 
Welcome to https://forum.clockworkpi.com/

Last login: Fri Mar 18 16:12:43 2022

disk usage

cpi@devterm-R01:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        14G  5.5G  7.9G  42% /
tmpfs           481M     0  481M   0% /dev/shm
tmpfs           193M  1.2M  192M   1% /run
tmpfs           5.0M  8.0K  5.0M   1% /run/lock
/dev/mmcblk0p3  458M  179M  265M  41% /boot
tmpfs            97M   32K   97M   1% /run/user/1001

lsblk

cpi@devterm-R01:~$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mmcblk0     179:0    0 14.8G  0 disk 
├─mmcblk0p2 179:2    0  122M  0 part 
├─mmcblk0p3 179:3    0  489M  0 part /boot
└─mmcblk0p4 179:4    0 14.2G  0 part /

2022-07-16: I used c2 workstation to write the DevTerm image to a new microSD card (SanDisk 16GB, it was the largest I had in the house). Time to start fresh.

tingo@kg-core2:/zt/t2/doc/clockwork/DevTerm/R-01 $ ll -h *img*
-rw-r--r--  1 tingo  tingo  -  7.1G Mar 31 17:05 DevTerm_R01_v0.1.img
-rw-r--r--  1 tingo  tingo  -  2.1G Mar 31 17:05 DevTerm_R01_v0.1.img.bz2

2022-07-13: mmcblk0p4 - testing, using apt update again

tingo@devterm-R01:~$ sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [114 kB]        
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [99.8 kB]                
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [110 kB]                   
Get:5 https://raw.githubusercontent.com/clockworkpi/apt/main/debian stable InRelease [5408 B]
Get:6 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main riscv64 Packages [224 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main Translation-en [92.6 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main riscv64 c-n-f Metadata [6396 B]
Get:9 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe riscv64 Packages [116 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe Translation-en [58.7 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe riscv64 c-n-f Metadata [3708 B]
Get:12 http://ports.ubuntu.com/ubuntu-ports jammy-security/main riscv64 Packages [102 kB]                                       
Get:13 http://ports.ubuntu.com/ubuntu-ports jammy-security/main Translation-en [52.7 kB]                                        
Get:14 http://ports.ubuntu.com/ubuntu-ports jammy-security/main riscv64 c-n-f Metadata [3376 B]                                 
Get:15 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted Translation-en [30.0 kB]                                  
Fetched 1018 kB in 9s (115 kB/s)                                                                                                
WARNING:root:cannot read /var/lib/command-not-found/commands.db.metadata: Expecting value: line 1 column 1 (char 0)
E: Read error - read (5: Input/output error)
[..]

hmm, nope - the microSD card is still broken. Oh well.

2022-07-13: mmcblk0p4 - seems fsck fixed "something", as the machine now boot after inserting the microSD card

tingo@devterm-R01:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        29G  4.6G   23G  17% /
tmpfs           481M     0  481M   0% /dev/shm
tmpfs           193M  1.2M  192M   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/mmcblk0p3  458M  9.5M  434M   3% /boot
tmpfs            97M   32K   97M   1% /run/user/1002
tingo@devterm-R01:~$ mount
/dev/mmcblk0p4 on / type ext4 (rw,noatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=487808k,nr_inodes=121952,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=196804k,nr_inodes=819200,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
/dev/mmcblk0p3 on /boot type ext4 (rw,noatime,x-systemd.mount-timeout=300s)
tmpfs on /run/user/1002 type tmpfs (rw,nosuid,nodev,relatime,size=98400k,nr_inodes=24600,mode=700,uid=1002,gid=1002)

good.

2022-07-13: the microSD card was misbehaving, ending up in a readonly filesystem, so I took it out and put it into a Debian laptop to check it. parted info

tingo@z30b:~$ sudo parted /dev/mmcblk0 print
Model: SD SB32G (sd/mmc)
Disk /dev/mmcblk0: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      35.7MB  164MB   128MB   primary  fat16        lba
 3      164MB   676MB   513MB   primary  ext4         boot
 4      676MB   31.9GB  31.2GB  primary  ext4

check fat16 partition

tingo@z30b:~$ sudo fsck.vfat -y /dev/mmcblk0p2
fsck.fat 4.2 (2021-01-31)
/dev/mmcblk0p2: 5 files, 2290/62333 clusters

check the boot partition

tingo@z30b:~$ sudo fsck.ext4 -y /dev/mmcblk0p3
e2fsck 1.46.2 (28-Feb-2021)
_/boot: recovering journal
Setting free inodes count to 125154 (was 0)
Setting free blocks count to 114753 (was 0)
_/boot: clean, 30/125184 files, 10431/125184 blocks

check the last partition

tingo@z30b:~$ sudo fsck.ext4 -y /dev/mmcblk0p4
e2fsck 1.46.2 (28-Feb-2021)
/dev/mmcblk0p4: clean, 141136/1905008 files, 1318390/7626619 blocks

all clean. Good sign or bad sign? Check contents of fat16 partition

tingo@z30b:~$ ll /media/tingo/8D26-7EE3
total 24
drwxr-xr-x  4 tingo tingo 16384 Jan  1  1970  ./
drwxr-x---+ 4 root  root   4096 Jul 13 19:10  ../
drwxr-xr-x  3 tingo tingo  2048 Feb 17 08:46  EFI/
drwxr-xr-x  2 tingo tingo  2048 May  4 12:39 'System Volume Information'/
tingo@z30b:~$ ll /media/tingo/8D26-7EE3/EFI
total 20
drwxr-xr-x 3 tingo tingo  2048 Feb 17 08:46 ./
drwxr-xr-x 4 tingo tingo 16384 Jan  1  1970 ../
drwxr-xr-x 2 tingo tingo  2048 Nov 16  2021 ubuntu/
tingo@z30b:~$ ll /media/tingo/8D26-7EE3/EFI/ubuntu/
total 4576
drwxr-xr-x 2 tingo tingo    2048 Nov 16  2021 ./
drwxr-xr-x 3 tingo tingo    2048 Feb 17 08:46 ../
-rw-r--r-- 1 tingo tingo 4681728 Sep 21  2021 grubriscv64.efi

contents of boot partition

tingo@z30b:~$ ll /media/tingo/__boot
total 7904
dr-xr-xr-x  7 root root    4096 Jul  3 19:18 ./
drwxr-x---+ 4 root root    4096 Jul 13 19:12 ../
-rw-r--r--  1 root root   51759 Mar 30 16:01 board.dtb
drwxr-xr-x  2 root root    4096 Feb 17 10:22 boot/
-rw-r--r--  1 root root  123296 Mar 30 16:01 config-5.4.61
drwxrwxr-x. 2 root root    4096 Nov 16  2021 efi/
drwxr-xr-x. 2 root root    4096 Jul  3 19:18 extlinux/
drwxr-xr-x. 3 root root    4096 Nov 16  2021 grub2/
-rw-r--r--  1 root root     367 Feb 17 10:41 grub.cfg
drwx------  2 root root   16384 Nov 16  2021 lost+found/
-rw-r--r--  1 root root 2649432 Mar 30 16:01 System.map-5.4.61
lrwxrwxrwx  1 root root      13 Nov 17  2021 uEnv.txt -> boot/uEnv.txt
lrwxrwxrwx  1 root root      14 Jul  3 19:18 vmlinuz -> vmlinuz-5.4.61
-rw-r--r--. 1 root root     179 Nov 16  2021 .vmlinuz-5.14.16-101.0.riscv64.fc33.riscv64.hmac
-rw-r--r--  1 root root 5197602 Mar 30 16:01 vmlinuz-5.4.61
lrwxrwxrwx  1 root root      14 Jul  3 19:18 vmlinuz.old -> vmlinuz-5.4.61
tingo@z30b:~$ ll /media/tingo/__boot/efi
total 12
drwxrwxr-x. 2 root root 4096 Nov 16  2021 ./
dr-xr-xr-x  7 root root 4096 Jul  3 19:18 ../
tingo@z30b:~$ ll /media/tingo/__boot/extlinux/
total 20
drwxr-xr-x. 2 root root 4096 Jul  3 19:18 ./
dr-xr-xr-x  7 root root 4096 Jul  3 19:18 ../
-rw-r--r--  1 root root  485 Jul  3 19:18 extlinux.conf
-rw-r--r--  1 root root  514 Mar 28 16:00 extlinux.conf.cpi.bak
tingo@z30b:~$ ll /media/tingo/__boot/boot
total 16
drwxr-xr-x  2 root root 4096 Feb 17 10:22 ./
dr-xr-xr-x  7 root root 4096 Jul  3 19:18 ../
-rw-r--r--. 1 root root  163 Feb 17 10:22 uEnv.txt

the last partition must be root file system then

tingo@z30b:~$ ll /media/tingo/13270b62-ee26-426e-ab89-fd6af83aaaad
total 100
drwxr-xr-x   20 root root  4096 Mar 18 17:13 ./
drwxr-x---+   4 root root  4096 Jul 13 19:16 ../
lrwxrwxrwx    1 root root     7 Apr 22  2021 bin -> usr/bin/
drwxr-xr-x    4 root root  4096 Apr 22  2021 boot/
drwxr-xr-x    3 root root  4096 Nov 16  2021 .cache/
drwxr-xr-x    4 root root  4096 Apr 22  2021 dev/
drwxr-xr-x  138 root root 12288 Jul  3 21:54 etc/
drwxr-xr-x    4 root root  4096 Jul  3 15:58 home/
lrwxrwxrwx    1 root root     7 Apr 22  2021 lib -> usr/lib/
drwx------    2 root root 16384 Apr 22  2021 lost+found/
drwxr-xr-x    2 root root  4096 Mar 28 15:48 media/
drwxr-xr-x    2 root root  4096 Mar 28 15:48 mnt/
drwxr-xr-x    2 root root  4096 Mar 28 15:48 opt/
drwxr-xr-x    2 root root  4096 Mar 28 15:48 proc/
drwx------    4 root root  4096 Jul  3 18:51 root/
drwxr-xr-x   15 root root  4096 Mar 30 14:53 run/
lrwxrwxrwx    1 root root     8 Apr 22  2021 sbin -> usr/sbin/
drwxr-xr-x    2 root root  4096 Apr  7  2021 snap/
drwxr-xr-x    2 root root  4096 Apr 22  2021 srv/
drwxr-xr-x    2 root root  4096 Mar 28 15:48 sys/
drwxrwxrwt    9 root root  4096 Jun  7 12:49 tmp/
drwxr-xr-x   11 root root  4096 Mar 28 15:48 usr/
drwxr-xr-x   14 root root  4096 Mar 28 15:27 var/

yes, it is.

2022-07-12: mmcblk0p4 - qutebrowser - qutebrowser --backend webkit works, with warnings. It doesn't work in an xterm spawned from a 'ssh -Y ...' session for some reason. This is the output

tingo@devterm-R01:~$ qutebrowser --backend webkit
21:40:53 INFO: Run :adblock-update to get adblock lists.
21:41:04 WARNING: Error while loading geometry.

and there it hangs.

2022-07-12: mmcblk0p4 - apt - try to install qutebrowser-webengine

tingo@devterm-R01:~$ sudo apt install qutebrowser-qtwebengine
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 qutebrowser-qtwebengine : Depends: libqt5webenginecore5 (>= 5.12.1) but it is not installable
                           Depends: python3-pyqt5.qtwebengine (>= 5.12.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

it looks like those packages are missing

tingo@devterm-R01:~$ sudo apt list libqt5webenginecore5
Listing... Done
tingo@devterm-R01:~$ sudo apt list python3-pyqt5.qtwebengine
Listing... Done

oh well.

2022-07-03: mmcblk0p4 - apt - retry that upgrade

tingo@devterm-R01:~$ sudo apt upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

ok

tingo@devterm-R01:~$ sudo dpkg --configure -a
Setting up cups-ipp-utils (2.4.1op1-1ubuntu4.1) ...
Setting up libxklavier16:riscv64 (5.4-4build2) ...
Setting up networkd-dispatcher (2.1-2ubuntu0.22.04.2) ...
Setting up libcanberra-pulse:riscv64 (0.30-10ubuntu1) ...
Setting up cups-ppdc (2.4.1op1-1ubuntu4.1) ...
Setting up xserver-xorg-video-amdgpu (22.0.0-1build1) ...
Setting up python3-gdbm:riscv64 (3.10.4-0ubuntu1) ...
Setting up gnome-menus (3.36.0-1ubuntu3) ...
Setting up python3-problem-report (2.20.11-0ubuntu82.1) ...
Setting up xserver-xorg-video-ati (1:19.1.0-2build3) ...
Setting up python3-yaml (5.4.1-1ubuntu1) ...
Setting up libswresample3:riscv64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up cups-client (2.4.1op1-1ubuntu4.1) ...
Setting up gvfs-daemons (1.48.2-0ubuntu1) ...
Setting up libfreetype6-dev:riscv64 (2.11.1+dfsg-1build1) ...
Setting up cups-daemon (2.4.1op1-1ubuntu4.1) ...
Setting up avahi-daemon (0.8-5ubuntu5) ...
Setting up at-spi2-core (2.44.0-3) ...
Setting up xserver-xorg-video-vesa (1:2.5.0-1build4) ...
Setting up gnupg (2.2.27-3ubuntu2) ...
Setting up libavcodec58:riscv64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up x11-session-utils (7.7+4build2) ...
Setting up libswscale5:riscv64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up ubuntu-advantage-tools (27.9~22.04.1) ...
Installing new version of config file /etc/ubuntu-advantage/help_data.yaml ...
Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ...
Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-advantage.service  /lib/systemd/system/ubuntu-advantage.service.
Setting up bind9-dnsutils (1:9.18.1-1ubuntu1.1) ...
Setting up sane-utils (1.1.1-5) ...
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
usermod: no changes
saned.socket is a disabled or a static unit not running, not starting it.
Setting up lsb-release (11.1.0ubuntu4) ...
Setting up python3-lib2to3 (3.10.4-0ubuntu1) ...
Setting up python3-distro-info (1.1build1) ...
Setting up libcupsfilters1:riscv64 (1.28.15-0ubuntu1) ...
Setting up python3-cffi-backend:riscv64 (1.15.0-1build2) ...
Setting up xfce4-helpers (4.16.2-1ubuntu2) ...
Setting up python3-distutils (3.10.4-0ubuntu1) ...
Setting up cups-browsed (1.28.15-0ubuntu1) ...
Setting up cloud-init (22.2-0ubuntu1~22.04.3) ...
Installing new version of config file /etc/cloud/cloud.cfg ...
Setting up gvfs:riscv64 (1.48.2-0ubuntu1) ...
Setting up ubuntu-minimal (1.481) ...
Setting up cups-bsd (2.4.1op1-1ubuntu4.1) ...
Setting up python3-bcrypt (3.2.0-1build1) ...
Setting up ubuntu-standard (1.481) ...
Setting up cups-filters-core-drivers (1.28.15-0ubuntu1) ...
Setting up python3-apport (2.20.11-0ubuntu82.1) ...
Setting up python3-software-properties (0.99.22.2) ...
Setting up python3-cryptography (3.4.8-1ubuntu2) ...
Setting up xserver-xorg-video-all (1:7.7+23ubuntu2) ...
Setting up cups-core-drivers (2.4.1op1-1ubuntu4.1) ...
Setting up xserver-xorg (1:7.7+23ubuntu2) ...
Setting up software-properties-common (0.99.22.2) ...
Setting up apport (2.20.11-0ubuntu82.1) ...
Installing new version of config file /etc/apport/crashdb.conf ...
Installing new version of config file /etc/init.d/apport ...
apport-autoreport.service is a disabled or a static unit, not starting it.
Setting up python3-twisted (22.1.0-2ubuntu2.1) ...
Setting up landscape-common (19.12-0ubuntu13) ...
Setting up python3-distupgrade (1:22.04.11) ...
Setting up ubuntu-release-upgrader-core (1:22.04.11) ...

Configuration file '/etc/update-motd.d/91-release-upgrade'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** 91-release-upgrade (Y/I/N/O/D/Z) [default=N] ? 
Setting up python3-update-manager (1:22.04.9) ...
Setting up update-manager-core (1:22.04.9) ...
Processing triggers for sgml-base (1.30) ...
Setting up libfontconfig1:riscv64 (2.13.1-4.2ubuntu5) ...
Processing triggers for install-info (6.8-4build1) ...
Processing triggers for menu (2.1.47ubuntu4) ...
Setting up libbluray2:riscv64 (1:1.3.1-1) ...
Setting up fontconfig (2.13.1-4.2ubuntu5) ...
Regenerating fonts cache... done.
Setting up libxft2:riscv64 (2.3.4-1) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...
Setting up libgs9:riscv64 (9.55.0~dfsg1-0ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for dictionaries-common (1.28.14) ...
Setting up libfontconfig-dev:riscv64 (2.13.1-4.2ubuntu5) ...
Setting up libavformat58:riscv64 (7:4.4.2-0ubuntu0.22.04.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Setting up libpango-1.0-0:riscv64 (1.50.6+ds-2) ...
Setting up libqt5gui5:riscv64 (5.15.3+dfsg-2) ...
Setting up x11-apps (7.7+8build2) ...
Setting up libqt5widgets5:riscv64 (5.15.3+dfsg-2) ...
Processing triggers for ufw (0.36.1-4build1) ...
Setting up ghostscript (9.55.0~dfsg1-0ubuntu5) ...
Setting up libqt5help5:riscv64 (5.15.3-1) ...
Setting up libqt5printsupport5:riscv64 (5.15.3+dfsg-2) ...
Processing triggers for plymouth-theme-ubuntu-text (0.9.5+git20211018-1ubuntu3) ...
update-initramfs: deferring update (trigger activated)
Setting up libqt5opengl5:riscv64 (5.15.3+dfsg-2) ...
Setting up x11-utils (7.7+5build2) ...
Setting up cups-filters (1.28.15-0ubuntu1) ...
Setting up libpangoft2-1.0-0:riscv64 (1.50.6+ds-2) ...
Setting up libqt5quick5:riscv64 (5.15.3+dfsg-1) ...
Setting up libpangocairo-1.0-0:riscv64 (1.50.6+ds-2) ...
Setting up libxft-dev:riscv64 (2.3.4-1) ...
Setting up gtk2-engines-murrine:riscv64 (0.98.2-3build2) ...
Setting up libdbusmenu-gtk3-4:riscv64 (16.04.1+18.10.20180917-0ubuntu8) ...
Setting up libfontconfig1-dev:riscv64 (2.13.1-4.2ubuntu5) ...
Setting up libpangoxft-1.0-0:riscv64 (1.50.6+ds-2) ...
Setting up libqt5designer5:riscv64 (5.15.3-1) ...
Setting up cups (2.4.1op1-1ubuntu4.1) ...
Updating PPD files for cups ...
Updating PPD files for cups-filters ...
Setting up libgtk-3-0:riscv64 (3.24.33-1ubuntu2) ...
Setting up libgtk2.0-0:riscv64 (2.24.33-2ubuntu2) ...
Setting up libqt5svg5:riscv64 (5.15.3-1) ...
Setting up libgtk-3-bin (3.24.33-1ubuntu2) ...
Setting up libcanberra-gtk3-0:riscv64 (0.30-10ubuntu1) ...
Setting up libqt5webkit5:riscv64 (5.212.0~alpha4-15ubuntu1) ...
Setting up libvte-2.91-0:riscv64 (0.68.0-1) ...
Setting up libnautilus-extension1a:riscv64 (1:42.2-0ubuntu1) ...
Setting up qt5-gtk-platformtheme:riscv64 (5.15.3+dfsg-2) ...
Setting up libcanberra-gtk3-module:riscv64 (0.30-10ubuntu1) ...
Setting up libwxgtk3.0-gtk3-0v5:riscv64 (3.0.5.1+dfsg-4) ...
Setting up xorg (1:7.7+23ubuntu2) ...
Setting up libqt5quickwidgets5:riscv64 (5.15.3+dfsg-1) ...
Setting up gir1.2-pango-1.0:riscv64 (1.50.6+ds-2) ...
Setting up libdecor-0-plugin-1-cairo:riscv64 (0.1.0-3build1) ...
Setting up libgail18:riscv64 (2.24.33-2ubuntu2) ...
Setting up libwebkit2gtk-4.0-37:riscv64 (2.36.3-0ubuntu0.22.04.1) ...
Setting up libgtk2.0-bin (2.24.33-2ubuntu2) ...
Setting up libwnck-3-0:riscv64 (40.1-1) ...
Setting up xfce4-settings (4.16.2-1ubuntu2) ...
Setting up python3-pyqt5 (5.15.6+dfsg-1ubuntu3) ...
Setting up gnome-terminal (3.44.0-1ubuntu1) ...
Setting up devterm-thermal-printer-cups (0.12) ...
Stopping cups (via systemctl): cups.serviceWarning: Stopping cups.service, but it can still be activated by:
  cups.path
  cups.socket
.
Starting cups (via systemctl): cups.service.
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
Setting up python3-pyqt5.qtsql (5.15.6+dfsg-1ubuntu3) ...
Setting up python3-pyqt5.qtopengl (5.15.6+dfsg-1ubuntu3) ...
Setting up libgail-common:riscv64 (2.24.33-2ubuntu2) ...
Setting up libgtkmm-3.0-1v5:riscv64 (3.24.5-1build1) ...
Setting up gir1.2-gtk-3.0:riscv64 (3.24.33-1ubuntu2) ...
Setting up libyelp0:riscv64 (42.1-1) ...
Setting up zenity (3.42.1-0ubuntu1) ...
Setting up nautilus-extension-gnome-terminal (3.44.0-1ubuntu1) ...
Setting up python3-pyqt5.qtwebkit (5.15.6+dfsg-1ubuntu3) ...
Setting up python3-pyqt5.qtquick (5.15.6+dfsg-1ubuntu3) ...
Setting up yelp (42.1-1) ...
Setting up qutebrowser-qtwebkit (2.5.0-1) ...
Setting up qutebrowser (2.5.0-1) ...
update-alternatives: using /usr/bin/qutebrowser to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Processing triggers for menu (2.1.47ubuntu4) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...

and now retry apt upgrade

tingo@devterm-R01:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libpython3.9-minimal libpython3.9-stdlib libssl1.1 python3-debconf python3-debian python3.9 python3.9-minimal
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

apt autoremove

tingo@devterm-R01:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libpython3.9-minimal libpython3.9-stdlib libssl1.1 python3-debconf python3-debian python3.9 python3.9-minimal
0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
After this operation, 21.1 MB disk space will be freed.
[..]
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...

apt autoclean

tingo@devterm-R01:~$ sudo apt autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

2022-07-03: mmcblk0p4 - apt - upgrade

tingo@devterm-R01:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libpython3.9-minimal libpython3.9-stdlib libssl1.1 python3-debconf python3-debian python3.9 python3.9-minimal
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libgl1-amber-dri libnftables1 libxcvt0 mesa-utils-bin nftables xcvt
The following packages will be upgraded:
  alsa-ucm-conf apparmor apport apt apt-utils aspell at-spi2-core avahi-daemon base-files base-passwd bc bcache-tools bind9-dnsutils bind9-host
  bind9-libs build-essential bzip2 cloud-init cpp-10 cpp-11 cron cups cups-browsed cups-bsd cups-client cups-common cups-core-drivers
  cups-daemon cups-filters cups-filters-core-drivers cups-ipp-utils cups-ppdc cups-server-common curl dash dbus dbus-user-session dbus-x11
  debianutils desktop-file-utils devterm-thermal-printer devterm-thermal-printer-cups diffutils dirmngr distro-info distro-info-data
  dnsmasq-base dosfstools dpkg dpkg-dev e2fsprogs eatmydata file findutils firmware-sof-signed fontconfig fontconfig-config ftp fuse3 g++-11
  gawk gcc-10 gcc-10-base gcc-11 gcc-11-base gdisk geoclue-2.0 gettext-base ghostscript gir1.2-atk-1.0 gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0
  gir1.2-pango-1.0 git git-man gnome-keyring gnome-keyring-pkcs11 gnome-menus gnome-terminal gnome-terminal-data gnupg gnupg-l10n gnupg-utils
  gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base gtk-update-icon-cache gtk2-engines-murrine gvfs gvfs-common
  gvfs-daemons gvfs-libs gzip hdparm hostname htop iproute2 iptables irqbalance isc-dhcp-client isc-dhcp-common iw kbd landscape-common less
  libaa1 libaio1 libamd2 libapparmor1 libapt-pkg6.0 libarchive13 libasan6 libaspell15 libassuan0 libasyncns0 libatasmart4 libatk1.0-0
  libatk1.0-data libatkmm-1.6-1v5 libatm1 libatspi2.0-0 libattr1 libavahi-client3 libavahi-common-data libavahi-common3 libavahi-core7
  libavahi-glib1 libavc1394-0 libavcodec58 libavformat58 libavutil56 libbabl-0.1-0 libbluray2 libboost-filesystem1.74.0 libboost-thread1.74.0
  libbrotli-dev libbrotli1 libbz2-1.0 libcaca0 libcairomm-1.0-1v5 libcamd2 libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra-pulse
  libcanberra0 libcap2 libcap2-bin libccolamd2 libcdio-cdda2 libcdio19 libcdparanoia0 libcholmod3 libcolamd2 libcom-err2 libcups2
  libcupsfilters1 libcurl3-gnutls libcurl4 libdaemon0 libdb5.3 libdbus-1-3 libdbus-glib-1-2 libdbusmenu-glib4 libdbusmenu-gtk3-4 libdecor-0-0
  libdecor-0-plugin-1-cairo libdeflate0 libdjvulibre-text libdjvulibre21 libdns-export1110 libdpkg-perl libdv4 libeatmydata1 libedit2
  libegl-mesa0 libelf1 libepoxy0 libestr0 libevdev2 libevent-core-2.1-7 libexif12 libexiv2-27 libext2fs2 libfastjson4 libfftw3-double3
  libfftw3-single3 libflac8 libflashrom1 libfontconfig-dev libfontconfig1 libfontconfig1-dev libfontembed1 libfontenc1 libfreetype-dev
  libfreetype6 libfreetype6-dev libfribidi0 libfuse3-3 libgail-common libgail18 libgbm1 libgc1 libgcab-1.0-0 libgcc-10-dev libgcc-11-dev
  libgcrypt20 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgexiv2-2 libgif7 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa
  libgles2-mesa libglib2.0-0 libglib2.0-bin libglib2.0-data libglx-mesa0 libgpgme11 libgphoto2-6 libgphoto2-l10n libgphoto2-port12
  libgraphite2-3 libgs9 libgs9-common libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkmm-3.0-1v5
  libgtop-2.0-11 libgtop2-common libgudev-1.0-0 libhogweed6 libhunspell-1.7-0 libhyphen0 libice6 libidn12 libidn2-0 libiec61883-0 libieee1284-3
  libijs-0.35 libinih1 libinput-bin libinput10 libip4tc2 libip6tc2 libisc-export1105 libisl23 libisns0 libjansson4 libjavascriptcoregtk-4.0-18
  libjbig0 libjbig2dec0 libjpeg8 libjson-c5 libjson-glib-1.0-0 libjson-glib-1.0-common libksba8 liblcms2-2 libldap-2.5-0 libldap-common liblmdb0
  liblouis-data liblouis20 libltdl7 liblua5.3-0 liblz4-1 liblzma5 liblzo2-2 libmagic-mgc libmagic1 libmanette-0.2-0 libmaxminddb0 libmbim-glib4
  libmbim-proxy libmd0 libmetis5 libmnl0 libmp3lame0 libmpc3 libmpdec3 libmpfr6 libmpg123-0 libmtdev1 libnautilus-extension1a libndp0 libnettle8
  libnfnetlink0 libnftnl11 libnghttp2-14 libnm0 libnotify-bin libnotify4 libnpth0 libnsl-dev libnsl2 libnspr4 libnss-systemd libntfs-3g89
  libnuma1 libogg0 libopus0 libotf1 libp11-kit0 libpam-cap libpam-gnome-keyring libpam-systemd libpango-1.0-0 libpangocairo-1.0-0
  libpangoft2-1.0-0 libpangoxft-1.0-0 libpaper-utils libpaper1 libparted-fs-resize0 libparted2 libpcap0.8 libpcre2-16-0 libpcre2-8-0 libpcre3
  libpixman-1-0 libpng-dev libpng-tools libpng16-16 libpopt0 libproxy1v5 libpsl5 libpthread-stubs0-dev libpython3-stdlib libpython3.10
  libpython3.10-minimal libpython3.10-stdlib libqt5core5a libqt5dbus5 libqt5designer5 libqt5gui5 libqt5help5 libqt5network5 libqt5opengl5
  libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5qmlmodels5 libqt5quick5 libqt5quickwidgets5 libqt5sensors5 libqt5sql5
  libqt5sql5-sqlite libqt5svg5 libqt5test5 libqt5webchannel5 libqt5webkit5 libqt5widgets5 libqt5xml5 libraw1394-11 libraw20 librevenge-0.0-0
  librtmp1 libsamplerate0 libsane-common libsane1 libselinux1 libsensors-config libsensors5 libsepol2 libshout3 libsigc++-2.0-0v5 libsigsegv2
  libslang2 libsm6 libsnappy1v5 libsndfile1 libsnmp-base libsnmp40 libsodium23 libsoxr0 libsrt1.4-gnutls libss2 libssh-4 libssh-gcrypt-4 libssl3
  libstartup-notification0 libstdc++-11-dev libstemmer0d libsuitesparseconfig5 libswresample3 libswscale5 libsystemd0 libtasn1-6 libtcl8.6
  libteamdctl0 libthai-data libthai0 libtheora0 libtirpc-common libtirpc-dev libtirpc3 libtwolame0 libuchardet0 libudev1 libudisks2-0
  libumfpack5 libusb-1.0-0 libusbmuxd6 libutempter0 libv4l-0 libv4lconvert0 libvdpau1 libvisual-0.4-0 libvorbis0a libvorbisenc2 libvorbisfile3
  libvpx7 libvte-2.91-0 libvte-2.91-common libwacom-bin libwacom-common libwacom9 libwavpack1 libwebkit2gtk-4.0-37 libwebrtc-audio-processing1
  libwnck-3-0 libwnck-3-common libwoff1 libwpd-0.10-10 libwpg-0.3-3 libwrap0 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 libx11-6 libx11-data
  libx11-dev libx11-xcb1 libxau-dev libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-icccm4 libxcb-keysyms1 libxcb-present0 libxcb-randr0
  libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0
  libxcb-xkb1 libxcb-xtest0 libxcb-xv0 libxcb1 libxcb1-dev libxcomposite1 libxcursor1 libxdamage1 libxdmcp-dev libxdmcp6 libxext-dev libxext6
  libxfont2 libxft-dev libxft2 libxi6 libxkbfile1 libxklavier16 libxml2 libxmlb2 libxpm4 libxrandr2 libxrender-dev libxrender1 libxshmfence1
  libxslt1.1 libxss1 libxtables12 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 libyaml-0-2 libyelp0 libzstd1 linux-firmware linux-libc-dev logrotate
  logsave lsb-base lsb-release lshw lsof lto-disabled-list man-db mesa-utils mesa-va-drivers mesa-vdpau-drivers motd-news-config
  nautilus-extension-gnome-terminal net-tools network-manager networkd-dispatcher ntfs-3g openssl p11-kit p11-kit-modules parted patch
  pinentry-curses pinentry-gnome3 pkg-config pptp-linux psmisc python3 python3-apport python3-bcrypt python3-cffi-backend python3-cryptography
  python3-distro-info python3-distupgrade python3-distutils python3-gdbm python3-lib2to3 python3-minimal python3-netifaces python3-numpy
  python3-problem-report python3-pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qtquick python3-pyqt5.qtsql python3-pyqt5.qtwebkit python3-serial
  python3-six python3-software-properties python3-twisted python3-tz python3-update-manager python3-yaml python3.10 python3.10-minimal
  qt5-gtk-platformtheme qttranslations5-l10n qutebrowser qutebrowser-qtwebkit rpcsvc-proto rsync rsyslog rtkit sane-airscan sane-utils sed snapd
  socat software-properties-common squashfs-tools systemd systemd-sysv systemd-timesyncd tar tcl tcl8.6 tcpdump telnet time tmux tnftp
  u-boot-sifive ubuntu-advantage-tools ubuntu-minimal ubuntu-release-upgrader-core ubuntu-standard udev udisks2 update-manager-core
  usb-modeswitch usb.ids usbmuxd usbutils vdpau-driver-all vim vim-common vim-runtime vim-tiny wpasupplicant x11-apps x11-common
  x11-session-utils x11-utils x11-xkb-utils x11-xserver-utils xauth xbitmaps xdg-user-dirs xdg-utils xfce4-helpers xfce4-settings xfonts-utils
  xinit xinput xorg xserver-common xserver-xephyr xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-wacom
  xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-radeon
  xserver-xorg-video-vesa xxd xz-utils yelp zenity zenity-common zlib1g zlib1g-dev zstd
633 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
54 standard security updates
Need to get 531 MB of archives.
After this operation, 4756 kB of additional disk space will be used.
[..]

ended up with no network, and in the end I had to forcefully restart the machine.

2022-07-03: mmcblk0p4 - rebooted after extlinux.conf got updated - it still works.

2022-07-03: mmcblk0p4 - apt - remove installed Ubuntu kernels, they are not useful on the DT. these are installed

tingo@devterm-R01:~$ sudo apt list --installed linux-*5.*
Listing... Done
linux-headers-5.11.0-1007-generic/now 5.11.0-1007.7 riscv64 [installed,local]
linux-headers-5.15.0-1004-generic/now 5.15.0-1004.4 riscv64 [installed,local]
linux-image-5.11.0-1007-generic/now 5.11.0-1007.7 riscv64 [installed,local]
linux-image-5.15.0-1004-generic/now 5.15.0-1004.4 riscv64 [installed,local]
linux-modules-5.11.0-1007-generic/now 5.11.0-1007.7 riscv64 [installed,local]
linux-modules-5.15.0-1004-generic/now 5.15.0-1004.4 riscv64 [installed,local]
linux-modules-extra-5.11.0-1007-generic/now 5.11.0-1007.7 riscv64 [installed,local]
linux-modules-extra-5.15.0-1004-generic/now 5.15.0-1004.4 riscv64 [installed,local]
linux-riscv-headers-5.11.0-1007/now 5.11.0-1007.7 all [installed,local]
linux-riscv-headers-5.15.0-1004/now 5.15.0-1004.4 all [installed,local]

remove them

tingo@devterm-R01:~$ sudo apt remove linux-*5.*
[..]
Package 'linux-tools-5.15.0-1014-generic' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libssl1.1 python3-debconf python3-debian
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-generic linux-headers-5.11.0-1007-generic linux-headers-5.15.0-1004-generic linux-headers-generic linux-image-5.11.0-1007-generic
  linux-image-5.15.0-1004-generic linux-image-generic linux-modules-5.11.0-1007-generic linux-modules-5.15.0-1004-generic
  linux-modules-extra-5.11.0-1007-generic linux-modules-extra-5.15.0-1004-generic linux-riscv-headers-5.11.0-1007
  linux-riscv-headers-5.15.0-1004
0 upgraded, 0 newly installed, 13 to remove and 633 not upgraded.
After this operation, 2842 MB disk space will be freed.
[..]
Removing linux-generic (5.15.0.1004.4) ...
Removing linux-headers-5.11.0-1007-generic (5.11.0-1007.7) ...
Removing linux-headers-generic (5.15.0.1004.4) ...
Removing linux-headers-5.15.0-1004-generic (5.15.0-1004.4) ...
Removing linux-modules-extra-5.11.0-1007-generic (5.11.0-1007.7) ...
Removing linux-image-generic (5.15.0.1004.4) ...
Removing linux-modules-extra-5.15.0-1004-generic (5.15.0-1004.4) ...
Removing linux-riscv-headers-5.11.0-1007 (5.11.0-1007.7) ...
Removing linux-riscv-headers-5.15.0-1004 (5.15.0-1004.4) ...
Removing linux-modules-5.15.0-1004-generic (5.15.0-1004.4) ...
Removing linux-modules-5.11.0-1007-generic (5.11.0-1007.7) ...
Removing linux-image-5.15.0-1004-generic (5.15.0-1004.4) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.4.61
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.61
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-1004-generic
/etc/kernel/postrm.d/zz-u-boot-menu:
P: Checking for EXTLINUX directory... found.
P: Writing config for vmlinuz-5.4.61...
P: Updating /boot/extlinux/extlinux.conf...
Removing linux-image-5.11.0-1007-generic (5.11.0-1007.7) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.11.0-1007-generic
/etc/kernel/postrm.d/zz-u-boot-menu:
P: Checking for EXTLINUX directory... found.
P: Writing config for vmlinuz-5.4.61...

better check extlinux file

tingo@devterm-R01:~$ diff -u /boot/extlinux/extlinux.conf.cpi.bak /boot/extlinux/extlinux.conf
--- /boot/extlinux/extlinux.conf.cpi.bak    2022-03-28 16:00:49.000000000 +0200
+++ /boot/extlinux/extlinux.conf    2022-07-03 19:18:12.000000000 +0200
@@ -5,13 +5,15 @@
 ## The configuration of this file is generated automatically.
 ## Do not edit this file manually, use: u-boot-update

-menu title DevTerm RISC-V Boot Options.
+default l0
+menu title U-Boot menu
 prompt 0
-timeout 1
+timeout 0

-label DevTerm
-   kernel /vmlinuz-5.4.61
-#  kernel /vmlinux-5.4.61
-   append earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 console=tty0 root=/dev/mmcblk0p4 cma=8M mac_addr=84:10:12:12:01:04 LANG=en_US.UTF-8 fbcon=rotate:1
-   fdt /board.dtb
+
+label l0
+   menu label DevTerm R01 OS 5.4.61
+   linux /vmlinuz-5.4.61

+   fdt /board.dtb
+   append root=/dev/mmcblk0p4 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 console=tty0 cma=8M LANG=en_US.UTF-8 fbcon=rotate:1

looks ok.

2022-07-03: mmcblk0p4 - apt - sources.list is configured for devel, not jammy

tingo@devterm-R01:~$ more /etc/apt/sources.list
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports devel main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports devel main restricted

## distribution.
deb http://ports.ubuntu.com/ubuntu-ports devel-updates main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports devel-updates main restricted

deb http://ports.ubuntu.com/ubuntu-ports devel universe
# deb-src http://ports.ubuntu.com/ubuntu-ports devel universe
deb http://ports.ubuntu.com/ubuntu-ports devel-updates universe
# deb-src http://ports.ubuntu.com/ubuntu-ports devel-updates universe

deb http://ports.ubuntu.com/ubuntu-ports devel multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports devel multiverse
deb http://ports.ubuntu.com/ubuntu-ports devel-updates multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports devel-updates multiverse

deb http://ports.ubuntu.com/ubuntu-ports devel-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports devel-backports main restricted universe multiverse

# deb http://archive.canonical.com/ubuntu devel partner
# deb-src http://archive.canonical.com/ubuntu devel partner

deb http://ports.ubuntu.com/ubuntu-ports devel-security main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports devel-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports devel-security universe
# deb-src http://ports.ubuntu.com/ubuntu-ports devel-security universe
deb http://ports.ubuntu.com/ubuntu-ports devel-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports devel-security multiverse

fix it

tingo@devterm-R01:~$ sudo sed -i 's/devel/jammy/g' /etc/apt/sources.list

verify

tingo@devterm-R01:~$ more /etc/apt/sources.list
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports jammy main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy main restricted

## distribution.
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted

deb http://ports.ubuntu.com/ubuntu-ports jammy universe
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy universe
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates universe
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-updates universe

deb http://ports.ubuntu.com/ubuntu-ports jammy multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy multiverse
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-updates multiverse

deb http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse

# deb http://archive.canonical.com/ubuntu jammy partner
# deb-src http://archive.canonical.com/ubuntu jammy partner

deb http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports jammy-security universe
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security universe
deb http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse

good.

2022-07-03: mmcblk0p4 - apt - remove updated-notifier-common

tingo@devterm-R01:~$ sudo apt remove update-notifier-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  python3-debconf python3-debian
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  update-notifier-common
0 upgraded, 0 newly installed, 1 to remove and 139 not upgraded.
After this operation, 1164 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 196115 files and directories currently installed.)
Removing update-notifier-common (3.192.51) ...

2022-07-03: fix u-boot update file (from the "Early Hints" thread). Before

tingo@devterm-R01:~$ more /etc/default/u-boot 
## /etc/default/u-boot - configuration file for u-boot-update(8)

#U_BOOT_UPDATE="true"

#U_BOOT_ALTERNATIVES="default recovery"
#U_BOOT_DEFAULT="l0"
#U_BOOT_ENTRIES="all"
#U_BOOT_MENU_LABEL="Debian GNU/Linux"
#U_BOOT_PARAMETERS="ro quiet"
#U_BOOT_ROOT=""
#U_BOOT_TIMEOUT="50"
#U_BOOT_FDT=""
#U_BOOT_FDT_DIR="/usr/lib/linux-image-"

after

tingo@devterm-R01:~$ more /etc/default/u-boot 
## /etc/default/u-boot - configuration file for u-boot-update(8)

#U_BOOT_UPDATE="true"

#U_BOOT_ALTERNATIVES="default recovery"
#U_BOOT_DEFAULT="l0"
#U_BOOT_ENTRIES="all"
#U_BOOT_MENU_LABEL="Debian GNU/Linux"
#U_BOOT_PARAMETERS="ro quiet"
#U_BOOT_ROOT=""
#U_BOOT_TIMEOUT="50"
#U_BOOT_FDT=""
#U_BOOT_FDT_DIR="/usr/lib/linux-image-"
U_BOOT_ALTERNATIVES="default"
U_BOOT_MENU_LABEL="DevTerm R01 OS"
U_BOOT_PARAMETERS="earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 console=tty0 cma=8M LANG=en_US.UTF-8 
fbcon=rotate:1"
U_BOOT_TIMEOUT="0"
U_BOOT_FDT="board.dtb"
U_BOOT_FDT_DIR="/usr/lib/linux-image-"

2022-07-03: disk info

tingo@devterm-R01:~$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mmcblk0     179:0    0 29.7G  0 disk 
├─mmcblk0p2 179:2    0  122M  0 part 
├─mmcblk0p3 179:3    0  489M  0 part /boot
└─mmcblk0p4 179:4    0 29.1G  0 part /

mount info

tingo@devterm-R01:~$ mount
/dev/mmcblk0p4 on / type ext4 (rw,noatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=487808k,nr_inodes=121952,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=196804k,nr_inodes=819200,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
/dev/mmcblk0p3 on /boot type ext4 (rw,noatime,x-systemd.mount-timeout=300s)
tmpfs on /run/user/1001 type tmpfs (rw,nosuid,nodev,relatime,size=98400k,nr_inodes=24600,mode=700,uid=1001,gid=1001)
tmpfs on /run/user/1002 type tmpfs (rw,nosuid,nodev,relatime,size=98400k,nr_inodes=24600,mode=700,uid=1002,gid=1002)

kernel command line

tingo@devterm-R01:~$ cat /proc/cmdline
earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 console=tty0 root=/dev/mmcblk0p4 cma=8M mac_addr=84:10:12:12:01:04 LANG=en_US.UTF-8 fbcon=rotate:1

uEnv

tingo@devterm-R01:~$ more /boot/uEnv.txt

boot_grub=load mmc 0:2 0x43000000 /EFI/ubuntu/grubriscv64.efi; bootefi 0x43000000
bootcmd_mmc0=devnum=0; run mmc_boot

ipaddr=192.168.8.238
netmask=255.255.255.0

extlinux.conf

tingo@devterm-R01:~$ more /boot/extlinux/extlinux.conf
## /boot/extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
## The configuration of this file is generated automatically.
## Do not edit this file manually, use: u-boot-update

menu title DevTerm RISC-V Boot Options.
prompt 0
timeout 1

label DevTerm
    kernel /vmlinuz-5.4.61
#   kernel /vmlinux-5.4.61
    append earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 console=tty0 root=/dev/mmcblk0p4 cma=8M m
ac_addr=84:10:12:12:01:04 LANG=en_US.UTF-8 fbcon=rotate:1
    fdt /board.dtb

2022-07-03: battery info, various

tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/capacity
99
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/energy_full
8000000
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/energy_now
8000000
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/health
Good
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/status
Discharging
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/present
1
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/type
Battery
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/waiting_for_supplier
0
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/voltage_max_design
4200000
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/voltage_min_design
3300000
tingo@devterm-R01:~$ cat /sys/class/power_supply/axp20x-battery/voltage_now
4133000

good to know.

2022-07-03: Xorg, from my user, I can now start the twm setup via startx, and Xfce via startxfce4. Nice. Xfce takes a while to startup, and is heavier on resources. Also, after a while I realize that Xfce is too much, it is almost useless on this device.

2022-07-03: autologin is this

tingo@devterm-R01:~$ systemctl status  getty@tty1.service  getty@tty1.service - Getty on tty1
     Loaded: loaded (/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/getty@tty1.service.d
             └─override.conf
     Active: active (running) since Sun 2022-07-03 17:11:56 CEST; 2min 27s ago
       Docs: man:agetty(8)
             man:systemd-getty-generator(8)
             http://0pointer.de/blog/projects/serial-console.html
   Main PID: 25508 (login)
      Tasks: 0 (limit: 1143)
     Memory: 672.0K
        CPU: 103ms
     CGroup: /system.slice/system-getty.slice/getty@tty1.service
              25508 /bin/login -f "" "" "" ""

the magic is here

tingo@devterm-R01:~$ more /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin cpi --noclear %I $TERM

disable it

tingo@devterm-R01:~$ sudo systemctl disable getty@tty1.service 
Removed /etc/systemd/system/getty.target.wants/getty@tty1.service.

and stop it

tingo@devterm-R01:~$ sudo systemctl stop getty@tty1.service 

whoops, that disabled getty totally on tty1. Let's change it instead

tingo@devterm-R01:~$ more /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
#ExecStart=-/sbin/agetty --autologin cpi --noclear %I $TERM

try with commenting out the autologin line, then we enable the service again

tingo@devterm-R01:~$ sudo systemctl enable getty@tty1.service
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service  /lib/systemd/system/getty@.service.

and start it

tingo@devterm-R01:~$ sudo systemctl start getty@tty1.service
Failed to start getty@tty1.service: Unit getty@tty1.service has a bad unit file setting.
See system logs and 'systemctl status getty@tty1.service' for details.

didn't like that

tingo@devterm-R01:~$ systemctl status getty@tty1.service
Warning: The unit file, source configuration file or drop-ins of getty@tty1.service changed on disk. Run 'systemctl daemon-reload' to reload unit>
○ getty@tty1.service - Getty on tty1
     Loaded: bad-setting (Reason: Unit getty@tty1.service has a bad unit file setting.)
    Drop-In: /etc/systemd/system/getty@tty1.service.d
             └─override.conf
     Active: inactive (dead)
       Docs: man:agetty(8)
             man:systemd-getty-generator(8)
             http://0pointer.de/blog/projects/serial-console.html

try reload

tingo@devterm-R01:~$ sudo systemctl daemon-reload

and start again. Nope that didn't work. What worked was commenting out both lines in the orverride file

tingo@devterm-R01:~$ more /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
# ExecStart=
# ExecStart=-/sbin/agetty --autologin cpi --noclear %I $TERM

then reload systemd, and then starting the getty service on tty1. Note: user cpi still auto-starts Xorg on login.

2022-07-03: timezone - check and correct

tingo@devterm-R01:~$ timedatectl status
               Local time: Sun 2022-07-03 14:29:12 UTC
           Universal time: Sun 2022-07-03 14:29:12 UTC
                 RTC time: Sun 2022-07-03 14:29:13
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

change it

tingo@devterm-R01:~$ timedatectl set-timezone Europe/Oslo
==== AUTHENTICATING FOR org.freedesktop.timedate1.set-timezone ===
Authentication is required to set the system timezone.
Multiple identities can be used for authentication:
 1.  cpi
 2.  tingo
Choose identity to authenticate as (1-2): 2
Password: 
==== AUTHENTICATION COMPLETE ===

verify

tingo@devterm-R01:~$ timedatectl status
               Local time: Sun 2022-07-03 16:30:25 CEST
           Universal time: Sun 2022-07-03 14:30:25 UTC
                 RTC time: Sun 2022-07-03 14:30:25
                Time zone: Europe/Oslo (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

2022-07-03: Xorg config

tingo@devterm-R01:~$ cat /etc/X11/xorg.conf.d/10-d1.conf
Section "Device"
    Identifier "FBDEV"
    #Driver "modesetting"
    #Option "Rotate"  "right"

    Driver "fbdev"
    Option "fbdev" "/dev/fb0"
#   Option "RandRotation" "True"
    Option "Rotate" "cw"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "FBDEV"
    DefaultDepth 24

    Subsection "Display"
        Depth 24
        Modes "1280x480" "480x1280"
    EndSubsection

EndSection

2022-07-03: the default shell for my user is /bin/sh (dash), change it to bash

$ chsh -s /bin/bash
Password: 

then log out and in again. Much nicer.

2022-07-03: create my own user

cpi@devterm-R01:~$ sudo useradd -m tingo

add it to groups

cpi@devterm-R01:~$ sudo usermod -a  -G adm,dialout,cdrom,floppy,sudo,audio,dip,video,plugdev,netdev,lxd,pulse,pulse-access tingo

check

cpi@devterm-R01:~$ id tingo
uid=1002(tingo) gid=1002(tingo) groups=1002(tingo),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),117(netdev),118(lxd),127(pulse),128(pulse-access)
cpi@devterm-R01:~$ groups tingo
tingo : tingo adm dialout cdrom floppy sudo audio dip video plugdev netdev lxd pulse pulse-access

I also set a password for my user.

2022-07-03: checking out the default user setup. User 'cpi' has some things defined

cpi@devterm-R01:~$ more .bash_profile
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
    echo Loading Xorg...
    sleep 1
    exec startx
fi

Xorg is started in ~/.bash_profile. The file ~/.xinitrc contains the setup for Xorg.

/usr/bin/xset b off m 2 5 s 600
/usr/local/bin/hello.sh &
exec /usr/bin/gkrellm &
exec /usr/bin/twm

and there is a readme file too

cpi@devterm-R01:~$ more ~/readme 
Welcome to ClockworkPi DevTerm R01!

The default system username and password are "cpi" and "cpi".
Please change your password before connecting to the public network.

Note: The SSH server is disabled by default.
To enable the SSH server please execute:
"sudo systemctl enable ssh"
"sudo systemctl start ssh"

To disable automatic login please execute:
"sudo rm /etc/systemd/system/getty@tty1.service.d/"
"sudo rm ~/.bash_profile"

Press Ctrl+Alt+t to to open Xterm.
Press Ctrl+Alt+n to to open NetworkManager.

Join our community at https://forum.clockworkpi.com
Have fun!

Powered by a RISC-V 64-bit processor.

2022-06-27: from the forum - don't run sudo apt upgrade unless you have fixed the u-boot update issue first. Or else you will have a non-working system and will need to put the microSD card in another machine to fix it. Forum thread Risc-v operating system does not update,

2022-06-26: mmcblk0p4 - cpu info

cpi@devterm-R01:~$ cat /proc/cpuinfo 
processor   : 0
hart        : 0
isa     : rv64imafdcvu
mmu     : sv39

lscpu info

cpi@devterm-R01:~$ lscpu
Architecture:          riscv64
  Byte Order:          Little Endian
CPU(s):                1
  On-line CPU(s) list: 0

2022-06-26: after assembly, I inserted the included microSD card, connected a USB power to the USB-C connector labeled "power" on the left side of the DevTerm and pressed the Power button in front. I don't have batteries yet. Anyway the machine came to life, I changed password on the default user and connected it to the network, then enabled and started ssh. ssh'ing to it like so

tingo@kg-core2:~ $ ssh cpi@10.1.161.36
cpi@10.1.161.36's password: 
Hello RISC-V!
       _            _                        _          _ 
      | |          | |                      | |        (_)
   ___| | ___   ___| | ____      _____  _ __| | ___ __  _ 
  / __| |/ _ \ / __| |/ /\ \ /\ / / _ \| '__| |/ / '_ \| |
 | (__| | (_) | (__|   <  \ V  V / (_) | |  |   <| |_) | |
  \___|_|\___/ \___|_|\_\  \_/\_/ \___/|_|  |_|\_\ .__/|_|
                                                 | |      
                                                 |_| 
Welcome to https://forum.clockworkpi.com/

Last login: Sun Jun 26 19:59:32 2022 from 10.1.150.52

and it runs Ubuntu

cpi@devterm-R01:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu Jammy Jellyfish (development branch)
Release:    22.04
Codename:   jammy

kernel

cpi@devterm-R01:~$ uname -a
Linux devterm-R01 5.4.61 #12 PREEMPT Wed Mar 30 14:44:22 CST 2022 riscv64 riscv64 riscv64 GNU/Linux

which is Debian unstable

cpi@devterm-R01:~$ cat /etc/debian_version 
bookworm/sid