Recovery

From Rockchip open source Document
Jump to: navigation, search

We use buildroot to create recovery ramdisk. recovery image pack kernel, dtb, ramdisk into a Android boot image format.

Please make sure you have built kernel first. Please refer to build kernel page for how to build kernel.

In your linux SDK root directory. Use beclow command to build recovery image

./mk-recovery

It will generate the recovery image in buildroot/out/{config name}/images directory. For example, when you using rockchip_rk3399_recovery. image will be in buildroot/output/rockchip_rk3399_recovery/images/

buildroot/output/rockchip_rk3399_recovery/images/
├── recovery.img
├── rootfs.cpio
└── rootfs.cpio.gz

Please refer to Buildroot user manual for more detail about Buildroot