Creating bootable QNX CD from .ifs file.

I am trying to build a QNX boot CD. I have already made my .ifs file but it’s little over 1.44mb for it to be go into a floppy. I was wondering how I can go around this ? Can I just make a bootable CD instead?

Thanks~ :laughing:

Hope the attached package will be help.

I guess my question is then, making this image file with the command

dd if=/dev/fd0 of=/floppy.img

currently my image file is too big to fit on a fd0. So I only have ifs file
which is 14M (it’s a embedded photon boot image). Which means I can not execute the above command.

Is there a direct way of making a *img file from *.ifs file?

Ok, I am trying to use the mkisofs and it came up with the iso file.
I burned the CD and tried booting.
it couldn’t execute any of the executable file in the CD. I tried including all my executables in my boot image but I can not include all the required share libraries because the boot image gets too big (14M).

I will post my boot image here

[virtual=x86,bios +compress] .bootstrap = {
startup-bios
PATH=/proc/boot:/usr/bin:/usr/photon/bin
LD=LIBRARY_PATH=/proc/boot:/usr/lib:/lib:/lib/dll
PHOTON_PATH=/usr/photon
procnto
}

[+script] .script = {
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2

devc-con -n1
waitfor /dev/con1
reopen /dev/con1

#session:
[+session pri=10o] 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

display_msg Welcome to Neutrino! Starting Photon.

invoke photon server:

photon &
waitfor /dev/photon
#ksh

#setup mouse and keyboard:

inputtrap start

#start graphics driver:

io-graphics -g640x480x8 -dldevg-svga.so
waitfor /dev/phfont

start window manager:

pwm&

#start applications:
phcalc_sm &
phview &
}
/proc/boot/libc.so.2=libc.so.2

[data=copy]
devc-con

#photon files:
#/bin/ksh/
/usr/photon/bin/Photon=/usr/photon/bin/Photon
/usr/photon/bin/io-graphics=/usr/photon/bin/io-graphics
/usr/photon/bin/pwm=/usr/photon/bin/pwm
/usr/photon/bin/devi-hirun=/usr/photon/bin/devi-hirun
/usr/photon/keyboard/en_US_101.kbd=/usr/photon/keyboard/en_US_101.kbd

/lib/dll/devg-svga.so=/lib/dll/devg-svga.so
/lib/dll/gri-photon.so=/lib/dll/gri-photon.so
/usr/photon/bin/inputtrap
/usr/lib/libffb.so.2=/usr/lib/libffb.so.2
/usr/lib/libphrender.so.2=./lib/libphrender.so.2
/usr/lib/libgri.so.2=/usr/lib/libgri.so.2
/usr/lib/libdisputil.so.2=/usr/lib/libdisputil.so.2
/usr/lib/libphexlib.so.3=./lib/libphexlib.so.3
/usr/lib/libAp.so.3=./lib/libAp.so.3
/usr/lib/libph.so.3=./lib/libph.so.3
/usr/lib/libm.so.2=./lib/libm.so.2

#Font libraries and fonts:

/lib/dll/phfont.so=/lib/dll/phfont.so
/lib/libblkcache.so.2=./lib/libblkcache.so.2
/lib/libFF-T2K-cache.so.2=./lib/libFF-T2K-cache.so.2
/lib/libFF-T2K.so.2=/lib/libFF-T2K.so.2
/lib/libfont.so.1=./lib/libfont.so.1
/lib/libfontharnessutils.so.1=./lib/libfontharnessutils.so.1
/lib/libfontutils.so.1=./lib/libfontutils.so.1
/lib/dll/font/ttfFFcore.so=/lib/dll/font/ttfFFcore.so
/lib/dll/font/PHFcore.so=/lib/dll/font/PHFcore.so
/usr/photon/font_repository=./font_repository
/etc/photon/pnpmouse=/etc/photon/pnpmouse

Application:

[+raw]/usr/photon/bin/phcalc_sm
[+raw]/usr/photon/bin/phview

how can I make this boot CD if I want to boot this build file?
I tried taking out the libraries and put them in the CD so that I can
reduce the size of the image file but when I do that and try booting, the system can’t seems to find those directories… help!!!

As mario mentioned in this thread, there is a 3M limit (I think the true limit may be 2.88M).

Ok, let me start my question over again.
I would like to make a boot CD that will allow me to run Photon server so that I can run my Photon application on my target System ( My target system is just another PC with CD rom and Harddrive and everything) I made my Build file as described above, but the size of the image is too big. So I would like to know how I can make a smaller Image size < 1.44mb, and add those other files or lib. to my boot image after.

I have looked into mkefs and mkimage with but it seems like mkefs is more relevent to Flash and I can not find mkimage command in my QNX 6.3 (licensed version). And I am not sure what mkimage can do??? does this util combine multiple images together to one big one? If so, even if I have created small boot image, and a large filesystem, when I combine the two images, wouldn’t that just make another huge image which I can’t not boot disk from?

I would really appriciate your answer on this… thanks bunch

Answered here: openqnx.com/PNphpBB2-viewtopic-t3092-.html