Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When soft reboot Linux kernel hangs at "Uncompressing Linux... done, booting the kernel" [closed]

I am using Linux kernel 3.0.21 on my custom hardware.

  • when I first start hardware, it successfully boots up.

  • if I shut down properly and again start hardware, it succesfully boots up.

But once the system is up running, when I type reboot command restarts the kernel and hangs at

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

I dont know why I am facing this on each soft reboot. To avoid this I need to hard reset (power off and power on again).

Why I am facing this issue? Is there any clean up function missing in kernel? How to debug this issue?

like image 804
Jeegar Patel Avatar asked Dec 31 '25 02:12

Jeegar Patel


2 Answers

Yes, it sounds like somewhere in the platform support for you hardware you are missing some logic to cope with a soft reboot.

Adding clean-up code doesn't solve the problem, because the system may crash, and then be soft rebooted.

So the code that boots up the system needs to be written to cope with the system being soft rebooted.

To debug you'll first need to find out where the kernel is getting stuck during the soft reboot. The easiest way to do that is with a hardware debugger.

The other option is to read through the boot up code and try and spot any areas that might be relying on a cold reboot to work, eg. code that expects the TLB to be cleared at boot or similar.

like image 62
mpe Avatar answered Jan 02 '26 19:01

mpe


Sounds like a failure to neutralise the hardware before rebooting. Likely candidates are MMU, TLB, caches or interrupts. The crash will occur early in kernel boot when these are re-enabled (this may be the kernel failing to disable them all before reboot, or the boot-loader relying on hard-reset state which of course you don't get on soft-reset).

As others have indicated a JTAG hardware debug probe is just about the only way you're going t get to the bottom of this one.

like image 39
marko Avatar answered Jan 02 '26 19:01

marko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!