Coder Social home page Coder Social logo

angerman / meson64-tools Goto Github PK

View Code? Open in Web Editor NEW
23.0 4.0 7.0 4.29 MB

License: MIT License

Makefile 1.89% C 84.75% Nix 0.01% Dockerfile 0.08% CMake 0.53% Shell 7.51% C++ 0.14% Python 3.28% Meson 0.20% HTML 0.61% Roff 0.11% Tcl 0.01% Perl 0.86% SmPL 0.01% Batchfile 0.01% GDB 0.03%

meson64-tools's Introduction

The Amlogic S922X boot

Some tools to replicate the following:

packaging
=========
./aml_encrypt_g12b --bl30sig --input bl30_new.bin	       --output bl30_new.bin.g12a.enc --level v3
./aml_encrypt_g12b --bl3sig  --input bl30_new.bin.g12a.enc --output bl30_new.bin.enc      --level v3 --type bl30
./aml_encrypt_g12b --bl3sig  --input bl31.img              --output bl31.img.enc          --level v3 --type bl31
./aml_encrypt_g12b --bl3sig  --input bl33.bin              --output bl33.bin.enc          --level v3 --type bl33 --compress lz4
./aml_encrypt_g12b --bl2sig  --input bl2_new.bin           --output bl2.n.bin.sig
./aml_encrypt_g12b --bootmk                                --output u-boot.bin            --level v3 \
                   --bl2 bl2.n.bin.sig --bl30 bl30_new.bin.enc --bl31 bl31.img.enc --bl33 bl33.bin.enc \
                   --ddrfw1 ddr4_1d.fw   --ddrfw2 ddr4_2d.fw   --ddrfw3 ddr3_1d.fw     --ddrfw4 piei.fw \
                   --ddrfw5 lpddr4_1d.fw --ddrfw6 lpddr4_2d.fw --ddrfw7 diag_lpddr4.fw --ddrfw8 aml_ddr.fw

Clone https://github.com/LibreELEC/amlogic-boot-fip, and put the data files (e.g. ordroid-n2/* or odroid-n2-plus/*) into the data-files folder.

Clone https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic.git to build the amlogic u-boot.bin

git clone https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic.git
nix-shell -p '[ pkgsCross.aarch64-multiplatform.buildPackages.binutils pkgsCross.aarch64-multiplatform.stdenv.cc bison yacc flex bc ]'
make CROSS_COMPILE=aarch64-unknown-linux-gnu- odroid-n2_defconfig
make CROSS_COMPILE=aarch64-unknown-linux-gnu-

(See also ./doc/board/amlogic/odroid-n2.rst in u-boot-amlogic).

The u-boot.bin will be the bl33.bin (see above!).

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.