System will not reboot correctly (AML-S905X-CC)

I have two separate issues all around boot.

I am running the following distro:

I am trying to follow the guide for booting from external drive as found here:

The first issue I am having it that reboot from cl does not work correctly, the device is powered on but I get nothing on my monitor. I was able to confirm that it is not just a display issue, as I am unable to ssh into the machine after reboot as well. I read something about fstab configuration but am unable to find the document now.

The second issue is that I followed jamesachambers’ guide to the letter, and I am still booting / from the microsd. Is anyone willing to point me in the right direction, I am admittedly a Linux noob but I understand basic commands/configuration.

Thanks!

  1. Johang maintains those images. We do not have insight into what is done there.
  2. That’s a Radxa guide and has no relevance to our boards. Do not try random guides or random software found on the internet not designed for our boards. You can damage them.
  3. We have libretech-flash-tool for generating a bootable MicroSD card to boot off USB medium.
  1. Fair
  2. Thank you for the warning.
  3. I am trying this now the libretech flash tool from libre-computer-project on github is giving me an error at the moment.
    aml-s905x-cc bootloader cannot be reached.

Thank you for your response.

Once I get this boot loader flashed, is there a guide you could recommend to getting up and running?
I tried this once before with a debian arm guide I found (I think you made it) but I got stuck at the point of trying to run the distro-fix script. Wondering if that was up to date.

It runs standard UEFI images from there. As long as the kernel version is relatively new, it should work fine but it will be missing optimizations in our upstream kernel.

1 Like

I am finding the same problem rebooting. I connect to the AML-S905X-CC via sh. Most everything seems to work fine including adding non-native apps. However, if I try to reboot, either with reboot or shutdown -h now, the device simply shuts off. If I power cycle the device, it comes alive just fine. As I am often not co-located with the device, it is somewhat inconvenient.

Do you have any peripherals attached? If you can find the last message on UART when you run the reboot command, you can determine the issue.

  1. That should be shutdown -r now
  2. I have a number of computers running Linux, x86_64 and SBCs. Almost all have the command reboot as a link to systemctl. A “which reboot” does not report anything. If I try a “sudo systemctl reboot”, it seems to do a proper reboot on my other computers. On the aml-s905x-cc, it reports an error and does nothing.

General statements is not something we can help you with. Need the exact message.

DId you use sudo?

I’d just like to chime in that I’m facing the same problem. I got an AML-S90X-V1.0-A fresh from the package. Installed Debian Bullseye (SD card) and everything seems to work perfectly fine.

But when I reboot (reboot, shutdown -r, systemctl reboot, …) the OS shuts down, but doesn’t come back up until after a power recycle.

This makes the SBC rather unusable here, since they are often hidden in inconvenient to reach places and are managed through ssh.

Is there a known solutions to this problem? Is it debian related perhaps?

Where did you get Debian bullseye since we do not have a Debian bullseye release?

I am facing this same issue with my le potato. A fresh install of raspbian from libre.computers.

When I sudo reboot it hangs while booting up at around 8 seconds and it never starts until I turn it off and on again.

I’ve tested with no peripherals attached and still the same problem. It’s a bit annoying because I don’t want to have to replug everytime - because I am currently in the middle of recovering from a corrupted SD Card caused by a failed reboot where I had to unplug and replug.

Sorry to ping you, but could you tell me what command I should be running to check what happens after I run sudo reboot?

As mentioned above, it will stall and I will need to power off/on to get it to boot up, but I would like to know the specific command I would need to run in order to be able to paste a helpful log here to debug what’s going on with it.

It’s worrying me a bit because I’m not sure if I can trust my potato and I really want to be able to shutdown and reboot cleanly.

The image I used is 2023-10-10-raspbian-bookworm-arm64-lite+aml-s905x-cc.img.xz, is there a better image to use that still has btrfs?

irunatbullets: a serial connection to the console is invaluable when any problem occurs during bootup or shutdown. Not least for having a big scrollback to catch things that fly past too quickly…

Is that a piece of hardware I’d need to purchase, or is it possible to get that using a command before rebooting?

If you have to ask, then I would think you don’t have a USB (most common) to serial adapter. Potato has a logic-level serial console on three pins near the HDMI jack if I’m remembering correctly. There are a gazillion adapters out there, many still using older USB-serial chips that Windows (that I know about) no longer supports.

After sifting through a number of under spec’d or overpriced options, this one looks like a safe choice.

You can grab this for a few bucks: Amazon.com
Please post what is gets stuck on.