Vojtěch Boček
2aed84dc7f
Merge pull request #5 from rokibhasansagar/patch-1
...
CI: Update test environment
2020-04-24 18:08:39 +02:00
Rokib Hasan Sagar
727f2b6675
CI: Update test environment
2020-03-13 20:09:51 +06:00
Vojtěch Boček
c24608fcfc
Merge pull request #3 from zhuowei/patch-1
...
Fix a memset call in libbootimg_init_new
2017-10-02 12:19:02 +02:00
zhuowei
f760f8c777
Fix a memset call in libbootimg_init_new
...
The original memset call has the arguments reversed. It doesn't seem to affect anything since the header is set later anyways, but GCC catches this as a warning.
2017-09-23 00:12:07 -04:00
Vojtěch Boček
cc1f4ba80d
[0.2.3] Bump version number after ELF support merge
2016-04-03 14:42:22 +02:00
Vojtěch Boček
577b38035a
Merge pull request #1 from AdrianDC/master
...
libbootimg: Add support Sony ELF boot image format
2016-04-03 14:41:35 +02:00
AdrianDC
16ac77b2d7
libbootimg: Fix errors translation
...
Change-Id: Ib0fa43c442ed6607c0f2d21c2e17c63300f91961
2016-04-02 00:28:22 +02:00
AdrianDC
b74caca2fa
libbootimg: Add support Sony ELF boot image format
...
* Format used on SONY devices with ELF bootloaders,
for example the Xperia SP Huashan device
* libbootimg_load_header kept with a temporary hdr_elf
in order to extract data for MultiROM recovery
* Allocate the elf header dynamically to prevent
stack overflows that may occur during install
Change-Id: Ie545c6286473461e2653316d1ff294aef901343b
Signed-off-by: AdrianDC <radian.dc@gmail.com >
2016-04-02 00:28:21 +02:00
Vojtech Bocek
6607d1c3b9
[0.2.2] Properly load blobs from boot images with prepended data
v0.2.2
2015-01-08 23:56:06 +01:00
Vojtech Bocek
abdae88df0
[0.2.1] Handle HTC boot images with prepended signature
v0.2.1
2015-01-08 23:23:54 +01:00
Vojtech Bocek
1b93517881
Fix typo in include guard in libbootimg.h
...
Thanks clang!
2014-12-05 00:05:26 +01:00
Andreas Schneider
f3d88ccd6c
mk: Add support to build a host executable.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2014-11-17 16:04:55 +01:00
Vojtech Bocek
aeba6bf57b
Fix bbootimg's exit codes
2014-02-09 15:16:45 +01:00
Vojtech Bocek
7184ae79de
Fix documentation of libbootimg_write_img_* functions
2014-02-06 18:26:08 +01:00
Vojtech Bocek
7f75ec235f
[0.2.0] Rewrite the whole library
...
* Rewrite libbootimg to use "blobs" concept - kernel, initrd,
second stage and DTB are all objects of same type, which
enabled me to make functions shorter (they don't have to deal
with each of them individualy).
* Move image size and config related functions to bbootimg.c - they
should not be in the library.
* Document all library functions
* Clean-up the API
v0.2.0
2014-02-06 18:11:34 +01:00
Vojtech Bocek
d0779ad58a
[0.1.12] Properly handle fread() failure in load_part()
v0.1.12
2013-12-14 16:45:39 +01:00
Vojtech Bocek
fc497f0fcb
Return EINVAL when trying to dump blob which was not loaded
2013-12-14 16:45:17 +01:00
Vojtech Bocek
d502f7fe82
Fix error checking of fread() in libbootimg_init_load_parts
...
* Refuse to load too short boot.img, they are corrupted
2013-12-14 16:34:31 +01:00
Vojtech Bocek
8168907320
[0.1.11] Add support for DTB
v0.1.11
2013-12-13 20:05:28 +01:00
Vojtech Bocek
a7464e0600
[0.1.10] Enable combination of -f and -c arguments
...
* -c has to be *after* -f
v0.1.10
2013-12-09 01:02:37 +01:00
Vojtech Bocek
10a5da6efb
[0.1.9] Add hash of 'name' to the header's id fields
v0.1.9
2013-10-20 01:35:20 +02:00
Vojtech Bocek
0202a1d85a
Fix hash calculation for second stage part
2013-10-20 01:26:48 +02:00
Vojtech Bocek
ee3e7ca4c3
ENOKEY to EIO in libbootimg_load_header, restores build with mingw
2013-10-20 00:18:30 +02:00
Vojtech Bocek
6ffb39ab2c
[0.1.8] bbootimg: print strerror when image load fails in -i and -j
v0.1.8
2013-10-20 00:12:19 +02:00
Vojtech Bocek
18bcdcb239
Check for header's "ANDROID!" magic and that file size > header size
...
* Prevents printing out info about files which are not boot images
2013-10-20 00:11:38 +02:00
Vojtech Bocek
9f1348e9c8
[0.1.7] Fix libbootimg_load_config_line() for lines without whitespace
...
* Until now, -c "name=nothing" would result in name argument
being set to "othing" and libbootimg wouldn't check last letter
of argument name, means that "namz = nothing" would set name
value.
v0.1.7
2013-10-19 23:44:19 +02:00
Vojtech Bocek
5b39bee0b7
Read only header for -i and -j options
2013-10-19 20:39:38 +02:00
Vojtech Bocek
88a8327596
[0.1.6] Fix trailing NULL character in JSON output
2013-10-19 20:30:01 +02:00
Vojtech Bocek
58ec2c95e7
[0.1.5] Move version defines to libbootimg.h
v0.1.5
2013-10-16 19:00:00 +02:00
Vojtech Bocek
8e39d20789
Remove unused veriable in libbootimg_write_img
2013-10-16 18:53:29 +02:00
Vojtech Bocek
c3944573cd
Add libbootimg_init_load_parts() to load only needed bits (kernel, ...)
2013-10-16 18:53:19 +02:00
Vojtech Bocek
7e526104a1
[0.1.4] Add option to print image info in JSON
v0.1.4
2013-10-09 15:42:56 +02:00
Vojtech Bocek
774e5fb16f
[0.1.3] Bump version after aef32bf729
v0.1.3
2013-09-29 20:26:37 +02:00
Vojtech Bocek
aef32bf729
bbootimg: add -m switch which disables padding image to bootsize bytes
2013-09-29 19:25:43 +02:00
Vojtech Bocek
ecd5a37ff2
Add config params to help string
2013-09-29 19:06:41 +02:00
Vojtech Bocek
df6265f324
Add bbootimg_recovery target which builds dynamic binary for TWRP
2013-09-29 00:40:08 +02:00
Vojtech Bocek
e361f1f5b3
Create src and include folders, update README
2013-09-24 16:49:45 +02:00
Vojtech Bocek
b6eac61996
bbootimg: copy tmp to final boot.img instead of using rename()
...
* bbootimg can now be used on mmcblk devices directly
2013-09-23 21:49:28 +02:00
Vojtech Bocek
45b7919405
[0.1.2] Use strtoll instead of strtol, fixes address loading on ARM
v0.1.2
2013-09-23 21:10:30 +02:00
Vojtech Bocek
8cdf32d432
Use 'extern "C"' in libbootimg.h
2013-09-23 20:15:48 +02:00
Vojtech Bocek
becbe3aaa0
bbootimg: fix info string, print help when there are no known arguments
2013-09-23 18:25:15 +02:00
Vojtech Bocek
8513adaf66
[0.1.1] Fix overflow in libbootimg_init_new()
v0.1.1
2013-09-23 17:11:07 +02:00
Vojtech Bocek
a4477364ac
Initial commit
2013-09-23 16:56:40 +02:00