Giter VIP home page Giter VIP logo

jpruiz84 / riscv64-nommu-buildroot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from damien-lemoal/riscv64-nommu-buildroot

0.0 1.0 0.0 136.34 MB

License: Other

Makefile 19.04% Arc 0.02% Shell 1.78% Tcl 0.06% Batchfile 0.09% M4 0.11% Lua 0.08% C 50.91% C++ 14.46% PHP 0.19% Assembly 0.09% XC 0.32% XS 0.31% Awk 0.09% Objective-C 0.20% Roff 11.84% CMake 0.05% HTML 0.10% Dockerfile 0.01% Perl 0.27%

riscv64-nommu-buildroot's Introduction

This repository is no longer maintained !!

Please use my buildroot repository instead:

https://github.com/damien-lemoal/buildroot

To build a Kendryte K210 boot image with kernel 5.8, do:

> git clone [email protected]:damien-lemoal/buildroot.git
> cd buildroot
> make kendryte_k210_config
> make

The bootable image will be output/images/loader.bin. Flash it to the board using kflash.py.

Buildroot for RISC-V 64 NOMMU

Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

  1. run 'make menuconfig'
  2. select the target architecture and the packages you wish to compile
  3. run 'make'
  4. wait while it compiles
  5. find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot. Have fun!

Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: [email protected] You can also find us on #buildroot on Freenode IRC.

If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches

For riscv64 nommu uClibc toolchain build

$ make riscv64_nommu_defconfig
$ make

The compiled toolchain is in output/host. Copy this somewhere:

$ sudo cp -r output/host /opt/riscv64-uclibc

To compile a minimal busybox suitable for low-memory nommu system, use this toolchain together with the minimal configuration file provided.

$ cd riscv64-uclibc-nommu/
$ git clone git://git.busybox.net/busybox.git
$ cd busybox
$ make buildroot/riscv64-uclibc-nommu/busybox-small.config
$ make SKIP_STRIP=y
$ make SKIP_STRIP=y install

The base files usable for an initramfs image can be found in the directory _install/.

For conveniance, a precompiled toolchain, a set of initramfs files and its cpio image file are present in the riscv64-uclibc-nommu directory.

For Kendryte K210 boards

The built (or precompiled) initramfs cpio image file can be used as the default k210.cpio initramfs builtin the kernel (as referenced by nommu_k210_defconfig).

For conveniance, the K210 kernel support patches can be found in riscv64-uclibc-nommu/kernel-patches directory. A precompiled bootable kernel image including these patches and the simple initramfs.cpio userspace can be found in the kernel-image directory.

riscv64-nommu-buildroot's People

Contributors

jacmet avatar gustavoz avatar tpetazzoni avatar bkuhls avatar yann-morin-1998 avatar ffontaine avatar baruchsiach avatar erikbandersen avatar romainnaour avatar culssw avatar fperrad avatar aldot avatar arnout avatar yegorich avatar aduskett avatar pseiderer avatar patrickdepinguin avatar joerg-krause avatar tsed avatar asafkahlon avatar vapier avatar fabioestevam avatar wbx-github avatar maximeh avatar lucaceresoli avatar pauliuszaleckas avatar spdawson avatar ricardo-martincoski avatar rc-matthew-l-weber avatar elebihan avatar

Watchers

James Cloos 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.