* FW: Embedded Planet 860T software reset
@ 2000-09-18 18:16 Mike Flynn
2000-09-18 19:06 ` Dan Malek
0 siblings, 1 reply; 2+ messages in thread
From: Mike Flynn @ 2000-09-18 18:16 UTC (permalink / raw)
To: 'linuxppc-embedded@lists.linuxppc.org'
Software resets works! Our Julia found John Whitney's comment:
"I soft reboot my system using "shutdown -nr now..."
Dan's code works as provided. "init 6" and "reboot" don't work, but we have
something
that does.
Mike Flynn
Enerdyne
-----Original Message-----
From: Mike Flynn [mailto:mflynn@enerdyne.com]
Sent: Monday, September 18, 2000 10:17 AM
To: 'linuxppc-embedded@lists.linuxppc.org'
Subject: Embedded Planet 860T software reset
Has anyone been able to execute "reset" or "init 6" in linux 2.2.13 running
on Embedded Planet board and have the system actually reboot?
I found and tried the following code in the archives:
+++ linux/arch/ppc/kernel/m8xx_setup.c Tue Jun 27 09:47:27 2000
@@ -228,9 +240,17 @@
void
m8xx_restart(char *cmd)
{
- extern void m8xx_gorom(void);
+ extern void m8xx_gorom(uint bp, uint startaddr);
+ uint startaddr;
+
+ startaddr = 0xfff00100;
+
+ if (cmd != NULL) {
+ if (!strncmp(cmd, "startaddr=", 10))
+ startaddr = simple_strtoul(&cmd[10], NULL, 0);
+ }
- m8xx_gorom();
+ m8xx_gorom((uint)__pa(res), startaddr);
}
void
Dan said, "At one time, I had modified
the kernel "gorom()" function to simply jump into the boot rom as
if a reset occurred. I should make this work again for many reasons."
Does anyone know of any further developments and/or successes?
Thanks,
Mike Flynn
Principal Software Engineer
Enerdyne Technologies
8402 Magnolia Ave.
Suite C
Santee, CA 92041
Voice: 619-562-3061
MFlynn@Enerdyne.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: FW: Embedded Planet 860T software reset
2000-09-18 18:16 FW: Embedded Planet 860T software reset Mike Flynn
@ 2000-09-18 19:06 ` Dan Malek
0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2000-09-18 19:06 UTC (permalink / raw)
To: Mike Flynn; +Cc: 'linuxppc-embedded@lists.linuxppc.org'
Mike Flynn wrote:
>
> Software resets works! Our Julia found John Whitney's comment:
>
> "I soft reboot my system using "shutdown -nr now..."
>
> Dan's code works as provided. "init 6" and "reboot" don't work, but we have
> something
> that does.
The "init" and "reboot" (actually halt) follow a circuitous route
to the shutdown program. They depend on a variety of files or
environment variables and work well in a fully configured workstation
environment. They probably won't work correctly in a stripped down
file system of an embedded system.
Also, the code in the kernel may have to be adapted based upon the
boot rom used. Jumping into rom is a questionable operation. I am
adding the checkstop/reset patch that was posted a while back to the
2.4 tree (and probably backported to 2.2 as well) as a configuration
option. This isn't a complete solution either, as it prevents passing
parameters around that are sometimes useful.
Options galore....choose what works for you....not a single solution
for everyone....
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-09-18 19:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-18 18:16 FW: Embedded Planet 860T software reset Mike Flynn
2000-09-18 19:06 ` Dan Malek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.