Giter VIP home page Giter VIP logo

meta-rockchip-initramfs's Introduction

Introduction

This repo contain a yocto layer, a set of init/recovery scripts. It will create a initramfs image, which could be used to support many fucntions, like battery monitor, recovery, multi-os boot.It's also possible to use it to create a sd-card recovery image.

Please note that it's not a complete system solution, it's rough. It's just offered to give you a thought.

Scenarios

+-------------------------------+
|                               |
|          eMMC U-boot          |
|                               |
+--------------+----------------+            +-----------+-------------+
               |        sd-card recovery     |     Kernel,Initramfs    |
               | ---------------------------->          in             |
               |                             |        SD-Card          | 
+--------------v----------------+            +-----------+-------------+ 
|                               |
|            Kernel             |
|                               |
+--------------+----------------+ 
               |
               |
+--------------|----------------+
|              |                |
|              |                |
|  +-----------v-------------+  |
|  |                         |  |
|  |       Initfamfs         |  |
|  |                         |  |
|  +-----------+-------------+  |
|              |                |
|              |                |
|  +-----------v-------------+  |
|  |                         |  | 
|  |         Rootfs          |  |
|  |                         |  | 
|  +-----------+-------------+  |
+-------------------------------+

Usage

Download rockchip yocto/oe environment.

http://opensource.rock-chips.com/wiki_Yocto

Configure with rk-minimal distro.

DISTRO=rk-minimal . ./setup-environment -b initramfs

Add meta-rockchip-initramfs to conf/bblayers.conf.

${BSPDIR}/sources/meta-rockchip-initramfs

Build initramfs image.

bitbake rk-initramfs-image

Copy image to the boot partiton.

cp initramfs/tmp/deploy/images/<MACHINE>/rk-initramfs-image.cpio.gz /media/user/boot

Set initrd in extlinux.conf. (Note: PARTUUID is not support in this initramfs because it need udev work. It will randomly select a ext4 partition if PARTUUID is used)

default yocto

label yocto
    kernel /zImage
    devicetree /rk3288-evb-act8846.dtb
    initrd /rk-initramfs-image-evb-rk3288.cpio.gz
    append console=ttyS2,115200n8 rw root=PARTUUID=69dad710-2c rootfstype=ext4 init=/sbin/init

meta-rockchip-initramfs's People

Contributors

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