The restart of sshd would not impact whether or not sshd was started after reboot? Provided sshd is enabled it should restart when the machine reboots, but it seemed not to. However I will check whether sshd is enabled before reboot. I also think I will try the suggestions in the link in my previous post - to switch the processor frequency to the lower value, and then run the pacman update, and then check sshd is enabled, and then finally reboot and hope that I will then be able to ssh in. the rock64 has no monitor or keyboard and so is totally headless - the only access I have to it is ssh. Once I have tried changing processor frequency by removing the microsd card and making the changes as per
$this->bbcode_second_pass_code('', '
$ mkimage -n rk3328 -T rksd -d rk3328_ddr_333MHz_v1.13.bin idbloader.img
$ cat rk3328_miniloader_v2.46.bin >> idbloader.img
# dd if=idbloader.img of=/dev/sdx seek=64 conv=notrunc
')
I will put the microsd card back in the rock64 and try to boot.... I will post the result of that test in a day or two.
Edit: that failed at the first hurdle:
$this->bbcode_second_pass_code('', '
[mike@lenovo1 rock64]$ mkimage -n rk3328 -T rksd -d rk3328_ddr_333MHz_v1.13.bin idbloader.img
Error: SPL image is too large (size 0x18000 than 0x7000)
Error: Bad parameters for image type
')
Edit 2:
I ran a pacman update - and during the update there was the following during the post-install output:
$this->bbcode_second_pass_code('', '
:: Running post-transaction hooks...
(1/5) Updating module dependencies...
(2/5) Updating linux-aarch64 module dependencies...
(3/5) Updating linux-aarch64 initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'default'
-> -k 5.7.2-2-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.7.2-2-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'fallback'
-> -k 5.7.2-2-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.7.2-2-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
cp: cannot stat '(builtin)': No such file or directory
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly
(4/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'default'
-> -k 5.7.2-2-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.7.2-2-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'fallback'
-> -k 5.7.2-2-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.7.2-2-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
cp: cannot stat '(builtin)': No such file or directory
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly
')
However according to
viewtopic.php?f=65&t=14337 those messages should have been harmless.
I checked that sshd was both running and enabled - and doing systemctl daemon-reload and then restarting sshd I checked that I could still ssh in and it was fine.
I then rebooted and no longer is there any access into the machine and also it is no longer pingable.
$this->bbcode_second_pass_code('', '
$ ssh root@rock64
ssh: connect to host rock64 port 22: No route to host
$ ping -c2 10.0.0.54
PING 10.0.0.54 (10.0.0.54) 56(84) bytes of data.
From 10.0.0.94 icmp_seq=1 Destination Host Unreachable
From 10.0.0.94 icmp_seq=2 Destination Host Unreachable
--- 10.0.0.54 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1026ms
pipe 2
')
So I am again stuck and will have to install from scratch.