How to extract a IFS file
Excuse me, why I always show: "Unable to find startup header in ifs-root.ifs"slav писал(а):The first program in a bootable Neutrino image is a startup program whose purpose is to:
1. Initialize the hardware.
2. Initialize the system page.
3. Initialize callouts.
4. Load and transfer control to the next program in the image.
You can customize Neutrino for different embedded-system hardware by changing the startup program.
If you can customize startup sources from SH7785SDK BSP and compile startup program for mmi3g - you can make new image, using QNX IDE.
Чтобы узнать от вас
theed писал(а):Bedrock, checked it see the result of a scan command:
Entering CLI, type '?' or 'help' for help
=> scan
** @0x80100000: FPGA
total size: 746480 [0x0b63f0]
data: 746212 [0x0b62e4]
.FDR = PL_MMI3G_PLUS_FPGA_9411_D1_09422A
.FDU = Userinfos zu FPGA 9411_D1_4010_14lw
** @0x801c0000: IFS [vers.1, UCL, old EMERGENCY]
total size: 4666284 [0x4733ac]
- header: 256
- startup: 53512
- imagefs: 11565604
RAM: 11619116 [0xb14b2c]
** @0x80780000: IFS [vers.1, LZO, old APPLICATION]
total size:36867924 [0x2328f54]
- header: 256
- startup: 53512
- imagefs: 85872380
RAM: 85925892 [0x51f2004]
=== DATA CHECKSUM ERROR! ===
** @0x87f00000: BIOS packet
total size: 786432 [0x0c0000]
BIOS pattern: FFFFFF7F.FFFFFFFF
App. pattern: FFFFFF7F.FFFFFFFF
Is hard to notice, great finding
Hi, did you find a explanation or solution for this === DATA CHECKSUM ERROR === ?
Regards,
ROy
-
- Новичок
- Сообщения: 4
- Зарегистрирован: Ср ноя 15, 2017 12:30 pm
-
- Новичок
- Сообщения: 4
- Зарегистрирован: Ср ноя 15, 2017 12:30 pm
for example this file :
https://mega.nz/#!vFdmATyB!tQeqMwxPoiWK ... B1z51WKNsI
https://mega.nz/#!vFdmATyB!tQeqMwxPoiWK ... B1z51WKNsI
-
- Новичок
- Сообщения: 4
- Зарегистрирован: Ср ноя 15, 2017 12:30 pm
Unpackign the ifs image is not a hard work.
With the help of mmi-ifs tool you can dump and decompress teh filesystem image. Than with dumpifs and with some shell scripting knoweledge you can extract and create the directory and file structure including the symlinks.
Maybe somebody can give some hints how to repack the filesystem structure into ifs image?
The mkifs utilitiy must be used? What arguments and attributes must be set for mmi3g?
With the help of mmi-ifs tool you can dump and decompress teh filesystem image. Than with dumpifs and with some shell scripting knoweledge you can extract and create the directory and file structure including the symlinks.
Maybe somebody can give some hints how to repack the filesystem structure into ifs image?
The mkifs utilitiy must be used? What arguments and attributes must be set for mmi3g?
Finally I know how to extract ifs-root.ifs, but all files are in one directory - how to create good *.bat to make directory and then unpack files with QNX?bertelsmann писал(а):you have to create the directories first
try something like this:
IMAGE=$1
echo "Dumping content of $IMAGE..."
$IFSDUMP -z $IMAGE |awk '{print $3}' >$TMPDIR/ifscont.txt
$IFSDUMP -z $IMAGE |grep "\->" |awk '{print $3" -> "$5}' >$TMPDIR/ifslinks.txt
for i in `cat $TMPDIR/ifscont.txt`; do dirname $i; done |sort -u >$TMPDIR/dirlist.txt
for i in `cat $TMPDIR/dirlist.txt`; do mkdir -p ./$i; done
#create symlinks
while
read i
do
SRC=`echo -e "$i" | awk '{print $3}'`
LNK=`echo -e "$i" | awk '{print $1}'`
LNKDIR=`dirname $LNK`
LNKBASE=`basename $LNK`
cd $LNKDIR
ln -s $SRC $LNKBASE
cd $CURDIR
done < $TMPDIR/ifslinks.txt
##
$IFSDUMP -zx $IMAGE
echo "done !"
Dumped ifs-root.ifs has two ifs images embedded in it like https://www.qnx.com/developers/docs/6.4 ... tiple.html
Need to find second ifs marker in dump and split, then extract both parts.
--
bedrock
Need to find second ifs marker in dump and split, then extract both parts.
--
bedrock