Skip navigation.
Home
The QNX Community Portal

View topic - Implementing "pseudo" alternate boot on the embedded system

Implementing "pseudo" alternate boot on the embedded system

Read-only archive of qnx.bsp (Discuss building an image, flashing a board or using a BSP) at inn.qnx.com

Implementing "pseudo" alternate boot on the embedded system

Postby jacus » Mon Jun 06, 2005 7:11 am

Hi,

How having one OS image (.ifs) can I implement two
different boot configurations?

Are conditional statements in-line in the buildfile supported?

Regards,
Jacek
jacus
Senior Member
 
Posts: 239
Joined: Tue Apr 22, 2003 8:36 am

Re: Implementing "pseudo" alternate boot on the embedded sys

Postby evanh » Mon Jun 06, 2005 7:40 am

Jacek Rudnicki wrote:
Hi,

How having one OS image (.ifs) can I implement two
different boot configurations?

Are conditional statements in-line in the buildfile supported?


I heard that's why diskboot exists in the Momentics distro - to perform conditional operations on bringing up the root filesystem, so I guess the simple answer is no.

On this note, anyone got the low-down on how to remount self-hosted Momentics on to another block device after boot up without the whole system collapsing in a screaming heap?


Evan
evanh
QNX Master
 
Posts: 737
Joined: Sat Feb 01, 2003 8:04 am

Re: Implementing "pseudo" alternate boot on the embedded sys

Postby jacus » Mon Jun 06, 2005 11:04 am

One more question.

Is it possible to stop macro called from OS image on target
(i.e. sh /root/config/sysinit) through HyperTerminal connection?

Jacek
jacus
Senior Member
 
Posts: 239
Joined: Tue Apr 22, 2003 8:36 am

Re: Implementing "pseudo" alternate boot on the embedded sys

Postby David Gibbs » Mon Jun 06, 2005 2:25 pm

Jacek Rudnicki <jacek.rudnicki@quantum.com.pl> wrote:
Hi,

How having one OS image (.ifs) can I implement two
different boot configurations?

Are conditional statements in-line in the buildfile supported?

No. The boot scripting language has no conditionals.

By two different boot configurations, how different are you
looking at, and what are you looking at for the differentiation
point?

Within one IFS you can not have 2 different startup or Procnto
choices.

Within an IFS, by having the only thing that is started be a
shell script or program that does the branch and init decisions,
you can split after Procnto has started up. (In many ways, this
is what diskboot and the scripts it invokes do for QNX x86 desktop boots.)

Working with two different IFS setups, you can have an IPL that will
choose between them. (On x86, our standard IPL does this, at the
point where it says "hit Esc for .altboot", allowing you to choose
a different IFS.)

-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com
David Gibbs
 

Re: Implementing "pseudo" alternate boot on the embedded sys

Postby ed1k » Tue Jun 07, 2005 12:18 am

In article <d80u26$hor$1@inn.qnx.com>, evanh@clear.net.nz says...
Jacek Rudnicki wrote:
Hi,

How having one OS image (.ifs) can I implement two
different boot configurations?

Are conditional statements in-line in the buildfile supported?


I heard that's why diskboot exists in the Momentics distro - to perform conditional operations on bringing up the root filesystem, so I guess the simple answer is no.

On this note, anyone got the low-down on how to remount self-hosted Momentics on to another block device after boot up without the whole system collapsing in a screaming heap?


You can search a few years old discussion on how to restart devb-eide
driver somewhere in old newsgroups at inn.qnx.com (those newsgroups
should be read-only now).

Or you can take a look at a few shell scripts that worked fine for me, I
still keep them. Of course you'll have to adopt one of them to your
needs:

ftp://qnx.org.ru/pub/projects/ed1k/Eide.rst
ftp://qnx.org.ru/pub/projects/ed1k/eide.rst.kabe

Eduard.

Evan
ed1k
 

Re: Implementing "pseudo" alternate boot on the embedded sys

Postby jacus » Tue Jun 07, 2005 7:32 am

By two different boot configurations, how different are you
looking at, and what are you looking at for the differentiation
point?

There will be the only one small difference at the last stage of OS
image script execution.

In the first boot configuration called "safe mode" I would like to start
shell on first serial port. This will be for low-level diagnositics, fast
system
"rescue", etc...

The second configuration will start macro (i.e. sh .../sysinit) insted of
shell.
The "sysinit" file written on the flash starts some common services and
user applications. In this scenario all serial ports are used by apps, so
shell is not available. Because this is a automatic procedure "safe mode"
will be a emergency protection.

Jacek
jacus
Senior Member
 
Posts: 239
Joined: Tue Apr 22, 2003 8:36 am

Re: Implementing "pseudo" alternate boot on the embedded sys

Postby jacus » Tue Jun 07, 2005 7:45 am

How implement something like this:
-> wait for about 2 sec for key pressed ?

It must be done in the IPL or startup code.

Jacek
jacus
Senior Member
 
Posts: 239
Joined: Tue Apr 22, 2003 8:36 am

Re: Implementing "pseudo" alternate boot on the embedded sys

Postby jacus » Tue Jun 07, 2005 9:56 am

Problem solved :-).
jacus
Senior Member
 
Posts: 239
Joined: Tue Apr 22, 2003 8:36 am

Re: Implementing "pseudo" alternate boot on the embedded sys

Postby evanh » Tue Jun 07, 2005 10:57 am

ed1k wrote:
Or you can take a look at a few shell scripts that worked fine for me, I
still keep them. Of course you'll have to adopt one of them to your
needs:

ftp://qnx.org.ru/pub/projects/ed1k/Eide.rst
ftp://qnx.org.ru/pub/projects/ed1k/eide.rst.kabe


Excellent!

Thanks,
Evan
evanh
QNX Master
 
Posts: 737
Joined: Sat Feb 01, 2003 8:04 am

Re: Implementing "pseudo" alternate boot on the embedded sys

Postby Lutz Vollbracht » Mon Jan 16, 2006 4:59 pm

Jacek Rudnicki wrote:

Hi,

How having one OS image (.ifs) can I implement two
different boot configurations?

Are conditional statements in-line in the buildfile supported?

Regards,
Jacek


Hello Jacek.

We only have a real boot manager for QNX6 which allows to boot into
different OS images. Would this help you ?

Luzt
Lutz Vollbracht
 


Return to qnx.bsp

Who is online

Users browsing this forum: No registered users and 1 guest