“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:9sh6g7$k1n$1@inn.qnx.com…
I have built several customized OS ‘with’ diskboot and I have been able to
add features the way I want it. I understand all of mkifs and most if the
individual drivers.
But, . . .
I wanted to build an OS without diskboot. I wanted to load the drivers
myself. I know what they should look like (I think). But I can’t seem to
get it to work.
I have looked into /boot/build and have read through all of the other
build
source files and I can’t get any of them with diskboot to work unmodified.
When I try to build a version without diskboot the system wait for about 1
minute and then I get a bunch of “not found” messages.
What is the magic that I am missing if I don’t include diskboot?
Hello Bill
Here is my boot file for my PC, it doesn’t use diskboot. This was
takeng from Chris’s page I thing. I needed to get rid of disk boot to
control devb-eide’s cache.
\
This sets up the kernel and proc.
- x86 based kernel using the bios.boot to set things up.
- Compression is turned on.
- Use startup-bios to finish setting up the machine.
- Start procnto after startup-bios is finished.
[virtual=x86,bios +compress] boot = {
startup-bios -v
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib:/usr/photon/dll procnto -v
}
Once procnto is running it will mount the image filesystem and
run this script.
[+script] startup-script = {
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2
Populate the kernel resource database
seedres
Start the system logger
slogger &
waitfor /dev/slog
Start the PCI server for drivers that need pci.
display_msg “Starting pci-bios server…”
pci-bios &
waitfor /dev/pci
Start the standard PC console driver and
make it the default output (reopen).
display_msg “Starting up console driver…”
devc-con -n6 &
waitfor /dev/con1
reopen /dev/con1
Pipe provides pipe() services.
display_msg “Starting pipe manager…”
pipe &
waitfor /dev/pipe
Start eide driver to get drive access.
display_msg “Starting eide driver…”
#devb-eide blk auto=partition dos exec=all cam quiet eide dma eide dma &
devb-eide eide dma,slave blk
commit=low,noatime,auto=partition,cache=94M,alloc=94M,delwri=60 &
display_msg “Waiting HD detection”
waitfor /dev/hd0t79 30
Mount Filesystems
display_msg “Mounting filesystems…”
#mount -t dos /dev/hd0t12 /fs/hd0-dosdd
#mount -t qnx4 /dev/hd0t77 /fs/hd0-qnx4
#mount -t qnx4 “/fs/hd0-dos/Program Files/qnx/boot/fs/root.qfs” /
#mount -r -t qnx4 “/fs/hd0-dos/Program Files/qnx/boot/fs/qnxbase.qfs”
/pkgs/base
mount -t qnx4 /dev/hd0t79 /
mount -t qnx4 /boot/fs/qnxbase.qfs /pkgs/base
mount -t qnx4 /dev/hd0t78 /home
Start the Package Filesystem
display_msg “Starting Package Filesystem…”
fs-pkg -a/pkgs/base/safe-config/etc/system/package/packages
Start the sysinit script
display_msg “Running /etc/system/sysinit…”
[+session] /bin/ksh -c /etc/system/sysinit
#display_msg “Starting high priority shell on /dev/con2”
#reopen /dev/con2
#[+session pri=30o] fesh
}
These are the standard, required links
[type=link] /dev/console=/dev/con1
[type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so
Shared Libraries
libc.so
io-blk.so
fs-qnx4.so
cam-disk.so
cam-cdrom.so
libcam.so
fs-cd.so
Binaries/Executables
[data=c]
devc-con
seedres
pci-bios
devb-eide
fs-pkg
slogger
fesh
mount
pipe
unlink_list = {
/proc/boot/devb-*
}