GithubHelp home page GithubHelp logo

orangepi-xunlong / orangepi_h3_linux Goto Github PK

View Code? Open in Web Editor NEW

This project forked from orangepi-h3-linus/orangepi_h3_linus

125.0 33.0 84.0 317.48 MB

Contains uboot and kernel source code, there are two kernel versions, one is 3.4.113, the other is 4.9. You can choose different kernel version to build your own image using build scripts

orangepi_h3_linux's Introduction

Build H3 image For OrangePi

The OrangePi-Kernel contains Linux kernel sources (3.4.113 and 4.9) adapted for OrangePi H3 boards

  • make 3.4.113 uImage
  • make 4.9 uImage and uboot
  • make rootfs
  • make Image
  • how to install desktop and copy os to emmc

  • make 3.4.113 uImage
cd OrangePI-Kernel                             #首先进入OrangePI-Kernel目录
sudo ./build_linux_kernel.sh clean clean       #clean kernel
sudo ./build_linux_kernel.sh plus              #plus为例,编译kernel,在build/下面生成uImage_OPI-PLUS

#如编译plus,plus2e,plus2对应是build/uImage_OPI-PLUS,其他的型号对应build/uImage_OPI-2,编译出来的modules和firmware在build/lib下面
  • make 4.9 uImage and uboot
cd OrangePI-Kernel
sudo ./build_mainline_uboot.sh [2 | pc | plus | lite | pc-plus | one | plus2e]
sudo ./build_linux_kernel_mainline.sh clean
sudo ./build_linux_kernel_mainline.sh opi

#mainline uboot的烧录方法
#sudo dd if=/dev/zero of=/dev/sdc bs=1k seek=8 count=1015
#sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdc bs=1k seek=8
#主线内核启动方法:boot分区除了script.bin,uImage,还要有boot.scr。在编译uboot时生成,在build/uboot下面
  • **make rootfs **
cd OrangePi-BuildLinux
vim params.sh                                  #按照需求选择发行版等

example(例):
#distro="precise"
distro="xenial"
#distro="utopic"
#distro="vivid"
#distro="wily"
repo="http://ports.ubuntu.com/ubuntu-ports"    #需要请打开注释,不需要则注释

sudo ./create_image                            #在当前目录生成boot分区和rootfs分区
  • make Image
#example(linux-3.4.113)
sudo ./image_from_dir ./linux-xenial orangepi ext4 opi-plus
#linux-xenial是create_image生成的文件系统分区 orangepi是镜像的名字 ext4是rootfs分区的格式 opi-plus选择板子的型号

#example(linux-4.9)
sudo ./image_from_dir_mainline ./linux-xenial orangepi ext4 opi

sudo dd bs=4M if=orangepi.img of=/dev/sd*      #安装系统至SD卡
  • how to install desktop and copy os to emmc
fs_resize                                         #First, after BOOTING,to resize linux partition to fill sd card
reboot
install_lxde_desktop               #install desktop run,please wait
install_to_emmc                  #install os to emmc

orangepi_h3_linux's People

Contributors

awaismasood avatar cbbc avatar orangepi-xunlong 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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