Hi,
I read a lot of news about my problem but any is working.
I want to boot on my Compact Flash Card which is on /dev/hd1(Secondary
Master). I use RTP6.1 on an ETX - Geaode Board.
What I have done :
- I use “fdisk /dev/hd1” to create a QNX partition and make it Bootable
- I use “dinit -h /dev/hd1” to initialize the disk (
- I modify the bios.ide.build file to replace “hd0t77” by “hd1”
- I use “mkifs bios.ide.build bios.ide.img” to create the boot image and
copy it at /fs/hd1/.boot - I copy all the required files by bios.ide.build at the right place on
/fs/hd1 - when I start I have the messages
Hit Esc for .altboot …
Welcome toNeutrino …
Path=0 - EIDE
target=0 lun=0 Direct-Access(0) - QUANTUM … Rev:
target=1 lun=0 CD-ROM(5) - MATSHITA … Rev: ZB21
Path=1 - EIDE
target=0 lun=0 Direct-Access(0) - Rev:
Unable to access “/x86/bin” (2)
Unable to start “pipe” (2)
Unable to start “mqueue” (2)
Unable to start “devc-ser8250” (2)
Unable to start “devc-pty” (2)
Unable to start “/dev/ser1” (2)
Unable to start “pdebug” (2)
Unable to start “sh” (2)
Unable to start “sh” (2)
Unable to start “sh” (2)
Unable to start “sh” (2)
This is my bios.ide.build file
###########################################################################
Neutrino on an PC BIOS compatible system
This is for building a bootable neutrino image that will run from its
own filesystem partition.
To do this make a t79 partition for neutrino, then "mount /dev/hd0t79
/usr/nto"
This build file will also mount t77 partitions as “/usr/qnx4”
Note that the default image links at 4M. If you have 4M or less,
uncomment the line below
[image=1m]
###########################################################################
[virtual=x86,bios +compress] boot = {
startup-bios -Nmachine-name
PATH=/proc/boot:/x86/bin
LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/x86/lib:/x86/dll procnto
}
[+script] startup-script = {
Start up some consoles
devc-con -n4 &
reopen /dev/con1
display_msg Welcome to Neutrino on an PC compatible BIOS system
Start the pci server
seedres
pci-bios &
waitfor /dev/pci
Disk drivers (The default one and some fun others for your pleasure…)
devb-eide blk automount=hd1:/ &
devb-eide blk automount=hd0t79:/,cache=2m,delwri=5 &
Wait for a bin for the rest of the commands (up to 60 secs)
waitfor /x86/bin 60
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 some extra shells on other consoles
reopen /dev/con2
[+session] sh &
reopen /dev/con3
[+session] sh &
Start a high priority shell just in case…
reopen /dev/con4
[pri=25 +session] sh &
Start the main shell
reopen /dev/con1
[+session] sh
[+session] login -p
}
Cheat and make the /temp point to the shared memory area…
[type=link] /tmp=/dev/shmem
Redirect console messages for syslog
[type=link] /dev/console=/dev/con1
Programs require the runtime linker (ldqnx.so) to be at a fixed location
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
add symbolic links for bin and lib (files in /usr/nto. e.g. with
devb-eide)
[type=link] /bin=x86/bin
[type=link] /lib=x86/lib
[type=link] /dll=x86/dll
[type=link] /sys=x86/sys
We use the “c” shared lib (which also contains the runtime linker)
libc.so
Just incase someone needs floating point…
fpemu.so.2
Include the socket library
libsocket.so
Include the hard disk files so we can access files on the disk
libcam.so
io-blk.so
filesystem required shared libs
cam-disk.so
fs-qnx4.so
cdrom required shared libs
cam-cdrom.so
fs-cd.so
The files above this line can be shared by mutiple processes
[data=c]
Executables must currently be below this line
Include a console driver
devc-con
Include the disk drivers.
devb-eide
Include pci server
pci-bios
seedres
###########################################################################
Interrupt Assignments
---------------------
vector: 0
trigger: rising edge
device: 8254 (system timer)
vector: 1
trigger: rising edge
device: Keyboard
vector: 2
trigger: rising edge
device: Cascade from second 8259 controller
vector: 3
trigger: rising edge
device: Serial 2
vector: 4
trigger: rising edge
device: Serial 1
vector: 5-12
trigger: rising edge
device: unassigned
vector: 13
trigger: rising edge
device: Coprocessor
vector: 14,15
trigger: rising edge
device: unassigned
vector: 0x80000000 (X86_INTR_CLASS_NMI+0) (non-maskable)
trigger: rising edge
device: system board error (SERR# NMI)
vector: 0x80000001 (X86_INTR_CLASS_NMI+1) (non-maskable)
trigger: rising edge
device: ISA I/O check error (IOCHK# NMI)
###########################################################################
Thanks
Jeff HOFFMEYER