OpenQNX :: The QNX Community Portal

May 13, 2008 - 12:43 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 52 unlogged users and 3 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
qnxuserone
22 Post subject: QNX on Compact Flash  PostPosted: Apr 20, 2008 - 05:59 PM
New Member


Joined: Apr 20, 2008
Posts: 3

I am new to QNX and using QNX Neutrino 6.3.0 sp3. I am running qnx thru vm-ware. I would like to build qnx image on compact flash and boot from it.
I am using PC which has embedded CompactFLash slot. Windows is detecting the flash but qnx not showing in fs folder.
I request to provide stepwise procedure from detection of the flash to booting from flash.
Please forward suitable links for more help.
 
 View user's profile Send private message  
Reply with quote Back to top
Gila
Post subject:   PostPosted: Apr 20, 2008 - 08:14 PM
Active Member


Joined: Feb 19, 2008
Posts: 26

Did you include the flash drive in the vmware configuration?
 
 View user's profile Send private message  
Reply with quote Back to top
fiffi
Post subject:   PostPosted: Apr 21, 2008 - 11:57 AM
Active Member


Joined: May 06, 2003
Posts: 69

We are using a USB card reader to transfer the operating system to the comapct flash disk. USB Mass Storage devices are supported by the devb-umass driver.

In the target the CF is enumerated as an IDE device.

Here you find the needed steps to initialize the CF disk:
http://www.openqnx.com/index.php?name=PNphpBB2&file=viewtopic&t=8331
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
qnxuserone
Post subject: QNX on Compact Flash  PostPosted: Apr 23, 2008 - 08:49 PM
New Member


Joined: Apr 20, 2008
Posts: 3

I am using PC that support CF as primary drive only. I am booting thru secondary master IDE device. Under QNX CF is shown as hd0.
i formated it with fdisk and qnx77 as file type with whole disk space as single partition.
after rebooting the system the CF was shown in "fs" folder as hd0-t77 type.
i used the following commands to initialize the CF
dinit -h -B ipcl-diskpc1 /dev/hd0
then
dinit -h -f <path of the image file> -B ipcl-diskpc2 /dev/hd0t77.
i was getting prompt stating the disk to be raw, i proceeded by entering Y for it.
then i tried to boot from this CF. the sytem stoped at startup message.
Please suggest and correct me.

I created qnx image by using the copy of the build file available in boot/build/qnxbase.build by the following way.
"cp boot/build/qnxbase.build mybase.build"
"mkifs mybase.build myimg.img"
image was created as myimg.img.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: QNX on Compact Flash  PostPosted: Apr 23, 2008 - 09:49 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

Did you set the partition as bootable?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
fiffi
Post subject:   PostPosted: Apr 24, 2008 - 12:05 AM
Active Member


Joined: May 06, 2003
Posts: 69

Try to use separate dinit and dloader commands as in my link.
Try to use the ipl-diskpc1-flop and ipl-diskpc2-flop loader.

The commands in my link works like a charm. You only need to remove the devb-umass stuff ...
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
mpwalter
Post subject:   PostPosted: Apr 25, 2008 - 10:24 AM
Active Member


Joined: Feb 07, 2006
Posts: 54

That's what I do - and it works:

Code:

fdisk ${TARGET} delete -a
fdisk ${TARGET} add -t 79 -p 100 -b
mount -e ${TARGET}
dinit -h -B /boot/sys/ipl-diskpc2-mod -m 'booting system' ${TARGET}t79
mount ${TARGET}t79 ${MOUNTDIR}
dcheck  -m ${MOUNTDIR}
umount ${MOUNTDIR}
mount -e
dloader ${TARGET} /boot/sys/ipl-diskpc1-mod
 
 View user's profile Send private message  
Reply with quote Back to top
qnxuserone
Post subject:   PostPosted: Apr 28, 2008 - 07:40 PM
New Member


Joined: Apr 20, 2008
Posts: 3

i have two queries
1) how to add CF in VMWare virtual machine. There is no opton availble for adding CF. Should it be added as IDE, If yes then for IDE its showing only partition information for present HardDisk.
2)Any sample build file with minimum required files and services for creating image with Photon GUI.
 
 View user's profile Send private message  
Reply with quote Back to top
mpwalter
Post subject:   PostPosted: Apr 29, 2008 - 04:34 AM
Active Member


Joined: Feb 07, 2006
Posts: 54

I think it's only possible to use the CF Card as IDE (with an adapter) or - like me - as an USB device (CardREader). If you want to use it such a USB DEvice you must load the USB driver
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.