lonelyfool / lpunpack_and_lpmake Goto Github PK
View Code? Open in Web Editor NEWandroid super.img tools
android super.img tools
lpdump
, when built on Ubuntu 20.04, crashes immediately on startup:
$ ./bin/lpdump
Segmentation fault
@LonelyFool
Thanks for the build script.
Along with it, please share prebuilt binaries as releases for both Linux and Windows too.
Thanks
Thanks for making this available.
When using the example from the documentation at https://android.googlesource.com/platform/system/extras/+/master/partition_tools/README.md
of
lpmake --device-size 10240000000 \
--metadata-size 65536 \
--metadata-slots 2 \
-o /tmp/super.img \
-p "cache:2da85788-f0e1-4fda-9ee7-e5177eab184b:none:67108864" \
-i "cache=out/target/hikey960/cache.img"
I get "Partition must have a valid size." error
--device-size=auto does not help
Can you provide a working example please?
+ clang++ -std=c++17 -stdlib=libc++ -I../lib/include -static -D_FILE_OFFSET_BITS=64 -o ../bin/lpmake lpmake.cc ../lib/lib/liblp.a ../lib/lib/libsparse.a ../lib/lib/libext4_utils.a ../lib/lib/libz.a ../lib/lib/libbase.a ../lib/lib/fmtlib.a ../lib/lib/liblog.a ../lib/lib/libcrypto_utils.a ../lib/lib/libcrypto.a -lpthread /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_GetGR':
(.text+0x2340): multiple definition of _Unwind_GetGR'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_GetGR+0x0): first defined here /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_SetGR':
(.text+0x2390): multiple definition of _Unwind_SetGR'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_SetGR+0x0): first defined here /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_GetIP':
(.text+0x23e0): multiple definition of _Unwind_GetIP'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_GetIP+0x0): first defined here /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_SetIP':
(.text+0x2410): multiple definition of _Unwind_SetIP'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_SetIP+0x0): first defined here /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_GetLanguageSpecificData':
(.text+0x2420): multiple definition of _Unwind_GetLanguageSpecificData'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_GetLanguageSpecificData+0x0): first defined here /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_GetRegionStart':
(.text+0x2430): multiple definition of _Unwind_GetRegionStart'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_GetRegionStart+0x0): first defined here /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_RaiseException':
(.text+0x25c0): multiple definition of _Unwind_RaiseException'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_RaiseException+0x0): first defined here /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_ForcedUnwind':
(.text+0x2960): multiple definition of _Unwind_ForcedUnwind'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_ForcedUnwind+0x0): first defined here /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_Resume':
(.text+0x2b40): multiple definition of _Unwind_Resume'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_Resume+0x0): first defined here /usr/bin/x86_64-unknown-linux-gnu-ld: /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/libgcc_eh.a(unwind-dw2.o): in function
_Unwind_DeleteException':
(.text+0x2e30): multiple definition of _Unwind_DeleteException'; /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/12.2/../../../../lib64/libc++.a(UnwindLevel1.c.o):(.text._Unwind_DeleteException+0x0): first defined here clang-15: error: linker command failed with exit code 1 (use -v to see invocation) chmod: cannot access 'lpunpack_and_lpmake/bin/*': No such file or directory
Hi. is it possible to compile the code for windows? it would be very convenient. I don’t know how. I ask for your help.
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.