Commit Graph

30474 Commits (e327858613b4d83b5873a372ef669f1f78782a9a)

Author SHA1 Message Date
John Crispin e327858613 scripts/ubinize-image.sh: fix parameter handling
ubinize-image.sh previously used ${var:offset:length} substitutions
which are not valid in standard shell.
Replace the existing parameter matching by a case ... esac expression.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41347 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 11:43:42 +00:00
John Crispin d1d6c6e221 ar71xx: nbg6716: Enable procd nand sysupgrage
This enables the procd nand upgrade for ZyXEL NBG 6716. Also the ubi config
is cleaned up to match the wndr4300.

Signed-off-by: André Valentin <avalentin@marcant.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41346 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 11:43:38 +00:00
John Crispin c1e89aba4d mdns: add the new openwrt mdns daemon
this is still wip, you can use the following ubus calls.

ubus call mdns scan	# triggers a scan
ubus call mdns browse	# look at the currenlty cached records
ubus call mdns hosts	# look at the currenlty cached hosts

TODO
- ipv6, currenlty AAAA records are handled but only on v4 sockets
- finish the service announce code

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41345 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 11:43:34 +00:00
John Crispin 48930355d7 base-files: add a post start hook to the procd init.d api
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41344 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 11:43:30 +00:00
John Crispin 57cfd35772 ralink: fix up WRTNode vs WRTNODE in the dts file
https://dev.openwrt.org/ticket/16899

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41343 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 11:43:26 +00:00
John Crispin f2d7587246 iputils: fix compile when using eglibc
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41342 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 11:42:57 +00:00
Luka Perkov d47a2a692b mvebu: drop preinit script
The /lib/mvebu.sh script can now handle this task.

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41341 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 10:21:32 +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
Luka Perkov adf910a93c imx6: move imx6.sh to /lib/ for consistency
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41339 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 10:14:13 +00:00
Luka Perkov 12d42d06a5 kirkwood: move kirkwood.sh to /lib/ for consistency
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41338 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 10:13:47 +00:00
Felix Fietkau 232042f95d ubus: update to the latest version, fixes netifd related crashes on ubus calls during reload
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41337 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-25 08:32:14 +00:00
Luka Perkov ee131e4dd9 kirkwood: base-files: use /lib/functions/kirkwood.sh
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41336 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:18:53 +00:00
Luka Perkov 760ba483f6 kirkwood: base-files: add script to detect board name and populate /tmp/sysinfo
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41335 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:18:51 +00:00
Luka Perkov f49c3cdee2 base-files: update copyright headers
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41334 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:18:50 +00:00
John Crispin 90f654d7a2 ar71xx: fix wndr3700v4 image header
https://dev.openwrt.org/ticket/16840

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41333 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:14:23 +00:00
John Crispin ab140b37f1 ar71xx: remove old jffs2 marker from image generation on nand targets
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41332 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:14:18 +00:00
John Crispin 770d0b80da ralink: Update MT7530 switch driver.
- Support set VLAN ID of each vlan.
- Support untag feature.
- Replace register address with C MACRO.
- There are 8 ports for MT7530 actually.

Signed-off-by: Xiongfei Guo <xfguo@credosemi.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41331 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:14:14 +00:00
John Crispin 7c1f1dedf2 mpc83xx: add missing kernelnames into Makefile
add missing kernelnames to Makefile because those files are needed in 'target/linux/mpc83xx/image/Makefile'. Without them a compilation for mpc83xx is not possible - the buildbot stops with the error "No such file or directory"

Signed-off-by: Claudio Thomas <ct@xmodus-systems.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41330 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:14:09 +00:00
John Crispin 19729012bd config/Config-images.in: enable zlib as the default ubi compression
http://patchwork.openwrt.org/patch/5686/

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41329 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:14:05 +00:00
John Crispin 1919add538 libubox: update to latest git head
this adds 5 lua fixes to the tree

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41328 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:14:01 +00:00
John Crispin fd4f6d5215 procd: fix nand.sh kernel_length typo
sysupgrade otherwise skips kernel part on devices which got
kernel in ubi due to kern_length being undefined, kernel_length
is being used instead.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41327 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:56 +00:00
John Crispin f5d5de027c SysupgradeNAND: include rootfs-type in image name
also add quotes to paths

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41326 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:51 +00:00
John Crispin e688f6b8c4 atheros[ar2315-spiflash]: remove duplicated definitions
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41325 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:47 +00:00
John Crispin f5183b03f7 atheros[ar2315-spiflash]: update driver id
Make id more specific and consistent with others platform drivers.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41324 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:43 +00:00
John Crispin c0fea1303e atheros[ar2315-spiflash]: make local variables and functions static
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41323 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:39 +00:00
John Crispin 4685d67062 atheros[ar2315-spiflash]: I/O fixes
Directly use ioread/iowrite functions to avoid odd dependency. And
carefully annotate I/O memory pointers.

