OpenQNX :: The QNX Community Portal

May 13, 2008 - 04:33 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 55 unlogged users and 0 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
ogr
Post subject: QNX on embedded Flash Disk  PostPosted: Nov 28, 2007 - 05:39 PM
Active Member


Joined: May 31, 2007
Posts: 18

QNX 6.3 SP3 Self Hosted
x86 machine

Hello everybody.

I'm trying to make an OS image and transfer it to a Flash disk in order to make a bootable embedded system.

I'm using the IDE System Builder and I include all binaries, libraries, dll's, etc and whatever I need. It's seems like the IDE System Builder generates (in the Filesystem view) the filesystem needed for the system I'm designing.
After building the .ifs file, the only way I have to transfer the .ifs is by installing the Flash disk as a secondary IDE in my host PC and then:

- Run "fdisk /dev/hd1"
- Create a new partition of type 77 (qnx)
- Make the partition bootable
- Save and quit fdisk

After this:

dinit -h -B ipl-diskpc1 /dev/hd1

and then:

dinit -h -f /path/to/my.ifs -B ipl-diskpc2 /dev/hd1t77


Installing the Flash disk on the embedded system as a master, then it fail on booting. Before installing on the embedded system, I've seen that in the Flash disk were not any directory created. The only files in / were .boot, .altboot and three other ones.

My question:

Do I have to create manually all the directories of the Filesystem?
Is not supossed that it would be made automatically following the steps above (with the image file created with the System Builder)?


Thanks a lot.
 
 View user's profile Send private message  
Reply with quote Back to top
Tim
Post subject:   PostPosted: Nov 28, 2007 - 06:07 PM
Senior Member


Joined: Mar 10, 2004
Posts: 514

Ogr,

The answer is yes, you have to place all the other files and directories there yourself.

The process you did was to format the flask disk for QNX and install a boot image to boot the O/S.

Note, if you only plan to have a few files on your flash disk you can embed them directly in the boot image. Otherwise you have to copy everything you need.

Tim
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ogr
Post subject:   PostPosted: Nov 29, 2007 - 09:21 AM
Active Member


Joined: May 31, 2007
Posts: 18

Thanks Tim for your quick reply.

How can I embed the files I need in the boot image?
mkefs -> mkimage ?

I suposse doing so, the resulting image file size will be substantially increased. Isn't it?

Thanks a lot.


ogr
 
 View user's profile Send private message  
Reply with quote Back to top
bren-uk
Post subject:   PostPosted: Nov 29, 2007 - 01:11 PM
Active Member


Joined: Jan 25, 2004
Posts: 63

you can just copy the files / directory structure over to the compact flash.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Tim
Post subject:   PostPosted: Nov 29, 2007 - 03:39 PM
Senior Member


Joined: Mar 10, 2004
Posts: 514

Ogr,

Yes the image file size will increase by doing that. You can embed the files in the image simply by including them your .bld file.

Unless you only have a very few files (like a couple of exe's) it's not worth going that route. You most certainly do not want to put the full set of files from /bin /usr/bin /etc /root and so on into the boot image. Typically the only reason you embed in the boot image is because you have very limited storage (flash ram) and don't need the full QNX O/S file system.

Your much better off copying the files and directory structure if you want the full QNX O/S file system. You can create a script to automate that process.

Tim
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
aap
Post subject:   PostPosted: Mar 18, 2008 - 08:20 AM
New Member


Joined: Jul 12, 2005
Posts: 7

Ogr,

What kind of flash disk are you using? NAND flash?
How do you access the flash disk? As a block device, using devb-eide?
Or do you use the Embedded Transaction File System (ETFS)?

Regards, GJ
 
 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.