Commit Graph

123 Commits (f618c2fc9cd8926687966b35abb525d1e7dd267a)

Author SHA1 Message Date
John Crispin 96d2eba315 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42914 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-14 12:21:36 +00:00
Zoltan HERPAI 7642fcc283 uboot-sunxi: add support for Olimex A13 SOM
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42692 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-28 23:20:36 +00:00
Zoltan HERPAI ff9bc2fc42 uboot-sunxi: add patch to fix gmac reliability issue on bananapi
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42691 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-28 20:39:04 +00:00
Zoltan HERPAI 68530a33fd uboot-sunxi: add PSCI support for bringing up secondary core on A20
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42587 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-17 08:25:04 +00:00
Zoltan HERPAI 9cb0efa23a uboot-sunxi: bump to 2014.04
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42422 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-06 15:18:40 +00:00
Luka Perkov c520ac0352 uboot-kirkwood: bump to 2014.07
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42080 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-08 15:55:03 +00:00
Luka Perkov 71e7b3b220 uboot-envtools: bump to 2014.07
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42078 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-08 15:14:26 +00:00
Zoltan HERPAI 448dde762b uboot-mxs: bump u-boot to 2014.07
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41946 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-02 11:17:17 +00:00
John Crispin 89b7d17ab1 package:grub2: fix build error on linux missing libzfs
configure enables libzfs support on default.
This will break the build, on systems without libzfs.

Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41935 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-01 11:19:46 +00:00
John Crispin 6cd7d2f548 package/uboot-envtools: add OpenMesh OM5P support
Signed-off-by: Marek Lindner <marek@open-mesh.com>
[sven@open-mesh.com: Rebased]
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41774 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-20 17:31:00 +00:00
John Crispin 28f1ec6edf lantiq: re-add 0041-lzma-fixup.patch to uboot
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41671 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-16 10:43:44 +00:00
Gabor Juhos 96131b0538 package/uboot-envtools: add support for the EnGenius EAP300 v2 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41660 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-14 21:30:29 +00:00
Gabor Juhos 0299c1d457 package/uboot-envtools: add support for the Tube2H board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41651 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-14 16:03:36 +00:00
John Crispin 4cb2ca86ab lantiq: configure uboot-envtools on BTHOMEHUBV2B and make it work correctly on other lantiq boards
Generate the configuration file for uboot-envtools
on BTHOMEHUBV2B. Adds the specific parameters for the
BTHOMEHUBV2B and also fixes an incorrect path which
would have affected other lantiq boards as well
(currently only the GIGASX76X).

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41597 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-13 07:17:54 +00:00
Felix Fietkau 9a5c8de7b9 rbcfg: fix format string bug
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41410 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-30 08:19:44 +00:00
Imre Kaloz 709b91a2bf [uboot-envtools]: add mvebu support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-29 12:38:35 +00:00
Luka Perkov 65fcfca2eb uboot-envtools: use new scripts from /lib/ to match boards
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41340 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 10:14:14 +00:00
John Crispin b5f47d40c1 uboot-envtools: fix build if ubi volume support is disabled
Insert a missing #ifdef UBI around the use of libubi_close().
As the preceding if (libubi) will never be true on non-UBI builds,
compiling only failed when disabling optimization.

