-
Notifications
You must be signed in to change notification settings - Fork 12
miZy disk partitions
Art Nikpal edited this page Jan 30, 2019
·
1 revision
mizy not use common file systems as ext4 at boot time
linux kernel started from uboot script full mizy image is simple initrd / squashfs image, and loaded from memory
all boot scripts and file writes as raw-data and available via raw-read from disk by offsets
root@mizy:~# cat /proc/cmdline
ramdisk_size=16384 mmc_core.removable=1 hdmi.audio=EDID:0 threadirqs itype=openwrt root=/dev/ram0 rw console=tty1 console=ttyS0,115200 mtdparts=W25q128-flash.0:512k(uboot),64k(script),64k(dtb),3712k(kernel),8256k(initrd),3776k(user),-@0(full) panic=10 consoleblank=0 loglevel=3 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 bootfrom=sd loadfrom=MMC0 loadseq=>MMC0 mmcparts=uboot=524288;script=65536;dtb=65536;kernel=3801088;initrd=8454144;user=3866624 btime=2.488
offset and size for kernel / initrd / user - may be different for another images uboot / script / dtb - usualy not changed
**mtdparts=W25q128-flash.0:512k(uboot),64k(script),64k(dtb),**3712k(kernel),8256k(initrd),3776k(user),-@0(full)
**mmcparts=uboot=524288;script=65536;dtb=65536;**kernel=3801088;initrd=8454144
root@mizy:~# hybrid
dd if=/dev/mmcblk0 bs=4096 skip=131 count=1
[i] size 16777216 + 8192 = 16785408
part size offset
---- ---- ------
uboot 524288 0
script 65536 524288
dtb 65536 589824
kernel 3801088 655360
initrd 8454144 4456448
user 3866624 12910592
root@mizy:~# hybrid help hybrid
read write mmc hybryd parts / like mtd parts
USAGE
hybrid [in|read|write|out|env|list] name [file]
EXAMPLES
hybrid list # display hybryd parts
hybrid read dtb | bin2fex > /tmp/script.fex # read script from disk parse and save
nano /tmp/script.fex # change script
fex2bin /tmp/script.fex | hybrid write dtb # write changed script back to disk
SEE ALSO
hybrid_fex_edit - change fex script and write back (for hybrid mode only)