Re: [OpenWrt-Devel] [PATCH 1/2] ipq806x: move stmmac support in the kernel binary
Hi, On Sat, May 30, 2015 at 3:11 AM, Mathieu Olivari wrote: > Ethernet GMAC is built-in the SoC, so there is no need to enable it as a > module. We'll just assume we need it. That's what is done for other > platform where this driver is used so it'll make things more consistent. > > Signed-off-by: Mathieu Olivari > --- > target/linux/ipq806x/Makefile| 2 +- > target/linux/ipq806x/config-3.18 | 10 -- > 2 files changed, 9 insertions(+), 3 deletions(-) > > diff --git a/target/linux/ipq806x/Makefile b/target/linux/ipq806x/Makefile > index da841a6..b6ddfe2 100644 > --- a/target/linux/ipq806x/Makefile > +++ b/target/linux/ipq806x/Makefile > @@ -15,7 +15,7 @@ KERNELNAME:=zImage Image dtbs > > include $(INCLUDE_DIR)/target.mk > DEFAULT_PACKAGES += \ > - kmod-leds-gpio kmod-gpio-button-hotplug kmod-stmmac swconfig \ > + kmod-leds-gpio kmod-gpio-button-hotplug swconfig \ > kmod-ata-core kmod-ata-ahci kmod-ata-ahci-platform > > > diff --git a/target/linux/ipq806x/config-3.18 > b/target/linux/ipq806x/config-3.18 > index 396c6e3..4d3b884 100644 > --- a/target/linux/ipq806x/config-3.18 > +++ b/target/linux/ipq806x/config-3.18 > @@ -121,6 +121,7 @@ CONFIG_DMA_ENGINE=y > CONFIG_DMA_OF=y > CONFIG_DMA_VIRTUAL_CHANNELS=y > CONFIG_DTC=y > +CONFIG_DWMAC_IPQ806X=y > # CONFIG_DW_DMAC_CORE is not set > # CONFIG_DW_DMAC_PCI is not set > CONFIG_DYNAMIC_DEBUG=y > @@ -212,7 +213,6 @@ CONFIG_I2C_CHARDEV=y > CONFIG_I2C_COMPAT=y > CONFIG_I2C_HELPER_AUTO=y > CONFIG_I2C_QUP=y > -# CONFIG_IEEE802154 is not set > CONFIG_IKCONFIG=y > CONFIG_IKCONFIG_PROC=y > CONFIG_INITRAMFS_SOURCE="" > @@ -243,7 +243,6 @@ CONFIG_MFD_SYSCON=y > CONFIG_MIGHT_HAVE_CACHE_L2X0=y > CONFIG_MIGHT_HAVE_PCI=y > CONFIG_MIGRATION=y > -# CONFIG_MMC_SDHCI_MSM is not set > CONFIG_MODULES_USE_ELF_REL=y > CONFIG_MSM_GCC_8660=y > CONFIG_MSM_GCC_8960=y > @@ -261,6 +260,7 @@ CONFIG_MUTEX_SPIN_ON_OWNER=y > CONFIG_NEED_DMA_MAP_STATE=y > CONFIG_NEON=y > CONFIG_NET_FLOW_LIMIT=y > +CONFIG_NET_PTP_CLASSIFY=y > CONFIG_NET_VENDOR_WIZNET=y > CONFIG_NO_BOOTMEM=y > CONFIG_NO_HZ=y > @@ -319,12 +319,14 @@ CONFIG_POWER_RESET=y > CONFIG_POWER_RESET_MSM=y > # CONFIG_POWER_RESET_SYSCON is not set > CONFIG_POWER_SUPPLY=y > +CONFIG_PPS=y > CONFIG_PREEMPT=y > CONFIG_PREEMPT_COUNT=y > # CONFIG_PREEMPT_NONE is not set > CONFIG_PREEMPT_RCU=y > CONFIG_PRINTK_TIME=y > CONFIG_PROC_PAGE_MONITOR=y > +CONFIG_PTP_1588_CLOCK=y > CONFIG_QCOM_BAM_DMA=y > CONFIG_QCOM_GSBI=y > CONFIG_QCOM_HFPLL=y > @@ -366,6 +368,10 @@ CONFIG_SPI_MASTER=y > CONFIG_SPI_QUP=y > CONFIG_SPMI=y > CONFIG_SPMI_MSM_PMIC_ARB=y > +# CONFIG_STMMAC_DA is not set The kmod version had this enabled - is this change intentional? Jonas ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH v4] [kernel] upstream fix: mount overlayfs r/o if workdir cannot be created
Hi Rafal, > Your patch seems to be wrongly formatted, please see > http://wiki.openwrt.org/doc/devel/patches > (and setup your ~/.quiltrc) Thx for this hint … just updated my .quiltrc for proper future patch submissions :) Greetings Thomas > ___ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] uhttpd - bugs vs oficial repo
Hi, == A bit of background first == My TV fetches an XML from samsung.com every 2 seconds or so. I used to trick the TV to get the file from a local server instead. When I tried hosting the file on openwrt (I'm on trunk) the TV fails to handle the HTTP response given by uhttpd. nginx, lighthttpd serve it just fine. Yes, TV firmware is not robust, but the bugs are in uhttpd == Issue == Fildder reports the response given by uhttpd violates HTTP in these ways: 1) Content-Length response header MUST NOT be present when Transfer-Encoding is used (RFC2616 Section 4.4) 2) Content-Length mismatch: Response Header indicated 2.400 bytes, but server sent 2412 bytes. == Question == I'd like to see if I can fix the bug, but I don't know where is the official repo for uhttp. Does anyone know? Best regards, Maciej Soltysiak ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] uhttpd - bugs vs oficial repo
Hi, On Sat, May 30, 2015 at 3:00 PM, Maciej Soltysiak wrote: > I'd like to see if I can fix the bug, but I don't know where is the official > repo for uhttp. Does anyone know? The official uhttpd2 repo is hosted by nbd: [0] Regards, Martin [0] http://nbd.name/gitweb.cgi?p=uhttpd2.git;a=summary ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] uhttpd - bugs vs oficial repo
Hi, Maciej On 30 May 2015 at 21:00, Maciej Soltysiak wrote: > Hi, > > == A bit of background first == > My TV fetches an XML from samsung.com every 2 seconds or so. > I used to trick the TV to get the file from a local server instead. > > When I tried hosting the file on openwrt (I'm on trunk) the TV fails to > handle the HTTP response given by uhttpd. nginx, lighthttpd serve it just > fine. Yes, TV firmware is not robust, but the bugs are in uhttpd > > == Issue == > Fildder reports the response given by uhttpd violates HTTP in these ways: > 1) Content-Length response header MUST NOT be present when Transfer-Encoding > is used (RFC2616 Section 4.4) > 2) Content-Length mismatch: Response Header indicated 2.400 bytes, but > server sent 2412 bytes. > > == Question == > I'd like to see if I can fix the bug, but I don't know where is the official > repo for uhttp. Does anyone know? Not sure about the above issues reported. As for the repos' URL, you can find them at http://nbd.name/gitweb.cgi - It's uhttpd on OpenWrt AA release and before. - It's uhttpd2 on OpenWrt BB and later. yousong > > Best regards, > Maciej Soltysiak > > > ___ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] uhttpd - bugs vs oficial repo
Hi Yousong, Martin, On Sat, May 30, 2015 at 3:16 PM, Yousong Zhou wrote: > Not sure about the above issues reported. As for the repos' URL, you > can find them at http://nbd.name/gitweb.cgi > > - It's uhttpd on OpenWrt AA release and before. > - It's uhttpd2 on OpenWrt BB and later. > > yousong > Thank you both. I manged to fix that issue in uhttpd2's git and pass a preliminary test. Now to see if this fixes it for the TV. Best regards, Maciej ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Add an option to resolv.conf permanently?
Hi List, Sorry if it's something obvious which I missed, but is there a way to permanently add an options line to resolv.conf? Best regards, Maciej ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] lldpd: disable xml explicitly
This prevents auto-detection of libxml2 and thus the error: Package lldpd is missing dependencies for the following libraries: libxml2.so.2 Preventing a dependency to libxml2 is preferred, since libxml2 would be a out-of-(core-)tree dependency. Reported-by: Buildbot Signed-off-by: Michael Heimpold --- package/network/services/lldpd/Makefile |1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile index 69f7022..cccb9ba 100644 --- a/package/network/services/lldpd/Makefile +++ b/package/network/services/lldpd/Makefile @@ -93,6 +93,7 @@ CONFIGURE_ARGS += \ --with-readline=no \ --with-embedded-libevent=no \ --disable-hardening \ + --without-xml \ $(if $(CONFIG_LLDPD_WITH_CDP),,--disable-cdp) \ $(if $(CONFIG_LLDPD_WITH_FDP),,--disable-fdp) \ $(if $(CONFIG_LLDPD_WITH_EDP),,--disable-edp) \ -- 1.7.10.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/2] ar71xx: use Image/BuildLoaderPatched for TPLINK-SAFELOADER images
Ping? On 04/29/2015 11:38 PM, Matthias Schiffer wrote: > Building the loader in Image/Build/TPLINK-SAFELOADER would break the image > builder as no target compiler is available in that stage. > > Fixes #19580 > > Signed-off-by: Matthias Schiffer > --- > target/linux/ar71xx/image/Makefile | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/target/linux/ar71xx/image/Makefile > b/target/linux/ar71xx/image/Makefile > index 06e2c0d..8db278d 100644 > --- a/target/linux/ar71xx/image/Makefile > +++ b/target/linux/ar71xx/image/Makefile > @@ -1078,14 +1078,10 @@ define Image/Build/TPLINK-LZMA/initramfs > endef > > > -Image/Build/TPLINK-SAFELOADER/buildkernel=$(call PatchKernelLzma,$(2),$(3) > $(4)) > +Image/Build/TPLINK-SAFELOADER/loader = $(call > Image/BuildLoaderPatched,$(1),elf,$(2) $(3)) > > define Image/Build/TPLINK-SAFELOADER > - -rm -rf $(KDIR)/lzma-loader > - $(LOADER_MAKE) LOADER=loader-$(2).elf\ > - LZMA_TEXT_START=0x80a0 LOADADDR=0x8006 \ > - LOADER_DATA="$(KDIR_TMP)/vmlinux-$(2).bin.lzma" BOARD="$(2)" \ > - compile loader.elf > + [ -e "$(KDIR)/loader-$(2).elf" ] > > -$(STAGING_DIR_HOST)/bin/tplink-safeloader \ > -B $(5) \ > signature.asc Description: OpenPGP digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/2] ar71xx: use Image/BuildLoaderPatched for TPLINK-SAFELOADER images
On 2015-05-31 00:09, Matthias Schiffer wrote: > Ping? > > On 04/29/2015 11:38 PM, Matthias Schiffer wrote: >> Building the loader in Image/Build/TPLINK-SAFELOADER would break the image >> builder as no target compiler is available in that stage. >> >> Fixes #19580 >> >> Signed-off-by: Matthias Schiffer Applied now, thanks and sorry for the delay. - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] mac80211: make netifd script create AP interface directly
Before starting hostapd we create interface for it. The problem is we try to create STA interface just to let hostapd change it to AP later. It may fail if device doesn't support STA interfaces or if we already hit a limit. Consider following phy (it's from BCM43602 and brcmfmac): $ iw phy phy0 info | tail valid interface combinations: * #{ IBSS, managed } <= 1, #{ AP } <= 4, #{ P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1, total <= 3, #channels <= 1 Trying to setup 2 interfaces: STA + AP results in: radio0 (1101): command failed: Operation not supported (-95) radio0 (1101): command failed: Operation not supported (-95) radio0 (1101): command failed: Operation not supported (-95) radio0 (1101): command failed: Operation not supported (-95) radio0 (1101): Configuration file: /var/run/hostapd-phy0.conf radio0 (1101): Could not read interface wlan0-1 flags: No such device Signed-off-by: Rafał Miłecki --- package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index 824c87a..4f680a4 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -447,7 +447,7 @@ mac80211_prepare_vif() { mac80211_hostapd_setup_bss "$phy" "$ifname" "$macaddr" "$type" || return [ -n "$hostapd_ctrl" ] || { - iw phy "$phy" interface add "$ifname" type managed + iw phy "$phy" interface add "$ifname" type __ap hostapd_ctrl="${hostapd_ctrl:-/var/run/hostapd/$ifname}" } ;; -- 1.8.4.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] block: support to mount read-only devices
A read-only device will fail to mount without MS_RDONLY flag. Signed-off-by: Hua Shao --- block.c | 49 ++--- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/block.c b/block.c index 4c8dda9..a3c0ea5 100644 --- a/block.c +++ b/block.c @@ -734,11 +734,24 @@ static int mount_device(struct blkid_struct_probe *pr, int hotplug) err = mount(pr->dev, target, pr->id->name, m->flags, (m->options) ? (m->options) : ("")); - if (err) - ULOG_ERR("mounting %s (%s) as %s failed (%d) - %s\n", -pr->dev, pr->id->name, target, err, strerror(err)); - else - handle_swapfiles(true); + while (1) { + err = mount(pr->dev, target, pr->id->name, mflags, + (m->options) ? (m->options) : ("")); + if (err) { + if (!(mflags & MS_RDONLY)) { + ERROR("fall back on RO mount. %s.\n", strerror(errno)); + mflags |= MS_RDONLY; + continue; + } else { + ERROR("mounting %s (%s) as %s failed (%d) - %s\n", + pr->dev, pr->id->name, target, err, strerror(errno)); + break; + } + } else { + handle_swapfiles(true); + break; + } + } return err; } @@ -752,12 +765,26 @@ static int mount_device(struct blkid_struct_probe *pr, int hotplug) if (check_fs) check_filesystem(pr); - err = mount(pr->dev, target, pr->id->name, 0, ""); - if (err) - ULOG_ERR("mounting %s (%s) as %s failed (%d) - %s\n", -pr->dev, pr->id->name, target, err, strerror(err)); - else - handle_swapfiles(true); + err = mount(pr->dev, target, pr->id->name, m->flags, + (m->options) ? (m->options) : ("")); + while (1) { + err = mount(pr->dev, target, pr->id->name, mflags, + (m->options) ? (m->options) : ("")); + if (err) { + if (!(mflags & MS_RDONLY)) { + ERROR("fall back on RO mount. %s.\n", strerror(errno)); + mflags |= MS_RDONLY; + continue; + } else { + ERROR("mounting %s (%s) as %s failed (%d) - %s\n", + pr->dev, pr->id->name, target, err, strerror(errno)); + break; + } + } else { + handle_swapfiles(true); + break; + } + } return err; } -- 1.8.3.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] malta: add default network configuration
I didn't figure out how to achieve this using uci-defaults-new.sh, so use old-school uci-defaults script as that's what is used on realview as well. Signed-off-by: Daniel Golle --- target/linux/malta/base-files/etc/uci-defaults/02-network | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 target/linux/malta/base-files/etc/uci-defaults/02-network diff --git a/target/linux/malta/base-files/etc/uci-defaults/02-network b/target/linux/malta/base-files/etc/uci-defaults/02-network new file mode 100644 index 000..e90ecbe --- /dev/null +++ b/target/linux/malta/base-files/etc/uci-defaults/02-network @@ -0,0 +1,6 @@ +#!/bin/sh + +. /lib/functions/uci-defaults.sh + +ucidef_set_interface_loopback +ucidef_set_interface_raw "lan" "eth0" "dhcp" -- 2.4.2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel