Giter VIP home page Giter VIP logo

mkimage's Introduction

内核签名工具

​ 该工具在可执行镜像前加入一个uboot引导所需的64字节头,工具本身独立于平台,可在装有GCC的任意平台编译运行,主要解决无法在mac os下使用mkimage工具问题

struct image_header {
    unsigned int magic; //魔术字 固定为0x27051956
    unsigned int hcrc; //头部CRC校验码
    unsigned int time; //打包时间
    unsigned int size; //可执行镜像大小
    unsigned int load; //镜像加载位置
    unsigned int ep; //镜像启动位置
    unsigned int dcrc; //镜像CRC校验码
    unsigned char os; //镜像所含系统类型
    unsigned char arch;//镜像目标CPU
    unsigned char type;//镜像类型
    unsigned char comp;//镜像压缩类型
    unsigned char name[IH_NMLEN];//镜像名字
};

编译

gcc -o mkimage mkimage.c

用例

./mkimage -A arm64 -O linux -T kernel -C none -a 0x40200000 -e 0x40200000 -n "gaussianprince" -d src_file target_file 

mkimage's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.