我想直接启动到photon中,可是这个build文件总是起不来,那位老哥给看一下,有什么问题没有?
现在总是在出现了很多…后就没有输出了,但是键盘没死
\
The build file for QNX Neutrino booting on a PC (QNX SDP 6.4.0/6.4.1)
Produces a x86 IFS with Advances Graphics and Photon (2D & 3D)
in less than 2.5MB of IFS space. Networking would need to
be added if connectivity is required.
Investigate using the System Optimized (dietician) in the QNX Eclipse IDE
for reducing the shared library sizes.
[linker=“ntox86-ld -T$QNX_TARGET/x86/lib/nto.link %(h!=0, -Ttext 0x%t%)%(d!=0, -Tdata 0x%d%) -o%o %i %[M -L%^i -uinit_%n -lmod_%n%]”]
[virtual=x86,bios +compress] boot = {
Reserve 64k of video memory to handle multiple video cards
startup-bios -s64k
PATH is the safe path for executables (confstr(_CS_PATH…))
LD_LIBRARY_PATH is the safe path for libraries (confstr(_CS_LIBPATH))
i.e. This is the path searched for libs in setuid/setgid executables.
PATH=/proc/boot:/usr/bin:/usr/photon/bin LD_LIBRARY_PATH=/proc/boot:/usr/lib:/lib:/lib/dll PHOTON_PATH=/usr/photon PHOTON=/dev/photon PHFONT=/dev/phfont procnto
}
[+script] startup-script = {
To save memory make everyone use the libc in the boot image!
For speed (less 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
SYSNAME=nto
PATH=/proc/boot:/usr/bin:/usr/photon/bin
LD_LIBRARY_PATH=/proc/boot:/usr/lib:/lib:/lib/dll
PHOTON_PATH=/usr/photon
PHOTON=/dev/photon
PHFONT=/dev/phfont
ABLPATH=/usr/photon/translations
HOME=/tmp
pipe &
pci-bios &
waitfor /dev/pci
Advanced Graphics
display_msg “Starting Advanced Graphics”
/sbin/io-display -dvid=0x5333,did=0x8d01,deviceindex=0 -c /etc/system/config/display.conf &
waitfor /dev/io-display
Photon
display_msg “Starting Photon”
Photon
waitfor /dev/photon
io-hid -d ps2ser kbd:kbddev:ps2mouse:mousedev &
waitfor /dev/io-hid
devi-hid mouse kbd
io-graphics &
pwm &
}
Include the current “libc.so”. It will be created as a real file using
its internal “SONAME”, with “libc.so” being a symlink to it. The symlink
will point to the last “libc.so.*” so if an earlier libc is needed
(e.g. libc.so.1) add it before the this line.
[perms=+r,+x]
libc.so
libhiddi.so
io-hid serial driver
devh-ps2ser.so
devi-hid
These programs only need to be run 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=copy” does). When they have been
run once, they will be unlinked from /proc/boot.
[data=uip]
pci-bios
io-hid
These files will be unlinked after the system has started
to release the memory back to the system. They are only
needed during boot. If needed later on, they will be loaded
from the boot device.
unlink_list={
}
\
-----------------------------------------------------------------------------
Fichiers embarques dans l’image
Livraison QNX
-----------------------------------------------------------------------------
#[type=link] /dev/console=/dev/ser1
#[type=link] /bin/sh=/proc/boot/ksh
[type=link] /tmp = /dev/shmem
[type=fifo] /dev/fifo
[data=copy]
###################################################
Executable photon
###################################################
/usr/photon/bin/Photon=Photon
/usr/photon/bin/io-graphics=io-graphics
/usr/photon/bin/pwm=pwm
/usr/photon/bin/pterm=pterm
/sbin/io-display=io-display
/usr/lib/libgf.so.1=libgf.so.1
/usr/lib/libffb.so.2=libffb.so.2
/lib/dll/devg-vesabios.so=devg-vesabios.so
/lib/dll/devg-soft3d.so=devg-soft3d.so
/usr/lib/libGLES_CM.so.1=libGLES_CM.so.1
/usr/lib/libimg.so.1=libimg.so.1
/lib/dll/img_codec_jpg.so=img_codec_jpg.so
/lib/dll/img_codec_bmp.so=img_codec_bmp.so
/lib/dll/img_codec_png.so=img_codec_png.so
#/lib/dll/img_codec_tga.so=img_codec_tga.so
/lib/dll/img_codec_gif.so=img_codec_gif.so
#/lib/dll/img_codec_pcx.so=img_codec_pcx.so
#/lib/dll/img_codec_sgi.so=img_codec_sgi.so
/usr/lib/libphrender.so.2=libphrender.so.2
/usr/lib/libphexlib.so.3=libphexlib.so.3
/usr/lib/libAp.so.3=libAp.so.3
/usr/lib/libph.so.3=libph.so.3
/usr/lib/libm.so.2=libm.so.2
Font libraries and fonts:
/lib/dll/phfont.so=phfont.so
/lib/libblkcache.so.2=libblkcache.so.2
/lib/libFF-T2K-cache.so.2=libFF-T2K-cache.so.2
/lib/libFF-T2K.so.2=libFF-T2K.so.2
/lib/libfont.so.1=libfont.so.1
/lib/libfontutils.so.1=libfontutils.so.1
/lib/dll/font/ttfFFcore.so=${QNX_TARGET}/x86/lib/dll/font/ttfFFcore.so
/lib/dll/font/PHFcore.so=${QNX_TARGET}/x86/lib/dll/font/PHFcore.so
###################################################
Commandes generales
###################################################
Utilities
pipe
waitfor
[+raw]
PWM
/usr/photon/config/wm/wm.cfg=${QNX_TARGET}/usr/photon/config/wm/wm.cfg
/usr/photon/config/wm/wm.menu=${QNX_TARGET}/usr/photon/config/wm/wm.menu
Fonts
/usr/photon/font_repository/tt2001m_.ttf=${QNX_TARGET}/usr/photon/font_repository/tt2001m_.ttf
/usr/photon/font_repository/phcursor.phf=${QNX_TARGET}/usr/photon/font_repository/phcursor.phf
/usr/photon/font_repository/pcterm12.phf=${QNX_TARGET}/usr/photon/font_repository/pcterm12.phf
Code pages
/usr/photon/translations/8859-1.tab=${QNX_TARGET}/usr/photon/translations/8859-1.tab
/usr/photon/translations/charsets=${QNX_TARGET}/usr/photon/translations/charsets
/usr/photon/palette/default.pal=${QNX_TARGET}/usr/photon/palette/default.pal
-----------------------------------------------------------------------------
Font configuration files
-----------------------------------------------------------------------------
/usr/photon/font_repository/fontdir = {
primasansbts,0@tt2001m_.ttf,PrimaSans BT,0,0020-F002,p,192x170,162K
pcterm12,.phf,PC Terminal,12,0000-00FF,Nf,6x12,13K
phcursor,.phf,Photon Cursor,0,E900-E921,Np,32x31,3K
}
/usr/photon/font_repository/fontext = {
+normal = primasansbts, phcursor
}
/usr/photon/font_repository/fontmap = {
TextFont = primasansbts
term = pcterm
? = primasansbts
}
/usr/photon/font_repository/fontopts = {
[FontFusion Core 2.xx-numeral-dll]
cache=25600
[PFR-numeral-dll]
cache=25600
[PHF-numeral-dll]
cache=25600
}
#Add your graphic device PCI vid and did
/etc/system/config/display.conf = {
device {
drivername=vesabios
vid=0x5333
did=0x8d01
deviceindex=0
display {
xres=800
yres=600
refresh=60
pixel_format=argb8888
}
}
}
/etc/system/config/img.conf = ${QNX_TARGET}/etc/system/config/img.conf