OpenQNX :: The QNX Community Portal

Oct 07, 2008 - 12:18 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 47 unlogged users and 1 registered user 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
potatonkey
Post subject: Building image to a Compact Flash card using USB-CF adapter  PostPosted: Sep 13, 2006 - 07:32 PM
New Member


Joined: Aug 05, 2005
Posts: 9

I need to build and load a QNX OS image to a 2GB compact flash (SimpelTech or SandDisk ) that will be used as the hard-drive to our PC104 system. I tried first with the bios.build in "/usr/qnx630/target/qnx6/x86/boot/build/"

The hardware of the system:
Mother board: EBX-Littleboard 800
PC104 Profibus card.

I am using a SanDisk USB2.0 CompactFlash card Reader/Writer to access the Compact Flash. Here are what I did:
1, io-usb -dehci
2, devb-umass cam pnp&
3, fdisk /dev/hd1, I then fdisk the CF as QNX, 77, and I can see it as /dev/hd1t77
4, cd /usr/qnx630/target/qnx6/x86/boot/build/
5, dinit -h -f bios.ifs /dev/hd1t77
after this dinit command, the terminal displays:" Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop"

The .boot file is created in the compact flash. I then plug in the compact flash to the CF slot in the PC104 system, but system stops after "Pressing ESC for .altboot.............................................................................."

I believe that the loader should be ipl-diskpc2 instead of diskpc2-flop, as I tried the same procedure a while ago which worked fine and I remeber the loader was ipl-diskpc2 at that time. But I don't know why I have diskpc2-flop this time. The only difference is the USB compact flash adapter.

Could anybody give me some instructions on where I might be wrong? Any other information you may need for diagnosis?

Thanks a lot,
Jeff
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Building image to a Compact Flash card using USB-CF adap  PostPosted: Sep 13, 2006 - 09:50 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2900

The compact flash is NOT a floppy. The loader you used if for flopopy (ipl-diskpc2-flop)
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
fiffi
Post subject:   PostPosted: Sep 13, 2006 - 10:44 PM
Active Member


Joined: May 06, 2003
Posts: 82

I use the following commands to initialize my cf-disks:

CF_HD=/dev/hd1

if test -r $CF_HD; then
slay devb-umass
fi
devb-umass &
waitfor $CF_HD 10

# Clear partition table
dd if=/dev/zero of=$CF_HD count=1

# Create partitions and install QNX loader
fdisk $CF_HD delete -a
fdisk $CF_HD add -s1 -t79 -p100
fdisk $CF_HD boot -t79
fdisk $CF_HD loader
mount -e $CF_HD
waitfor ${CF_HD}t79 10
dinit -qh ${CF_HD}t79

# For Harddisks > 8GB + new Bios
#dloader $CF_HD /boot/sys/ipl-diskpc1
#dloader ${CF_HD}t79 /boot/sys/ipl-diskpc2

# For Harddisks < 8GB + old Bios
dloader $CF_HD /boot/sys/ipl-diskpc1-flop
dloader ${CF_HD}t79 /boot/sys/ipl-diskpc2-flop

mount ${CF_HD}t79 /fs/cf
cp -v /cf_qnx/boot/cf.ifs /fs/cf/.boot

umount /fs/cf
slay devb-umass


Depending on the BIOS I use different dloader commands.
Booting from an old 486 was only possible with the last commands.
 
 View user's profile Send private message Visit poster's website  
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.