using LILO

I have a triple boot machine with win2k linux and qnx. I use lilo to boot.

Is there any way to use lilo to select a particular QNX build as well.
I mean is there an alternative to hitting ESC to select between .boot and
…altboot

Thanks
Dennis

“Dennis” <dmoses@z-kat.com> wrote in news:a8urj7$jpf$1@inn.qnx.com:

I have a triple boot machine with win2k linux and qnx. I use lilo to
boot.

Is there any way to use lilo to select a particular QNX build as well.

No since lilo doesn’t really know much in the way of the QNX FS. It
basicly grabs the OS loader, and jmp’s to it.

I mean is there an alternative to hitting ESC to select between .boot
and .altboot

Purchase the BSP for an x86 ref. board and write you own IPL/OS loader.
It’s hard to cram high amounts of functionality in 512 bytes :slight_smile:

\

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>

“Adam Mallory” <amallory@qnx.com> wrote in message
news:Xns91EB743AF8247amalloryqnxcom@209.226.137.4

It’s hard to cram high amounts of functionality in 512 bytes > :slight_smile:

And I have to admit I’m amazed at all that you do cram into 512 bytes. But
I guess most of the work is still being done by BIOS. I.E. I/O (Somehow I
feel that should be followed by a phrase about old McDonalds.)

Dennis <dmoses@z-kat.com> wrote:

I have a triple boot machine with win2k linux and qnx. I use lilo to boot.

Is there any way to use lilo to select a particular QNX build as well.
I mean is there an alternative to hitting ESC to select between .boot and
.altboot

You can actually do this with a bit of work. What you need to do is smack
a header to the front of the ifs file to make lilo think it is a low-memory
Linux kernel. It will then load up QNX as if it was a Linux image and
run it. You just need to handle the entry point as if it was a linux
kernel, search for the ifs signature or just pad your code out so you know
it is a certain distance away, and start the ifs image by jumping to the
start of it.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Thanks for all your input. I will give this dummy linux image thing a shot.

Just out of curiosity, how is the windows boot loader able to distinguish
between .boot and .altboot ?

Dennis

“Dennis” <dmoses@z-kat.com> wrote in message
news:a8urj7$jpf$1@inn.qnx.com

I have a triple boot machine with win2k linux and qnx. I use lilo to
boot.

Is there any way to use lilo to select a particular QNX build as well.
I mean is there an alternative to hitting ESC to select between .boot and
.altboot

Thanks
Dennis

“Bill Caroselli (Q-TPS)” <QTPS@EarthLink.net> wrote in
news:a8v4b1$q10$1@inn.qnx.com:

And I have to admit I’m amazed at all that you do cram into 512 bytes.
But I guess most of the work is still being done by BIOS. I.E. I/O
(Somehow I feel that should be followed by a phrase about old
McDonalds.)

That’s even better on the PPC, EIEIO :slight_smile:

\

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>

Dennis <dmoses@z-kat.com> wrote:

Thanks for all your input. I will give this dummy linux image thing a shot.

Just out of curiosity, how is the windows boot loader able to distinguish
between .boot and .altboot ?

The windows bootloader cheats. If you look in config.sys it has paths setup
to the two raw ifs images hosted on the FAT32 drive that has the QNX install.
It just loads them and runs them.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Previously, Chris McKillop wrote in qdn.public.qnxrtp.installation:

Dennis <> dmoses@z-kat.com> > wrote:
I have a triple boot machine with win2k linux and qnx. I use lilo to boot.

Is there any way to use lilo to select a particular QNX build as well.
I mean is there an alternative to hitting ESC to select between .boot and
.altboot


You can actually do this with a bit of work. What you need to do is smack
a header to the front of the ifs file to make lilo think it is a low-memory
Linux kernel. It will then load up QNX as if it was a Linux image and
run it. You just need to handle the entry point as if it was a linux
kernel, search for the ifs signature or just pad your code out so you know
it is a certain distance away, and start the ifs image by jumping to the
start of it.

Since noticing this thread, I decided to play a bit, and see if I could
get it to work.
It seems the problem is that LILO can’t load anything bigger than 1 sector
or so.

It’s pretty easy to point lilo at a qfs image, or any image for that matter,
but in my case anyway, lilo complains that the “Kernel” .boot is too big,
and refuses to accept the entry. It can see it, and recognises the entry
tag as OK, but won’t accept anything around 600K or larger.

OTOH it seems that the NT loader will load any file it can see, and run it,
whether it’s 12K or 12meg, as long as it can see that file ( meaning a local
disk on a FAT file system ).


Cowboy

When you live in a sick society, just about everything you do is wrong.