summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-12-07bios_extract: Fix issue with modules filenames containing slashHEADmasterPeter Lemenkov1-1/+8
Some modules have names, containing slash character(s), so we cannot simply write them to disk w/o either replacing slash with something else (backslash, for example) or until we create necessary directories. One example of such BIOS image can be found here: http://peter.fedorapeople.org/LinuxBIOS/ka7_ty.award.slash_in_modules_names.bios Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2010-12-07ami_slab: Add error checking.Michael Karcher1-9/+29
Check for not exceeding the file size and using all data in the file Also, write doesn't set errno on short writes, only on hard errors. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
2010-12-07phoenix: Add Fragment supportMichael Karcher1-17/+78
The field ExpLen2 is not a part of the module header, but part of the Compression scheme "5". Do not kill the first 4 bytes in unknown compression schemes, too.
2010-12-06phoenix: treat TrustedCore like standard phoenixMichael Karcher3-17/+2
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
2010-12-06phoenix: add Phoenix ServerBIOS 3Andrew Goodbody1-0/+1
Signed-off-by: Andrew Goodbody <ajg02@elfringham.co.uk>
2010-12-06Makefile: Allow CFLAGS overridePeter Lemenkov1-1/+1
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2010-04-24Add compatibility code for OSX.Stefan Reinauer8-17/+114
2010-04-22AMI_SLAB: Add mode to open() when extracting.Luc Verhaegen1-1/+2
Spotted by: Stefan Reinauer <stepan@coresystems.de>
2010-03-27Add leXXtoh() compat macros.Luc Verhaegen3-0/+33
Apparently debian lenny doesn't come with these in its libc :) Reported by Maciej Pijanka.
2010-03-27README: Document ami_slab.Luc Verhaegen1-0/+5
2010-03-27AMI: Re-organize buffer sizing so that messages make sense.Luc Verhaegen1-16/+17
Also adds LE->BE on bigpart->CSize.
2010-03-27AMI: If BufferSize = 0, also try to get bigpart size.Andrew Goodbody1-1/+1
2010-01-14AMI: IsComprs is a bit field.Michael Karcher1-1/+1
2010-01-14AMI: Improve file names for option roms and language packs.Michael Karcher1-10/+16
2010-01-14Add AMI SLAB extractor.Michael Karcher3-1/+160
2009-12-21Further fixes for AMIBIOS8.Luc Verhaegen3-4/+13
This time we handle images > 1MB.
2009-12-21Fixes for AMIBIOS8.Rudolf Marek1-1/+24
1) there is a flag for uncompressed module 0x90 instead of 0x80 dunno why 2) if the module size in rom > 0xffff some bytes before the structure are used as size, the second number looks like crc maybe. 3) the type of 0x40 and 0x60 is AMD CIM-X but it has compress set, but those modules are not. Tested on Asrock 939A785GMH/128M image.
2009-12-17Add Phoenix Trustedcore complaint.Luc Verhaegen3-1/+17
ENODECOMPROUTINEYET :)
2009-12-17New version of endian patch.Peter Lemenkov2-20/+22
I removed #ifdefs completely, since they already exists in <endian.h>, so we may simply (and safely) use htole[16,32]/le[16,32]toh. I also fixed nasty typo in my prevoius patch - I should use le[16,32]to h rather than htole[16,32]. However this renders to correct results,also, since both of them are actually just #defines around bswap_[16,32]. Also, I found one phoenix BIOS image and therefore was able to fix extraction from it on PowerPC. See patch. Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2009-12-17Fix for endianness in AMI extraction routines.Peter Lemenkov1-9/+10
Subj. Since I finally found AMI bios images among other ~ 2.5 Gbytes of proprietary bioses. Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2009-12-17Add Asus support, quickly, by checking for the right string.Luc Verhaegen1-0/+1
Same as award anyway.
2009-07-13Improve help, and parse -h/--help.Luc Verhaegen1-3/+6
As suggested by Uwe Hermann.
2009-07-13Add award support.Luc Verhaegen4-1/+77
2009-06-26Fix up ami to also dump enough info together with the files.Luc Verhaegen4-139/+76
And get rid of the silly argument parsing. We just take the filename.
2009-06-24Add freshly written phoenix.c.Luc Verhaegen8-833/+248
Fully replaces phnxdeco, which then gets removed. Program structure changed though, it always dumps on phoenix, but at the same time prints all sensible information to stdout.
2009-06-24Further small changes to phnxdeco.Luc Verhaegen1-2/+2
2009-06-17Get rid of TotalSec, use BCPSYS info always.Luc Verhaegen1-312/+95
2009-06-17Clean up DecodeM3.Luc Verhaegen1-32/+20
Apparently this is exactly the same algorithm as used for BCPVPD, just implemented awkwardly.
2009-06-17Clean up interface struct and pass values to decodeM3 directly.Luc Verhaegen3-47/+30
2009-06-17Move phnxfunc into phnxdeco and further cleanups.Luc Verhaegen4-562/+434
2009-06-17Phnxdeco: clean up warnings.Luc Verhaegen5-250/+126
2009-06-17Quick visual cleanup and removal of 3 pointless headers.Luc Verhaegen6-209/+89
2009-06-17Phnxdeco: run indent.Luc Verhaegen7-957/+1030
indent -kr -i4 -l160 --ignore-newlines
2009-06-17phnxdeco: Shuffle files around, create basic makefile.Luc Verhaegen13-944/+11
2009-06-17Apply patch from debians 0.33-2 version.Luc Verhaegen1-1/+1
2009-06-17Add phnxdeco-0.33.orig from a debian repository.Luc Verhaegen12-0/+2309
2009-06-17BCPVPD base algorithm is LZSS, so split this code off.Luc Verhaegen4-64/+116
2009-06-17Split amideco into ami.c and bios_extract.c.Luc Verhaegen6-210/+263
2009-06-17amideco: restructure for future layout change.Luc Verhaegen1-74/+93
2009-06-16Add bcpvpd tool.Luc Verhaegen4-7/+180
Also rework Makefile a bit and toss something into a README.
2009-06-16Add lh5_test to gitignore.Luc Verhaegen1-1/+1
2009-06-16Use LH5Decode for decoding ami lh5 compressed parts.Luc Verhaegen2-84/+43
2009-06-16Split lh5_extract into lh5_test, lh5_extract.o and lh5_extract.h.Luc Verhaegen4-116/+180
This to prepare inclusion into the bios decoder.
2009-06-16Allocate output filename.Luc Verhaegen1-12/+11
2009-06-15Move output file to mmap as well.Luc Verhaegen1-70/+46
With the sliding dictionary now implemented properly, this makes a whole lot more sense.
2009-06-11Sanitise decode interface into LH5Decode.Luc Verhaegen1-14/+15
2009-06-11Move CRC calculation outside of decoding.Luc Verhaegen1-36/+65
Also unmap/fclose/close files properly now.
2009-06-11Fix mmap usage.Luc Verhaegen2-2/+2
Mmap returns -1 for its return pointer, while intuitively one would expect NULL.
2009-06-11Mmap input file.Luc Verhaegen2-103/+136
2009-06-10lh5: remove leftover define and struct.Luc Verhaegen1-7/+0