GithubHelp home page GithubHelp logo

frederic / aml_bootloader_tool Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 10.0 16 KB

parse and regenerate the SHA-256 of bootloaders for Amlogic S905 SoC

License: GNU General Public License v3.0

C 100.00%

aml_bootloader_tool's People

Contributors

frederic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

aml_bootloader_tool's Issues

Segmentation fault (core dumped)

Segmentation fault (core dumped)

./aml_bootloader_tool bootloader.img H 2
fip_toc_header.name: a75a7544
fip_toc_header.serial_number: dd3ee05d
fip_toc_header.flags: 1712b7f29c66abdd
TOC ENTRY #2
fip_toc_entry.uuid: D3136362812394885C6DB30F12F9AB3C
fip_toc_entry.offset_address: 40ed74bc5e380543 (absolute: 0x40ed74bc5e38c543)
fip_toc_entry.size: 0xed657f44e4390d49
fip_toc_entry.flags: 0xd3b00658f0bfed06
Segmentation fault (core dumped)

Dmesg

traps: aml_bootloader_[4131] general protection fault ip:7fc73d14067d sp:7ffeba1897c8 error:0 in libc-2.27.so[7fc73cfb2000+1e7000]

Compile error

gcc -o aml_bootloader_tool -ltomcrypt aml_bootloader_tool.c

/tmp/cc5Kjhr8.o: In function hash_aml_img': aml_bootloader_tool.c:(.text+0x90): undefined reference to sha256_desc'
aml_bootloader_tool.c:(.text+0x95): undefined reference to register_hash' aml_bootloader_tool.c:(.text+0xa4): undefined reference to sha256_init'
aml_bootloader_tool.c:(.text+0x13d): undefined reference to sha256_process' aml_bootloader_tool.c:(.text+0x179): undefined reference to sha256_process'
aml_bootloader_tool.c:(.text+0x1b1): undefined reference to sha256_process' aml_bootloader_tool.c:(.text+0x1ca): undefined reference to sha256_done'
collect2: error: ld returned 1 exit status

Fix compile just move lib to and

gcc -o aml_bootloader_tool aml_bootloader_tool.c -ltomcrypt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.