-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odroid C2 | Does not boot on reboot without power cycling #5414
Comments
Many thanks for your report. Do you know whether there was a kernel upgrade done? I.e. are the modules in If a kernel upgrade was done, can you try to flash the new U-Boot: . /usr/lib/u-boot/platform_install.sh
write_uboot_platform "$DIR" "$(lsblk -npo PKNAME "$G_ROOTFS_DEV")" |
Hi MichaIng, Thanks a lot for the very fast reply. I executed both commands without errors but after that the result is the same. I checked the version from the dietpi-config advanced options. --> The current version is Linux 5.10.102-meson64 |
Okay, so probably the kernel upgrade from 5.10.81 to 5.10.102 is responsible. If you have a spare card/drive, could you try it with the current Armbian image, please: https://dl.armbian.com/odroidc2/Bullseye_current Btw, how long did you wait before power cycling? Probably there is one service/unit hanging on shutdown. A maximum timeout for any hanging ExecStop command or such should be 90 seconds. |
Hi, I waited even 10 mins without luck. When I plugged the screen on the hdmi port I saw the job with the counter for 1min 30 secs stopping other tasks, that counter finishes even earlier but when all is halted and I get the black screen the new boot never happens. I have another SD card so today I'll try to use the iso of your link "[Bullseye_current]" (The web SSL cert expired a couple of days ago :D). I'll be back asap with the results. I have a similar error as commented by a user of an Odroid C4 in your second link: Thanks for your help! |
Well, confirmed, is a kernel topic. After installing armbian I have the same problem. I reported the isue as you suggested --> https://forum.armbian.com/topic/20241-odroid-c2-never-starting-after-a-soft-reboot-reboot-command/ The universe is telling me to go back to my dietpi from Sep 2021 :D the best option for my Odroid C2 rightnow (preserving the possibility to have the fs-boot in an external drive). Thanks again for the help! |
Could you try it with the edge kernel? At least the automated smoke tests, which include a restart test, go through with it: apt install linux-image-edge-meson64 linux-dtb-edge-meson64 linux-u-boot-odroidc2-edge |
Hi MichaIng, Sorry I don't want to spend more of your time and mine. I went back finally to the last iso I had from Sep 2021 and I got back the option to run the "root fs" from my external usb ssd. It is working like a charm so I don't really need to run the last version. Thanks for your help and time! |
I'll continue with the last year version untill a real/relevant reason avoid me to do that :) |
Let me reopen the issue to keep track of it, since staying on old kernel with vulnerabilities like dirty pipe is not an option for the image we provide. |
Cross-linking a forum report: REMOVED OBSOLETE LINK |
Hi Michalng sorry for the delay, I think I'll be able to do this with another sd-card during the next days. Do you need me to execute the command "apt install linux-image-edge-meson64 linux-dtb-edge-meson64 linux-u-boot-odroidc2-edge" using the last dietpi release or the current Armbian image you requested before? |
Good question. I suggest to test it with a fresh Armbian image first, so we can report results on their forums as well. If this works, then it should do so on DietPi as well. |
Hi, after executing the command over the fresh installation of the last armbian you linked, some packages are not found. Maybe this is easy to solve but my knowledge is very little. Please see below the traces: Welcome to Armbian 22.02.1 with Linux 5.10.102-meson64 No end-user support: community creations System load: 36% Up time: 0 min Last login: Thu Apr 14 14:11:29 2022 from 192.168.1.95 |
Did you run |
Hi Michalng, This is after apt update:
Then, as per the error recommendation I added "--fix-mis". This time it was installed, this was the output
After that the result is the same, I execute a reboot and no effect. When is down the led remains in red and never again boots until I unplug and re-plug the power suply. |
Even I tried a reínstall, but already detected as the last version. Never working after the reboot.
|
Can you again try to flash U-Boot after installing the edge packages: . /usr/lib/u-boot/platform_install.sh
write_uboot_platform "$DIR" "$(lsblk -npo PKNAME "$G_ROOTFS_DEV")" It is strange that neither the smoke tests, nor the one user (with Debian Buster) are able to replicate the issue. I wonder whether it may be due to insufficient voltage/power, other due to other attached peripherals/hardware. I see you have a 2.1A PSU, which from the numbers is sufficient: https://wiki.odroid.com/odroid-c2/hardware/hardware#specifications
But PSUs as well as USB cables have a high quality range, not all PSUs are really capable of reliably provide the 5V voltage with tight tolerance, especially when being actually a charger and not for driving power consumers. |
Hi, I am thinking that the power suply is not the problem. In the other sdcard I have my old dietpi released on sep 2021 with an additional ssd unit connected via USB (not additional power suply for the ssd unit) working like a charm and rebooting without any problem, even that deitpi is a debian buster one if I remember well. I executed the commands requested, this is the output (note "lsblk: : not a block device"): Note: for these tests I don't have connected the external ssd drive via usb.
|
That is interesting, the user on the Armbian forum who wasn't able to replicate as well ran a Buster image. I have no idea how the userland should affect it, since AFAIK, the kernel, dtb and U-Boot builds are exactly the same. But an idea for further debugging the userland part would be to enable persistent system logs: dietpi-software uninstall 103
mkdir /var/log/journal
reboot # give it some time before power cycling, since we want the /var/log/journal dir to be synced to disk successfully ;) Now |
Hi Michalng, I don't got if you want the traces of my old dietpi which runs well (and reboots properly), or the traces of the new armbian I installed for this testing. I am providing the traces of the armbian one which is the one not working after the reboot command. I ignored the command "dietpi-software uninstall 103" because it is not detected. These are the output traces after "journalctl" for the last armbian release: Note: I enabled the traces following your instructions, I executed "reboot" I waited for 5 minutes without any signal of live and then I unpluged/pluged the system getting this output for the journal give me some time, collecting all in a file, the output was truncated |
Hi, Please find attached the full content of the journal folder. |
Ah sorry, I forgot that it's an Armbian system now. Please try to disable armbian-ramlog via systemctl disable armbian-ramlog
reboot I hope we see some more logs of the shutdown sequence then. |
Hi, just as requested
Then I waited for 10 mins prior to unplug/plug and get the trace file below. |
UART logs from Odroid C2 boards failing to boot from SD card shows there is no blockdev: <12>[ 1.230596] Checking disk(s): LABEL=LIBREELEC LABEL=STORAGE ... <12>[ 14.423259] fsck: fsck: couldn't find matching filesystem: LABEL=LIBREELEC <3>[ 14.451387] LABEL=LIBREELEC: Can't lookup blockdev <3>[ 14.451449] LABEL=LIBREELEC: Can't lookup blockdev Switching the tf_io regulator from 'ACTIVE_HIGH' to 'OPEN_DRAIN' as reported in [0] allows the card to be reset, allowing boot. [0] MichaIng/DietPi#5414 (comment) Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
UART logs from Odroid C2 boards failing to boot from SD card shows there is no blockdev: <12>[ 1.230596] Checking disk(s): LABEL=LIBREELEC LABEL=STORAGE ... <12>[ 14.423259] fsck: fsck: couldn't find matching filesystem: LABEL=LIBREELEC <3>[ 14.451387] LABEL=LIBREELEC: Can't lookup blockdev <3>[ 14.451449] LABEL=LIBREELEC: Can't lookup blockdev Switching the tf_io regulator from 'ACTIVE_HIGH' to 'OPEN_DRAIN' as reported in [0] allows the card to be reset, allowing boot. [0] MichaIng/DietPi#5414 (comment) Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
UART logs from Odroid C2 boards failing to boot from SD card shows there is no blockdev: <12>[ 1.230596] Checking disk(s): LABEL=LIBREELEC LABEL=STORAGE ... <12>[ 14.423259] fsck: fsck: couldn't find matching filesystem: LABEL=LIBREELEC <3>[ 14.451387] LABEL=LIBREELEC: Can't lookup blockdev <3>[ 14.451449] LABEL=LIBREELEC: Can't lookup blockdev Switching the tf_io regulator from 'ACTIVE_HIGH' to 'OPEN_DRAIN' as reported in [0] allows the card to be reset, allowing boot. [0] MichaIng/DietPi#5414 (comment) Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
UART logs from Odroid C2 boards failing to boot from SD card shows there is no blockdev: <12>[ 1.230596] Checking disk(s): LABEL=LIBREELEC LABEL=STORAGE ... <12>[ 14.423259] fsck: fsck: couldn't find matching filesystem: LABEL=LIBREELEC <3>[ 14.451387] LABEL=LIBREELEC: Can't lookup blockdev <3>[ 14.451449] LABEL=LIBREELEC: Can't lookup blockdev Switching the tf_io regulator from 'ACTIVE_HIGH' to 'OPEN_DRAIN' as reported in [0] allows the card to be reset, allowing boot. [0] MichaIng/DietPi#5414 (comment) Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
UART logs from Odroid C2 boards failing to boot from SD card shows there is no blockdev: <12>[ 1.230596] Checking disk(s): LABEL=LIBREELEC LABEL=STORAGE ... <12>[ 14.423259] fsck: fsck: couldn't find matching filesystem: LABEL=LIBREELEC <3>[ 14.451387] LABEL=LIBREELEC: Can't lookup blockdev <3>[ 14.451449] LABEL=LIBREELEC: Can't lookup blockdev Switching the tf_io regulator from 'ACTIVE_HIGH' to 'OPEN_DRAIN' as reported in [0] allows the card to be reset, allowing boot. [0] MichaIng/DietPi#5414 (comment) Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
UART logs from Odroid C2 boards failing to boot from SD card shows there is no blockdev: <12>[ 1.230596] Checking disk(s): LABEL=LIBREELEC LABEL=STORAGE ... <12>[ 14.423259] fsck: fsck: couldn't find matching filesystem: LABEL=LIBREELEC <3>[ 14.451387] LABEL=LIBREELEC: Can't lookup blockdev <3>[ 14.451449] LABEL=LIBREELEC: Can't lookup blockdev Switching the tf_io regulator from 'ACTIVE_HIGH' to 'OPEN_DRAIN' as reported in [0] allows the card to be reset, allowing boot. [0] MichaIng/DietPi#5414 (comment) Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
UART logs from Odroid C2 boards failing to boot from SD card shows there is no blockdev: <12>[ 1.230596] Checking disk(s): LABEL=LIBREELEC LABEL=STORAGE ... <12>[ 14.423259] fsck: fsck: couldn't find matching filesystem: LABEL=LIBREELEC <3>[ 14.451387] LABEL=LIBREELEC: Can't lookup blockdev <3>[ 14.451449] LABEL=LIBREELEC: Can't lookup blockdev Switching the tf_io regulator from 'ACTIVE_HIGH' to 'OPEN_DRAIN' as reported in [0] allows the card to be reset, allowing boot. [0] MichaIng/DietPi#5414 (comment) Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
UART logs from Odroid C2 boards failing to boot from SD card shows there is no blockdev: <12>[ 1.230596] Checking disk(s): LABEL=LIBREELEC LABEL=STORAGE ... <12>[ 14.423259] fsck: fsck: couldn't find matching filesystem: LABEL=LIBREELEC <3>[ 14.451387] LABEL=LIBREELEC: Can't lookup blockdev <3>[ 14.451449] LABEL=LIBREELEC: Can't lookup blockdev Switching the tf_io regulator from 'ACTIVE_HIGH' to 'OPEN_DRAIN' as reported in [0] allows the card to be reset, allowing boot. [0] MichaIng/DietPi#5414 (comment) Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
All credits go to @gitmeister: MichaIng/DietPi#5414 (comment) Signed-off-by: MichaIng <micha@dietpi.com>
DietPi version |
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=1
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='applied'
G_LIVE_PATCH_STATUS[1]='applied'
G_LIVE_PATCH_STATUS[2]='not applicable'
G_LIVE_PATCH_STATUS[3]='not applicable'
Distro version |
bullseye
Kernel version |
Linux DietPi 5.10.81-meson64 #21.08.6 SMP PREEMPT Mon Nov 22 11:21:51 UTC 2021 aarch64 GNU/Linux
SBC model |
Odroid C2 (aarch64)
Power supply used |
5V 2.1A
SDcard used |
SanDisk ultra 16Gb
Additional Information (if applicable)
Was the software title installed freshly or updated/migrated?
-Fresh install
Can this issue be replicated on a fresh installation of DietPi?
Yes
Bug report ID | echo $G_HW_UUID
Not applies
Steps to reproduce
-Whenever you send a reboot comand after shooting down, the Odroid C2 never boots up, I need to unplug/plug manually the power suply. (No way to work remotely after a reboot command).
-After plug an screen to the Odroid C2 board and send even locally the reboot, I can see how the OS shut down properly finishing all the tasks, then a black screen and never boots again unles I unplug the board (this never happend with older verions).
Expected behaviour
-A regular restart of the OS.
Actual behaviour
-The board never boots again after a reboot command.
The text was updated successfully, but these errors were encountered: