Giter Site home page Giter Site logo

ochimizuhatsuka / x210_bsp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from colourfate/x210_bsp

0.0 1.0 0.0 227.02 MB

在九鼎x210开发板上移植uboot-2017、linux-4.10和busybox-1.29

Makefile 0.77% C 94.51% Assembly 1.71% C++ 1.85% Objective-C 0.58% Shell 0.13% Perl 0.18% Awk 0.01% Python 0.22% GDB 0.01% sed 0.01% Yacc 0.02% Lex 0.01% UnrealScript 0.01% Gherkin 0.01% XS 0.01% Perl 6 0.01% Roff 0.01% Clojure 0.01% M4 0.01%

x210_bsp's Introduction

概述

九鼎s5pv210开发板移植的bsp,平台信息如下:

开发板 九鼎x210(s5pv210)
bootloader u-boot-2017.09
kernel linux-4.10.0
rootfs buildroot(busybox-1.29)
toolchain arm-cortexa9-linux-gnueabihf-4.9.3

目前能够使用SD卡开机启动,挂载rootfs并进入命令行。

使用方法

1. 配置toolchain

  • 下载工具链
  • 将工具链加入到环境变量并配置为arm-linux-,运行arm-linux-gcc -v可查看版本号为4.9.3
  • ==提供的工具链基于64位Linux,32位不能运行!==如不使用此处提供的工具链,也需要将本地的工具链配置为arm-linux-

2. SD卡分区

  • uboot占用SD卡前10MB空间,linux内核挂载SD卡的第一分区,文件系统格式为ext4。
  • 使用fdisk将SD卡分区,分区号为1,起始扇区是20480(10MB),结束扇区默认。然后将1号分区格式化为ext4文件系统。
  • 具体分区步骤参考我的博客

3. 修改build.sh文件

# sd卡设备文件
SDDEV=/dev/sdx
# sd卡挂载点
SDDIR=<SD卡目录>

打开源码根目录中的build.sh文件,找到以上两个变量,指定SD卡的设备文件位置和SD卡挂载点位置。

4. 编译

./build.sh

编译全部文件,其中编译buildroot时会从网络下载busybox等支持包,因此需==保持网络畅通==。编译完成全部文件输出到output/目录。

5. 下载到SD卡

sudo ./build.sh upload /dev/sdx

插入SD卡,确认SD卡设备文件并替换sdx,然后执行。完成后进入SD卡中将rootfs.tar解压。

6. 启动

将SD卡插入x210开发板的==SD2==插槽并启动。

x210_bsp's People

Contributors

colourfate 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.