openwrtv3/package/boot
John Crispin 24a0269b71 ar71xx: qihoo-c301: reset imageNtrynum after each successful boot.
Qihoo C301 has 2 flash chips of which one is used as primary and the
other is used as backup.  OEM U-Boot will try to boot an activeregion N
with imageNstatus=0 and imageNtrynum <= imagemaxtry.  If such a region
is found, bootloader will try to increment imageNtrynum and boot it.

This patch tries to reset imageNtrynum after each successful boot (if
the boot process reaches the execution of /etc/init.d/done).

	root@OpenWrt:/# hexdump -C -n 128 /dev/mtdblock9
	00000000  9e f3 63 91 61 63 74 69  76 65 72 65 67 69 6f 6e  |..c.activeregion|
	00000010  3d 31 00 69 6d 61 67 65  31 73 74 61 74 75 73 3d  |=1.image1status=|
	00000020  30 00 69 6d 61 67 65 32  73 74 61 74 75 73 3d 30  |0.image2status=0|
	00000030  00 69 6d 61 67 65 32 74  72 79 6e 75 6d 3d 30 00  |.image2trynum=0.|
	00000040  69 6d 61 67 65 6d 61 78  74 72 79 3d 33 00 69 6d  |imagemaxtry=3.im|
	00000050  61 67 65 31 74 72 79 6e  75 6d 3d 30 00 00 00 00  |age1trynum=0....|
	00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42914
2014-10-14 12:21:36 +00:00
..
apex apex: change Source URL for Apex package 2014-05-07 01:28:52 +00:00
fconfig move boot related packages to their own folder 2012-10-16 13:44:25 +00:00
grub2 package:grub2: fix build error on linux missing libzfs 2014-08-01 11:19:46 +00:00
imx-bootlets imx23: rename imx23 to mxs for upcoming imx23/28 support 2013-10-14 19:01:23 +00:00
kexec-tools kexec-tools: disable lzma support 2014-02-21 20:06:41 +00:00
kobs-ng kobs-ng: Add support for overriding size 2014-04-19 21:39:09 +00:00
rbcfg rbcfg: fix format string bug 2014-06-30 08:19:44 +00:00
uboot-ar71xx uboot-ar71xx: make it depend on the generic ar71xx subtarget 2013-10-30 06:54:56 +00:00
uboot-envtools ar71xx: qihoo-c301: reset imageNtrynum after each successful boot. 2014-10-14 12:21:36 +00:00
uboot-imx6 uboot-imx6: update to 2014.04 2014-05-20 21:01:18 +00:00
uboot-kirkwood uboot-kirkwood: bump to 2014.07 2014-08-08 15:55:03 +00:00
uboot-lantiq lantiq: re-add 0041-lzma-fixup.patch to uboot 2014-07-16 10:43:44 +00:00
uboot-mxs uboot-mxs: bump u-boot to 2014.07 2014-08-02 11:17:17 +00:00
uboot-omap fix jffs2 with internal libgcc and switch omap4 to ext4 2013-12-13 16:38:43 +00:00
uboot-pxa move boot related packages to their own folder 2012-10-16 13:44:25 +00:00
uboot-sunxi uboot-sunxi: add support for Olimex A13 SOM 2014-09-28 23:20:36 +00:00
uboot-xburst u-boot: prefer mirror2.openwrt.org over ftp.denx.de - the denx ftp is slow and unreliable 2013-10-28 15:15:05 +00:00
yamonenv move boot related packages to their own folder 2012-10-16 13:44:25 +00:00