Peter_Z
February 15, 2003, 4:52am
1
Dear Sir,
As a newbie of QNX, I start my first test programe according to the
documents, HELP 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
Shrimp
February 16, 2003, 4:05am
2
Hello,
I think it hangs because of two reasons. One is that ‘hello’ would hold the
console on (use hello & instead of hello); second is that shell is not
started (append sh&). In your case, the embeding shell might a choice
(sh=/bin/fesh &).
Shrimp
\
“Peter Z” <pzdec26@hotmail.com > дÈëÏûÏ¢ÐÂÎÅ:b2ki8n$6co$1@inn.qnx.com …
Dear Sir,
As a newbie of QNX, I start my first test programe according to the
documents, HELP 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
\