qnx people - could you please look at this

Hi,

I downloaded the free QNX distribution and installed all the relevant
development packages. Apart from a few minor nits everything seems to
work.

Now I want to build for an embedded system (i386 would do for a first
try). I’m trying to assemble an embedded image for a basic “hello world”
demo. I’ve built the image, and am now trying to build the loader,
etc. Reading the documentation I would expect to find src/nto and a
bunch of stuff under there. However, this is nowhere to be found. Is
there something extra I need? What am I missing?

Im also wondering where is my src/nto?!?!?
I have installed all dev. packages and… nothing…
QNX people - please answer !!!
AA

daman wrote:

all: hello.img

clean:
rm -f *.o *.img hello

hello.img: hello hello.bld
mkifs hello.bld hello.img

hello: hello.o
$(LD) $(LDFLAGS) hello.o -o hello


Thanks for reply. (This is how your docs should look like > :wink:> .
Another question is how to make a BOOTABLE image from hello.img?
I made my hello.img. I know that it is possible to boot it via DOS’ config.sys (just like qnx rtp) - works fine. But what about creating for example a bootable floppy?

Regards,

Adam

dinit -f hello.img /dev/fd0
Regards,
Bogdan

all: hello.img

clean:
rm -f *.o *.img hello

hello.img: hello hello.bld
mkifs hello.bld hello.img

hello: hello.o
$(LD) $(LDFLAGS) hello.o -o hello

Thanks for reply. (This is how your docs should look like :wink:.
Another question is how to make a BOOTABLE image from hello.img?
I made my hello.img. I know that it is possible to boot it via DOS’ config.sys (just like qnx rtp) - works fine. But what about creating for example a bootable floppy?

Regards,

Adam

Previously, AA wrote in qdn.public.qnxrtp.devtools:

Hi,

I downloaded the free QNX distribution and installed all the relevant
development packages. Apart from a few minor nits everything seems to
work.

Now I want to build for an embedded system (i386 would do for a first
try). I’m trying to assemble an embedded image for a basic “hello world”
demo. I’ve built the image, and am now trying to build the loader,
etc. Reading the documentation I would expect to find src/nto and a
bunch of stuff under there. However, this is nowhere to be found. Is
there something extra I need? What am I missing?


Im also wondering where is my src/nto?!?!?
I have installed all dev. packages and… nothing…
QNX people - please answer !!!
AA

\

It’s not absolutely necessary. In fact /src/nto/… is to be used for recursive makefiles and /src is generally missing in qnx archives.
If you get an archive with a first level beginning by nto/ for example, just put it in a src directory you made where you want.
About this functionnality, the doc is not so precise and will be better soon.

For your example, you can simply do:

Makefile for miscellaneous directory

CC = qcc
LD = qcc
CFLAGS += -Vgcc_ntox86
LDFLAGS+= -Vgcc_ntox86

all: hello.img

clean:
rm -f *.o *.img hello

hello.img: hello hello.bld
mkifs hello.bld hello.img

hello: hello.o
$(LD) $(LDFLAGS) hello.o -o hello


build file (hello.bld):

hello.bld

[virtual=x86,bios +compress] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
}
[+script] .script = {
devc-ser8250 -e -b115200 &
reopen /dev/ser1
hello
}
[type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so
libc.so
[data=c]
devc-ser8250
hello


It would be ok.

Bye, Alain.