[BusyBox] Reset halts but doesn't reboot
Andrew McKay
amckay at iders.ca
Tue Apr 5 18:31:51 UTC 2005
Hi,
I'm having problems with the "reset" command in BusyBox. I have tried
to figure out the code involved in the reset as much as possible. It
seems that what is happening is that the system call that tells the
Linux kernel to reset the board is failing. The cause seems to be when
init sends SIGKILL to all of the running processes, after this command
is complete the Kernel does not want to respond to init_reboot(RB_AUTOBOOT);
I have messages that are printed to the Terminal after the SIGKILL, so
the init task is not killing itself (which from what I understand is
actually impossible). If I move the init_reboot(RB_AUTOBOOT) call to
before the SIGKILL, the board is able to reset. Is the SIGKILL somehow
stopping system calls from working?
Has anyone run into this before? If not, is the SIGKILL really
necessary? Is it going to hurt anything to skip that step and just
reset the board anyways? I believe that SIGKILL a last resort way to
kill a task, and doesn't stop it nicely, so just rebooting the board
wouldn't be much worse.
I was using BusyBox 0.51. I tried compiling BusyBox 1.00, and it seems
to be having the same problem.
Thanks for any help,
Andrew
More information about the busybox
mailing list