Coder Social home page Coder Social logo

ouyancheng / flatheadbro Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 6.0 30.79 MB

A baremetal experiment of Allwinner D1, without FEL

CMake 4.23% C 25.02% Python 1.00% Assembly 69.54% C++ 0.21%
allwinner-d1 bare-metal d1 embedded-systems lichee-rv nezha risc-v

flatheadbro's People

Contributors

monstrous-moonshine avatar ouyancheng 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

Watchers

 avatar  avatar

flatheadbro's Issues

Why does the boot0-header definition is sligtly different from sunxi's official definition?

Thank you a lot for your work! I learned from your repository. But I found that the boot0-header definition differs from SUNXI's official one as illustrated in https://linux-sunxi.org/EGON. Is there any customized modification because this is a RISC-V chip?

The official one says that the BT0 is something like this
image

But the definition in your repo is

/******************************************************************************/
/*                              file head of Boot                             */
/******************************************************************************/
typedef struct _Boot_file_head {
    uint32_t  jump_instruction;   /* one intruction jumping to real code */
    uint8_t   magic[MAGIC_SIZE];  /* ="eGON.BT0" */
    uint32_t  check_sum;          /* generated by PC */
    uint32_t  length;             /* generated by PC */
    uint32_t  pub_head_size;      /* the size of boot_file_head_t */
    uint8_t   pub_head_vsn[4];    /* the version of boot_file_head_t */
    uint32_t  ret_addr;           /* the return value */
    uint32_t  run_addr;           /* run addr */
    uint32_t  boot_cpu;           /* eGON version */
    uint8_t   platform[8];        /* platform information */
} boot_file_head_t;

And because of my lack of embedded system development experience, I cannot find a similar definition in the official u-boot repository https://github.com/smaeul/u-boot. So could you please tell me where did you get the public header layout?

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.