Hello.
I have non-trivial task. I have the Uboot that has boot.scr with selector for boot partition on emmc device. In other words The emmc contains two groups of partitions (For image A, and image B):
boot_a
rootfs_a
boot_b
rootfs_b
Now I want to implement the update with some image (consists of boot and rootfs).
But Openwrt provides squashfs image that contains already some partition table.
On bare EMMC I have the partition table (— is just for simplifying.(start sector, end sector and etc)):
1 ------------- 83 BOOT
2 --------------83
But I have my own partition table, that I mentioned above. As I know it’s impossible to add partitioned image (sqaushfs-factory) in existing partition.
How can I update boot and rootfs partition separately using squashfs-factory.image.
Or it’s not possible from Uboot? I would to use one uploaded foctory img file for updating needed partitions (boot and rootfs) from it.
In such case I need to upload the -squashfs-factory.img, then unpack this (I can do this just on host machine using 7z), and upload each part (1-83 Boot and 2-83 to boot_a and rootfs_a respectively). I can upload these files separately after I unpack the squashfs image with 7z x command. Although, I would to have the way to upload one image file to be updated with tftp or something (no separated parts).
But how I can do this using Uboot environment?
The common task is: have multiple openwrt images on emms and have opportunity to boot one of them.
Thanks.