johang / sd-card-images

Scripts to build bootable SD card images with Debian for various single-board computers
https://sd-card-images.johang.se
GNU General Public License v3.0
140 stars 32 forks source link

Reboot does not work. #39

Open NEMSLinux opened 1 year ago

NEMSLinux commented 1 year ago

Hello. Upon initiating a reboot via /usr/sbin/reboot or /usr/sbin/shutdown -r now the system halts, but does not reboot. A hard power cycle is required to get back up and running.

I've tested the Khadas VIM3 image as well as the ODROID N2 image, and both exhibit this behavior.

I tried reinstalling systemd-sysv just for good measure, but no success.

Any chance others are seeing this behavior?

Thanks for the great project!!

NEMSLinux commented 1 year ago

Update: I tested the ODROID N2 with Bookworm (instead of Bullseye) and the issue does not exist. So perhaps this is a problem with the Bullseye version only. I would much rather use Bullseye at this time since my project currently runs on Python 3.9 and Bookworm upgrades to Python 3.11. Any help would be appreciated to get reboot working on the Bullseye image! Thanks!

joshuaboniface commented 1 year ago

Confirming this is happening with a AML-S905X-CC as well with the boot-libretech_s905x_cc.bin and debian-bullseye-arm64-au7mae.bin images. reboot, shutdown -h, etc. do not work properly.

johang commented 1 year ago

Most likely a kernel issue in something AML specific.

arkadijs commented 11 months ago

No reboot on Odroid C2 either, when system is on SD card. Reboot works when system is on eMMC.

A problem with SD peripheral left in wrong state? Boots fine after power cycle. Boot process looping with the following messages on serial console:

BL2 Built : 11:44:26, Nov 25 2015. 
gxb gfb13a3b-c2 - jcao@wonton

Board ID = 8
set vcck to 1100 mv
set vddee to 1050 mv
CPU clk: 1536MHz
DDR channel setting: DDR0 Rank0+1 same
DDR0: 2048MB(auto) @ 912MHz(2T)-13
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x000000b0
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x00009ef0
sd/emmc read data error: ret=16
aml log : SIG CHK : 351 for address 0x01000000
reset...
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:800;USB:8;LOOP:1;EMMC:800;NAND:81;SD:0;READ;
TE: 5141139
no sdio debug board detected