Unable boot from floppy

Dear newsgroup,

As a newbie of QNX, I start writing my first test programe according to
the documents, HELPs of Neutrino RTOS platform which downloaded from
QNX website, etc. I want to make a floppy image to boot my standard X86

PC, So write it as follows:

A “Hello World” programe:

#include <stdio.h>
int main(void)
{
printf(“Hello, world!\n”);
return(0);
}

A image build file:

[virtual=x86,bios] .bootstrap={
startup-bios
PATH=/proc/boot procnto
}
[+script] .script={
devc-ser8250 -e -b9600 -c20000000 &
reopen
display_msg Go on, Peter!
hello
}
[type=link] /dev/console=/dev/ser1
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
[perms=+r,+x]
libc.so
[data=copy]
[perms=+r,+x]
devc-ser8250
hello

OK, I run commands on my Neutrino platform as follows:

qcc -V gcc_ntox86 helll.c -o hello
mkifs hello.bld hello.ifs
dinit -f hello.ifs /dev/fd0

It goes as planned. Boot it from the floppy, It actually loads the

image and displays somethings you know. But, finally it hangs up.

Please show me where the problems are. Thank you.

Best regards.

Peter Z
pzdec26@hotmail.com

You start process ‘hello’ the process exits and next there is nothing to do.
You can start shell i.e. esh, ksh to interact with os. I put you an example:

[+script] .script={
devc-ser8250 -e -b9600 -c20000000 &
reopen
display_msg Go on, Peter!
hello
[+session] esh
}

U¿ytkownik “Peter Z” <pzdec26@hotmail.com> napisa³ w wiadomo¶ci
news:b3v8oc$grj$1@inn.qnx.com

Dear newsgroup,

As a newbie of QNX, I start writing my first test programe according to
the documents, HELPs of Neutrino RTOS platform which downloaded from
QNX website, etc. I want to make a floppy image to boot my standard X86

PC, So write it as follows:

A “Hello World” programe:

#include <stdio.h
int main(void)
{
printf(“Hello, world!\n”);
return(0);
}

A image build file:

[virtual=x86,bios] .bootstrap={
startup-bios
PATH=/proc/boot procnto
}
[+script] .script={
devc-ser8250 -e -b9600 -c20000000 &
reopen
display_msg Go on, Peter!
hello
}
[type=link] /dev/console=/dev/ser1
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
[perms=+r,+x]
libc.so
[data=copy]
[perms=+r,+x]
devc-ser8250
hello

OK, I run commands on my Neutrino platform as follows:

qcc -V gcc_ntox86 helll.c -o hello
mkifs hello.bld hello.ifs
dinit -f hello.ifs /dev/fd0

It goes as planned. Boot it from the floppy, It actually loads the

image and displays somethings you know. But, finally it hangs up.

Please show me where the problems are. Thank you.

Best regards.

Peter Z
pzdec26@hotmail.com

\