Avantha Jayawickreme
|
Re: Getting momentics on neutrino 6.4.1 sdp
|
Avantha Jayawickreme
05/21/2010 8:22 AM
post55355
|
Re: Getting momentics on neutrino 6.4.1 sdp
Hey guys, thanks heaps for the help!
Figured out how to make neutrino compile and build .c files!
Now need to figure out how to make the build file i made actually run a c program i made
i created a executable by doing
'qcc -Vgcc_ntox86 -o myfile myfile.c'
just trying to figure out how to make the boot image run the 'myfile' application i looked up in the 'building embedded
systems' document it said the following:
"There’s nothing special required to run your applications. Generally, they’ll be placed
in the script file after all the other drivers have started. If you require a particular
driver to be present and “ready,” you would typically use the waitfor command in
the script.
Here’s an example. An application called peelmaster needs to wait for a driver (let’s
call it driver-spud) to be ready before it should start. The following sequence is
typical:
driver-spud &
waitfor /dev/spud
peelmaster
"
the file im trying to run outputs to console and i have the console running i can open the file manually after boot up
but want it to open automatically tried to do
wait for/dev/con
myfile
and it doesnt open the file any ideas?
Thanks heaps again
this is the build file.
Thanks so much again im going crazy :(
[virtual=x86,bios +compress] boot = {
startup-bios -s64k
PATH=/proc/boot procnto
}
[+script] startup-script = {
# To save memory, make everyone use the libc in the boot
# image! For speed (fewer symbolic lookups), we point to
# libc.so.3 instead of libc.so.
procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2
display_msg Welcome to QNX NeutriNo
ooooooooooooo
procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2
devc-con &
reopen dev/con1
# Start the PCI server
seedres
pci-bios &
waitfor /dev/pci
# Start IDE and mount the flash disk in /usr/hdd
devb-eide blk automount=hd0t77:/usr/hdd &
# Some common servers
pipe &
mqueue &
devc-ser8250 &
devc-pty &
# Start a debug server for debugging programs
waitfor /dev/ser1
[+session] pdebug /dev/ser1 &
# These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=qansi
# Start the main shell
reopen /dev/con1
[+session] sh
}
# Make the /temp point to the shared memory area
[type=link] /tmp=/dev/shmem
# Programs require the runtime linker (ldqnx.so) to be at a fixed location
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
libc.so.2
libc.so
libhiddi.so
libusbdi.so
#devn-smc9118.so
devnp-shim.so
libsocket.so
[type=link] /lib/stdc++.so.2.2.10.0=/proc/boot/libstdc++.so
[type=link] /lib/libm.so.2=/proc/boot/libm.so
libm.so
[data=c]
#devc-sersci
setconf
# Executables must currently be below this line
# Include a console driver
devc-con
# Include pci server
pci-bios
seedres
# Network related items
libsocket.so
/etc/termcap=/etc/termcap
/etc/hosts=/etc/hosts
/etc/resolv.conf=/etc/resolv.conf
# Use the "public domain korn shell" as the default shell "sh"
sh=ksh
# Other executables
libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
pdebug
pipe
mqueue
devc-ser8250
devc-pty
devb-eide
ls
cat
ps
pidin
uname
/sbin/ifconfig
/sbin/route
/usr/bin/telnet
/usr/bin/ftp
/usr/bin/ping
/usr/sbin/qconn
# Include all the files for the default filesystems
libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
fs-dos.so
fs-ext2.so
cam-cdrom.so
fs-udf.so
# These programs need to be run only once from the boot image.
# "data=uip" will waste less memory as the RAM from the boot
# image will be used directly without making a copy of the data
# (i.e. as the default "data=cpy" does). When they have been
# run once, they will be unlinked from...
View Full Message
|
|
|
Sean Boudreau(deleted)
|
Re: Getting momentics on neutrino 6.4.1 sdp
|
Sean Boudreau(deleted)
05/21/2010 2:09 PM
post55396
|
Re: Getting momentics on neutrino 6.4.1 sdp
Does anyone know if it would suffice here?
-seanb
On Wed, May 12, 2010 at 12:58:20PM -0400, Colin Burgess wrote:
> Sean just volunteered, I think :-)
>
> On 10-05-12 12:57 PM, Sean Boudreau wrote:
> > On Wed, May 12, 2010 at 11:59:25AM -0400, Elena Laskavaia wrote:
> >
> >> 1) You can port Sun J2SE 1.5 on neutrino, because that is what latest needs
> >>
> > Would openjdk7 suffice?
> >
> > -seanb
> >
> >
> >
> > _______________________________________________
> >
> > QNX Momentics Getting Started
> > http://community.qnx.com/sf/go/post54379
> >
> >
>
> --
> cburgess@qnx.com
>
>
>
>
> _______________________________________________
>
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post54380
>
|
|
|