boot / altboot

Dear communnity,

Nevermind this being an entry level question…We’ve installed 6.1 from CD.
We would like to add some capability to the .boot or .altboot images. Where
is the IFS script for a new installation?

The scripts in /boot/build seem to be examples only. We can build a .altboot
image that seems to run, however some main directories, such as /bin, /sbin,
/x86/bin, etc., do not show up.

Please help a fledgling, and thank-you.

Steve

Steve Wagner <swagner@keyww.com> wrote:
SW > Dear communnity,

SW > Nevermind this being an entry level question…We’ve installed 6.1 from CD.
SW > We would like to add some capability to the .boot or .altboot images. Where
SW > is the IFS script for a new installation?

SW > The scripts in /boot/build seem to be examples only. We can build a .altboot
SW > image that seems to run, however some main directories, such as /bin, /sbin,
SW > /x86/bin, etc., do not show up.

SW > Please help a fledgling, and thank-you.

Hi Steve,

Are you starting the package file system?
I believe that directories like /bin and /sbin are usually hosted by the
package file system.

I believe it is the package file system.


“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:c4h5em$s6l$1@inn.qnx.com

Steve Wagner <> swagner@keyww.com> > wrote:
SW > Dear communnity,

SW > Nevermind this being an entry level question…We’ve installed 6.1
from CD.
SW > We would like to add some capability to the .boot or .altboot images.
Where
SW > is the IFS script for a new installation?

SW > The scripts in /boot/build seem to be examples only. We can build a
…altboot
SW > image that seems to run, however some main directories, such as /bin,
/sbin,
SW > /x86/bin, etc., do not show up.

SW > Please help a fledgling, and thank-you.

Hi Steve,

Are you starting the package file system?
I believe that directories like /bin and /sbin are usually hosted by the
package file system.

In article <c4f6rj$8k2$2@inn.qnx.com>, swagner@keyww.com says…

Dear communnity,

Nevermind this being an entry level question…We’ve installed 6.1 from CD.
We would like to add some capability to the .boot or .altboot images. Where
is the IFS script for a new installation?

The scripts in /boot/build seem to be examples only. We can build a .altboot
image that seems to run, however some main directories, such as /bin, /sbin,
/x86/bin, etc., do not show up.

Hi Steve,

Did you choose the right build script (there are quite a few scripts in
/boot/build, but they are real :^)). Did you rid of “diskboot” from the
script?

Eduard.

Please help a fledgling, and thank-you.

Steve

The “right build script” is the question. What we wanted to do was add some
boot-up capability that would auto-launch our app and make sure it stayed
running.

I probably took the wrong approach. I don’t know enough about the scripts in
RC.D, or wherever, to know where to turn Photon off, to force bootup without
a password, and how to auto-launch our app. Instead, I initialized the
harddrive using “fdisk”, added a boot partition, started the disk driver,
mounted the harddrive to a given name, then created /bin, /sbin, /lib
directories where I coppied in the QNX files we needed. Then I built simple
…boot and .altboot files that includes a KSH script which is an infinite
loop and makes sure our app is launched and running. If it crashes, the
script simply restarts it.

Which direction to take…What would have been nice is to modify the
default “project”, or whatever it is, that builds the default .boot and
…altboot images, and add in some custom controls.

Thanks for taking a look,


Steve

Hi Steve,

Did you choose the right build script (there are quite a few scripts in
/boot/build, but they are real :^)). Did you rid of “diskboot” from the
script?

Eduard.

In article <c4rth8$qhq$2@inn.qnx.com>, swagner@keyww.com says…

The “right build script” is the question. What we wanted to do was add some
boot-up capability that would auto-launch our app and make sure it stayed
running.

I probably took the wrong approach.

Not at all. You might want to rid of a lot of unnecessary stuff for
target system (like pkg fs, compiller, enumerators etc.). .boot and
…altboot images on compact disk were designed to boot almost any PC for
installing selfhosted development tools (or playing non-commercially if
you got free distribution).
I’m glad to hear you solved the problem.


I don’t know enough about the scripts in
RC.D, or wherever, to know where to turn Photon off, to force bootup without
a password, and how to auto-launch our app. Instead, I initialized the
harddrive using “fdisk”, added a boot partition, started the disk driver,
mounted the harddrive to a given name, then created /bin, /sbin, /lib
directories where I coppied in the QNX files we needed. Then I built simple
.boot and .altboot files that includes a KSH script which is an infinite
loop and makes sure our app is launched and running. If it crashes, the
script simply restarts it.

Which direction to take…What would have been nice is to modify the
default “project”, or whatever it is, that builds the default .boot and
.altboot images, and add in some custom controls.

It depends on what you want to achieve. You can slightly modify the base
installation (like I did for my tight h/w) - you should read all those
scripts starting form /etc/system/sysinit and couple of good articles
“Making Buildfiles…” at
http://www.qnx.com/developers/articles/index.html

Or you can build custom system:
http://www.qnx.com/developers/docs/momentics621
_docs/neutrino/building/about.html


Best regards,
Eduard.

Thanks for taking a look,


Steve

Hi Steve,

Did you choose the right build script (there are quite a few scripts in
/boot/build, but they are real :^)). Did you rid of “diskboot” from the
script?

Eduard.
\