nlitsme / eimgfs Goto Github PK
View Code? Open in Web Editor NEWTool for editting Windows CE/Mobile firmware images.
License: MIT License
Tool for editting Windows CE/Mobile firmware images.
License: MIT License
Just want to say thank you for all of your work over the years; it's been ~15 years (Wizard era!) since I last delved into wince/wm, having recently returned due to a project, I see the community (what's left) is still heavily reliant upon your hard work!
I'm working on a car radio running Windows Embedded Automotive 7 - a very limited environment to start with.
I managed to get serial access and then get to one of the test modes in the bootloader for memory read/write/test and from there slowly dump over serial.
eimgfs finds the 2 bootloaders (XIPs with a single nk in each) and the traditional xip which extracted perfectly (thank you!) however there's some kind of filesystem I can't identify; looking at the dump the strings marry up with a series of PEs but no recognisable PE header.
Appreciate this is not an issue/bug, but any help or pointers would be greatly appreciated!
BL 0x00000000
BL2(?) 0x00060000
XIP 0x001c0000
Believed filesystem start is around 0x00AC0000
Hello. Could you please provide a little more details on how to build eimgfs on Windows with modern PSDK? I guess I will need mingw + openssl/boost, right? Because Makefile.win32 seems not to be in mssdk nmake format. Thanks in advance.
I dumped the flash of a windows ce6 system (car radio/multimedia)
https://mega.nz/file/MtJ0TbBQ#OZPtoF1hyFR68iYaCxO0ImnxTgVzJXYdQA2vU7rWM3E
I can't find a way to extract it except binwalk which returns:
52449280 0x3205000 Windows CE memory segment header, TOC address: 0x0
If section is compressed only psize bytes written to PE section.
XipFile::tostream() compsize 44581, fullsize 146597
XipFile::tostream(() decompress 146597 23CA5, fullsize 146597
o32exe::o32exe() o32exe psize 44581, rom->psize 44581
I have a WinCE bin file that's reporting the "EXCEPTION: b000ff before start of map" error.
map=88, off=00000800
EXCEPTION: b000ff before start of map
Where would I start on fixing this? I can provide the bin file.
I cant run the program in linux... Can u put here the steps for install it?
I cant install docker too...
Thanks!!!
Hi !
Thanks a lot for this tool.
I have a 1GB firmware image of a GPS that contains WinCE files and programs.
The firmware extracted may be partially corrupted (less than 20 bits over 1GB may be flipped).
My goal is to extract all files from the firmware image.
eimgfs is detecting an xip filesystem and then crashing on a seg fault (on Linux and on Windows as well).
$ eimgfs img.bin -r -v -o 0x200000
ERROR: not found
0000007e: failed to load dll4
ERROR: not found
0000007e: failed to load dll3
no fffb: blk: ea0003fe 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ee110f10 e0000001
mg: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 e59f114c e59f1148
found xip
8c0441ec: romhdr dll:4001c001-4001c001, phys:8c01a000-8c045fd8, ram:8c045fc8-00000000, copy:0, profile:00000000-80808080, drvglob:00000000-00000000, track:01cb1344-01cdd144
Segmentation fault (core dumped)
I believe the first 4 lines are only missing libraries on Linux and does not appear on Windows.
On both platform eimgfs crashes.
I found the offset by using binwalk on the file :
2097152 0x200000 Windows CE memory segment header, TOC address: 0x0
2116520 0x204BA8 Windows CE image header, image start: 0x30305800, image length: 172377648
8849408 0x870800 Windows CE memory segment header, TOC address: 0x4005BE34
Any idea ?
Thanks.
$ docker run -v ~/avic/:/app/1 --rm -ti ef7b7abd7b4d /app/1/test/1.prg -info -list
ERROR: not found
0000007e: failed to load dll4
ERROR: not found
0000007e: failed to load dll3
found xip
imgfs: partition table not found
readers: ( total = 1 )
{
file 0x33fb934
}
filesystems: ( total = 1 )
xip 39 files, 235 modules
-------- xip
033fa6d0 2012-07-19 02:24:30 1470976 M:[00000007] 1SegCore.dll
033f9f30 2012-07-19 05:13:33 95744 M:[00000007] afd.dll
033fa7d0 2012-09-28 01:52:31 753664 M:[00001007] AIPI.dll
033fa7b0 2012-09-28 01:52:47 870912 M:[00001007] AplLib.dll
…
And tried to extract files:
$ docker run -v /home/scif/avic/:/app/1 --rm -ti ef7b7abd7b4d /app/1/test/1.prg -extractall -d /app/1/test/22 -v
ERROR: not found
0000007e: failed to load dll4
ERROR: not found
0000007e: failed to load dll3
ERROR(00000011): CreateDirectory(/app/1/test/22)
no fffb: blk: 00090009 0009402b 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
mg: 0009d001 884a76c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 5007a089 00000002
found xip
8b89a73c: romhdr dll:4001c001-4177c0db, phys:884a1000-8b89c934, ram:8b89d000-8e8a1000, copy:2, profile:00000000-00000000, drvglob:00000000-00000000, track:00000000-00000000
imgfs: partition table not found
033fa6d0 2012-07-19 02:24:30 1470976 M:[00000007] 1SegCore.dll
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.