Code Monkey home page Code Monkey logo

buildroot_aw-ol's Introduction

使用buildroot编译构建系统

编译完整系统或者各个部分

  • 我们编译使用的是ubuntu 18.04 系统,在进行如下编译之前需要先配置基本编译环境,参考下述命令来安装必须的软件包。
book@virtual-machine:~/Neza-D1/buildroot-2021$ sudo apt-get install -y which sed make binutils build-essential  gcc g++ bash patch gzip bzip2 perl  tar cpio unzip rsync file  bc wget python ncurses5  bazaar cvs git mercurial rsync scp subversion android-tools-mkbootimg
  • 使用git命令clone源码
book@virtual-machine:~$ mkdir -p  ~/Neza-D1/ &&  cd ~/Neza-D1/
book@virtual-machine:~/Neza-D1$ git clone https://gitee.com/weidongshan/neza-d1-buildroot.git buildroot-2021

构建完整系统镜像

  • 编译完整系统镜像
book@virtual-machine:~/Neza-D1/buildroot-2021$ make  neza-d1_defconfig  //加载配置文件 
book@virtual-machine:~/Neza-D1/buildroot-2021$ make  all //完整编译系统
  • 编译生成的系统镜像在output/image目录下,其中sdcard.img为完整的系统镜像。
book@virtual-machine:~/Neza-D1/buildroot-2021/output/images$ ls
board.dtb         boot.img          boot_package.fex  boot.vfat      env.cfg  fw_dynamic.bin  fw_jump.bin  Image        rootfs.cpio     rootfs.ext2  rootfs.tar  sunxi.fex              uImage
boot0_sdcard.fex  boot_package.cfg  boot.scr          dragonsecboot  env.fex  fw_dynamic.elf  fw_jump.elf  ramdisk.img  rootfs.cpio.gz  rootfs.ext4  sdcard.img  u-boot-sun20iw1p1.bin
book@virtual-machine:~/Neza-D1/buildroot-2021/output/images$

单独编译各个部分

  • 单独编译 opensbi阶段
book@virtual-machine:~/Neza-D1/buildroot-2021$  make opensbi-rebuild V=1
  • 单独编译 uboot阶段
book@virtual-machine:~/Neza-D1/buildroot-2021$  make uboot-rebuild V=1
  • 单独编译 kernel阶段
book@virtual-machine:~/Neza-D1/buildroot-2021$  make linux-rebuild V=1
  • 单独编译文件系统
    • 指定完成工具链 系统配置 需要安装的包 以及所需的格式 执行如下命令,最后生成的镜像在 output/image目录下。
book@virtual-machine:~/Neza-D1/buildroot-2021$ make  all //完整编译系统

烧写启动

  • windows下使用wind32diskimage工具烧写,Linux下直接使用dd 命令完整写入

image-20210701105748748

  • 烧写成功后把卡插入开发板 开发板上电 即可自动从sd卡启动进入系统

image-20210701105925227

ToDoList

已实现功能

  • 支持平头哥 rv64d外部工具链。
  • 支持buildroot构建 Tina sdk 内 Thead c910 opensbi 。
  • 支持buildroot 构建Tina sdk 内 u-boot 2018
  • 支持buildroot构建Linux kernel 5.4自动生成Image并后续打包为boot.img
  • 自动构建并打包生成SD卡 busybox udev最小系统启动。

未实现 计划实现

  • 支持qt python mqtt gst等常用软件包。
  • 支持systemD init服务。
  • 支持板载wifi 模块。

如何参与此项目

提交PR

提交issues

buildroot_aw-ol's People

Contributors

aiminickwong avatar codebug8 avatar weidongshan 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.