Singed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41322 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:35 +00:00
John Crispin 6c193cf529 atheros[ar2315-spiflash]: make spiflash header local
We do not need global access to it, so move it from arch include to the
mtd subdir.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41321 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:31 +00:00
John Crispin f6f6b0e18c atheros[ar2315-spiflash]: pass I/O mem regions via resources
Pass I/O memory regions (flash read and MMR) via platform device
resources array and use them inside spiflash driver.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41320 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:27 +00:00
John Crispin 477a08a4da atheros[ar231x-pci]: do not touch iomem_resource ranges
Moving the start of IO mem to 0x10000000 leads to allocation conflict
with SPI flash memory region, which starts at 0x08000000.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41319 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:22 +00:00
John Crispin 859fb40fa1 atheros[ar2315-spiflash]: print detected flash size
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41318 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:17 +00:00
John Crispin cd83a37b6e atheros[ar2315]: don't detect flash size during board initialization
We should not detect actual flash size during board initialization to
find board config at the end of the flash, just use large enough mapping
size (currently 128 mbit). If mapping size is larger than the actual
flash size, than flash will simply be mapped multiple times. This change
simplifies code by removing duplication and saves about 200 bytes of
uncompressed kernel :)

Tested with Ubnt LS2 board equipped with STM 25p32v6p NOR flash (32 mbit).

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41317 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:13 +00:00
John Crispin b341c65b7b atheros[ar231x-eth]: merge patch
Merge 3_10-updates.patch into the ar2313_ethernet.patch since it contains
only one ethernet driver fix.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41316 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:09 +00:00
John Crispin fca69de306 fstools: fix factory reset on ubifs overlay
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41315 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:05 +00:00
John Crispin a0b76f9456 firmware-utils/mkdir615h1: fix magic XOR calculation
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41314 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:00 +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 b73720eae8 lantiq: remove deprecated jffs2_nand configuration
As far as I am aware, amongst the lantiq boards, jffs2_nand was
only used on the BTHOMEHUBV2B. Ubi-related modifications to the
device tree for that board mean that the resulting jffs2 images
no longer work, and are no longer required anyway. So I suggest
removing the related configuration, which this patch does.

If anyone else is using jffs2_nand on a lantiq target please speak
up!

Incidentally, for a jffs2 rootfs partition concatenated to the
kernel image to be recognised and mounted correctly on nand
this patch or something equivalent is required:
http://patchwork.openwrt.org/patch/5110/
It is marked as accepted in patchwork but doesn't seem to have
been committed. As far as I am concerned it too is deprecated.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41312 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:12:52 +00:00
John Crispin 2badccb73e image.mk: introduce Image/Build/UbinizeImage make target
paramters:
$(1) board name
$(2) ubinize-image options (e.g. --no-kernel and/or --uboot-env)
$(3) rootfstype (e.g. squashfs or ubifs)
$(4) kernel image file
$(5) options to pass-through to ubinize (i.e. $($(PROFILE)_UBI_OPTS)))

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41311 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:12:47 +00:00
John Crispin fb4e44b207 lantiq: ubinize autoresize flag for rootfs_data
Setting this flag allows rootfs_data to expand on first boot
to fill remaining free space on nand.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41310 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:12:41 +00:00
Luka Perkov e137e0e5b0 kernel: update 3.14 to 3.14.8
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41309 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 12:27:36 +00:00
Steven Barth 3b59de8bc7 dnsmasq: use config_get_bool for dnsmasq
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41302 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-22 15:34:36 +00:00
Felix Fietkau 4854574bda mac80211: disable greenfield by default
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41300 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-22 11:52:53 +00:00
Felix Fietkau d1c5a5fecc iw: update to 3.15
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41299 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-22 11:42:28 +00:00
Felix Fietkau 95169666fe mac80211: revert a faulty upstream change which is causing channel 12 to be enabled for US regdomain
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41298 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-22 11:42:24 +00:00
Steven Barth 5691e7e3ec dnsmasq: set procd respawn
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41297 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-22 09:08:14 +00:00
Jonas Gorski 1d0c4edda1 brcm63xx: allow bcm963xx and livebox support at the same time
Use the CFE_EPTSEAL to tell them apart at runtime. Added for now only
for the 3.14 until properly tested.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41296 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-21 19:23:38 +00:00
Jonas Gorski 6cacd1932f brcm63xx: update variant detection patches and fix VARID shift
The variant id field shift was wrong, causing the variant detection
to fail.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41295 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-21 19:23:28 +00:00
Jonas Gorski 920396728a brcm63xx: fix up borked patch
Fix up patch borked by quilt fuzzy application of patches.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41294 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-21 19:23:18 +00:00
Imre Kaloz 8c3e3b42e9 [ledtrig-netdev]: coding style cleanups, drop old kernel support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41293 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-21 10:00:07 +00:00
Imre Kaloz 5cea7c1e9a [mvebu] update mamba dts
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41292 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-20 23:05:23 +00:00
Imre Kaloz d803718e3b [mvebu]: make script executable, add WRT1900AC detection
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41291 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-20 22:35:09 +00:00