aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ncurses: package the tinfo library separatelyLuka Perkov2016-06-191-2/+3
| | | | | | | | Some packages expect it that way Signed-off-by: Felix Fietkau <nbd@nbd.name> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49361 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix DTB generationLuka Perkov2016-06-191-1/+1
| | | | | | | | using preprocessor style includes when calling dtc directly. Signed-off-by: John Crispin <john@phrozen.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49360 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iftop: Update to latest version, and drop patchLuka Perkov2016-06-192-14/+2
| | | | | | | | | The patch made sure the ncursesw library was not selected to save space, but that library doesn't exist in this distribution at all. Signed-off-by: Bert Vermeulen <bert@biot.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49359 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ncurses: provide libncurses compatibility symlinks in libncurseswLuka Perkov2016-06-191-1/+7
| | | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49358 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Change all '/include/' clauses to '#include' so preprocessing can be ↵Luka Perkov2016-06-19175-176/+176
| | | | | | | | done properly for the entire device trees. Signed-off-by: Stanislav Galabov <sgalabov@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49357 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add hex prefix (0x) to dtsi reg properties where needed.Luka Perkov2016-06-199-29/+29
| | | | | | Signed-off-by: Stanislav Galabov <sgalabov@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49356 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: introduce serial0 aliasesLuka Perkov2016-06-1910-10/+32
| | | | | | | | | This patch introduces serial0 aliases in the ramips DTS files, which can then be used to denote the active console instead of relying on bootargs. Signed-off-by: Stanislav Galabov <sgalabov@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49355 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ubox: make logging code honour the hostname properlyLuka Perkov2016-06-191-2/+4
| | | | | | Signed-off-by: John Crispin <john@phrozen.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49354 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: fix wgt634u port assignment, broken since openwrt r47866Luka Perkov2016-06-191-1/+1
| | | | | | Signed-off-by: Russell Senior <russell@personaltelco.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49353 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7620: [UPSTREAM] fix USB frequency scalingLuka Perkov2016-06-191-0/+33
| | | | | | | | | The logic for the SoC check got inverted. We need to check if it's not a MT76x8. Signed-off-by: D. Andrei Măceș <dmaces@nd.edu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49352 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Fix alphabetical sorting for 02_networkLuka Perkov2016-06-191-11/+11
| | | | | | Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49351 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Don't use a VLAN for the single ethernet port of the A5-V11.Luka Perkov2016-06-191-5/+2
| | | | | | | | | | | | This router only has one ethernet port, so a VLAN is useless here, now that the rt3050 TCP bug that happened without VLANs has been fixed for a very long time. Add this router to the VLAN-less config that is used by other single-port routers. Also fix MAC address detection code since this router has no WAN port. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49350 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Fix network for routers without VLANs on eth0.Luka Perkov2016-06-191-6/+2
| | | | | | | | | | | | | | | | Some routers only have one port, so eth0 is used without VLANs for them. Revision r47720 introduced some changes, but wrongly confused "enable" with "reset". VLANs need to be disabled for those routers, and the switch may be reset. Fix this, by explicitly disabling VLANs instead of resetting the switch for these routers. Also merge duplicate configuration for the "m2m". Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49349 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ncurses: install pkg-config files to fix util-linux build breakageLuka Perkov2016-06-191-7/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49348 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ncurses: remove libncurses, provide it via libncurseswLuka Perkov2016-06-191-45/+8
| | | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49347 3c298f89-4303-0410-b956-a3cf2f4a3e73
* metadata.pl: add support for selecting packages available only via PROVIDESLuka Perkov2016-06-191-20/+30
| | | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49346 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add workaround to rebuild vdso-o32.so.dbgLuka Perkov2016-06-191-2/+13
| | | | | | | | | | | | | | | | Building for octeon fails with 'arch/mips/vdso/vdso-o32.so.dbg' already contains a '.MIPS.abiflags' section if the file already exists from a prior build. Use the same workaround as the one for vdso.so.dbg committed in 9eb155353a5f5137ec85a5b5b0287af63c544710. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49345 3c298f89-4303-0410-b956-a3cf2f4a3e73
* toolchain: gcc: fix build with GCC 6Luka Perkov2016-06-191-0/+117
| | | | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49344 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools: mkimage: sync include/linux/compiler*.h with u-boot masterLuka Perkov2016-06-192-87/+702
| | | | | | | | Fixes build with GCC 6. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49343 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools: pkg-config: fix build with GCC 6Luka Perkov2016-06-191-0/+18
| | | | | | | | | | | | | Fixes the following error: gdate.c: In function ‘g_date_strftime’: gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral] tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm); ^~~~~~ Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49342 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools: make-ext4fs: fix build regression on mac os xLuka Perkov2016-06-191-3/+3
| | | | | | | | Including sys/sysmacros.h is not portable Signed-off-by: Felix Fietkau <nbd@nbd.name> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49341 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: evaluate uci-defaults on run-time installationsLuka Perkov2016-06-191-0/+11
| | | | | | | | | | | | | | Packages may install scripts into /etc/uci-defaults to be executed once after installation, usually at the first boot of the target. This works fine if the package was installed to the rootfs during build or using the ImageBuilder. If the package is installed using opkg during run-time uci-defaults were applied only after a reboot of the device. Avoid the need to reboot by evaluting the package's uci-defaults in default-postinst. Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49340 3c298f89-4303-0410-b956-a3cf2f4a3e73
* libiconv: add all ASCII aliasesLuka Perkov2016-06-192-1/+10
| | | | | | | | This patch adds missing ASCII aliases to the libiconv stub in order to avoid conversion errors like https://github.com/openwrt/packages/issues/2373 Signed-off-by: Gergely Kiss <mail.gery@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49339 3c298f89-4303-0410-b956-a3cf2f4a3e73
* xtables-addons: Avoid redefinition of SHRT_MAX in lua packet scriptLuka Perkov2016-06-191-3/+6
| | | | | | | | | | Patch Lua packet script defines SHRT_MAX which is already defined in <linux/kernel.h> and is included indirectly by lauxlib.h. Fix the redefintion as it leads to compile failure on systems which treat macro redefinition as an error Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49338 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fstools: fix snapshot supportLuka Perkov2016-06-191-4/+4
| | | | | | Signed-off-by: John Crispin <john@phrozen.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49337 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fstools: update to latest git HEADLuka Perkov2016-06-191-2/+2
| | | | | | | | fixes snapshot support Signed-off-by: John Crispin <john@phrozen.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49336 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fstools: update to latest git HEADLuka Perkov2016-06-191-2/+2
| | | | | | | | this adds the remount command to the block tool Signed-off-by: John Crispin <john@phrozen.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49335 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add a workaround to rebuild vdso.so.dbg after genvdsoLuka Perkov2016-06-191-0/+11
| | | | | | | | | | | | | | | Currently the build fails with 'arch/mips/vdso/vdso.so.dbg' already contains a '.MIPS.abiflags' section if the file already exists from a prior build. Add a makefile rule to force the rebuild of vdso.so.dbg if genvdso has has been changed to workaround the failure. Signed-off-by: Jo-Philipp Wich <jo@mein.io> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49334 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dropbear: Make utmp and putuline support configurable via seperate config ↵Luka Perkov2016-06-192-3/+17
| | | | | | | | | | | options Utmp support tracks who is currenlty logged in by logging info to the file /var/run/utmp (supported by busybox) Putuline support will use the utmp structure to write to the utmp file Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49333 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: Add configurable DHCP release behaviorLuka Perkov2016-06-191-3/+5
| | | | | | | | | Make sending a DHCP release configurable when the client exits allowing to clean up IP/mac state info in intermediate devices. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49332 3c298f89-4303-0410-b956-a3cf2f4a3e73
* xtables-addons: Fix Lua packet script implementationLuka Perkov2016-06-191-0/+15
| | | | | | | | | | | | lua_packet_segment parameter start has type char pointer; in function lua_tg it's assigned an uint16 value generating compiler warnings obviously indicating posssible seg fault problems. Fix the issue by using the correct skb functions so the parameter points to the position inside the sk_buff Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> Signed-off-by: Stijn Cleynhens <stijn.cleynhens@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49331 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lantiq: fix xway image buildingLuka Perkov2016-06-191-3/+3
| | | | | | | | | | | | | | | | | | | | | Commit 8c130dd (lantiq: use new image build process for some images) broke image generation for the xway target since the generated macros reference not existing WBMRA.dts and WBMRB.dts files leading to the following build error: mips-openwrt-linux-musl-cpp: error: ../dts/WBMRA.dts: No such file or directory mips-openwrt-linux-musl-cpp: warning: '-x assembler-with-cpp' after last input file has no effect mips-openwrt-linux-musl-cpp: fatal error: no input files Previously both the WBMRA and WBMRB profiles shared a common WBMR DT since the only difference is the embedded firmware kmod package. Extend the lantiqImage macro to optionally support specifying a different DTS file and use this facility to let the both WBMR profiles reference the correct device tree file. Signed-off-by: Jo-Philipp Wich <jo@mein.io> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49330 3c298f89-4303-0410-b956-a3cf2f4a3e73
* x86: remove old references to kmod-acpi-buttonLuka Perkov2016-06-192-2/+2
| | | | | | | | | | | The kmod-acpi-button functionality is included in the kernel where needed and the corresponding kmod package has been deleted long ago, therfor drop the remaining references now. Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49329 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: fix ip6_tunnel compilationLuka Perkov2016-06-191-2/+2
| | | | | | | | Replace undefined iph for ip_hdr(skb) Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49328 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: remove ununsed login.shLuka Perkov2016-06-191-18/+0
| | | | | | Signed-off-by: John Crispin <john@phrozen.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49327 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: Allow to disable failsafe modeLuka Perkov2016-06-195-6/+24
| | | | | | Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49326 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image / basefiles: make console password configurableluka2016-06-1922-42/+48
| | | | | | | Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> Signed-off-by: John Crispin <john@phrozen.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49325 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix error message during bootLuka Perkov2016-06-191-1/+1
| | | | | | | | | | preinit spews out this message "cat: can't open '/proc/device-tree/model': No such file or directory" Signed-off-by: John Crispin <john@phrozen.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49324 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts: metadata: add CONFIG_TARGET_SUBTARGET symbolLuka Perkov2016-06-191-0/+12
| | | | | | | | | Add a new string symbol "CONFIG_TARGET_SUBTARGET" which contains the name of the chosen subtarget or "generic" if there are no subtargets available. Signed-off-by: Jo-Philipp Wich <jo@mein.io> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49323 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix setting the kernel timezoneLuka Perkov2016-06-191-10/+14
| | | | | | | | | | | | The settimeofday() syscall wrapper provided by musl filters out the timezone argument, breaking the ability to set the kernel timezone through the function. Adjust busybox patch to issue the syscall directly in order to circumvent the problem. Signed-off-by: Jo-Philipp Wich <jo@mein.io> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49322 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: Send DHCP release when client exitsLuka Perkov2016-06-191-1/+1
| | | | | | | | | | Let DHCP client send a release when it exists so the DHCP server is informed the IP address is released and allowing to clean up IP/mac state info in intermediate devices. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49321 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: fix default ip rulesLuka Perkov2016-06-191-2/+2
| | | | | | | | | Update to latest HEAD in order to remove the faulty "prelocal" ip rule leading to unexpected policy rule precedence. Signed-off-by: Jo-Philipp Wich <jo@mein.io> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49320 3c298f89-4303-0410-b956-a3cf2f4a3e73
* x86: search PARTUUID in any block deviceLuka Perkov2016-06-191-1/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49319 3c298f89-4303-0410-b956-a3cf2f4a3e73
* x86: make sysupgrade work without partxLuka Perkov2016-06-191-6/+28
| | | | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49318 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: add -c option for specifying amount of data to be used for checksumRafał Miłecki2016-06-193-12/+31
| | | | | | | | | | | | | | | | | So far fixtrx was calculating checksum over amount of data matching partition erase size. It was mostly a workaround of checksum problem after changing anything in initial TRX content (e.g. formatting JFFS2). Its main purpose was to make bootloader accept modified TRX. This didn't provide much protection of flash data against corruption. This new option lets caller request calculating checksum over a bigger amount of data. It may be used e.g. to include whole kernel data for checksum and hopefully make bootloader go info failsafe mode if something goes wrong. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49317 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: trx: use separated buffer for TRX headerRafał Miłecki2016-06-191-5/+18
| | | | | | | | | | We plan to adjust usage of the main buffer to allow reading custom amount of data for CRC32. This means we need another buffer that will be always block aligned. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49316 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: seama: exit with error if Seama header wasn't foundRafał Miłecki2016-06-191-1/+1
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49314 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: seama: fix image data handlingRafał Miłecki2016-06-191-28/+18
| | | | | | | | | | | | | | 1) Put sanity checks in one place 2) Respect provided offset 3) Read only as much data as needed for MD5 calculation Thanks to the last change this is a great speedup and memory saver. On devices with NAND flash we were allocating & reading about 128 MiB while something about 8 MiB is enough. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49309 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: seama: move buf allocation to the MD5 functionRafał Miłecki2016-06-191-16/+22
| | | | | | | | This buf is only used in this function now, so lets move it there. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49308 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mtd: seama: update MD5 using header in the first block bufferRafał Miłecki2016-06-191-4/+3
| | | | | | | | | This will allow separating first block buffer from a buffer used for MD5 calculation. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49307 3c298f89-4303-0410-b956-a3cf2f4a3e73