[BPI-R64] Imagebuilder R64 ArchlinuxArm, linux-rolling-stable

The result of executing the pacman -Syu command led to the inability to boot the system. Can anyone tell me what the reason for what happened?

Before start upgrade :

[root@bpir64 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       3.7G  1.9G  1.8G  51% /
devtmpfs        496M     0  496M   0% /dev
tmpfs           497M     0  497M   0% /dev/shm
tmpfs           199M  604K  198M   1% /run
tmpfs           497M     0  497M   0% /tmp
[root@bpir64 ~]#

Log upgrade :

[root@bpir64 ~]# pacman -Syu
:: Synchronizing package databases...
 core                  274.1 KiB   323 KiB/s 00:01 [######################] 100%
 extra                   2.9 MiB  2.70 MiB/s 00:01 [######################] 100%
 community               6.4 MiB  2.62 MiB/s 00:02 [######################] 100%
 alarm                  57.4 KiB   448 KiB/s 00:00 [######################] 100%
 aur                     9.3 KiB  80.3 KiB/s 00:00 [######################] 100%
 ericwoud is up to date
error: failed retrieving file 'ericwoud.db' from ftp.woudstra.mywire.org : Connection timeout after 10000 ms
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (73) archlinux-keyring-20221123-1  brotli-1.0.9-9  bzip2-1.0.8-5
              ca-certificates-mozilla-3.85-1  coreutils-9.1-3
              cryptsetup-2.6.0-1  curl-7.86.0-4  dbus-1.14.4-1
              device-mapper-2.03.17-1  expat-2.5.0-1  f2fs-tools-1.15.0-2
              filesystem-2022.10.18-1  gawk-5.2.1-1  gettext-0.21.1-2
              git-2.38.1-2  glib2-2.74.1-1  gnupg-2.2.40-1  gnutls-3.7.8-4
              hostapd-2.10-2  hwdata-0.364-1  iana-etc-20221107-1  icu-72.1-2
              iproute2-6.0.0-1  iputils-20221126-1  kmod-30-3  krb5-1.20-3
              ldns-1.8.3-2  libarchive-3.6.1-5  libbpf-1.0.1-1
              libedit-20210910_3.1-2  libevent-2.1.12-4  libffi-3.4.4-1
              libgcrypt-1.10.1-2  libgpg-error-1.46-2  libidn2-2.3.4-3.1
              libksba-1.6.2-1  libldap-2.6.3-2  libnghttp2-1.51.0-1
              libpsl-0.21.1-3  libsasl-2.1.28-3  libssh2-1.10.0-3
              libsysprof-capture-3.46.0-1  libtirpc-1.3.3-2  libunistring-1.1-2
              libxcrypt-4.4.33-1  libxml2-2.10.3-2
              linux-firmware-20221109.60310c2-2
              linux-firmware-whence-20221109.60310c2-2  lzo-2.10-4
              mkinitcpio-33-1  mpfr-4.1.1-1  nano-7.0-1  openssh-9.1p1-3
              openssl-3.0.7-2  pacman-6.0.2-5  pambase-20221020-1
              pciutils-3.9.0-1  pinentry-1.2.1-1  popt-1.19-1
              readline-8.2.001-1  sed-4.9-1  shadow-4.12.3-2  sqlite-3.40.0-1
              sudo-1.9.12-5  systemd-252.2-2  systemd-libs-252.2-2
              systemd-sysvcompat-252.2-2  tpm2-tss-3.2.0-3  tzdata-2022f-1
              vim-9.0.0910-1  vim-runtime-9.0.0910-1  xz-5.2.8-1
              zlib-1:1.2.13-2

Total Download Size:   153.02 MiB
Total Installed Size:  863.28 MiB
Net Upgrade Size:       63.32 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 linux-firmware-2...    81.1 MiB  2.79 MiB/s 00:29 [######################] 100%
 icu-72.1-2-aarch64      9.6 MiB  2.05 MiB/s 00:05 [######################] 100%
 vim-runtime-9.0....     6.5 MiB  2.25 MiB/s 00:03 [######################] 100%
 systemd-252.2-2-...     6.4 MiB  2.50 MiB/s 00:03 [######################] 100%
 git-2.38.1-2-aarch64    6.1 MiB  2.51 MiB/s 00:02 [######################] 100%
 openssl-3.0.7-2-...     4.7 MiB  2.74 MiB/s 00:02 [######################] 100%
 glib2-2.74.1-1-a...     3.4 MiB  2.79 MiB/s 00:01 [######################] 100%
 gnutls-3.7.8-4-a...     2.7 MiB  1839 KiB/s 00:01 [######################] 100%
 coreutils-9.1-3-...     2.4 MiB  2.49 MiB/s 00:01 [######################] 100%
 gnupg-2.2.40-1-a...     2.2 MiB  2.42 MiB/s 00:01 [######################] 100%
 vim-9.0.0910-1-a...  1738.3 KiB  1402 KiB/s 00:01 [######################] 100%
 gettext-0.21.1-2...  1678.8 KiB   976 KiB/s 00:02 [######################] 100%
 sudo-1.9.12-5-aa...  1610.7 KiB  1071 KiB/s 00:02 [######################] 100%
 hwdata-0.364-1-any   1479.6 KiB  1094 KiB/s 00:01 [######################] 100%
 sqlite-3.40.0-1-...  1314.2 KiB  1514 KiB/s 00:01 [######################] 100%
 krb5-1.20-3-aarch64  1195.0 KiB  1282 KiB/s 00:01 [######################] 100%
 gawk-5.2.1-1-aarch64 1164.6 KiB  1516 KiB/s 00:01 [######################] 100%
 archlinux-keyrin...  1146.9 KiB  1340 KiB/s 00:01 [######################] 100%
 shadow-4.12.3-2-...  1143.7 KiB  1430 KiB/s 00:01 [######################] 100%
 curl-7.86.0-4-aa...  1126.0 KiB  1782 KiB/s 00:01 [######################] 100%
 iproute2-6.0.0-1...  1029.2 KiB  1878 KiB/s 00:01 [######################] 100%
 openssh-9.1p1-3-...   977.7 KiB  1784 KiB/s 00:01 [######################] 100%
 pacman-6.0.2-5-a...   827.5 KiB  1783 KiB/s 00:00 [######################] 100%
 libxml2-2.10.3-2...   719.0 KiB  1577 KiB/s 00:00 [######################] 100%
 tpm2-tss-3.2.0-3...   714.8 KiB  1787 KiB/s 00:00 [######################] 100%
 hostapd-2.10-2-a...   664.5 KiB  1767 KiB/s 00:00 [######################] 100%
 cryptsetup-2.6.0...   637.6 KiB  1832 KiB/s 00:00 [######################] 100%
 nano-7.0-1-aarch64    540.1 KiB  1825 KiB/s 00:00 [######################] 100%
 systemd-libs-252...   539.1 KiB  1624 KiB/s 00:00 [######################] 100%
 libunistring-1.1...   537.5 KiB  1841 KiB/s 00:00 [######################] 100%
 libgcrypt-1.10.1...   482.3 KiB  1698 KiB/s 00:00 [######################] 100%
 libarchive-3.6.1...   472.7 KiB  1764 KiB/s 00:00 [######################] 100%
 ldns-1.8.3-2-aarch64  448.9 KiB  1559 KiB/s 00:00 [######################] 100%
 iana-etc-2022110...   377.7 KiB  1499 KiB/s 00:00 [######################] 100%
 xz-5.2.8-1-aarch64    358.2 KiB  1628 KiB/s 00:00 [######################] 100%
 tzdata-2022f-1-a...   356.7 KiB  1565 KiB/s 00:00 [######################] 100%
 ca-certificates-...   352.7 KiB  1575 KiB/s 00:00 [######################] 100%
 brotli-1.0.9-9-a...   328.7 KiB  1264 KiB/s 00:00 [######################] 100%
 readline-8.2.001...   307.2 KiB  1396 KiB/s 00:00 [######################] 100%
 mpfr-4.1.1-1-aarch64  302.9 KiB  1429 KiB/s 00:00 [######################] 100%
 dbus-1.14.4-1-aa...   291.9 KiB  1280 KiB/s 00:00 [######################] 100%
 device-mapper-2....   266.1 KiB  1305 KiB/s 00:00 [######################] 100%
 libldap-2.6.3-2-...   262.0 KiB   697 KiB/s 00:00 [######################] 100%
 libevent-2.1.12-...   239.0 KiB  1086 KiB/s 00:00 [######################] 100%
 libgpg-error-1.4...   216.1 KiB  1228 KiB/s 00:00 [######################] 100%
 libbpf-1.0.1-1-a...   209.6 KiB  1092 KiB/s 00:00 [######################] 100%
 libssh2-1.10.0-3...   203.2 KiB  1182 KiB/s 00:00 [######################] 100%
 sed-4.9-1-aarch64     197.9 KiB  1053 KiB/s 00:00 [######################] 100%
 f2fs-tools-1.15....   185.9 KiB   929 KiB/s 00:00 [######################] 100%
 libtirpc-1.3.3-2...   169.8 KiB  1117 KiB/s 00:00 [######################] 100%
 libidn2-2.3.4-3....   148.9 KiB   980 KiB/s 00:00 [######################] 100%
 libsasl-2.1.28-3...   136.2 KiB   896 KiB/s 00:00 [######################] 100%
 libksba-1.6.2-1-...   125.7 KiB   827 KiB/s 00:00 [######################] 100%
 pinentry-1.2.1-1...   116.6 KiB   788 KiB/s 00:00 [######################] 100%
 iputils-20221126...   105.4 KiB   775 KiB/s 00:00 [######################] 100%
 kmod-30-3-aarch64     103.0 KiB   736 KiB/s 00:00 [######################] 100%
 libedit-20210910...   102.0 KiB   654 KiB/s 00:00 [######################] 100%
 expat-2.5.0-1-aa...   101.5 KiB   686 KiB/s 00:00 [######################] 100%
 pciutils-3.9.0-1...    98.1 KiB   598 KiB/s 00:00 [######################] 100%
 libnghttp2-1.51....    92.6 KiB   626 KiB/s 00:00 [######################] 100%
 libxcrypt-4.4.33...    84.6 KiB   641 KiB/s 00:00 [######################] 100%
 zlib-1:1.2.13-2-...    81.8 KiB   553 KiB/s 00:00 [######################] 100%
 libpsl-0.21.1-3-...    77.5 KiB   538 KiB/s 00:00 [######################] 100%
 lzo-2.10-4-aarch64     76.5 KiB   517 KiB/s 00:00 [######################] 100%
 popt-1.19-1-aarch64    68.2 KiB   516 KiB/s 00:00 [######################] 100%
 bzip2-1.0.8-5-aa...    55.2 KiB   418 KiB/s 00:00 [######################] 100%
 mkinitcpio-33-1-any    45.4 KiB   316 KiB/s 00:00 [######################] 100%
 libsysprof-captu...    44.4 KiB   253 KiB/s 00:00 [######################] 100%
 libffi-3.4.4-1-a...    41.3 KiB   322 KiB/s 00:00 [######################] 100%
 linux-firmware-w...    27.7 KiB   217 KiB/s 00:00 [######################] 100%
 filesystem-2022....    13.8 KiB   111 KiB/s 00:00 [######################] 100%
 systemd-sysvcomp...     6.0 KiB  55.5 KiB/s 00:00 [######################] 100%
 pambase-20221020...     3.1 KiB  27.3 KiB/s 00:00 [######################] 100%
 Total (73/73)         153.0 MiB  2.17 MiB/s 01:11 [######################] 100%
(73/73) checking keys in keyring                   [######################] 100%
(73/73) checking package integrity                 [######################] 100%
(73/73) loading package files                      [######################] 100%
(73/73) checking for file conflicts                [######################] 100%
:: Processing package changes...
( 1/73) upgrading iana-etc                         [######################] 100%
( 2/73) upgrading filesystem                       [######################] 100%
( 3/73) upgrading tzdata                           [######################] 100%
( 4/73) upgrading readline                         [######################] 100%
( 5/73) upgrading bzip2                            [######################] 100%
( 6/73) upgrading expat                            [######################] 100%
( 7/73) upgrading openssl                          [######################] 100%
( 8/73) upgrading xz                               [######################] 100%
( 9/73) upgrading zlib                             [######################] 100%
(10/73) upgrading libarchive                       [######################] 100%
(11/73) upgrading brotli                           [######################] 100%
(12/73) upgrading libsasl                          [######################] 100%
(13/73) upgrading libldap                          [######################] 100%
(14/73) upgrading libevent                         [######################] 100%
(15/73) upgrading krb5                             [######################] 100%
(16/73) upgrading libunistring                     [######################] 100%
(17/73) upgrading libidn2                          [######################] 100%
(18/73) upgrading libnghttp2                       [######################] 100%
(19/73) upgrading libpsl                           [######################] 100%
(20/73) upgrading libssh2                          [######################] 100%
(21/73) upgrading libxcrypt                        [######################] 100%
(22/73) upgrading libtirpc                         [######################] 100%
(23/73) upgrading pambase                          [######################] 100%
(24/73) upgrading coreutils                        [######################] 100%
(25/73) upgrading libgpg-error                     [######################] 100%
(26/73) upgrading libgcrypt                        [######################] 100%
(27/73) upgrading libffi                           [######################] 100%
(28/73) upgrading systemd-libs                     [######################] 100%
(29/73) upgrading ca-certificates-mozilla          [######################] 100%
(30/73) upgrading curl                             [######################] 100%
(31/73) upgrading icu                              [######################] 100%
(32/73) upgrading libxml2                          [######################] 100%
(33/73) upgrading gettext                          [######################] 100%
(34/73) upgrading mpfr                             [######################] 100%
(35/73) upgrading gawk                             [######################] 100%
(36/73) upgrading gnutls                           [######################] 100%
(37/73) upgrading libksba                          [######################] 100%
(38/73) upgrading libsysprof-capture               [######################] 100%
(39/73) upgrading glib2                            [######################] 100%
(40/73) upgrading tpm2-tss                         [######################] 100%
(41/73) upgrading pinentry                         [######################] 100%
(42/73) upgrading sqlite                           [######################] 100%
(43/73) upgrading gnupg                            [######################] 100%
(44/73) upgrading pacman                           [######################] 100%
(45/73) upgrading archlinux-keyring                [######################] 100%
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 6 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabled 53 keys.
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   6  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   6  signed:  94  trust: 0-, 0q, 0n, 6m, 0f, 0u
gpg: depth: 2  valid:  74  signed:  28  trust: 74-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2023-01-01
==> Updating trust database...
gpg: next trustdb check due at 2023-01-01
(46/73) upgrading device-mapper                    [######################] 100%
(47/73) upgrading popt                             [######################] 100%
(48/73) upgrading cryptsetup                       [######################] 100%
(49/73) upgrading dbus                             [######################] 100%
(50/73) upgrading shadow                           [######################] 100%
(51/73) upgrading f2fs-tools                       [######################] 100%
(52/73) upgrading git                              [######################] 100%
(53/73) upgrading hostapd                          [######################] 100%
(54/73) upgrading hwdata                           [######################] 100%
(55/73) upgrading libbpf                           [######################] 100%
(56/73) upgrading iproute2                         [######################] 100%
(57/73) upgrading iputils                          [######################] 100%
(58/73) upgrading kmod                             [######################] 100%
(59/73) upgrading ldns                             [######################] 100%
(60/73) upgrading libedit                          [######################] 100%
(61/73) upgrading linux-firmware-whence            [######################] 100%
(62/73) upgrading linux-firmware                   [######################] 100%
(63/73) upgrading lzo                              [######################] 100%
(64/73) upgrading systemd                          [######################] 100%
(65/73) upgrading mkinitcpio                       [######################] 100%
(66/73) upgrading nano                             [######################] 100%
(67/73) upgrading openssh                          [######################] 100%
warning: /etc/ssh/sshd_config installed as /etc/ssh/sshd_config.pacnew
(68/73) upgrading pciutils                         [######################] 100%
(69/73) upgrading sed                              [######################] 100%
(70/73) upgrading sudo                             [######################] 100%
(71/73) upgrading systemd-sysvcompat               [######################] 100%
(72/73) upgrading vim-runtime                      [######################] 100%
(73/73) upgrading vim                              [######################] 100%
:: Running post-transaction hooks...
( 1/13) Creating system user accounts...
( 2/13) Updating journal message catalog...
( 3/13) Reloading system manager configuration...
( 4/13) Updating udev hardware database...
( 5/13) Applying kernel sysctl settings...
( 6/13) Creating temporary files...
Cannot set file attributes for '/var/log/journal', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
Cannot set file attributes for '/var/log/journal/17c18f57d227437dbda6439989abb878', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
Cannot set file attributes for '/var/log/journal/remote', maybe due to incompatibility in specified attributes, previous=0x10001000, current=0x10001000, expected=0x10801000, ignoring.
( 7/13) Reloading device manager configuration...
( 8/13) Arming ConditionNeedsUpdate...
( 9/13) Rebuilding certificate stores...
(10/13) Updating linux-bpir64-git initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-bpir64-git.preset: 'default'
  -> -k 5.19.11-bpi-r64-1 -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-bpir64-git.img
==> Starting build: 5.19.11-bpi-r64-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-bpir64-git.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-bpir64-git.preset: 'fallback'
  -> -k 5.19.11-bpi-r64-1 -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-bpir64-git-fallback.img -S autodetect
==> Starting build: 5.19.11-bpi-r64-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-bpir64-git-fallback.img
==> Image generation successful
(11/13) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-bpir64-git.preset: 'default'
  -> -k 5.19.11-bpi-r64-1 -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-bpir64-git.img
==> Starting build: 5.19.11-bpi-r64-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-bpir64-git.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-bpir64-git.preset: 'fallback'
  -> -k 5.19.11-bpi-r64-1 -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-bpir64-git-fallback.img -S autodetect
==> Starting build: 5.19.11-bpi-r64-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-bpir64-git-fallback.img
==> Image generation successful
(12/13) Updating fip partition...
BOOTARGS = root=PARTLABEL=bpir64-sdmmc-root earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200 rw rootwait audit=0
'/boot/dtbs/mt7622-bananapi-bpi-r64.dtb' -> '/boot/dtbs/mt7622-bananapi-bpi-r64-fixed.dtb'
fdtput /boot/dtbs/mt7622-bananapi-bpi-r64-fixed.dtb -d /pinctrl@10211000/asm_sel output-high
input  = /boot/dtbs/mt7622-bananapi-bpi-r64-fixed.dtb
output = /boot/atf-direct.dtb
overlay[0] = /boot/dtbos/cpu-thermal.dtbo
overlay[1] = /boot/dtbos/dsa-port-5.dtbo
overlay[2] = /boot/dtbos/sata-enable.dtbo
overlay[3] = /boot/dtbos/wmac-eeprom.dtbo
fiptool: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
fiptool: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Writing FIP to: /dev/disk/by-partlabel/bpir64-sdmmc-fip
dd: failed to open '/tmp/bpir64-atf-git/fip.bin': No such file or directory
(13/13) Reloading system bus configuration...
[root@bpir64 ~]#

Thanks for reporting.

There was a major update on ArchLinux, important libraries got updated. These errors would occur.

bpir64-mkimage: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
fiptool: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

This means that the packages bpir64-mkimage and bpit64-atf-git need to be rebuild. You could do it yourself from the AUR, but Iā€™ve done it already. So execute the chroot on the card by starting the build.sh script without parameters

Then update the packages:

pacman -Scc  (Yes/Yes)
pacman -Sy bpir64-mkimage bpir64-atf-git

Iā€™ll see if I can get these packages not relying on these libraries.

Iā€™ve also updated the packages in the backuprepo

The packages bpir64-mkimage and bpir64-atf-git do not rely on libssl or libcrypto anymore. The executeables did not use the libraries for anything used in the script. Packages are updated, also bumped a new rev. number, so it is enough to do:

pacman -Sy bpir64-mkimage bpir64-atf-git

Although the atf package is normally being ignored, update it now anyway.

Also Linux Kernel on the (backup) site is now on version 6.0.10.

Thanks for the answer! Iā€™m sorry, I donā€™t know much about this. I re-recorded provided your minimalistic image on the SD card. I mounted the SD card on a Linux PC, but I couldnā€™t find the script there build.sh

If I just execute commands on a mini-image 1.1 vers.:

pacman -Sy bpir64-mkimage bpir64-atf-git
pacman -Syu

This will lead to a successful update, or still need to somehow execute the script build.sh without parameters ?

You should now be updated to the newest packages.

An error occurred while trying to update the package:

[root@bpir64 ~]# pacman -S bpir64-mkimage
warning: bpir64-mkimage-2021.10-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) bpir64-mkimage-2021.10-1

Total Download Size:   0.11 MiB
Total Installed Size:  0.28 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 bpir64-mkimage-2021.10-1-aarch64.pkg.tar.xz failed to download
error: failed retrieving file 'bpir64-mkimage-2021.10-1-aarch64.pkg.tar.xz' from ftp.woudstra.mywire.org : Given file does not exist
error: failed retrieving file 'bpir64-mkimage-2021.10-1-aarch64.pkg.tar.xz' from github.com : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
[root@bpir64 ~]#

also tried

[root@bpir64 ~]# pacman -Scc

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N] y
removing all files from cache...

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] y
removing unused sync repositories...
[root@bpir64 ~]#


[root@bpir64 ~]# pacman -S bpir64-mkimage
warning: bpir64-mkimage-2021.10-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) bpir64-mkimage-2021.10-1

Total Download Size:   0.11 MiB
Total Installed Size:  0.28 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 bpir64-mkimage-2021.10-1-aarch64.pkg.tar.xz failed to download
error: failed retrieving file 'bpir64-mkimage-2021.10-1-aarch64.pkg.tar.xz' from ftp.woudstra.mywire.org : Given file does not exist
error: failed retrieving file 'bpir64-mkimage-2021.10-1-aarch64.pkg.tar.xz' from github.com : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
[root@bpir64 ~]#

You need to use the y also, to make sure you get the newest database of files to download. Then it knows the filename of the newest version is bpir64-mkimage-2021.10-2-aarch64.pkg.tar.xz mind the -2-.

So please use:

pacman -Sy bpir64-mkimage

My mywire.org site is down at the moment, it will give an error, but it should get it from the backup location.

Thanks again for working on this image and helping, thanks to your answers. Now the kernel is 6.0.10-bpi-r64-1

The image is really good, fast and easily and understandably configurable, unlike Ubuntu, where the network could not be configured at all, no matter how hard I tried.

Everything works out of the box here, but I had an idea to turn off and turn on WiFi AP and green Led for clarity using the WPS button. I was looking for information on how to do this and found that it is necessary to handle the interrupt via LKM, and for compilation, kernel headers are needed.

After the current update, I found something similar here :

ls /usr/lib/modules/6.0.10-bpi-r64-1/build/include/linux

I hope this is what need.

I have not done something with the LEDs myself but there was some info shared about it in this post, starting at nr 27. if you scroll up. Maybe also there is more info about LEDs in another topic.

You can start/stop AP simply be starting and stopping the hostapd service.

Edit:

I think you should be able to get gpio-keys events and/or status by using evtest in a scriptā€¦ Make sure it has enough permission, run as root for trying out.

If it turns out you need a kernel module (lkm) which is not present in the bpir64 archlinux kernel, then let me know and I could include it in the next build.

I tried to compile and load LKM using examples. The ā€œHello Worldā€ project is ok, but the example with an interrupt from gpio could not be implemented.

I was trying to figure out what the reason might be and noticed that :

ls: cannot access '/sys/class/gpio/': No such file or directory

I donā€™t understand this, but maybe the kernel is built without kernel-option CONFIG_GPIO_SYSFS but with LEDS_GPIO [=y], because ls /sys/class/leds/ shows leds

Check of this post:

Itā€™s probably different here. I have a difficulty in the issue with the button. There are no issues with LED, they are visible in the sysfs file system. But there is no GPIO for buttons in the sysfs file system in this kernel.

ls: cannot access '/sys/class/gpio/': No such file or directory

Try building with CONFIG_GPIO_SYSFS like you mentioned above

Next build available for download will be with GPIO_SYSFS=y.

However, It will be quite easy to use the command evtest, you do not need GPIO_SYSFS.

First install evtest

pacman -Sy evtest

Then execute it:

sudo evtest /dev/input/event0 
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio-keys"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 256 (BTN_0)
    Event code 529 (KEY_WPS_BUTTON)
Properties:
Testing ... (interrupt to exit)
Event: time 1670922556.516171, type 1 (EV_KEY), code 529 (KEY_WPS_BUTTON), value 1
Event: time 1670922556.516171, -------------- SYN_REPORT ------------
Event: time 1670922556.848191, type 1 (EV_KEY), code 529 (KEY_WPS_BUTTON), value 0
Event: time 1670922556.848191, -------------- SYN_REPORT ------------

The output is easy to use in a script.

Execute this script:

#!/bin/bash
evtest /dev/input/event0 | \
while read line
do
  if [[ "$line" == *"(KEY_WPS_BUTTON), value 1"* ]]; then
    echo "WPS BUTTON PRESSED!"
  fi
done

This is a nice solution, because it is waiting for the event. This is better then continuously polling the state of the button.

Anyway, if you upgrade now to linux 6.0.12, GPIO_SYSFS will be enabled. (if you are already on this version then delete it from cache and re-install)

[root@bpir64 ~]# ls /sys/class/gpio/
export	gpiochip405  gpiochip409  unexport

After running the build script with -a I receiving the following error.

./x86_64_qemu-aarch64-static.tar.gz: Permission denied Cannot write to ā€˜./x86_64_qemu-aarch64-static.tar.gzā€™ (Success). tar: x86_64_qemu-aarch64-static.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now :qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-aarch64-static:CF Job for systemd-binfmt.service failed because the control process exited with error code. See ā€œsystemctl status systemd-binfmt.serviceā€ and ā€œjournalctl -xeu systemd-binfmt.serviceā€ for details.

systemctl status systemd-binfmt.service Ɨ systemd-binfmt.service - Set Up Additional Binary Formats Loaded: loaded (/lib/systemd/system/systemd-binfmt.service; static) Active: failed (Result: exit-code) since Tue 2023-01-24 16:59:43 ACDT; 3mi> Docs: man:systemd-binfmt.service(8) man:binfmt.d(5) https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems Process: 15046 ExecStart=/lib/systemd/systemd-binfmt (code=exited, status=1> Main PID: 15046 (code=exited, status=1/FAILURE) CPU: 6ms

Edit:

DidnĀ“t realize there was a link to a build version in the first post.

The build version is a bit old, but you could use it to try out.

I thought I had all quirks ironed out of the script by now, but somehow there is still one.

Perhapse you can help me to find out whatā€™s going wrong over there:

cd buildR64arch
git pull
./build.sh -a

and post what it echoā€™s for

BASH_SOURCE:
Current dir:

You can XXX out your usernameā€¦

(It seems the script does not have permission to the current directory, which should have been set by the script to the directory the script is located. Since it is created by the user with git clone, it should have permission. So something unexpected happens, which does not happen on any of my systems)

You can find Arch Linux packages in:

https://archlinuxarm.org/packages

or if it is not there, you need to build it from the AUR.

https://aur.archlinux.org/packages

Building from the AUR you can do manually, or choose to use yay.

Which package you are looking for?

I just used the built image in the first post.

If you like, I have updated the downloadable image to v1.2.

It has kernel 6.1.7 and is build with latest version of script. Have not tested it yetā€¦

I receive trying to update the pacman database! This is my first time exploring Arch Linux. : : Synchronizing package databasesā€¦ core.db failed to download error: failed retrieving file ā€˜core.dbā€™ from de.mirror.archlinuxarm.org : Could not resolve host: de.mirror.archlinuxarm.org warning: too many errors from de.mirror.archlinuxarm.org, skipping for the remainder of this transaction error: failed to synchronize all databases (invalid url for server)