Menu

Booting to recovery

Chapter 9
Anonymous
2017-05-12
2017-05-12
  • Anonymous

    Anonymous - 2017-05-12

    In section 'Booting to Recovery' there is a configuration

    label 5. x86vbox recovery (ROOT=/dev/sda2)
    menu x86vbox_recovery
    kernel x86vbox/kernel
    append ip=dhcp console=ttyS3,115200 initrd=x86vbox/ramdisk-recovery.img androidboot.hardware=x86vbox DEBUG=2 SRC=/android-x86vbox ROOT=/dev/sda2

    however the ramdisk-recovery.img does not get produced during make process. Is there a separate make task that need to be executed as it's not mentioned in the chapter.

     
  • Roger Ye

    Roger Ye - 2017-05-12

    To make ramdisk-recovery.img, there are two ways to do it. You can simply remove $OUT/ramdisk-recovery.img and $OUT/recovery. After that, you build again.

    If you just want to do a quick test by modifyin the content $OUT/reocovery, you can generate ramdisk-recovery.img using the below command.
    ramdisk:
    $ $(MKBOOTFS) -d ${OUT}/system ${OUT}/recovery/root | minigzip > ${OUT}/ramdisk-recovery.img

    You can refer to this Makefile that I use to build individual targets.
    https://github.com/shugaoye/x86vbox/blob/android-7.1.1_r4_x86vbox_ch14_r1/Makefile

     

Anonymous
Anonymous

Add attachments
Cancel