Commit Graph

33149 Commits (8a9f7fdf7da603a32df35ae86732d0604a2db6bc)

Author SHA1 Message Date
John Crispin 8a9f7fdf7d mtd: fix md5sum error checking
In mtd_verify(), the return value of md5sum() has been
interpreted as error if nonzero, while the function
returns number of processed bytes, which caused
mtd_verify() to always fail.

This patch fixes error checking to interpret only
negative values as errors.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44605 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-05 20:25:02 +00:00
John Crispin d7a6866ce0 at91: add SAMA5D3-Xplained board UBI parameters to makefile.
Signed-off-by: Songjun Wu <songjun.wu@atmel.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44604 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-05 20:24:57 +00:00
John Crispin 7b6c0cca40 ath5k: fix reset race
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44603 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-05 20:24:50 +00:00
John Crispin 61aa9cc4fb ath5k: channel change fix
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44602 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-05 20:24:45 +00:00
John Crispin cd18aa747d brcm2708: add another missing symbol
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44601 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-05 20:24:39 +00:00
John Crispin 964819fe04 generic: add USB_DWC2 missing symbols
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44600 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-05 20:24:33 +00:00
John Crispin 726714d719 generic: add missing symbols for 4.0
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44599 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-05 20:24:28 +00:00
John Crispin 54ed570f69 netfilter: fix nf_nat_redirect dependencies for 3.19 and 4.0
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44598 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-05 20:24:22 +00:00
Rafał Miłecki 0d1eaa903d kernel: backport bcma changes to 3.19 and 4.0
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44597 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-04 07:08:39 +00:00
Rafał Miłecki 599bab39a8 bcm53xx: switch to IRQ buttons (keys)
Now bcma provides IRQ domain we don't have to poll anymore.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44596 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-03 23:15:55 +00:00
Rafał Miłecki 4b2f752391 kernel/mac80211: backport bcma changes from 4.1
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44595 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-03 23:15:49 +00:00
Jonas Gorski bd24326bdd generic: upgrade to 3.14.34
Fixes several issues in the network stack.

Full changelog:
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.33
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.34

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44594 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-03 14:39:52 +00:00
Jonas Gorski cdd4c27ac6 generic: upgrade to 3.18.8
Fixes several issues in the network stack.

Full changelog:
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.8

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44593 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-03 14:39:49 +00:00
Felix Fietkau b4f4cb29ec kernel: revert a broken chunk in the mips module reloc patch fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44592 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-02 20:33:02 +00:00
Felix Fietkau 87059ddca3 kernel: fix the mips module relocation patch for 3.19+
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44590 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-02 04:42:17 +00:00
Michael Büsch 02d68b3441 Fix download URL of the 4.x kernel.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44589 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-01 20:44:33 +00:00
Rafał Miłecki d8907a1270 adm5120: switch kernel to 3.18
Tested by Jonas on WP54g, thank you!

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44588 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-01 16:24:15 +00:00
Rafał Miłecki da203f3808 adm5120: enable low_mem
Most devices have only 16 MiB of RAM, this will allow them to boot
without OOM.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44587 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-01 16:24:11 +00:00
Lars-Peter Clausen 7a71819002 xburst: Remove n516, n526 and id800wt subtargets
The driver code for supporting these subtargets was already removed a while ago,
so
the current images wont actually boot.

It is also quite unlikely that there are any users of them at this point, so
remove them.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-01 15:56:43 +00:00
Jo-Philipp Wich 1b4518a6b0 lldpd: fix passing multiple ifnames to the daemon
Instead of multiple -I arguments, lldpd expects a comma separated list.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44585 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-01 12:25:02 +00:00
Jonas Gorski 6aa7547252 brcm47xx, brcm63xx: disable CONFIG_MIPS_O32_FP64_SUPPORT
The flag is experimental and requires toolchain support, which we don't
provide. Also neither target has an FPU so it becomes meaningless
without the FPU emulator enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44584 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-01 11:37:18 +00:00
Jonas Gorski 11b489f8a1 kernel: move CONFIG_MIPS_O32_FP64_SUPPORT to generic configs
Most MIPS targets have it disabled, so move the symbol to the generic
configs to keep target configs small.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44583 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-01 11:37:15 +00:00
Jonas Gorski d99c41fc04 brcm63xx: prefer gpio-button-hotplug over button-hotplug
Saves us pulling in the input system, shaving off a few kb from image
sizes.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44582 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-01 11:37:06 +00:00
Rafał Miłecki 167abc3a96 adm5120: use subtarget configs for all kernels
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44581 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-01 00:01:33 +00:00
Rafał Miłecki 7140ca235c adm5120: add 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44580 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 23:39:14 +00:00
Rafał Miłecki 4269bcdf04 ep93xx: add 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44579 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 22:46:42 +00:00
Rafał Miłecki 4162d6bf3c mpc52xx: add 3.18 config
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44578 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 20:53:55 +00:00
Jonas Gorski d9219349e2 brcm63xx: fix DTS LEDs and buttons
- A4001N/A4001N1: fix swapped green and red LEDs
- CVG834G: add missing LED
- RTA1320: reorder LEDs by GPIO#
- V2500V: add missing LEDs and buttons
- WAP-5813n: fix WPS button (GPIO 35)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44577 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 19:59:50 +00:00
Jonas Gorski 0dbd48d3ca brcm63xx: fix ethernet breakage in 3.18
Linux commit d75b1ade567ffab ("net: less interrupt masking in NAPI")
chose the samantics of the napi poll return value, which caused napi to
not resume interrups/polling anymore.

