Skip to content
Snippets Groups Projects
  1. Nov 21, 2016
  2. Oct 26, 2016
  3. Jul 19, 2016
  4. Jul 13, 2016
  5. May 23, 2016
  6. Apr 09, 2016
  7. Mar 23, 2016
  8. Dec 19, 2015
  9. Sep 14, 2015
  10. Mar 17, 2015
  11. Feb 07, 2015
  12. Nov 19, 2014
  13. Nov 14, 2014
  14. Oct 14, 2014
    • John Crispin's avatar
      ar71xx: qihoo-c301: reset imageNtrynum after each successful boot. · 24a0269b
      John Crispin authored
      
      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: default avatarYousong Zhou <yszhou4tech@gmail.com>
      
      SVN-Revision: 42914
      24a0269b
  15. Jul 20, 2014
  16. Jul 14, 2014
  17. Jun 02, 2014
  18. Apr 13, 2014
  19. Jan 24, 2014
  20. Aug 15, 2013
  21. Jul 17, 2013
  22. Mar 03, 2013
  23. Mar 01, 2013
  24. Feb 01, 2013
  25. Nov 18, 2012
  26. Oct 27, 2012
  27. Oct 17, 2012
  28. Oct 16, 2012
  29. Aug 27, 2012
  30. Jul 17, 2012
Loading