How does your flag_xxxx
and boot_xxxx
u-boot environment variables look before and after reboot?
Mines are:
root@AX3200-B24 ~ # fw_printenv | grep -e ^flag -e ^boot
boot_auto=bootxq
boot_fw0=run boot_rd_img;bootm
boot_fw1=run boot_rd_img2;bootm
boot_rd_img=nand read ${loadaddr} 0x2C0000 2000;image_blks 2048;nand read ${loadaddr} 0x2C0000 ${img_align_size}
boot_rd_img2=nand read ${loadaddr} 0x20C0000 2000;image_blks 2048;nand read ${loadaddr} 0x20C0000 ${img_align_size}
boot_wait=on
bootargs=console=ttyS0,115200n1 loglevel=8 swiotlb=512 rootfstype=squashfs firmware=0 uart_en=1
bootcmd=bootxq
bootdelay=5
bootmenu_0=1. Load firmware 0 and bootup.=run boot_fw0
bootmenu_1=2. Load firmware 1 and bootup.=run boot_fw1
bootmenu_2=3. Load firmware selected by Xiaoqiang and bootup.=run boot_auto
bootmenu_delay=30
flag_boot_rootfs=0
flag_boot_success=1
flag_boot_type=2
flag_flash_permission=1
flag_last_success=1
flag_ota_reboot=0
flag_show_upgrade_info=1
flag_try_sys1_failed=34
flag_try_sys2_failed=6
flag_upgrade_push=0
As you can see, my try_sys2
is sticked at 6
and the try_sys1
is counting.
While at it, prepare the /etc/rc.local
file with resetting those try_sys
values:
root@AX3200-B24 ~ # grep fw_setenv /etc/rc.local
#fw_setenv flag_try_sys1_failed 0
#fw_setenv flag_try_sys2_failed 0
(Yeah, they are commented out for now ...)