summaryrefslogtreecommitdiffstats
path: root/src/fiasco.c
AgeCommit message (Collapse)AuthorFilesLines
2021-05-02fiasco: Mute warning about uninitialized variables fs and checksumPali Rohár1-2/+9
2021-05-02fiasco: Show verbose hexdump information about unknown sectionPali Rohár1-1/+5
2021-05-02fiasco: When generating fiasco image append image data part sectionsPali Rohár1-1/+35
Nokia's fiasco-gen writes data part section even if there is only one part. So do the same thing in 0xFFFF.
2021-05-02fiasco: Add support for unpacking multiple parts of one imagePali Rohár1-49/+103
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-02fiasco: Implement subsection checksum verification during parsing fiasco imagePali Rohár1-15/+23
When checksum is set to 0x00 then skip verification due to backward compatibility with 0xFFFF version 0.9 and earlier.
2021-05-02fiasco: Write correct subsection checksum when generating fiasco imagePali Rohár1-1/+21
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-02fiasco: Update comments about unknown bytes and parsing of fiasco imagesPali Rohár1-13/+40
Allow to parse also fiasco images which do not have common parameters: * asic index: APE (0x01) * device type: NAND (0x01) * device index: 0
2016-01-10fiasco: Fix code for append device & hwrevs subsectionPali Rohár1-4/+5
Fix possible use-after-free in WRITE_OR_FAIL_FREE() macro
2016-01-10fiasco: Remove wrong checks for 'name' and 'swver'Pali Rohár1-2/+2
Members 'name' and 'swver' of fiasco are arrays, not pointers
2016-01-10all: Check for return value of lseekPali Rohár1-1/+4
2016-01-10fiasco: Fix memory leak for device_hwrevs_bufs variablePali Rohár1-21/+21
2016-01-10fiasco: In simulate mode do not close invalid not open fdPali Rohár1-1/+3
2015-06-24fiasco: Fix checking for header of next imagePali Rohár1-1/+1
2014-11-26fiasco: Remove not reached codePali Rohár1-2/+0
2014-11-18fiasco: Fix possible memory leakPali Rohár1-0/+1
2014-11-18fiasco: Fix initializing variablesPali Rohár1-3/+7
2014-11-18fiasco: Fix memory leaksPali Rohár1-3/+21
2014-10-19all: Replace strlen() call on const string with sizeof()-1Pali Rohár1-1/+1
2014-10-19fiasco: fiasco_alloc_from_file: check if hwrevs has enough sizePali Rohár1-3/+6
2014-09-29fiasco: Call free at correct placePali Rohár1-7/+11
2014-05-10all: Fix typo0.6Pali Rohár1-1/+1
2012-09-22Fix compilation on 32bit systemPali Rohár1-1/+1
2012-09-22Fix generating fiasco imagesPali Rohár1-1/+1
2012-09-22fiasco: Fix fiasco_write_to_filePali Rohár1-8/+6
2012-09-22fiasco: Use image_listPali Rohár1-42/+16
2012-08-13fiasco: Fixed compile warningsPali Rohár1-3/+3
2012-08-12fiasco: Respect simulate flagPali Rohár1-8/+12
2012-08-11image_read returns size_t, so 0 when error or end of filePali Rohár1-2/+2
2012-08-11Rewrite Makefile, move WITH_DEVICE, WITH_USB and WITH_SQUEUES to MakefilePali Rohár1-0/+1
2012-08-10Fix ERROR macrosPali Rohár1-10/+10
2012-08-09Rename new fiasco2 to fiascoPali Rohár1-0/+595
2012-08-09Remove old fiasco.c codePali Rohár1-648/+0
2012-07-14Align also kernel imagePali Rohár1-5/+16
2012-06-23fiasco - remove dead codePali Rohár1-43/+0
2012-06-23Added option to use only image pieces for specific device / hw revisionPali Rohár1-7/+39
2012-06-23Fix compilation warningsPali Rohár1-1/+3
2012-06-23Fiasco image: Allow to specify device string without hw revision (then image ↵Pali Rohár1-15/+16
is valid for all hw revisions). Generating images should be complete!
2012-06-23Fixed creating fiasco images, added param version: for specifing sw-ver. Now ↵Pali Rohár1-49/+106
generated fiasco images are valid for nokia flasher.
2012-06-23Rename fwname to swverPali Rohár1-4/+4
2012-06-23Fix unpacking fiasco images (check for number of subsections). Now unpacking ↵Pali Rohár1-14/+21
is complete!
2012-06-23Fix memory problems when unpacking fiasco imagesPali Rohár1-5/+16
2012-06-23Unpacking fiasco - added support for FW headers (FW name)Pali Rohár1-10/+30
2012-06-23Fix creating fiasco images - added support for specifing device, hwrevs, ↵Pali Rohár1-22/+137
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-23Rename hwrev to hwrevs and fix unpacking fiasco images. hwrevs do not have ↵Pali Rohár1-11/+21
to be separated by nullterm if size of hwrev is 8.
2012-06-23* Apply Pali Rohár patch - Add support for device and hw revisions ↵pancake1-14/+79
specified in hw pieces - Updated documentation - Fixed problems when unpacking - Ready for mmc and cold flashing
2011-12-16* Apply Pali Rohár patch fixing RX51 Fiasco Image parsingpancake1-18/+29
2009-12-21* Fix segmentation fault with -O2 while unpacking (thanks for reporting) * ↵pancake@flubox1-21/+43
Various random checks to ensure read/write ops are success
2009-10-17* Added support for local n900 nand dump * Do some code cleanup, update ↵pancake@localhost.localdomain1-1/+1
headers from 2007 to 2009 :) - Fix warning messages
2008-12-14* Minor stetical fixupspancake1-1/+0
* Cut 0.4 release :)
2008-12-08* Implement and test direct file FIASCO flash - openfiasco receives options ↵pancake1-19/+31
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.