Hi Yiping,
I get the point. I really want to know
(1) how to wording the bootargs so that the system will know it will boot into system 2 (what arguments or format I can use)
take this in the boot environment as an example:
==========================================================================================
bootcmd=run distro_bootcmd; run sd_bootcmd; env exists secureboot && esbc_halt;
bootcmd_mmc0=devnum=0; run mmc_boot
bootcmd_usb0=devnum=0; run usb_boot
==========================================================================================
How to write a system 2 in these arguments in my case must be in bootcmd_mmc0.
(2) Where or what partition should I save the second system. Is it under a different partition? if so do I need to mount that partition into the system first ?
or I am using lsdk1906 There are 4 partitions in the sd card:
/dev/mmcblk0p1 880K 72K 240K 24% /media/misc
/dev/mmcblk0p2 37M 14M 19M 42% /media/boot
/dev/mmcblk0p3 104M 3.1M 89M 4% /media/backup
/dev/mmcblk0p4 6.0G 481M 5.3G 9% /media/system
How can I take use of the backup partition? In other words how to make this partition bootable?
(3) When "modify u-boot environment variable boot_status as 1" is this done via the userspace? if so do I need to write a script like bash to change the values automatically or it is done by u-boot-tools? This should not be done manually.
Thanks !