QNX RTP Floppy Boot

I am building NTO images to boot x86 machines from a floppy disk. Using the
sample mkifs script below, when I add either ‘ls’ or ‘cat’, the boot fails.

Thanks for the assistance.

Jim Lyssy

[virtual=x86,bios] .bootstrap = { startup-bios PATH=/proc/boot procnto }

[+script] .script = {
devc-con -n9 &
reopen /dev/con1
display_msg QNX 6 booted from floppy disk
[+session] esh
}
libc.so.1
[data=copy]
devc-con
esh

ls

cat

[type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so.1

How the image is created.

Insert a formated floppy disk into the drive.

su

dinit /dev/fd0

mount /dev/fd0 /fd

mkifs -v simple.bld /fd/.boot

exit

Use: [virtual=x86,bios +compress] .bootstrap = {

Your boot image may be too big. There’s a limit of around 600k for x86 for
now.

I am building NTO images to boot x86 machines from a floppy disk. Using
the
sample mkifs script below, when I add either ‘ls’ or ‘cat’, the boot
fails.

Thanks for the assistance.

Jim Lyssy

begin simple.bld
[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
}

[+script] .script = {
devc-con -n9 &
reopen /dev/con1
display_msg QNX 6 booted from floppy disk
[+session] esh
}
libc.so.1
[data=copy]
devc-con
esh

ls

cat

[type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so.1

end simple.bld

How the image is created.

Insert a formated floppy disk into the drive.

su

dinit /dev/fd0

mount /dev/fd0 /fd

mkifs -v simple.bld /fd/.boot

exit


\

That did the trick.

Thanks.

Jim

“Jeff Baker” <jbaker@qnx.com> wrote in message
news:9e3bfs$ihd$1@nntp.qnx.com

Use: [virtual=x86,bios +compress] .bootstrap = {

Your boot image may be too big. There’s a limit of around 600k for x86
for
now.

I am building NTO images to boot x86 machines from a floppy disk. Using
the
sample mkifs script below, when I add either ‘ls’ or ‘cat’, the boot
fails.

Thanks for the assistance.

Jim Lyssy

begin simple.bld
[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
}

[+script] .script = {
devc-con -n9 &
reopen /dev/con1
display_msg QNX 6 booted from floppy disk
[+session] esh
}
libc.so.1
[data=copy]
devc-con
esh

ls

cat

[type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so.1

end simple.bld

How the image is created.

Insert a formated floppy disk into the drive.

su

dinit /dev/fd0

mount /dev/fd0 /fd

mkifs -v simple.bld /fd/.boot

exit




\

It is possible to get somewhere build file for
boot image of original QNX RTP installation
floppy (CD-ROM).

I need more examples.

Thanks

David

David Brdicka <dbrdicka@retia.cz> wrote:

It is possible to get somewhere build file for
boot image of original QNX RTP installation
floppy (CD-ROM).

I need more examples.

Thanks

David

Hi David,

There are some sample build files in the /boot/build
directory that may be of some help.

Regards,

Barry

I am trying build custom bootable floppy image
which boot from floppy (CD-ROM) and then
install QNX from CD-ROM.
(I use original QNX CD-ROM)

build file:

[virtual=x86,bios +compress] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
}

[+script] .script = {
devc-con -n9 &
reopen /dev/con1
display_msg QNX 6 booted from floppy disk
display_msg Starting EIDE driver
devb-eide blk cache=2m,automount=hd0t79:/hdisk,automount=cd0:/cd &
waitfor /hdisk/ 10
dinit -hqR /dev/hd0t79
mkdir /hdisk/boot
mkdir /hdisk/boot/fs
cp -V /cd/boot/fs/qnxbase.ifs /hdisk/boot/fs
cp -V /cd/boot/fs/qnxbase.ifs /hdisk/.altboot
cp -V /cd/boot/fs/qnxbase.qfs /hdisk/boot/fs
cp -V /cd/boot/fs/qnxbasedma.ifs /hdisk/boot/fs
cp -V /cd/boot/fs/qnxbasedma.ifs /hdisk/.boot
[+session] esh
}

libc.so.1

libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
cam-cdrom.so
fs-cd.so
pci-bios


[data=copy]
devc-con
esh
ls
cat
sin
pwd
dinit
cp
mkdir
devb-eide

[type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so.1


But after rebooting from HDD I can see:

Verifying DMI Pool Data …
QNX Loader
Boot Partition 1
Press Esc for alternate OS …

Press the space bar to input boot options…
Detected EIDE.Scanning for devices
This can take up to 30 seconds…
Unable to mount a qnx filesystem as
/fs/hd0-qnx4-qnxbase.qfs on /fs/hd0-qnx4/boot/fs/qnxbase.qfs
(Corrupted file system detected)
Unable to start devc-con


Can anybody help me?

Thanks
David

I noticed that /boot/fs/qnxbase.qfs on distribution CD-ROM
has file length 24.093.401 bytes.

After original installation is 52.428.800 bytes (on HDD).

If I have on CD-R " qnxbase.qfs " 52.428.800 bytes long
my bootimage work fine. (I use only “cp” utility for transfer
from CD-ROM to HDD).

It means that " qnxbase.qfs " on distribution CD-ROM is somehow
compressed.

But I don’t know what kind of compression is used.
(gunzip writes "not in gzip format) ???

David