TBD
- Patch U-Boot
You can patch U-Boot by rel_u-boot_patch_20230719.zip on Stock OS - Make bootable MicroSD for Linux OS
a). Reserve 8MB in head for kernel image
b). Create Partition 1 with FAT32 format
c). Create 'root' and 'dev' folders in root of Partition 1
d). Copy 'mininit' to root of Partition 1
e). Copy 'rootfs.squashfs' to root of Partition 1
- Flash kernel to MicroSD
$ sudo dd if=arch/arm/boot/uImage.xz of=/dev/sdX bs=1K seek=8
It boots into Linux OS if user presses SELECT button when power on. By default, it goes into Stock OS if without SELECT pressed.
$ cd docker
$ sudo docker build -t rpatch .
$ sudo docker image rm rpatch
$ cd kernel
$ sudo docker run -it --rm -u $(id -u ${USER}):$(id -g ${USER}) -v $(pwd):/kernel rpatch /bin/bash
Docker $ export PATH=/opt/prebuilt/bin/:$PATH
Docker $ cd /kernel
Docker $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make miyoo_mini_defconfig
Docker $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOADADDR=0x20008000 make all -j4
$ cd mininit
$ make
- Cannot power off