Pali Rohár
df8e50a824
fiasco: Add support for unpacking multiple parts of one image
...
Fiasco mmc image contains layout and two parts in one data section. First
part is FAT32 partition (MyDocs) and second part is tar archive for second
ext3 partition (/home). This change extends fiasco parser to load all parts
from one data section and correctly unpack all parts.
2021-05-02 17:01:48 +02:00
Pali Rohár
4f45b045c3
fiasco: Implement subsection checksum verification during parsing fiasco image
...
When checksum is set to 0x00 then skip verification due to backward
compatibility with 0xFFFF version 0.9 and earlier.
2021-05-02 14:24:51 +02:00
Pali Rohár
3c4943340b
fiasco: Write correct subsection checksum when generating fiasco image
...
Previously 0xFFFF written fixed value 0x00 instead of correct checksum.
Apparently both NOLO and Nokia's flasher-3.5 ignored checksum value
verification when checksum was set to 0x00.
Also Nokia's fiasco-gen writes correct checksum (not 0x00) to final fiasco
image file.
2021-05-02 14:22:55 +02:00
Pali Rohár
ce67a58983
fiasco: Update comments about unknown bytes and parsing of fiasco images
...
Allow to parse also fiasco images which do not have common parameters:
* asic index: APE (0x01)
* device type: NAND (0x01)
* device index: 0
2021-05-02 14:19:38 +02:00
Pali Rohár
f36a762168
fiasco: Fix code for append device & hwrevs subsection
...
Fix possible use-after-free in WRITE_OR_FAIL_FREE() macro
2016-01-10 17:26:23 +01:00
Pali Rohár
b48b9b558c
fiasco: Remove wrong checks for 'name' and 'swver'
...
Members 'name' and 'swver' of fiasco are arrays, not pointers
2016-01-10 14:31:28 +01:00
Pali Rohár
b7f80de25d
all: Check for return value of lseek
2016-01-10 14:29:18 +01:00
Pali Rohár
1ee86c05f4
fiasco: Fix memory leak for device_hwrevs_bufs variable
2016-01-10 13:29:28 +01:00
Pali Rohár
79af7395bf
fiasco: In simulate mode do not close invalid not open fd
2016-01-10 13:27:17 +01:00
Pali Rohár
3f406cc9ad
fiasco: Fix checking for header of next image
2015-06-24 18:30:07 +02:00
Pali Rohár
ef678ecf6c
fiasco: Remove not reached code
2014-11-26 17:00:10 +01:00
Pali Rohár
e443393aa5
fiasco: Fix possible memory leak
2014-11-18 20:31:16 +01:00
Pali Rohár
142ef93ddc
fiasco: Fix initializing variables
2014-11-18 20:14:23 +01:00
Pali Rohár
89566f559b
fiasco: Fix memory leaks
2014-11-18 18:49:32 +01:00
Pali Rohár
f0712d5b23
all: Replace strlen() call on const string with sizeof()-1
2014-10-19 20:23:21 +02:00
Pali Rohár
d6eba11357
fiasco: fiasco_alloc_from_file: check if hwrevs has enough size
2014-10-19 18:26:47 +02:00
Pali Rohár
23b916bcc9
fiasco: Call free at correct place
2014-09-29 00:42:52 +02:00
Pali Rohár
f898ac4411
all: Fix typo
2014-05-10 22:39:47 +02:00
Pali Rohár
b0130e52d6
Fix compilation on 32bit system
2012-09-22 23:16:56 +02:00
Pali Rohár
d1bb1b6094
Fix generating fiasco images
2012-09-22 20:45:27 +02:00
Pali Rohár
28ca666c6e
fiasco: Fix fiasco_write_to_file
2012-09-22 20:37:30 +02:00
Pali Rohár
a072a2cf83
fiasco: Use image_list
2012-09-22 19:49:58 +02:00
Pali Rohár
d0d249c738
fiasco: Fixed compile warnings
2012-08-13 11:57:30 +02:00
Pali Rohár
2d52d8c3c6
fiasco: Respect simulate flag
2012-08-12 12:19:33 +02:00
Pali Rohár
26099e9536
image_read returns size_t, so 0 when error or end of file
2012-08-11 21:23:53 +02:00
Pali Rohár
83bcb7358c
Rewrite Makefile, move WITH_DEVICE, WITH_USB and WITH_SQUEUES to Makefile
2012-08-11 11:12:58 +02:00
Pali Rohár
ad68e324c6
Fix ERROR macros
2012-08-10 12:01:14 +02:00
Pali Rohár
b2883167d5
Rename new fiasco2 to fiasco
2012-08-09 19:50:14 +02:00
Pali Rohár
1b99ad115a
Remove old fiasco.c code
2012-08-09 19:48:21 +02:00
Pali Rohár
8301455a5b
Align also kernel image
2012-07-14 09:21:34 +02:00
Pali Rohár
2421b9f6c2
fiasco - remove dead code
2012-06-23 21:26:30 +02:00
Pali Rohár
eac07b18d9
Added option to use only image pieces for specific device / hw revision
2012-06-23 18:49:07 +02:00
Pali Rohár
027a6d9a18
Fix compilation warnings
2012-06-23 17:39:33 +02:00
Pali Rohár
2110196958
Fiasco image: Allow to specify device string without hw revision (then image is valid for all hw revisions). Generating images should be complete!
2012-06-23 17:01:48 +02:00
Pali Rohár
9195f3c7da
Fixed creating fiasco images, added param version: for specifing sw-ver. Now generated fiasco images are valid for nokia flasher.
2012-06-23 16:54:05 +02:00
Pali Rohár
4f92794cdf
Rename fwname to swver
2012-06-23 16:21:28 +02:00
Pali Rohár
535561efbf
Fix unpacking fiasco images (check for number of subsections). Now unpacking is complete!
2012-06-23 15:54:13 +02:00
Pali Rohár
5da30a5bc5
Fix memory problems when unpacking fiasco images
2012-06-23 15:01:10 +02:00
Pali Rohár
8fdba437af
Unpacking fiasco - added support for FW headers (FW name)
2012-06-23 14:09:33 +02:00
Pali Rohár
1aca3bef85
Fix creating fiasco images - added support for specifing device, hwrevs, version, mmc layout and auto align mmc images
...
Format of arguments for adding piece to fiasco image is now:
$ 0xFFFF -p [[[[dev:hw:]ver:]type:]file[%%layout]
2012-06-23 13:11:54 +02:00
Pali Rohár
b4575a40fc
Rename hwrev to hwrevs and fix unpacking fiasco images. hwrevs do not have to be separated by nullterm if size of hwrev is 8.
2012-06-23 13:09:44 +02:00
pancake
34c8fb057d
* Apply Pali Rohár patch - Add support for device and hw revisions specified in hw pieces - Updated documentation - Fixed problems when unpacking - Ready for mmc and cold flashing
2012-06-23 10:43:20 +02:00
pancake
04f9369ace
* Apply Pali Rohár patch fixing RX51 Fiasco Image parsing
2011-12-16 16:17:17 +01:00
pancake@flubox
3f975a93b3
* Fix segmentation fault with -O2 while unpacking (thanks for reporting) * Various random checks to ensure read/write ops are success
2009-12-21 14:40:12 +01:00
pancake@localhost.localdomain
034b17cef4
* Added support for local n900 nand dump * Do some code cleanup, update headers from 2007 to 2009 :) - Fix warning messages
2009-10-17 15:43:39 +02:00
pancake
fc3a613276
* Minor stetical fixups
...
* Cut 0.4 release :)
2008-12-14 01:40:49 +01:00
pancake
5a96158322
* Implement and test direct file FIASCO flash - openfiasco receives options for grepping for pieces and be verbose - fixed flashing order using grep options xloader, secondary, kernel, initfs, rootfs - Tested and working - Added parser for the hw revision string
...
* Autodetect device hw revision and setup the subversion string
on the fly.
2008-12-08 18:13:36 +01:00
pancake
3d427bfd77
* Added -n flag to do not write to disk or flash (simulation)
...
* Added -S flag to specify subversion id manually while flashing or dumping
* Fixed support for the last fiasco image
- Skip paddings
- More verbose output while parsing FIASCO headers
* Initial implementation of the full direct FIASCO flasher
- No need to dump manually before flashing
* Some warnings and code cleanup
* Fix building issue
* Add HAVE_GUI directive in config.mk
* Up to version 0.4
2008-12-08 00:21:05 +01:00
pancake
4115aab13d
- Import patches from Osvaldo Santana * Fix build on gcc 4 * Fix nanddump call definition (ignore oob added) * Fixed some stupid bugs with -pedantic -std=c99
...
release 0.3.1
2007-11-20 04:14:13 +01:00
pancake
fbdac811fc
* Make the fiasco writing api work (some hardcoded things, but mostly ok)
...
* Move documentation of fiasco format to doc/
* 0.3 release
2007-10-20 02:32:24 +02:00