掌機 - Miyoo Mini Plus - Repack uImage.xz



Repack

$ dd if=mtdblock1 of=Image.xz bs=1 skip=64
$ mkimage -A arm -O linux -T kernel -C lzma -a 0x20008000 -e 0x20008000 -n "Linux kernel uImage" -d Image.xz uImage.xz
    Image Name:   Linux kernel uImage
    Created:      Thu Jun 29 22:12:30 2023
    Image Type:   ARM Linux Kernel Image (lzma compressed)
    Data Size:    2097088 Bytes = 2047.94 KiB = 2.00 MiB
    Load Address: 20008000
    Entry Point:  20008000

U-Boot

SigmaStar # fatload mmc 0 0x22000000 uImage.xz 0 0
SigmaStar # bootm 0x22000000