From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199710071733.NAA06819@linux03.amt.tay1.dec.com> Date: Tue, 07 Oct 1997 13:33:52 +0500 From: jestabro@amt.tay1.dec.com Subject: Re: In-Reply-To: <3.0.3.32.19971006213130.0092c860@pop4.ibm.net> >>> "Jim. Shipman" said: > > I am building a system consisting of lots and lots of PC164 boards (up to > 1000) containing nothing more than a network card and need a good reliable > software reset. I've been trying to use "shutdown -r now", but most of the > time it just says it is rebooting, but in fact, hangs. This system is > running SRM and a remote booted kernel with nfsroot file system, but it > seems to have trouble even when I run it "normally". Do other people have > trouble getting "shutdown -r now" to work? Is there a more robust way to > cause a soft reboot from a telnet connections? This is a known problem. I'm currently working on a set of patches that will fix it. They are not ready yet. In the meantime, you might be surprised to find that the reboot actually *did* get back into SRM (at least it does on some of my systems). The fact that you don't see it reboot is because: 1. the VGA screen management under LINUX conflicts with that under SRM, such that SRM may be using the top of video memory, while LINUX left the display showing the *bottom* of video memory. 2. the "reboot" code in the LINUX kernel doesn't pass the correct value to the callPal_HALT entry point in SRM, so it doesn't think you *want* to reboot. See attached at the end a snippit of code for doing the correct argmument passing. To check whether you really *are* getting back into SRM but just can't see it, type in "init" on the keyboard (blind, of course :-), and see if the console comes back to life. --Jay++ ------------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza... Jay A Estabrook Alpha Migration Tools - LINUX Project Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202 151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com Littleton, MA 01460-1407 decnet: tallis::jestabro ------------------------------------------------------------------------------- /* * this is in arch/alpha/kernel/process.c */ void hard_reset_now(void) { #if defined(CONFIG_ALPHA_SRM) extern struct hwrpb_struct *hwrpb; struct percpu_struct *cpup; unsigned long flags; cpup = (struct percpu_struct *) ((unsigned long)hwrpb + hwrpb->processor_offset); flags = cpup->flags; #if 1 printk("hard_reset_now: flags 0x%lx\n", flags); #endif flags &= ~0x0000000000ff0001UL; /* clear reason to "default" */ flags |= 0x0000000000020000UL; /* this is "cold bootstrap" */ /* flags |= 0x0000000000030000UL; *//* this is "warm bootstrap" */ /* flags |= 0x0000000000040000UL; *//* this is "remain halted" */ cpup->flags = flags; mb(); #endif /* SRM */ #if defined(CONFIG_ALPHA_SRM) && defined(CONFIG_ALPHA_ALCOR) /* who said DEC engineers have no sense of humor? ;-)) */ *(int *) GRU_RESET = 0x0000dead; mb(); #endif halt(); } ----------------------------------------------------------------------------- -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com