[BusyBox] Rebooting the system?
Jean Wolter
jean.wolter at inf.tu-dresden.de
Tue Nov 19 09:10:03 UTC 2002
Scott Murray <scottm at somanetworks.com> writes:
> On Tue, 19 Nov 2002, Steven Scholz wrote:
>
> >
> >
> > Jean Wolter wrote:
> > >
> > > Busybox reboot doesn't work. This was reported at least twice and you
> > > can find an explanation for the kernel panic in
> > > http://www.busybox.net/lists/busybox/2002-October/012385.html.
> > >
> >
> > I am using busybox with linuxppc-2.4.19 on a powerpc MPC855T and
> > reboot work's fine. The reason seems to be that there are
> > plattform specific versions of machine_halt() and
> > machine_restart()...
>
> I suspect you're using the BusyBox init. If you have the init applet
> turned on, everything works fine, since it has code to catch the signals
> sent by the reboot, halt, and poweroff applets and call the reboot system
> call with the appropiate argument.
No, I use the init applet with busybox stable (.4) and when I execute
halt on x86 the kernel panics (I accidently wrote reboot panics, when
I replied to the first poster).
Init
- catches the signal sent by halt like described above,
- calls the reboot command to halt the system,
The kernel
- calls machine_halt() (which ist empty on x86)
- calls exit() in the context of init
- panics since it is not allowed to terminate init.
> http://www.busybox.net/lists/busybox/2001-November/010407.html
In this thread is a discussion comparing the busybox/sysv-init
behaviour and the result was, that the busybox behaviour is wrong and
Erik said he would accept patches implementing the correct
behaviour. Looks like nobody submitted a patch. Erik?
Regards,
Jean
More information about the busybox
mailing list