aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* dnsmasq: Make the --dhcp-host logic easier to understandJohn Crispin2014-09-011-6/+8
| | | | | | | | | | | | | Use an if/else statement to cover the two different syntaxes. Add comments explaining what the end results should look like. This patch should not change the script's output. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Backport of r42320 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42390 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: Fix hosts file format when MAC address is not specifiedJohn Crispin2014-09-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | An entry like this in /etc/config/dhcp: config 'host' option 'name' 'pc2' option 'ip' '192.168.100.56' option 'dns' '1' results in a /tmp/hosts/dhcp entry that looks like this: 192.168.100.56 .lan Obviously it should say "pc2.lan". This happens because $name is set to "" in order to support the MAC-less syntax: "--dhcp-host=lap,192.168.0.199". Fix this by reordering the operations. Also, refuse to add a DNS entry if the hostname or IP is missing. Fixes #17683 Reported-by: Kostas Papadopoulos <kpapad75@travelguide.gr> Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Backport of r42319 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42389 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: Create rDNS records for LuCI "Hostnames"John Crispin2014-09-011-6/+3
| | | | | | | | | | | | | | | LuCI creates "domain" UCI config sections, which the dnsmasq init file then, currently, translates into "address" config lines. This is not the correct usage of "address" (see r36943), and also causes rDNS records to not be created. This patches dnsmasq.init to utilize the additional hosts file introduced in r40799 for such domain names, resolving both issues. Signed-off-by: Tyler Fenby <tylerf@securecominc.com> Backport of r42318 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42388 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add Support for RB2011UiAS-2HnDJohn Crispin2014-09-014-3/+34
| | | | | | Backport of r42317 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42387 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: BTHOMEHUBV2B use bigger mtd partition for kernelJohn Crispin2014-09-011-2/+2
| | | | | | | | | | | | | | | | | | The bb-rc3 image for the BTHOMEHUBV2B is too big for its mtd partition. This patch corrects the partition sizes in the device tree. This patch should really go in before bb-final, otherwise the BTHOMEHUBV2B images won't be useable. I do apologise for not spotting this straight away. Many thanks, Ben Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com> Backport of r42316 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42386 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: the mt7620 evb has a usb portJohn Crispin2014-09-011-0/+8
| | | | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> Backport of r42293 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42385 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: fix mt7620 ohci 3.10John Crispin2014-09-011-2/+3
| | | | | | | | | | the ohci phy was not reset properly Signed-off-by: John Crispin <blogic@openwrt.org> Backport of r42290 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42384 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: mt7620 has obchi/ehci and not dwc2John Crispin2014-09-012-2/+2
| | | | | | | | | | fix the default package selection Signed-off-by: John Crispin <blogic@openwrt.org> Backport of r42289 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42383 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211/rt2x00: allow disabling bands through dtsJohn Crispin2014-09-011-0/+27
| | | | | | | | | | | | | | | Add dts property ralink,2ghz and ralink,5ghz e.g. disable 2ghz band: wmac@10180000 { status = "okay"; ralink,2ghz = <0>; } Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Backport of r42281 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42382 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: use ETH_ALEN for consistencyJohn Crispin2014-09-011-3/+3
| | | | | | | | Signed-off-by: Forest Crossman <cyrozap@gmail.com> Backport of r42280 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42381 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: enable sysupgrade for the EnGenius ESR900John Crispin2014-09-011-0/+1
| | | | | | | | Signed-off-by: Forest Crossman <cyrozap@gmail.com> Backport of r42279 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42380 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/*: remove useless explicit set of function returncodeJohn Crispin2014-09-017-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | somebody started to set a function returncode in the validation stuff and everybody copies it, e.g. myfunction() { fire_command return $? } a function automatically returns with the last returncode, so we can safely remove the command 'return $?'. reference: http://tldp.org/LDP/abs/html/exit-status.html "The last command executed in the function or script determines the exit status." Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> Backport of r42278 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42379 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: enable second SPI for VoCoreJohn Crispin2014-09-012-11/+11
| | | | | | | | | | This patch enables the second SPI as spidev and also fixes some typos. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r42277 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42378 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for SPI_CS1 pinmuxJohn Crispin2014-09-012-0/+37
| | | | | | | | | | This patch adds support for setting SPI_CS1 as Chip Select, Watchdog reset output and GPIO#27. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r41938 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42377 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for VoCoreJohn Crispin2014-09-018-0/+256
| | | | | | | | | | | This is based and tested on VoCore Alpha, but other stuff like status/eth LEDs are present on the final board revision + VoDock. All GPIOs are exported, except spi/i2c. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r41939 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42376 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: second spi device on rt5350John Crispin2014-09-013-2/+738
| | | | | | | | | | | | | | | | | | This is based on Jon Smirl's patch with the following changes: - Set CS polarity as low by default. - Add support for changing CS polarity. - Add support for changing LSB/MSB. - Add support for changing SPI mode. - Fix indentations. I tested it on a VoCore. Works fine connected to a second flash, but fails to detect MMC/SD cards due to SPI clock speed. Signed-off-by: Jon Smirl <jonsmirl@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r42276 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42375 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: the firewall did not start properly on bootJohn Crispin2014-09-011-1/+1
| | | | | | | | | | https://dev.openwrt.org/ticket/17593 Signed-off-by: John Crispin <blogic@openwrt.org> Backport of r42233 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42374 3c298f89-4303-0410-b956-a3cf2f4a3e73
* libubox: update to latest git revisionJohn Crispin2014-09-011-3/+3
| | | | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> Backport of r42230 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42373 3c298f89-4303-0410-b956-a3cf2f4a3e73
* valgrind: fix build failure on umlJohn Crispin2014-09-011-1/+1
| | | | | | | | Signed-off-by: Nicolas Thill <nico@openwrt.org> Backport of r42229 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42372 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: image: build alternative TRX using less optimized LZMAJohn Crispin2014-09-011-0/+8
| | | | | | | | | | | | | | | | | | | There is a group of devices that lzma-loader doesn't work with. They simply hang at "Starting program at 0x80001000" which is really hard to debug and we didn't find any solution for this for years. Broadcom doesn't use lzma-loader on these devices anyway. They decided to drop lzma-loader and use less optimal LZMA compression that can be handled by CFE itself (it doesn't use dictionary). So support these devices we will need kernel compressed with different parameters and trx without a loader. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Backport of r42205 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42371 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for Omnima MiniPlugJohn Crispin2014-09-015-0/+124
| | | | | | | | | | This patch adds support for the Omnima MiniPlug RT5350 based board, 8MB SPI flash Signed-off-by: Ivan Ignjatic<ivan@omnima.co.uk> Backport of r42200 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42370 3c298f89-4303-0410-b956-a3cf2f4a3e73
* gmp: add host compileJohn Crispin2014-09-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Currently, any package that uses host compile and depends on libgmp.so will fail. This is because gmp is not compile for host machine. So, staging_dir/host has only static lib for gmp $ ls staging_dir/host/lib/libgmp* -1 staging_dir/host/lib/libgmp.a staging_dir/host/lib/libgmp.la staging_dir/host/lib/libgmpxx.a staging_dir/host/lib/libgmpxx.la Addind host compile in gmp, the dependent package can use: PKG_BUILD_DEPENDS:=gmp/host That will compile gmp to staging_dir/host with *.so files Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com> Backport of r42196 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42369 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: Fix pam_start link errors when PAM support is enabledJohn Crispin2014-09-011-2/+8
| | | | | | | | | | | | Patch to BusyBox Makefile to fix linker errors when PAM support is enabled by CONFIG_BUSYBOX_CONFIG_PAM=y. Typical errors include: login.c:(.text.login_main+0x122): undefined reference to `pam_start' Signed-off-by: Stephen Parry <sgparry@mainscreen.com> Backport of r42195 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42368 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: TL-WR1043N/ND v2: Fix MAC address of WMACJohn Crispin2014-09-011-3/+1
| | | | | | | | | | | | | | This sets the MAC address of the WLAN interface to the "official" primary MAC address (the one on the label under the devices, and the one used with the stock firmware). The MAC address used so far (primary-1) isn't even used at all with the stock firmware, which sets (primary) on LAN and WLAN and (primary+1) on the WAN interface (like OpenWrt does with this patch). Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Backport of r42193 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42367 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: clean up HAME profiles, remove unnecessary packages.John Crispin2014-09-011-4/+2
| | | | | | | | Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> Backport of r42192 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42366 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add mpr-a1 to default profileJohn Crispin2014-09-011-0/+1
| | | | | | | | | | Add hame mpr-a1 to default ramips profile. Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> Backport of r42191 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42365 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: build factory image for EnGenius ESR900 and ESR1750John Crispin2014-09-011-1/+24
| | | | | | | | Signed-off-by: Forest Crossman <cyrozap@gmail.com> Backport of r42189 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42364 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Fix 2.4G WiFi LED of the OpenMesh MR600 boardJohn Crispin2014-09-011-0/+1
| | | | | | | | | | | | The OpenMesh MR600(v1) can only enable the 2.4G WiFi PHY LED through the mini-PCIe device. Not configuring the LED pin inside the platform data makes it impossible to configure it through any standard OpenWrt tool. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> Backport of r42184 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42363 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: generate unique ARV7519RW22 firmwareJohn Crispin2014-09-015-40/+14
| | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r42183 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42362 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: add support for xrx200 firmware depending on soc typeJohn Crispin2014-09-011-0/+27
| | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r42182 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42361 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: export soc typeJohn Crispin2014-09-011-0/+25
| | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r42181 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42360 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: improve ARV7519RW22 supportJohn Crispin2014-09-012-34/+18
| | | | | | | | | | | | | | | - use full board name - rename uboot-env partition - add dsl_fw partition - remove unneeded pinmux groups - move gigabit ethernet to LAN - load mac address from mtd Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r42180 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42359 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add a workaround to fix failsafe on RT5350John Crispin2014-09-011-1/+18
| | | | | | | | | | | Due to TCP connections not working when VLAN is disabled, this is needed to get failsafe functional. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Backport of r42179 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42358 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: enable additional GPIOs on HAME MPR-A1John Crispin2014-09-011-1/+4
| | | | | | | | | | | | | | | | | According to the pcb tracing results[1] by anton.rad[2] MPR-A1s expose 6 unused GPIOs, only one of them working as configured in the current DTS. This patch enables GPIO22-26. Tested on hardware. [1] http://i.imgur.com/kHVW2Ox.jpg [2] https://forum.openwrt.org/viewtopic.php?pid=222698#p222698 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Backport of r42178 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42357 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: changed the EnGenius ESR900 mtdparts to match that of the ESR1750 ↵John Crispin2014-09-011-1/+1
| | | | | | | | | | since they have the same flash layout Signed-off-by: Forest Crossman <cyrozap@gmail.com> Backport of r42177 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42356 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ppp: enable IPv6CP by defaultJohn Crispin2014-09-012-2/+6
| | | | | | | | Signed-off-by: Steven Barth <steven@midlink.org> Backport of r42158 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42355 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: fix potential NULL pointer accessJohn Crispin2014-09-011-2/+2
| | | | | | | | | | Properly skip struct ifaddr entries with NULL ifa_addr, thanks Kostas Papadopoulos for reporting. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> Backport of r42138 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42354 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firewall: implement selective conntrack flushing (#10225)John Crispin2014-09-011-2/+2
| | | | | | | | | | | | Utilize the new selective conntrack flushing facility to clear out active conntrack entries referring to old IP addresses after a firewall reload. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> Backport of r42114 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42353 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: enable PER_FEED_REPO by defaultJohn Crispin2014-09-011-1/+1
| | | | | | | | | | | Enable the separate feed repositories by default to align custom builds with the repositories available on the snapshot download server. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> Backport of r42112 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42352 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix some whitespacesJohn Crispin2014-09-011-3/+3
| | | | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> Backport of r42111 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42351 3c298f89-4303-0410-b956-a3cf2f4a3e73
* broadcom-wl: add default tx and rx antennasJohn Crispin2014-09-011-1/+2
| | | | | | | | | | This adds default tx and rx antennas, so that LuCI shows automatic as the default radio option for the antennas. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Backport of r42085 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42350 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, adds interface cleanup fixesFelix Fietkau2014-08-311-1/+1
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42345 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42347 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: update to the latest version, fixes proto-shell teardown after renewFelix Fietkau2014-08-311-2/+2
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42344 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42346 3c298f89-4303-0410-b956-a3cf2f4a3e73
* nettle: disable mips16 support to improve performanceFelix Fietkau2014-08-311-0/+1
| | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> Backport of r42341 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42342 3c298f89-4303-0410-b956-a3cf2f4a3e73
* imagebuilder: remove postinst files before generating imageFelix Fietkau2014-08-311-0/+1
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42339 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42340 3c298f89-4303-0410-b956-a3cf2f4a3e73
* BB: binutils: link libbfd and libopcodes dynamically againJonas Gorski2014-08-301-1/+4
| | | | | | | | Backport of r42337. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42338 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: fix crash when unloading drivers (#17706)Felix Fietkau2014-08-291-0/+14
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42329 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42330 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/libtool: add missing dependency on m4Felix Fietkau2014-08-291-1/+1
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42322 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42323 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/bc: add missing dependency on bisonFelix Fietkau2014-08-271-0/+1
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42309 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42311 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/flex: disable building shared libfl.soFelix Fietkau2014-08-271-0/+1
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42308 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42310 3c298f89-4303-0410-b956-a3cf2f4a3e73