shutdown command

Hello all,

I have a small problem with shutdown command onto some CPU board. this
command doesn’t work. When the CPU start again, our BIOS extension is not
see and the board don’t boot.

Could you tell what hardware ressource the shutdown command uses (port 92H
…etc.)

Why only BIOS CPU is executed at boot after shutdown command ? It’s seem to
me that the board execute a soft reset.

I have the same problem with NT2.0 QNX6.0 patch C and QNX6.1 patch A

Thanks,

“PAYRE serge” <spayre@centralp.fr> wrote in
news:a4ilj1$jd4$1@nntp.qnx.com:

I have a small problem with shutdown command onto some CPU board. this
command doesn’t work. When the CPU start again, our BIOS extension is
not see and the board don’t boot.

I’m not sure it’s a problem with shutdown persae, but with how your bios
extension is loaded. It could be you’re making assumptions about board
state you should not be.

Could you tell what hardware ressource the shutdown command uses (port
92H …etc.)

Technically, shutdown doesn’t use any resources. It sends a message to
Proc, who eventually does a reboot callout. I believe you can get this
source and documentation with the BSP for you board (or a reference board
close to it). Contact your sales rep for mor info.

\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

We are the manufacturer of this cpu board.



What does the reboot callout do to reboot the CPU?

It is executing a jmp far to the address FFFF:0 or equivalent ?


Adam Mallory a écrit dans le message …

“PAYRE serge” <> spayre@centralp.fr> > wrote in
news:a4ilj1$jd4$> 1@nntp.qnx.com> :

I have a small problem with shutdown command onto some CPU board. this
command doesn’t work. When the CPU start again, our BIOS extension is
not see and the board don’t boot.

I’m not sure it’s a problem with shutdown persae, but with how your bios
extension is loaded. It could be you’re making assumptions about board
state you should not be.

Could you tell what hardware ressource the shutdown command uses (port
92H …etc.)

Technically, shutdown doesn’t use any resources. It sends a message to
Proc, who eventually does a reboot callout. I believe you can get this
source and documentation with the BSP for you board (or a reference board
close to it). Contact your sales rep for mor info.

\

Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

“PAYRE serge” <spayre@centralp.fr> wrote in news:a4jfue$8nv$1@nntp.qnx.com:

We are the manufacturer of this cpu board.

ok.

What does the reboot callout do to reboot the CPU?

Essentially, it talks to the kb controller to toggle the CPU reset line.

It is executing a jmp far to the address FFFF:0 or equivalent ?

There isn’t really such a thing as a “far” jump in protected mode. It’s
also difficult to jump to the reset vector in protected mode. As an OS,
you could fall back to realmode, but this gets ugly fast. It’s just
cleaner to have the kb controller do it for you.


\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

I made more test and I confirm you that when I type the command “shutdown”
only BIOS CPU are executed. Other BIOS extension located between 0xC0000 an
0xEFFFF are not see.

Remark :

When our CPU starts, a loader copy all BIOS extensions located in flash
memory between 0x3FF.C000 and 0x3FF.FFFF into the first Mo between 0xC0000
and 0xFFFFF, then this loader excecute an “outbyte 92H” to restart the unit
for running BIOS
The CPU is a 386EX board

Adam Mallory a écrit dans le message …

“PAYRE serge” <> spayre@centralp.fr> > wrote in news:a4jfue$8nv$> 1@nntp.qnx.com> :

We are the manufacturer of this cpu board.

ok.

What does the reboot callout do to reboot the CPU?

Essentially, it talks to the kb controller to toggle the CPU reset line.

It is executing a jmp far to the address FFFF:0 or equivalent ?

There isn’t really such a thing as a “far” jump in protected mode. It’s
also difficult to jump to the reset vector in protected mode. As an OS,
you could fall back to realmode, but this gets ugly fast. It’s just
cleaner to have the kb controller do it for you.


\

Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

“PAYRE serge” <spayre@centralp.fr> wrote in
news:a4vk4k$45g$1@inn.qnx.com:

I made more test and I confirm you that when I type the command
“shutdown” only BIOS CPU are executed. Other BIOS extension located
between 0xC0000 an 0xEFFFF are not see.

Does your board require a cold reset to have the your loader work?
Regardless, if you need to control how the board reboots, then you need to
get the x86 BSP, and create your own reboot callout, which will get
executed when proc is shutting down. Please contact your sales rep for
more information.


\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>