summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* base-files: mtd_get_mac_ascii bugfixGabor Juhos2013-11-082-5/+4
| | | | | | | | | | | | | | | | The mtd_get_mac_ascii utility function was broken. This fixes it. - Remove the superfluous include of /lib/functions.sh. The function is already in that file so it is pointless, - only use a variable if the whole key word matches, - don't try to process the MAC address if it is empty, - use 'tr' to canonicalize the MAC address, Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> [juhosg: add more fixes, update commit message] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38690
* ar71xx: ag71xx: fix a race involving netdev registrationGabor Juhos2013-11-082-23/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, phy_connect before register_netdev. This is because register_netdev runs the netdev notifiers, which can race with the rest of the initialization in ag71xx_probe. In my case this manifested in two ways: 1) If ag71xx is compiled as a module and inserted after netifd has started, netifd is notified by register_netdev before the call to ag71xx_phy_connect. netifd tries to bring the interface up, which calls ag71xx_open, which in turn enters ag71xx_phy_start. This keys off ag->phy_dev (which is still NULL) and thinks this is a fixed-link board, and enters ag71xx_link_adjust. This looks at ag->speed which is not yet initialized and hits the BUG() in the switch (ag->speed) in ag71xx_link_adjust. This is the wrong code path for ag71xx_phy_start - my board has PHYs that need to be brought up with phy_start. Doing ag71xx_phy_connect before register_netdev ensures that ag->phy_dev is non-NULL before ag71xx_phy_start is ever called. 2) When ag71xx is built into the kernel, and netconsole is enabled, there is a gap in the initial burst of replayed printks right after the netdev comes up. My assumption is that netconsole is also triggered by a netdev notifier, and part of this printk burst happens before the call into ag71xx_phy_connect, so part of the burst is lost while the PHY comes up. This patch fixes the gap - all the printks before eth0 comes up are bursted in full when netconsole initializes. ag71xx_phy_connect_xxx no longer runs with a registered netdev, so the logging has been adjusted accordingly to avoid "unregistered net_device" or "eth%d" messages in dmesg. Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38689
* ar71xx: build image for the WD My Net Wi-Fi Range ExtenderGabor Juhos2013-11-072-1/+24
| | | | | | | | | | | Patchwork: http://patchwork.openwrt.org/patch/4281/ Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> [juhosg: - remove the Image/Build/CyberTANLZMA/loader macro, it is not used - move the MYNETREXT SingleProfile definition to the correct place] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38688
* ar71xx: add user-space support for the WD My Net Wi-Fi Range ExtenderGabor Juhos2013-11-075-4/+23
| | | | | | | | Patchwork: http://patchwork.openwrt.org/patch/4281/ Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38687
* ar71xx: add kernel support for the My Net Wi-Fi Range Extender deviceGabor Juhos2013-11-073-0/+215
| | | | | | | | | | | | | This patch adds a new device definition for a Western Digital device. The hardware seems to be based on Qualcomm Atheros DB120 design. Patchwork: http://patchwork.openwrt.org/patch/4281/ Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> [juhosg: refresh kernel patch] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38686
* tools: adapt addpattern for WD's Range ExtenderGabor Juhos2013-11-071-7/+15
| | | | | | | | | | | | A few things had to be changed to add support for these devices: - support code patterns with 8 characters - new board definition for the range extender device Patchwork: http://patchwork.openwrt.org/patch/4280/ Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38685
* mac80211: mark rt2x00 library packages as hidden, there's no point in ↵Felix Fietkau2013-11-071-0/+5
| | | | | | | | allowing users to enable them without the packages that depend on them Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38684
* ar71xx: image: add EOF marker to the WNDR4300 UBI imageGabor Juhos2013-11-071-9/+6
| | | | | | | | | | | | | | | Append EOF markers to the END of the UBI image file. This forces the kernel to erase all blocks after the marker even if those blocks are not empty. Additionally, the resulting image can be flashed from the original web UI now, so use '-factory' suffix for that. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38683
* tools/mtd-utils: add EOF marker support to libubigen/ubinizeGabor Juhos2013-11-072-0/+166
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38682
* kernel/3.10: add EOF marker support to the UBI layerGabor Juhos2013-11-071-0/+51
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38681
* ubox: fix extroot/extoverlay mounting by label and support mounting by ↵Jo-Philipp Wich2013-11-071-2/+2
| | | | | | device name SVN-Revision: 38680
* ubox: update to latest git headJohn Crispin2013-11-071-2/+2
| | | | | | | | support for specifying swap priority from the command line Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38679
* ubus: update to latest git headJohn Crispin2013-11-071-2/+2
| | | | | | | | adds support for events in the lua binding Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38678
* lantiq: fix TDW8970 lan/wan macJohn Crispin2013-11-071-1/+9
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38677
* button-hotplug: sync list of supported keys with gpio-button-hotplugJohn Crispin2013-11-071-0/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38676
* au1000: make sysupgrade compatible with all file system typesJohn Crispin2013-11-072-2/+4
| | | | | | | | | | | | | | This patch adds support for all file system types as discussed earlier: https://lists.openwrt.org/pipermail/openwrt-devel/2013-October/022109.html This patch depends on a previous patch: https://lists.openwrt.org/pipermail/openwrt-devel/2013-October/022111.html Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de> SVN-Revision: 38675
* au1000: create sysupgrade binary for each file system typeJohn Crispin2013-11-071-1/+1
| | | | | | | | | | | | | This patch should prevent overriding of sysupgrade binaries in the bin directory if we build images for more then one file system type. Discussion: https://lists.openwrt.org/pipermail/openwrt-devel/2013-October/022108.html Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de> SVN-Revision: 38674
* lantiq: Fix ar8216 switch configuration for WBMR-HP-G300H devicesJohn Crispin2013-11-071-2/+3
| | | | | | | | | | | The switch is renamed to "switch0" in newer (3.10) linux kernels. Configure the switch using vlans by default and only configure the physical switch ports that are present. Signed-off-by: Richard Mortimer <richm@oldelvet.org.uk> Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38673
* util-linux: cleanup description for swap-utilsJohn Crispin2013-11-071-1/+1
| | | | | | | | | swapon/swapoff are no longer provided by swap-utils, so remove them from the description as well. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> SVN-Revision: 38672
* busybox: don't enable swapon/swapoff by defaultJohn Crispin2013-11-071-1/+1
| | | | | | | | | 'swapon/swapoff' are now provided by 'block-mount'; enabling them by default in busybox is no longer required and adds unnecessary bloat. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38671
* base-files: Make /etc/init.d/boot restartableJohn Crispin2013-11-071-3/+7
| | | | | | | | | Only reload hostname and timezone config on /etc/init.d/boot restart. Module loading and basic boot setup is only done during boot. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 38670
* ralink: revert 38348 as it breaks network on the hame-mprJohn Crispin2013-11-071-2/+0
| | | | | | | | | https://dev.openwrt.org/changeset/38348 https://dev.openwrt.org/ticket/14403#comment:1 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38669
* ralink: fix c&p error in gpio driverJohn Crispin2013-11-071-2/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38668
* lantiq: fix td-w8970 initramfs generationJohn Crispin2013-11-071-3/+2
| | | | | | | | https://dev.openwrt.org/ticket/14417 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38667
* lantiq: fix vdsl-app dependencyJohn Crispin2013-11-071-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38666
* mark as broken (toolchain issues), bump kernel versionImre Kaloz2013-11-071-3/+3
| | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 38665
* kirkwood: add support for dockstarLuka Perkov2013-11-062-0/+20
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38664
* firmware-utils: remove the wndr3700 utilityGabor Juhos2013-11-062-151/+0
| | | | | | | | It is not used anymore. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38663
* ar71x: image: don't use the wndr3700 utilityGabor Juhos2013-11-061-28/+14
| | | | | | | | Pass the uImage magic value directly to mkimage instead. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38662
* sunxi: drop CONFIG_DEVTMPFS optionLuka Perkov2013-11-061-3/+0
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38661
* kernel: add some config optionsLuka Perkov2013-11-062-0/+6
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38660
* ar71xx: image: fix WNDR4300 initramfs image generationGabor Juhos2013-11-051-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38659
* ar71xx: image: allow to use optional parameters for MkuImageLzma/initramfsGabor Juhos2013-11-051-2/+2
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38658
* update for 3.12 finalImre Kaloz2013-11-051-11/+11
| | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 38657
* brcm47xx: fix detection of Asus RT-N12B1 and Netgear WNR3500LHauke Mehrtens2013-11-051-1/+10
| | | | | | | | This closes #14367 and #14328. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38656
* ar71xx: generate recovery image for WNDR4300Gabor Juhos2013-11-052-2/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extended the Makefile to generate a working factory reset image for Netgear WNDR4300. The image uses UBI with two volumes squashfs (rootfs) and JFFS2 (rootfs_data). In order to make stock U-Boot happy, a fake rootfs image is placed into the last erase block of the kernel partition. Signed-off-by: Stefan Agner <stefan@agner.ch> [juhosg: - restore the NetgearNAND/initramfs macro, - remove unused {Squash,Ubi}fsTemplate macros, - remove board specific mtd options from CONFIG_CMDLINE, append the board specific ubi.mtd parameter to the kernel command line instead, - increase kernel partition size to 2MiB, - use board specific ini file for ubinize, - put jffs2 eof mark into the rootfs_data ubi volume, - use KDIR_TMP for temporary images, - use the squashfs-raw image, - increase kernel partition size to 2MiB, - use a local ubinize macro, - fix macro parameter comments, - put the fake rootfs into the last erase block of the kernel partition, - move Image/Build/NetgearNAND/buildkernel macro before define Image/Build/NetgearNAND, - don't use the wndr3700 utility, use '-M' parameter of mkimage to set the uImage magic, - use '-recovery' suffix for the generated image, it is only usable via the fw_recovery function of the bootloader, - update commit log] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38655
* package/ubox: fix jffs2 handling on MTD devices emulated by gluebiGabor Juhos2013-11-052-1/+177
| | | | | | | | | | | | | | | | | | | The jffs2_ready() function in mount_root.c checks the presence of various JFFS2 markers at the start of a given MTD device. The function works on NOR flashes because JFFS2 puts 'cleanmarker' nodes at the start of freshly erased blocks. However if jffs2 is used on a MTD device emulated by the gluebi layer, the 'cleanmarker' nodes are not present and the jffs2_ready() function fails. Update the code to handle jffs2 correctly even on MTD devices emulated by the gluebi layer. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38654
* kernel: update 3.10 to 3.10.18Gabor Juhos2013-11-0542-123/+99
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38652
* sunxi: add new targetLuka Perkov2013-11-0510-0/+445
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38651
* imx6: drop unused variable from MakefileLuka Perkov2013-11-051-2/+0
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38650
* include: add more CPU flags for armLuka Perkov2013-11-051-0/+2
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38649
* dnsmasq: fix backward compatibility with existing configsJo-Philipp Wich2013-11-042-2/+5
| | | | | | | | | | | | | | Changeset r36943 ("dnsmasq: use host-record instead of address") removed the automatic domain expansion for config domain sections, this breaks existing setups and alters the old behaviour in unexpected ways, therfore restore behaviour of the current stable release. Additionally handle fully qualified hostnames properly when setting up the own hostrecord by stripping the local domain part form the given name instead of unconditionally appending it, so that "example.lan" results in "example example.lan" and not "example.lan example.lan.lan". SVN-Revision: 38648
* ar71xx: move WNDR4300 profile to the nand subtargetGabor Juhos2013-11-043-15/+25
| | | | | | | Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38647
* ar71xx: Add new subtarget nand for WNDR4300Gabor Juhos2013-11-043-1/+117
| | | | | | | | | | | | | | | | | | | | | | | | | Add new subtarget nand with UBI/UBIFS including GLUEBI and squashfs. This target will be used for NAND based router which make use of UBI (and maybe UBIFS later on) in order to provide proper NAND support. Signed-off-by: Stefan Agner <stefan@agner.ch> [juhosg: - tweak target.mk: change BOARDNAME variable, improve Target/Description, remove targz and ubifs from FEATURES and add broken flag, - optimize kernel configuration: disable ubifs, it is not used yet, disable unused MTD options, disable SPI support disable unused network drivers, tune kernel command line, - remove image/ubinize.cfg, it will be in a follow-up patch - move profile modifications into a separate patch] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38646
* ar71xx: remove yaffs from the generic rootfstype listGabor Juhos2013-11-041-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38645
* ar71xx: image: dd root.* images in fs specific macrosGabor Juhos2013-11-041-3/+9
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38644
* kernel/3.1[02]: move MTD root device setup code to mtdcoreGabor Juhos2013-11-0416-58/+94
| | | | | | | | | | The current code only allows to automatically set root device on MTD partitions. Move the code to MTD core to allow to use it with all MTD devices. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38643
* kernel: refresh kernel configs with kconfig.plGabor Juhos2013-11-044-416/+415
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38642
* kernel: add some config optionsHauke Mehrtens2013-11-036-0/+33
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38640
* kernel: fix dependencies of kmod-thermalHauke Mehrtens2013-11-031-0/+1
| | | | | | | | This depends on kmod-hwmon-core Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38639