Rebooting via ssh is not working for me

I don’t know if it’s a bug or it’s been disabled for a reason in the latest release.
Executing reboot command via ssh is not working.

CoreELEC:~ # cat /etc/*-release
NAME=“CoreELEC”
VERSION=“8.99.2”
ID=“coreelec”
VERSION_ID=“9.0”
PRETTY_NAME=“CoreELEC (official): 8.99.2”
HOME_URL=“https://coreelec.org
BUG_REPORT_URL=“GitHub - CoreELEC/CoreELEC: A lightweight OS for KODI
BUILD_ID=“15c7a37a2a128c582ea408a1da9c4b58f7e10743”
COREELEC_ARCH=“S905.arm”
COREELEC_BUILD=“official”
COREELEC_PROJECT=“Amlogic”
COREELEC_DEVICE=“S905”

dmesg output:

[49829.289111@0] systemd[1]: syscall 385
[49829.289123@0] Code: e1a01002 e1a02003 e89c0078 ef000000 (e8bd00f0)
[49829.289130@0] CPU: 0 PID: 1 Comm: systemd Tainted: G O 3.14.29 #1
[49829.289135@0] task: ffffffc010306000 ti: ffffffc0657fc000 task.ti: ffffffc0657fc000
[49829.289153@0] PC is at 0xf7302d50
[49829.289157@0] LR is at 0xf74a31e0
[49829.289160@0] pc : [<00000000f7302d50>] lr : [<00000000f74a31e0>] pstate: a0000010
[49829.289163@0] sp : 00000000ff973698
[49829.289167@0] x12: 00000000ff9736a8
[49829.289171@0] x11: 00000000aaf7b80a x10: 00000000aaf7d377
[49829.289175@0] x9 : 0000000000000000 x8 : 00000000ff973750
[49829.289179@0] x7 : 0000000000000181 x6 : 00000000a3eb2500
[49829.289183@0] x5 : 00000000fffffec0 x4 : 00000000ff9736e8
[49829.289187@0] x3 : 00000000aaf87e99 x2 : 00000000a3eb2500
[49829.289191@0] x1 : 0000000000000001 x0 : 00000000aaf87e99
[49829.289195@0]
[49829.359937@2] systemd[1]: systemd 239 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[49829.360164@2] systemd[1]: Detected architecture arm64.
[49829.393444@1] systemd[1]: File /usr/lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[49829.393464@1] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)

Need full dmesg and not just a section of it

Sure, here it is dmes.log (64.8 KB)

Additional note:
rebooting via plink (a tool in putty) works fine.

plink root@192.168.0.4 -pw ********* reboot

So the problem occurs only if reboot was executed in logged ssh session.

Can you provide output of lsmod

CoreELEC:~ # lsmod

bnep 13847 2 - Live 0xffffffbffc654000
hci_uart 30134 1 - Live 0xffffffbffc646000
btsdio 4394 0 - Live 0xffffffbffc641000
r848a 34373 1 - Live 0xffffffbffc634000
bluetooth 340354 24 bnep,hci_uart,btsdio, Live 0xffffffbffc5c6000
6lowpan_iphc 10183 1 bluetooth, Live 0xffffffbffc5c0000
avl6862 266301 1 - Live 0xffffffbffc57a000
8021q 19039 0 - Live 0xffffffbffc570000
dhd 752447 0 - Live 0xffffffbffc2ee000 (O)
cfg80211 374882 1 dhd, Live 0xffffffbffc168000
ir_lirc_codec 4996 0 - Live 0xffffffbffc163000
lirc_dev 11232 1 ir_lirc_codec, Live 0xffffffbffc15c000
ir_mce_kbd_decoder 4796 0 - Live 0xffffffbffc157000
ir_sanyo_decoder 2899 0 - Live 0xffffffbffc153000
ir_jvc_decoder 2511 0 - Live 0xffffffbffc14f000
ir_sony_decoder 2417 0 - Live 0xffffffbffc14b000
ir_rc6_decoder 3423 0 - Live 0xffffffbffc147000
ir_rc5_decoder 2439 0 - Live 0xffffffbffc143000
ir_nec_decoder 3367 0 - Live 0xffffffbffc13f000
mali 192633 5 - Live 0xffffffbffc0fd000 (O)
meson_ir 4021 0 - Live 0xffffffbffc0f9000
rc_core 17268 11 ir_lirc_codec,lirc_dev,ir_mce_kbd_decoder,ir_sanyo_decoder,ir_jvc_decoder,ir_sony_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder,meson_ir, Live 0xffffffbffc0ef000
aml_fe 7230 0 - Live 0xffffffbffc0e9000
aml 82222 1 aml_fe, Live 0xffffffbffc0cd000
dvb_core 97191 2 aml_fe,aml, Live 0xffffffbffc0ac000
wifi_dummy 806 0 - Live 0xffffffbffc0a8000
amlvideodri 12066 0 - Live 0xffffffbffc0a1000
videobuf_res 5322 1 amlvideodri, Live 0xffffffbffc09c000
videobuf_core 16549 2 amlvideodri,videobuf_res, Live 0xffffffbffc093000
videodev 131761 1 amlvideodri, Live 0xffffffbffc067000
dwc_otg 233217 0 - Live 0xffffffbffc01c000
fbcon 38031 0 - Live 0xffffffbffc00e000
bitblit 4468 1 fbcon, Live 0xffffffbffc009000
softcursor 1168 1 bitblit, Live 0xffffffbffc005000
font 7327 1 fbcon, Live 0xffffffbffc000000
CoreELEC:~ #

Should be fixed in the next version, you can verify in tomorrows nightly, thanks for reporting

https://github.com/CoreELEC/linux-amlogic/commit/974f8215fe5ba8216653c13d517e81ae81463763

1 Like