How to enter recovery mode
1) after the board is powered on, long press the power button until the recovery mode is entered
2) after entering the main system, input reboot recovery through the serial port, or use the ADB reboot recovery command
Recovery ota upgrate
After entering recovery, copy the kvim3-ota-eng.root.zip upgrade package generated by the source code to disk u,
and select apply update from ext to upgrade, the upgrade does not erase the data partition.
Modify recovery text size
Android recovery has two kinds of fonts by default, one is 12x22, and the other is 18x32. The corresponding font size is obtained from the PNG image under recovery,
and the corresponding font size is asfollows
1 | root@lxx-NUC10i7FNH:/home/lxx/Downloads/android_khadas/bootable/recovery/fonts# ls -l |
variable recovery_font in build/make/core/Makefile specifies the font size to use
1 | ifneq (,$(filter xxxhdpi 560dpi xxhdpi 400dpi xhdpi,$(recovery_density))) |
if you need to customize the text size of recovery, you can add a picture similar to 12x22. PNG. You only need to modify the length and width pixel size of the PNG picture through PS software,
and then add it to the source directory bootable / recovery / fonts to recompile the upgrade package. You can see the effect of the upgrade
note: The corresponding font size of 12x22.png is 12 pixels in length and 22 pixels in height. The actual pixel size of 12x22.png is 1152x44, 12 = 1152 / 96, 22 = 44 / 2
How to use common commands under recovery
After entering recovery, some common commands such as CP, LS and VI can’t be used directly, They can only be used through busybox, such as
1 | vi /etc/recovery.kl |