[BusyBox] help! with reboot/halt problems please

george at itvd.sel.sony.com george at itvd.sel.sony.com
Thu Oct 4 18:54:29 UTC 2001


If the following program doesn't reboot your board, busybox reboot
shouldn't work either.  This works on my desktop, not on my embedded
board (or laptop).

// This does not sync disks or do nice things first!
#include <unistd.h>
#include <sys/reboot.h>

int
main (void)
{
  reboot (RB_AUTOBOOT);
};

> My system is a AMD Duron 750 on a ASUS A7V and a Celeron 466 on a ASUS
> CUBX. Both work like a charm with sysvinit or win98/2000.
How does your sysvinit call reboot(2)?  I looked at 
ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/
and couldn't see that it was doing too much that was different (it
internally defined values for the flag, which look the same to me as
those in sys/reboot.h).

I have to hit registers over the pci bus to reboot my board which is
non-standard and not implemented in the standard kernel.

--
George Williams
Sony, 3300 Zanker Road, San Jose, CA 95134

Goetz Bock <bock at blacknet.de> writes:

> On Thu, Oct 04 '01 at 10:36, george at itvd.sel.sony.com wrote:
> > We had a similar problem, the reason was a lack of support in the
> > kernel for our hardware.  Look for example at
> > linux/arch/i386/kernel/process.c and verify that the routines for your
> > architecture work with your board.
> My system is a AMD Duron 750 on a ASUS A7V and a Celeron 466 on a ASUS
> CUBX. Both work like a charm with sysvinit or win98/2000.
> -- 
> Goetz Bock                                              IT Consultant
> Dipl.-Inf. Univ.





More information about the busybox mailing list