Fix the return value to restore expected behaviour.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44576 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 19:59:46 +00:00
Jonas Gorski 479b835df8 brcm63xx: fix BCM63268 interrupt register locations for legacy probe
Legacy probe passed the IRQSTAT registers instead of the IRQMASK
registers causing all register accesses to be offset by 16 bytes.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44575 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 19:59:34 +00:00
Jonas Gorski cd2b8886d9 brcm63xx: fix gpio register usage
The driver expected data then dir, but both dts and legacy code passed
dir then data. Fix this by making the driver expect the registers in
ascending order, i.e. dir then data.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44574 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 19:59:26 +00:00
Rafał Miłecki a398026d16 mpc83xx: start work on 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44573 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 18:15:59 +00:00
Rafał Miłecki 9f85ea99c0 omap: complete 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44572 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 14:56:53 +00:00
Rafał Miłecki d7df240542 omap: start working on 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44571 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-28 13:54:51 +00:00
Jonas Gorski a231c4ed45 brcm63xx: backport and enable DT spi-gpio no CS support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44570 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 23:48:48 +00:00
Jonas Gorski 48fa0c4ca1 brcm63xx: fix image generation and broken patch
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44569 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 23:48:32 +00:00
Jonas Gorski aa4d5abef0 b53: fix mmap register read/writes > 32 bit
For bcm63xx integrated switches, broadcom changed the data endianess
to match the system endianess. But this only applies to within one word,
which causes 48/64 bit values to be still split into their "litte endian"
groups.

E.g. 48 bit values (with 5 being the most significant byte) aligned

0x00 ..01  or   0123
0x04 2345       45..

will become

0x00 ..10 resp. 3210
0x04 5432       54..

Likewise for 64 bit values.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44568 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:40:17 +00:00
Jonas Gorski c5696515d1 brcm63xx: remove gpio base workaround
Now that all gpio users without named gpios use DT, we do not need
to fix the gpio controller bases anymore.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44567 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:40:09 +00:00
Jonas Gorski 2c0570fc01 brcm63xx: move buttons and leds to dts files
Register buttons and leds through DT for all available dts,
and remove them from the board files.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: remove leds/buttons from board files
       fix wrong led polarities for dsl-274xb-c2, cpva642, p870hw
       comment out spi-gpio and associated leds]

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44566 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:40:04 +00:00
Jonas Gorski 5b8524b03d brcm63xx: probe gpio controllers through DT
Add a generic mmio gpio controller based driver and probe it
through device tree.

Use aliases for base calculation until we converted all users to
device tree or named gpios.

Convert bcm63xx_enet's ephy-reset gpio to use a named gpio.

While at it, remove the duplicate reset gpio defintion for livebox.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44565 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:39:49 +00:00
Jonas Gorski 3c7cb10dba brcm63xx: convert BTV2500V to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44564 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:39:29 +00:00
Jonas Gorski e26e12a77e brcm63xx: convert RTA1320 to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44563 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:39:21 +00:00
Jonas Gorski b9c744ad50 brcm63xx: convert RTA1025 to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:39:13 +00:00
Jonas Gorski 36ce877190 brcm63xx: use dtb for cvg834g
Add a dtsi for bcm3368, add a dts and profile for cvg834g, and convert
it to use ImageDTB. Since HCS requires more arguments, enhance the max
arguments of the call.
The image name is intentionally left blank to prevent non-initramfs
images to be built, as they currently contain no rootfs and consequently
won't work.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44561 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:39:07 +00:00
Jonas Gorski 84d3d8799f brcm63xx: image: move image argument to front in *DTB calls
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44560 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:38:51 +00:00
Jonas Gorski 07e83d3b46 brcm63xx: add dts and profile for Livebox
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44559 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:38:46 +00:00
Jonas Gorski 6dd3d668ae brcm63xx: allow lzma to use 32MB RAM
Most 16 MiB RAM devices don't even load elf kernels, so it's safe to
assume we have at least 32 MB RAM. This fixes tftp booting with the
default package set as this already produces an uncompressed
kernel > 8 MiB.

New limit is 8 MiB compressed / 24 MiB compressed.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44558 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:38:28 +00:00
Jonas Gorski 02ce1ebb75 package: mtd: move bcm963xx_tag definition into source code
Remove the need for the header file to be exported - we don't need most
of it anyway; all we care about are the offset of the rootfs length and
header crc fields.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44557 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:38:25 +00:00
Jonas Gorski 646c36ca82 brcm63xx: do not align squashfs rootfs start
We do not need to align the start of read only rootfs's to erase blocks.
This allows us to write the squashfs rootfs directly behind the kernel,
potentially freeing up one erase block.

We still need to align for jffs2, so add a flag for imagetag to
optionally align the rootfs start.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44556 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:38:14 +00:00
Jonas Gorski c204c43a65 brcm63xx: drop call to prepare_generic_squashfs
We do not use the result, so no need to call it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44555 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-02-27 17:38:09 +00:00