Jump to ID:
BSPs and Drivers

Project Home

Documents

Discussions

Wiki

Project Info
Forum Topic - What format is .ifs & how do you convert to S-record?: (6 Items)
   
 
 
What format is .ifs & how do you convert to S-record?  
My Curtiss-Wright SVME183 SBC has a nice little bootrom program that exposes a TFTP server so you can upload a kernel, 
but it expects S-record format. The output of the BSP build process appears to be a .ifs file. What format is this, & 
are there any good utils to convert it?

A peripherally related question is; is the .ifs file something you can jump to & just start executing? Because I'm sure 
that's what the bootrom is going to try to do.
Re: What format is .ifs & how do you convert to S-record?  
If you open properties of bsp project file there is a drop down option 
to change to the image format to what you want. It includes srec, raw, 
elf, etc.


Attachment: Text elaskavaia.vcf 94 bytes
RE: What format is .ifs & how do you convert to S-record?  
Hi Jonathan,

Typically a .ifs file is binary format. If you're doing this on the command
line, you'll need to edit the .script portion of the build file to produce
srec instead of binary. If you're doing this in the IDE, you'll change the
boot file. See the attached jpeg. 

Cheers,
-Brian

> -----Original Message-----
> From: Jonathan Juniman [mailto:jjuniman@ll.mit.edu] 
> Sent: Wednesday, March 26, 2008 15 18
> To: general-bsp
> Subject: What format is .ifs & how do you convert to S-record?
> 
> My Curtiss-Wright SVME183 SBC has a nice little bootrom 
> program that exposes a TFTP server so you can upload a 
> kernel, but it expects S-record format. The output of the BSP 
> build process appears to be a .ifs file. What format is this, 
> & are there any good utils to convert it?
> 
> A peripherally related question is; is the .ifs file 
> something you can jump to & just start executing? Because I'm 
> sure that's what the bootrom is going to try to do.
> 
> _______________________________________________
> QNX BSPs
> http://community.qnx.com/sf/go/post6168
> 

Attachment: Image bootfile.JPG 130.23 KB
Re: RE: What format is .ifs & how do you convert to S-record?  
After the fact you can convert images between formats using objcopy on the command line.

$ nto<cpu>-objcopy -Ibinary -Osrec myimage.ifs myimage.srec
Re: What format is .ifs & how do you convert to S-record?  
W
--------------------------
Sent using BlackBerry


----- Original Message -----
From: Jonathan Juniman <jjuniman@ll.mit.edu>
To: general-bsp <post6168@community.qnx.com>
Sent: Wed Mar 26 15:17:44 2008
Subject: What format is .ifs & how do you convert to S-record?

My Curtiss-Wright SVME183 SBC has a nice little bootrom program that exposes
a TFTP server so you can upload a kernel, but it expects S-record format.
The output of the BSP build process appears to be a .ifs file. What format
is this, & are there any good utils to convert it?

A peripherally related question is; is the .ifs file something you can jump
to & just start executing? Because I'm sure that's what the bootrom is going
to try to do.

_______________________________________________
QNX BSPs
http://community.qnx.com/sf/go/post6168
Re: What format is .ifs & how do you convert to S-record?  
I've gotten a little further since I posted this. "ifs", as you all know, is an image file system. You can convert it to
 s-record like this:

mkrec app.ifs > app.srec

However, I think this still gives you a bag of bytes containing a filesystem, rather than a bag of opcodes you can jump 
to & start executing. The bootrom on the MVME183 of course knows nothing about QNX file systems. It just tries to jump 
to location 0 and start executing.

So my new mission is; how do you turn an image file system into such an executable bag of bytes? I know it can be done 
because the BIOS in your PC behaves the same way, and the QNX image on the boot CD is perfectly happy to be jumped to 
and executed.