Добавлено: Пт мар 27, 2015 10:15 pm
Bedrock you're the best ....... as usual.
Thank you so much !!
Thank you so much !!
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
thank you, admiral Yasenkhertelewizoor писал(а):Ok so you must unpack ifs image with proper tool, find files structure in unpacked image, replace file which you want, pack image back with proper tool and change checksumsthats all
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 !"
pushmobista писал(а):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?