QNX Image startup question

中文QNX 讨论: 欢迎大家灌水,讨论有关QNX 问题。
回复
robby0524
Senior Member
帖子: 38
注册时间: 周一 6月 19, 2006 4:14 pm

QNX Image startup question

帖子 robby0524 » 周五 2月 16, 2007 9:47 am

我的设备: 一个双核心的PC,客制化Iimage我之前的作法,是以IDE介面,
再下dinit与dloader,是否有其它方式!但我有下面二个 idea,不知QNX是否可行
1、如windows XP一样,可作一个光盘系统盘,把我的Image loader到HD,使HD开机
2、QNX可以以USB flash开机吗?再把我的Image loader到HD,使HD开机

robby0524
Senior Member
帖子: 38
注册时间: 周一 6月 19, 2006 4:14 pm

Image startup from USB disk

帖子 robby0524 » 周三 3月 14, 2007 5:04 pm

我現在可以從USB Flash disk中起動我的image,但是有些bug不知如何解
可以給我一些idea嗎?

還有人知道如何從CD-R起動Image嗎?


參考的網站 http://www.becom.sk/index.php?option=co ... &Itemid=25

bug message:

xpt-configure:No umass interface found
unable to access: "/dev/hd0" (2)
mount: can't mount / (type qnx4)
mount: Possible reason: Invalid argument


follow is my code:

[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=/proc/boot procnto-smp
-instr

LD_LIBRARY_PATH=/proc/boot:/usr/lib
}

[+script] startup-script = {

procmgr_symlink ../../proc/boot/libc.so.2 /usr/lib/ldqnx.so.2
# Start 1 keyboard console
devc-con -n4 &
# Start serial A driver
waitfor /dev/con1
reopen /dev/con1

display_msg "Welcome to QNX Neutrino on an PC compatible BIOS system "
display_msg "for SMP from USB"

seedres
pci-bios &
waitfor /dev/pci

io-usb -duhci & # starting USB daemon
waitfor /dev/io-usb/io-usb # wait for create /dev/io-usb/io-usb
mount -T io-usb devu-uhci.so /dev/io-usb/io-usb # connect driver UHCI
waitfor /dev/io-usb/devu-uhci.so



waitfor /dev/ser1
pipe

&
mqueue &
slogger
# scan IDE machine
devb-eide
devc-pty &



SYSNAME=nto
TERM=qansi

devb-umass cam verbose umass path=/sbin/io-usb/io-usb & # create mass storage device as hd0
waitfor /dev/hd0 10 # wait for create hd0t79
mount /dev/hd0 / # mounting root folder



waitfor /dev/con1
reopen /dev/con1

display_msg "Startup Finish"
[+session] PATH=/bin:/proc/boot esh &
}

# Make /tmp 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

#**********************************************************

# We use the "c" shared lib (which also contains the
# runtime linker)
libc.so
libm.so
libsocket.so
npm-ttcpip.so

devn-rtl.so
devn-via-rhine.so
io-blk.so
fs-qnx4.so
cam-disk.so
libcam.so

#####/*uncomment for USB driver*/
fpemu.so.2
libusbdi.so
devu-uhci.so
devu-ohci.so
devu-ehci.so
devn-asix.so
######/*end USB driver*/

fs-ext2.so

# The files above this line can be shared by multiple
# processes
[data=c]
devc-con
devc-ser8250
devc-pty
pci-bios
seedres
mqueue
pipe
io-net
/bin/echo=echo
/bin/stty=stty
cat
tail
pci
ifconfig
ping
syslogd
slogger
ls
qconn
pidin
pdebug
slay
mount
devb-eide
ftp
inetd
shutdown
sin
use
esh
mount
sloginfo
telnet

uname
login
more
fdisk
grep
cp
#####/*USB*/
io-usb
usb
devb-umass
#####/*end USB*/


#Services (telnetd etc) config

/usr/sbin/telnetd=telnetd
/usr/sbin/ftpd=ftpd
/bin/login=login
/bin/sh=sh

/sbin/io-usb=/dev/io-usb
/sbin/io-usb/io-usb=/dev/io-usb/io-usb
/bin/on=on


/etc/ppp/chap-secrets = {
# Client Server Secret Addrs
#########################################
* * "password" *
}
/etc/syslog.conf = {
*.* /tmp/syslog
*.* /.../....
}

# Inetd config Files
/etc/services= /etc/services
/etc/protocols= /etc/protocols
/etc/termcap= /etc/termcap
/etc/passwd= /etc/passwd
/etc/default/login= /etc/default/login
/etc/resolv.conf= /etc/resolv.conf
#/etc/shadow = /etc/shadow

/etc/inetd.conf = {
telnet stream tcp nowait root /usr/sbin/telnetd in.telnetd
#tftp dgram udp wait root /usr/sbin/tftpd in.tftpd
ftp stream tcp nowait root /usr/sbin/ftpd in.ftpd
-l
}

/etc/hosts = {
127.1 localhost.localdomain localhost
10.99.99.1 server server
10.99.99.2 client client
}

回复