Also rebase patch to latest u-boot.git HEAD.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41313 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:12:56 +00:00
John Crispin 1b66b2b0c9 package/uboot-envtools: add OpenMesh OM2P-HSv2 support
Signed-off-by: Marek Lindner <marek@open-mesh.com>
[sven@open-mesh.com: Rebased]
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40965 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 13:21:47 +00:00
John Crispin 359d5d94de package/uboot-envtools: add OpenMesh OM2Pv2 support
Signed-off-by: Marek Lindner <marek@open-mesh.com>
[sven@open-mesh.com: Rebased]
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40959 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 13:21:17 +00:00
John Crispin c78da29d8e uboot-envtools: add support for environment in ubi volume
On UBI enabled devices, U-Boot might store it's environment on
UBI volume(s). Support this in uboot-envtools, so fw_setenv and
fw_printenv can work on these platforms.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40929 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 12:44:19 +00:00
John Crispin 0d2739a6cb lantiq: Add ARV7510PW22 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40918 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 12:43:31 +00:00
Zoltan HERPAI 8b0c3dc877 uboot-sunxi: add bananapi support
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40899 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-01 18:47:14 +00:00
Luka Perkov 1d6e93165d [package] uboot-envtools: add support for kirkwood ea4500
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40872 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-28 21:43:42 +00:00
Luka Perkov 10a05d152c [package] uboot-envtools: add Pogoplug E02 support
The settings require that the OpenWrt provided u-boot is used as either
first or second stage bootloader as it modifies the partitioning scheme
to move the u-boot environment to a separate mtd partition.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40829 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-23 08:17:02 +00:00
Luka Perkov 53bf4e502d [package] uboot-kirkwood: re-add Pogoplug E02 support
This patch modifies the u-boot config for the Pogoplug E02 to work with
OpenWrt. It also enables building a second stage bootloader image.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40828 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-23 08:17:01 +00:00
Luka Perkov c8b254e5ff [package] uboot-imx6: update to 2014.04
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40805 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-20 21:01:18 +00:00
Luka Perkov 0c5c07595f [package] uboot-kirkwood: update to 2014.04
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40804 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-20 12:45:02 +00:00
Luka Perkov c3f88699cd [package] uboot-lantiq: remove duplicate define
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40779 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-19 18:55:55 +00:00
Luka Perkov bfe38bdeff [package] uboot-envtools: update to 2014.04
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40778 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-19 16:41:24 +00:00
Florian Fainelli 652e852114 apex: change Source URL for Apex package
As both of the PKG_SOURCE_URLs within the Apex Makefile appear to be no
longer functional, this patch changes the source URL to the OpenWRT
downloads page. Apologies for resubmitting, but there was a syntax error
in the previous patch ( http://patchwork.openwrt.org/patch/5025 ).

Signed-off-by: Riley Baird <orthogonal@librewrt.org>
[florian: unmangle patch, fix subject]
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40718 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-07 01:28:52 +00:00
Zoltan HERPAI 503bcc9979 uboot-sunxi: update pcDuino3 config
- beef up memory clock to 480
 - fix network config

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40714 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-06 20:22:45 +00:00
Zoltan HERPAI 6c9644fc90 uboot-sunxi: add support for LinkSprite pcDuino v3 (a20)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40605 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-30 19:37:56 +00:00
John Crispin 2d653454f9 Add Zyxel P-2812HNU-Fx images
P-2812HNU-Fx images are already supported but not generated.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40548 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-22 08:08:27 +00:00
John Crispin c9f09f1577 Add Fritz!Box 3370 images
Fritz!Box 3370 images are already supported but not generated.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40547 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-22 08:08:23 +00:00
John Crispin 7ba6c87efd Refresh patches
Refresh uboot-lantiq patches.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40546 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-22 08:08:19 +00:00
John Crispin 8a015b4c65 Create firmware directory if it doesn't exist
Fixes package refreshing.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40545 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-22 08:08:15 +00:00
John Crispin 3ecfcdbf17 Depend on lantiq board
Depend on lantiq board.

ARV7510 depends on ARV4510 because (according to OpenWrt wiki) both boards are identical except for the unsupported WiFi. Moreover, ARV7510 isn't especifically supported and ARV4510 images valid.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40544 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-22 08:08:10 +00:00
Luka Perkov 2f82f5dbfd kobs-ng: Add support for overriding size
By default kobs-ng will use the size of /dev/mtd0 for the IMX bootstreams.
This patch allows overriding that size in order to reserve space at the end
of the mtd partition for u-boot.img in the case of using an SPL bootloader.

For example, to flash an SPL bootloader that loads u-boot.img from 0xe0000
(14MB) offset in a 16MB /dev/mtd0:

  kobs-ng init -v -x --search_exponent=1 --chip_0_size=0xe00000 SPL
  nandwrite --start=0xe00000 --pad /dev/mtd0 u-boot.img

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40532 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-19 21:39:09 +00:00
John Crispin 6121fd2bde lantiq: remove uboot lzma patch, apparently its not needed after all
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40521 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-16 12:11:24 +00:00
John Crispin d2c628ec91 uboot-lantiq: backport lzma fix
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40520 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-16 12:01:24 +00:00
Gabor Juhos ca99aed1c4 uboot-envtools: add support for the ZyXEL NBG6716 board
Signed-off-by: André Valentin <avalentin@marcant.net>
Patchwork: http://patchwork.openwrt.org/patch/5101/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40501 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-13 08:29:08 +00:00
John Crispin f1d12e3ba1 uboot-lantiq: enable parallel building
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40488 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-12 21:21:40 +00:00
John Crispin 2feab056c2 uboot-lantiq: reuse/copy VR9 GPHY firmware blobs from target/linux/lantiq
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40487 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-12 21:21:35 +00:00
John Crispin 0fe935c56b uboot-lantiq: add packages for AudioCodes MP-252
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40486 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-12 21:21:31 +00:00
John Crispin bf1a51f9e1 uboot-lantiq: add packages for various Arcadyan boards
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40485 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-12 21:21:26 +00:00
John Crispin 11a0094e9c uboot-lantiq: add packages for Lantiq EASY80920
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40484 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-12 21:21:23 +00:00
John Crispin 90def7f332 uboot-lantiq: add packages for Lantiq EASY50712
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40483 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-12 21:21:18 +00:00
John Crispin 9c2f5aeffa uboot-lantiq: update to v2013.10
Patches created from tree:
git@github.com:danielschwierzeck/u-boot-lantiq.git
v2013.10..u-boot-lantiq-v2013.10-openwrt4

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40482 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-12 21:21:14 +00:00
Felix Fietkau 8ed950b602 grub2: disable mkfont - fix build on Archlinux
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40350 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-30 19:55:43 +00:00