Skip navigation.
Home
The QNX Community Portal

View topic - QNX on Compact Flash

QNX on Compact Flash

For discussion of realtime and/or embedded programming.

QNX on Compact Flash

Postby qnxuserone » Sun Apr 20, 2008 5:59 pm

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.
qnxuserone
New Member
 
Posts: 3
Joined: Sun Apr 20, 2008 5:43 pm

Postby Gila » Sun Apr 20, 2008 8:14 pm

Did you include the flash drive in the vmware configuration?
Gila
Active Member
 
Posts: 31
Joined: Tue Feb 19, 2008 5:39 pm

Postby fiffi » Mon Apr 21, 2008 11:57 am

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=P ... pic&t=8331
fiffi
Active Member
 
Posts: 85
Joined: Tue May 06, 2003 6:39 pm

QNX on Compact Flash

Postby qnxuserone » Wed Apr 23, 2008 8:49 pm

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.
qnxuserone
New Member
 
Posts: 3
Joined: Sun Apr 20, 2008 5:43 pm

RE: QNX on Compact Flash

Postby mario » Wed Apr 23, 2008 9:49 pm

Did you set the partition as bootable?
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby fiffi » Thu Apr 24, 2008 12:05 am

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 ...
fiffi
Active Member
 
Posts: 85
Joined: Tue May 06, 2003 6:39 pm

Postby mpwalter » Fri Apr 25, 2008 10:24 am

That's what I do - and it works:

Code: Select all
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
mpwalter
Active Member
 
Posts: 56
Joined: Tue Feb 07, 2006 9:20 am

Postby qnxuserone » Mon Apr 28, 2008 7:40 pm

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.
qnxuserone
New Member
 
Posts: 3
Joined: Sun Apr 20, 2008 5:43 pm

Postby mpwalter » Tue Apr 29, 2008 4:34 am

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
mpwalter
Active Member
 
Posts: 56
Joined: Tue Feb 07, 2006 9:20 am

Re: QNX on Compact Flash

Postby tedyy42 » Fri May 15, 2015 1:44 pm

Although realizing that this thread is actually closed (centuries ago) .. a little update.
The link above has changed.

Building image to a Compact Flash card using USB-CF adapter
tedyy42
New Member
 
Posts: 6
Joined: Thu Apr 30, 2015 5:49 pm


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 2 guests

cron