[OpenWrt-Devel] [PATCH v3 0/3] fix mcs814x dLAN USB Extender
Patches fix interrupt init, timer irq and debug UART for mcs814x. dLAN USB Extender kernel got too big to fit in 1MB so I changed dts partition layout and image builder to make use of automatic partition splitting. Please apply to trunk and CC/15.05! changes since v2: change commit messages I'm sorry but I cannot find another solution to fix interrupt handling. Trying to convert to domain generic chip interrupts doesn't work at all. Günther Kelleter (3): mcs814x: fix debug UART mcs814x: fix interrupts mcs814x: use firmware partition splitter on dLAN USB Extender target/linux/mcs814x/config-3.18 | 14 ++-- .../arch/arm/boot/dts/dlan-usb-extender.dts| 8 - .../mcs814x/files-3.18/arch/arm/mach-mcs814x/irq.c | 6 +++- target/linux/mcs814x/image/Makefile| 2 +- .../linux/mcs814x/patches-3.18/014-debuguart.patch | 41 ++ .../linux/mcs814x/patches-3.18/015-timer-irq.patch | 11 ++ 6 files changed, 69 insertions(+), 13 deletions(-) create mode 100644 target/linux/mcs814x/patches-3.18/014-debuguart.patch create mode 100644 target/linux/mcs814x/patches-3.18/015-timer-irq.patch -- 2.4.6.89.g851dcf4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v3 2/3] mcs814x: fix interrupts
create explicit 1:1 mapping before mcs814x_alloc_gc/irq_setup_generic_chip marks all interrupts used and prevents mapping by dts init. IRQ 0 is the timer interrupt and is not illegal! Was broken since kernel 3.14. Signed-off-by: Günther Kelleter guenther.kelle...@devolo.de --- target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/irq.c | 6 +- target/linux/mcs814x/patches-3.18/015-timer-irq.patch | 11 +++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 target/linux/mcs814x/patches-3.18/015-timer-irq.patch diff --git a/target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/irq.c b/target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/irq.c index f84c412..fd4345f 100644 --- a/target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/irq.c +++ b/target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/irq.c @@ -71,6 +71,7 @@ static const struct of_device_id mcs814x_intc_ids[] = { void __init mcs814x_of_irq_init(void) { struct device_node *np; + struct irq_domain *domain; np = of_find_matching_node(NULL, mcs814x_intc_ids); if (!np) @@ -80,7 +81,10 @@ void __init mcs814x_of_irq_init(void) if (!mcs814x_intc_base) panic(unable to map intc cpu registers\n); - irq_domain_add_simple(np, 32, 0, irq_generic_chip_ops, NULL); + domain = irq_domain_add_simple(np, 32, 0, irq_domain_simple_ops, NULL); + if (!domain) + panic(unable to add irq domain\n); + irq_create_strict_mappings(domain, 0, 0, 32); of_node_put(np); diff --git a/target/linux/mcs814x/patches-3.18/015-timer-irq.patch b/target/linux/mcs814x/patches-3.18/015-timer-irq.patch new file mode 100644 index 000..9bbb094 --- /dev/null +++ b/target/linux/mcs814x/patches-3.18/015-timer-irq.patch @@ -0,0 +1,11 @@ +--- a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c +@@ -381,7 +381,7 @@ int __handle_domain_irq(struct irq_domai +* Some hardware gives randomly wrong interrupts. Rather +* than crashing, do something sensible. +*/ +- if (unlikely(!irq || irq = nr_irqs)) { ++ if (unlikely(irq = nr_irqs)) { + ack_bad_irq(irq); + ret = -EINVAL; + } else { -- 2.4.6.89.g851dcf4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v3 3/3] mcs814x: use firmware partition splitter on dLAN USB Extender
uImage is now bigger than 1MB. To avoid editing the dts every time the kernel size changes use fw splitter. Signed-off-by: Günther Kelleter guenther.kelle...@devolo.de --- target/linux/mcs814x/config-3.18 | 4 .../mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts| 8 target/linux/mcs814x/image/Makefile | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/target/linux/mcs814x/config-3.18 b/target/linux/mcs814x/config-3.18 index e57f5ff..427a7c9 100644 --- a/target/linux/mcs814x/config-3.18 +++ b/target/linux/mcs814x/config-3.18 @@ -159,6 +159,10 @@ CONFIG_MODULES_USE_ELF_REL=y # CONFIG_MTD_IMPA7 is not set CONFIG_MTD_JEDECPROBE=y CONFIG_MTD_PHYSMAP=y +# CONFIG_MTD_ROOTFS_SPLIT is not set +CONFIG_MTD_SPLIT_FIRMWARE=y +CONFIG_MTD_SPLIT_FIRMWARE_NAME=linux +CONFIG_MTD_SPLIT_UIMAGE_FW=y CONFIG_MULTI_IRQ_HANDLER=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_KUSER_HELPERS=y diff --git a/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts b/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts index 0c85b94..59830e8 100644 --- a/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts +++ b/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts @@ -48,14 +48,6 @@ reg = 0x4 0x1; }; partition@5 { - label = kernel; - reg = 0x5 0x10; - }; - partition@15 { - label = rootfs; - reg = 0x15 0x3C; - }; - partition@50001 { label = linux; reg = 0x5 0x4C; }; diff --git a/target/linux/mcs814x/image/Makefile b/target/linux/mcs814x/image/Makefile index 4c8af97..74f8ad4 100644 --- a/target/linux/mcs814x/image/Makefile +++ b/target/linux/mcs814x/image/Makefile @@ -30,7 +30,7 @@ define Image/Build/DTB endef define Image/Build/Profile/dLAN_USB_Extender - dd if=$(KDIR)/uImage-dlan-usb-extender bs=1M conv=sync of=$(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin + dd if=$(KDIR)/uImage-dlan-usb-extender bs=64k conv=sync of=$(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin cat $(KDIR)/root.$(1) $(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin cp $(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin $(BIN_DIR)/ endef -- 2.4.6.89.g851dcf4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v3 1/3] mcs814x: fix debug UART
Switch to new 8250 debug uart code because the old mach-mcs814x/include/mach/debug-macro.S tries to include asm/hardware/debug-8250.S which no longer exists since kernel 3.14 Signed-off-by: Günther Kelleter guenther.kelle...@devolo.de --- target/linux/mcs814x/config-3.18 | 10 -- .../linux/mcs814x/patches-3.18/014-debuguart.patch | 41 ++ 2 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 target/linux/mcs814x/patches-3.18/014-debuguart.patch diff --git a/target/linux/mcs814x/config-3.18 b/target/linux/mcs814x/config-3.18 index 87a8382..e57f5ff 100644 --- a/target/linux/mcs814x/config-3.18 +++ b/target/linux/mcs814x/config-3.18 @@ -49,10 +49,15 @@ CONFIG_CRYPTO_CRC32C=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y CONFIG_DEBUG_LL=y -CONFIG_DEBUG_LL_INCLUDE=mach/debug-macro.S +CONFIG_DEBUG_LL_INCLUDE=debug/8250.S CONFIG_DEBUG_LL_UART_NONE=y -# CONFIG_DEBUG_UART_8250 is not set +CONFIG_DEBUG_UART_8250=y +# CONFIG_DEBUG_UART_8250_FLOW_CONTROL is not set +CONFIG_DEBUG_UART_8250_SHIFT=2 +# CONFIG_DEBUG_UART_8250_WORD is not set +CONFIG_DEBUG_UART_PHYS=0x400dc000 # CONFIG_DEBUG_UART_PL01X is not set +CONFIG_DEBUG_UART_VIRT=0xf00dc000 # CONFIG_DEBUG_USER is not set CONFIG_DTC=y CONFIG_EARLY_PRINTK=y @@ -157,7 +162,6 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MULTI_IRQ_HANDLER=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_KUSER_HELPERS=y -CONFIG_NEED_MACH_MEMORY_H=y CONFIG_NEED_PER_CPU_KM=y CONFIG_NET_KEY=y # CONFIG_NET_VENDOR_BROADCOM is not set diff --git a/target/linux/mcs814x/patches-3.18/014-debuguart.patch b/target/linux/mcs814x/patches-3.18/014-debuguart.patch new file mode 100644 index 000..5f1b67f --- /dev/null +++ b/target/linux/mcs814x/patches-3.18/014-debuguart.patch @@ -0,0 +1,41 @@ +--- a/arch/arm/mach-mcs814x/include/mach/debug-macro.S /dev/null +@@ -1,11 +0,0 @@ +-#include mach/mcs814x.h +- +-.macro addruart, rp, rv, tmp +- ldr \rp, =MCS814X_PHYS_BASE +- ldr \rv, =MCS814X_VIRT_BASE +- orr \rp, \rp, #MCS814X_UART +- orr \rv, \rv, #MCS814X_UART +-.endm +- +-#define UART_SHIFT2 +-#include asm/hardware/debug-8250.S +--- a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug +@@ -1089,7 +1089,7 @@ config DEBUG_UART_8250 + (FOOTBRIDGE !DEBUG_DC21285_PORT) || \ + ARCH_GEMINI || ARCH_IOP13XX || ARCH_IOP32X || \ + ARCH_IOP33X || ARCH_IXP4XX || \ +- ARCH_LPC32XX || ARCH_MV78XX0 || ARCH_ORION5X || ARCH_RPC ++ ARCH_LPC32XX || ARCH_MCS814X || ARCH_MV78XX0 || ARCH_ORION5X || ARCH_RPC + + # Compatibility options for BCM63xx + config DEBUG_UART_BCM63XX +@@ -1124,6 +1124,7 @@ config DEBUG_UART_PHYS + default 0x3e00 if DEBUG_BCM_KONA_UART + default 0x4000e400 if DEBUG_LL_UART_EFM32 + default 0x4009 if ARCH_LPC32XX ++ default 0x400dc000 if ARCH_MCS814X + default 0x4010 if DEBUG_PXA_UART1 + default 0x4200 if ARCH_GEMINI + default 0x5000 if DEBUG_S3C24XX_UART (DEBUG_S3C_UART0 || \ +@@ -1178,6 +1179,7 @@ config DEBUG_UART_VIRT + default 0xe0010fe0 if ARCH_RPC + default 0xe100 if DEBUG_MSM_UART + default 0xfbe0 if ARCH_EBSA110 ++ default 0xf00dc000 if ARCH_MCS814X + default 0xf01fb000 if DEBUG_NOMADIK_UART + default 0xf0201000 if DEBUG_BCM2835 + default 0xf1000300 if DEBUG_BCM_5301X -- 2.4.6.89.g851dcf4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] sunxi: fix uboot install location
On Sun, 26 Jul 2015, Zoltan HERPAI wrote: On Fri, 24 Jul 2015, John Crispin wrote: On 16/07/2015 22:20, Matthias Schiffer wrote: -BOARDS:= \ - sun4i-a10-cubieboard \ - sun4i-a10-olinuxino-lime \ - sun4i-a10-pcduino \ - sun5i-a13-olinuxino \ - sun6i-a31-colombus \ - sun6i-a31-m9 \ - sun7i-a20-bananapi \ - sun7i-a20-bananapro \ - sun7i-a20-cubieboard2 \ - sun7i-a20-cubietruck \ - sun7i-a20-olinuxino-lime \ - sun7i-a20-olinuxino-micro \ - sun7i-a20-pcduino3 \ - sun7i-a20-lamobo-r1 - define Image/BuildKernel mkimage -A arm -O linux -T kernel -C none \ -a 0x40008000 -e 0x40008000 \ -n 'ARM OpenWrt Linux-$(LINUX_VERSION)' \ -d $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-uImage - + ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) $(CP) $(KDIR)/zImage-initramfs $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs echo -ne '\x00\x00\x00\x00' $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs @@ -42,27 +26,23 @@ define Image/BuildKernel $(BIN_DIR)/$(IMG_PREFIX)-uImage-initramfs \ ) endif - - $(foreach board,$(BOARDS), - $(CP) $(DTS_DIR)/$(board).dtb $(BIN_DIR)/ - ) endef not sure about this change. maybe just stage the dtb file of the selected profile. i am not sure if zoltan added this for a reason. Thanks John and Matthias for checking on this. I'm offline until the 30th, will get back on this at that time. Before the sdcard imagebuilder, the dtb files for the supported boards were copied to BIN_DIR so the user could pick the correct dtb for the board. When the imagebuilder was rolled out, this was not removed from the Makefile - now it can go away, so I'm OK with removing this part. Although it's a good place to see which boards are supported, there are much better ways to do this. Building boot.img is probably fine to stay in KDIR - that's an interim file and not the final image. If you want that changed, please send a v2 - if not, I'm happy to apply the series in its current form. Thanks, -w- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] package makefile help
The first command compiles all subpackages listed in radvd/Makefile. You never compile subpackages directly. Em sex, 31 de jul de 2015 às 08:39, Pratik Prajapati pratik.prajapat...@gmail.com escreveu: Hi, I we write makefile using this approach https://dev.openwrt.org/browser/packages/ipv6/radvd/Makefile make package/radvd/compile V=s works but make package/radvdump/compile V=s doesn't work Why? How to correct this? ___ 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] [PATCH 6/7] ap6210-firmware: new package
Hi, Daniel Golle wrote: This package contains the WiFi NVRAM distributed with Bananian [1]. It's currently needed to use the WiFi module (BCM43362 SDIO) on the BananaPro with the brcmfmac cfg80211 driver which doesn't yet support retrieving calibration data via device-tree or platform_data. (DOS-style newlines in nvram_ap6210.txt are supposedly intentional) [1]: http://dl.bananian.org/releases/bananian-latest.zip Signed-off-by: Daniel Golle dan...@makrotopia.org --- package/firmware/ap6210-firmware/Makefile | 40 +++ .../ap6210-firmware/files/nvram_ap6210.txt | 57 ++ [snip] --- /dev/null +++ b/package/firmware/ap6210-firmware/files/nvram_ap6210.txt @@ -0,0 +1,57 @@ +#AP6210_NVRAM_V1.2_03192013 +manfid=0x2d0 +prodid=0x492 +vendid=0x14e4 +devid=0x4343 +boardtype=0x0598 + +# Board Revision is P307, same nvram file can be used for P304, P305, P306 and P307 as the tssi pa params used are same +#Please force the automatic RX PER data to the respective board directory if not using P307 board, for e.g. for P305 boards force the data into the following directory /projects/BCM43362/a1_labdata/boardtests/results/sdg_rev0305 +boardrev=0x1307 +boardnum=777 +xtalfreq=26000 +boardflags=0x80201 +boardflags2=0x80 +sromrev=3 +wl0id=0x431b +macaddr=00:90:4c:07:71:12 [snip] Hardcoding the MAC address doesn't seem ideal - cna you autogenerate this file and at least make the MAC random? Generating it at build time would be fine. Regards, -w- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Restore AP scan patch
On 2015-07-31 11:01, Dmitry Ivanov wrote: Restore AP scan patch. Signed-off-by: Dmitry Ivanov d...@ubnt.com Applied. Next time, please add the right prefix in the subject (mac80211:), and do not repeat the subject in the email body. Thanks, - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 4/7] sunxi: prepare kernel 4.1 config and patches
Hi, Daniel Golle wrote: Similar to brcm2708 have framebuffer video support built-in so fbconsole gets initialized during boot. Plus more kernel config carefully sync'ed against upstream sunxi_defconfig. Signed-off-by: Daniel Golle dan...@makrotopia.org --- target/linux/sunxi/config-4.1 | 599 ...201-dt-sun7i-add-oob-irq-to-bcm-sdio-wifi.patch | 68 + .../202-dt-sun7i-add-bluetooth-to-cubietruck.patch | 77 + .../patches-4.1/270-dt-sun7i-add-ss-to-a20.patch | 19 + .../sunxi/patches-4.1/271-crypto-add-ss.patch | 1508 .../patches-4.1/302-dt-sun7i-add-lamobo-r1.patch | 252 [snip] The main config looks bloated, I've already moved some of the unset symbols into generic. I'll add in further patches that were grabbed from other trees, and commit them together with your patch. Thanks for giving me the kick that moving to 4.1 needs to be speed up :) Thanks, -w- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/7] modules: move libahci to kmod-ata-core
Daniel Golle wrote: Newer kernels make use of libahci in ahci-platform, ie. also on non-PCI platforms. As there is no single config symbol deciding whether libahci.ko is being built or not it seems the most sensitive thing to package it in kmod-ata-core. Signed-off-by: Daniel Golle dan...@makrotopia.org --- [snip] We'll discuss this with blogic/Kaloz if they're OK with it. Regards, -w- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] rampips: Fix pinmux functions for MT7621
On Thursday 30 July 2015 14:23:06 John Crispin wrote: On 29/07/2015 17:19, Sven Eckelmann wrote: The pinctrl-rt2880 code doesn't support multiple functions with the same name. This will result in incorrect pinmux configuration. The MT7621 uses 2 bit wide configuration of the sdhci, spi, mdio, pcie, wdt, uart2 and uart3. But the code only changed a single bit for uart3, uart2 and mdio. Also the order of uart2 and uart3 group was exchanged. The spi nand settings was also reserved only 7 PINs instead of 8 as the spi spi setting. i stumbled across this problem on mt7628/88 last few days. the pinctrl code was written for a core with 1 bit / function and then grew with new socs. i'll try to fix this in the pinctrl driver the next few days rather than have redundant function names. What about the other problems like wrong settings width, wrong settings position and missing settings? Should I resend them? Btw. keep in mind that the functions have conflicting settings (different PINs). Kind regards, Sven ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/5] brcm2708: use BuildDTB in image/Makefile
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- target/linux/brcm2708/image/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index 2afd29b..266cc67 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -23,7 +23,7 @@ endif ### Image scripts ### define Build/build-dtb - $(LINUX_DIR)/scripts/dtc/dtc -O dtb -o $@.dtb $(DTS_DIR)/$(DEVICE_DTS).dts + $(call Image/BuildDTB,$(DTS_DIR)/$(DEVICE_DTS).dts,$@.dtb) endef define Build/gen-cfg -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 4/5] brcm2708: override disabled device tree module status from config.txt
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- target/linux/brcm2708/image/config.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/linux/brcm2708/image/config.txt b/target/linux/brcm2708/image/config.txt index 9e6e8e9..f66f6bc 100644 --- a/target/linux/brcm2708/image/config.txt +++ b/target/linux/brcm2708/image/config.txt @@ -921,3 +921,9 @@ init_uart_clock=300 ## 81.4 V ## #over_voltage_sdram_p=0 + + +## Device Tree Settings + + +dtparam=random=on,watchdog=on,audio=on,i2c0=on,i2c1=on,spi=on -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/5] brcm2708-gpu-fw: update to latest version
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- package/kernel/brcm2708-gpu-fw/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/kernel/brcm2708-gpu-fw/Makefile b/package/kernel/brcm2708-gpu-fw/Makefile index 5484af0..0f1e96e 100644 --- a/package/kernel/brcm2708-gpu-fw/Makefile +++ b/package/kernel/brcm2708-gpu-fw/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=brcm2708-gpu-fw -PKG_REV:=d4945b3b77d29cc5bb334422c048c1f1d003 -PKG_VERSION:=20150712 +PKG_REV:=ab7a48a014a52af09df2f7a298bf36d545d3c1fe +PKG_VERSION:=20150730 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_REV).tar.gz PKG_SOURCE_URL:=https://github.com/Hexxeh/rpi-firmware/archive/ -PKG_MD5SUM:=18fe2d11acf9e277f7b3fb2cd18eabfb +PKG_MD5SUM:=842648dcb2f3e86f4ec5c85310f81d75 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/rpi-firmware-$(PKG_REV) -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 5/5] brcm2708: fix kmod-sound-soc-iqaudio-dac and add missing symbol
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- target/linux/brcm2708/modules.mk | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/target/linux/brcm2708/modules.mk b/target/linux/brcm2708/modules.mk index 5c87c15..03aa19b 100644 --- a/target/linux/brcm2708/modules.mk +++ b/target/linux/brcm2708/modules.mk @@ -168,7 +168,7 @@ define KernelPackage/sound-soc-iqaudio-dac $(LINUX_DIR)/sound/soc/bcm/snd-soc-iqaudio-dac.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x-i2c.ko - AUTOLOAD:=$(call AutoLoad,68,sound-soc-bcm2708-i2s snd-soc-pcm512x-i2c snd-soc-iqaudio-dac) + AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm512x snd-soc-pcm512x-i2c snd-soc-iqaudio-dac) DEPENDS:=kmod-sound-soc-bcm2708-i2s $(call AddDepends/sound) endef @@ -271,7 +271,9 @@ I2C_BCM2708_MODULES:=\ define KernelPackage/i2c-bcm2708 $(call i2c_defaults,$(I2C_BCM2708_MODULES),59) TITLE:=Broadcom BCM2708 I2C master controller driver - KCONFIG+= CONFIG_I2C_BCM2708_BAUDRATE=10 + KCONFIG+= \ + CONFIG_I2C_BCM2708_BAUDRATE=10 \ + CONFIG_MFD_RPISENSE_CORE=n DEPENDS:=@TARGET_brcm2708 +kmod-i2c-core endef @@ -287,6 +289,8 @@ I2C_BCM2835_MODULES:=\ define KernelPackage/i2c-bcm2835 $(call i2c_defaults,$(I2C_BCM2835_MODULES),59) TITLE:=Broadcom BCM2835 I2C master controller driver + KCONFIG+= \ + CONFIG_MFD_RPISENSE_CORE=n DEPENDS:=@TARGET_brcm2708 +kmod-i2c-core endef -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] package makefile help
Hi, I we write makefile using this approach https://dev.openwrt.org/browser/packages/ipv6/radvd/Makefile make package/radvd/compile V=s works but make package/radvdump/compile V=s doesn't work Why? How to correct this? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v2 4/4] ramips: Fix pinmux functions for MT7621
The pinctrl-rt2880 code doesn't support multiple functions with the same name. This will result in a incorrect pinmux configuration. Signed-off-by: Sven Eckelmann s...@open-mesh.com --- This is the patch which John Crispin blo...@openwrt.org wanted to drop and instead rewrite the pinctrl-rt2880. It is just here for completeness. v2: - split into multiple patches target/linux/ramips/dts/mt7621.dtsi| 14 +++--- .../0012-MIPS-ralink-add-MT7621-support.patch | 18 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index 53b215f40f10..f09ec3e5b694 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -130,31 +130,31 @@ uart1_pins: uart1 { uart1 { ralink,group = uart1; - ralink,function = uart; + ralink,function = uart1; }; }; uart2_pins: uart2 { uart2 { ralink,group = uart2; - ralink,function = uart; + ralink,function = uart2; }; }; uart3_pins: uart3 { uart3 { ralink,group = uart3; - ralink,function = uart; + ralink,function = uart3; }; }; rgmii1_pins: rgmii1 { rgmii1 { ralink,group = rgmii1; - ralink,function = rgmii; + ralink,function = rgmii1; }; }; rgmii2_pins: rgmii2 { rgmii2 { ralink,group = rgmii2; - ralink,function = rgmii; + ralink,function = rgmii2; }; }; mdio_pins: mdio { @@ -172,11 +172,11 @@ nand_pins: nand { spi-nand { ralink,group = spi; - ralink,function = nand; + ralink,function = nand1; }; sdhci-nand { ralink,group = sdhci; - ralink,function = nand; + ralink,function = nand2; }; }; sdhci_pins: sdhci { diff --git a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch index 69401549becd..23d32681bf77 100644 --- a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch +++ b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch @@ -582,17 +582,17 @@ Signed-off-by: John Crispin blo...@openwrt.org +#define MT7621_GPIO_MODE_SDHCI_SHIFT 18 +#define MT7621_GPIO_MODE_SDHCI_GPIO 1 + -+static struct rt2880_pmx_func uart1_grp[] = { FUNC(uart, 0, 1, 2) }; ++static struct rt2880_pmx_func uart1_grp[] = { FUNC(uart1, 0, 1, 2) }; +static struct rt2880_pmx_func i2c_grp[] = { FUNC(i2c, 0, 3, 2) }; +static struct rt2880_pmx_func uart3_grp[] = { -+ FUNC(uart, 0, 5, 4), ++ FUNC(uart3, 0, 5, 4), + FUNC(i2s, 2, 5, 4), -+ FUNC(spdif, 3, 5, 4), ++ FUNC(spdif3, 3, 5, 4), +}; +static struct rt2880_pmx_func uart2_grp[] = { -+ FUNC(uart, 0, 9, 4), ++ FUNC(uart2, 0, 9, 4), + FUNC(pcm, 2, 9, 4), -+ FUNC(spdif, 3, 9, 4), ++ FUNC(spdif2, 3, 9, 4), +}; +static struct rt2880_pmx_func jtag_grp[] = { FUNC(jtag, 0, 13, 5) }; +static struct rt2880_pmx_func wdt_grp[] = { @@ -604,16 +604,16 @@ Signed-off-by: John Crispin blo...@openwrt.org + FUNC(pcie refclk, MT7621_GPIO_MODE_PCIE_REF, 19, 1) +}; +static struct rt2880_pmx_func mdio_grp[] = { FUNC(mdio, 0, 20, 2) }; -+static struct rt2880_pmx_func rgmii2_grp[] = { FUNC(rgmii, 0, 22, 12) }; ++static struct rt2880_pmx_func rgmii2_grp[] = { FUNC(rgmii2, 0, 22, 12) }; +static struct rt2880_pmx_func spi_grp[] = { + FUNC(spi, 0, 34, 7), -+ FUNC(nand, 2, 34, 7), ++ FUNC(nand1, 2, 34, 7), +}; +static struct rt2880_pmx_func sdhci_grp[] = { + FUNC(sdhci, 0, 41, 8), -+ FUNC(nand, 2, 41, 8), ++ FUNC(nand2, 2, 41, 8), +}; -+static struct rt2880_pmx_func rgmii1_grp[] = { FUNC(rgmii, 0, 49, 12) }; ++static struct rt2880_pmx_func rgmii1_grp[] = { FUNC(rgmii1, 0, 49, 12) }; + +static struct rt2880_pmx_group mt7621_pinmux_data[] = { + GRP(uart1, uart1_grp, 1,
[OpenWrt-Devel] [PATCH v2 3/4] ramips: Fix MT7621 pinmux bits for uart3, uart2, mdio
The MT7621 uses a 2 bit wide configuration of the sdhci, spi, mdio, pcie, wdt, uart2 and uart3 in the GPIO_MODE register. It was correctly done for sdhci, spi, pcie and wdt, The same has to be done for uart3, uart2 and mdio. Signed-off-by: Sven Eckelmann s...@open-mesh.com --- v2: - split into multiple patches .../0012-MIPS-ralink-add-MT7621-support.patch | 35 -- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch index 7c29fbeedb35..69401549becd 100644 --- a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch +++ b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch @@ -520,7 +520,7 @@ Signed-off-by: John Crispin blo...@openwrt.org +} --- /dev/null +++ b/arch/mips/ralink/mt7621.c -@@ -0,0 +1,192 @@ +@@ -0,0 +1,209 @@ +/* + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published @@ -555,8 +555,12 @@ Signed-off-by: John Crispin blo...@openwrt.org + +#define MT7621_GPIO_MODE_UART11 +#define MT7621_GPIO_MODE_I2C 2 -+#define MT7621_GPIO_MODE_UART33 -+#define MT7621_GPIO_MODE_UART25 ++#define MT7621_GPIO_MODE_UART3_MASK 0x3 ++#define MT7621_GPIO_MODE_UART3_SHIFT 3 ++#define MT7621_GPIO_MODE_UART3_GPIO 1 ++#define MT7621_GPIO_MODE_UART2_MASK 0x3 ++#define MT7621_GPIO_MODE_UART2_SHIFT 5 ++#define MT7621_GPIO_MODE_UART2_GPIO 1 +#define MT7621_GPIO_MODE_JTAG 7 +#define MT7621_GPIO_MODE_WDT_MASK 0x3 +#define MT7621_GPIO_MODE_WDT_SHIFT8 @@ -566,7 +570,9 @@ Signed-off-by: John Crispin blo...@openwrt.org +#define MT7621_GPIO_MODE_PCIE_MASK0x3 +#define MT7621_GPIO_MODE_PCIE_SHIFT 10 +#define MT7621_GPIO_MODE_PCIE_GPIO1 -+#define MT7621_GPIO_MODE_MDIO 12 ++#define MT7621_GPIO_MODE_MDIO_MASK0x3 ++#define MT7621_GPIO_MODE_MDIO_SHIFT 12 ++#define MT7621_GPIO_MODE_MDIO_GPIO1 +#define MT7621_GPIO_MODE_RGMII1 14 +#define MT7621_GPIO_MODE_RGMII2 15 +#define MT7621_GPIO_MODE_SPI_MASK 0x3 @@ -578,8 +584,16 @@ Signed-off-by: John Crispin blo...@openwrt.org + +static struct rt2880_pmx_func uart1_grp[] = { FUNC(uart, 0, 1, 2) }; +static struct rt2880_pmx_func i2c_grp[] = { FUNC(i2c, 0, 3, 2) }; -+static struct rt2880_pmx_func uart3_grp[] = { FUNC(uart, 0, 5, 4) }; -+static struct rt2880_pmx_func uart2_grp[] = { FUNC(uart, 0, 9, 4) }; ++static struct rt2880_pmx_func uart3_grp[] = { ++ FUNC(uart, 0, 5, 4), ++ FUNC(i2s, 2, 5, 4), ++ FUNC(spdif, 3, 5, 4), ++}; ++static struct rt2880_pmx_func uart2_grp[] = { ++ FUNC(uart, 0, 9, 4), ++ FUNC(pcm, 2, 9, 4), ++ FUNC(spdif, 3, 9, 4), ++}; +static struct rt2880_pmx_func jtag_grp[] = { FUNC(jtag, 0, 13, 5) }; +static struct rt2880_pmx_func wdt_grp[] = { + FUNC(wdt rst, 0, 18, 1), @@ -604,14 +618,17 @@ Signed-off-by: John Crispin blo...@openwrt.org +static struct rt2880_pmx_group mt7621_pinmux_data[] = { + GRP(uart1, uart1_grp, 1, MT7621_GPIO_MODE_UART1), + GRP(i2c, i2c_grp, 1, MT7621_GPIO_MODE_I2C), -+ GRP(uart3, uart3_grp, 1, MT7621_GPIO_MODE_UART3), -+ GRP(uart2, uart2_grp, 1, MT7621_GPIO_MODE_UART2), ++ GRP_G(uart3, uart3_grp, MT7621_GPIO_MODE_UART3_MASK, ++ MT7621_GPIO_MODE_UART3_GPIO, MT7621_GPIO_MODE_UART3_SHIFT), ++ GRP_G(uart2, uart2_grp, MT7621_GPIO_MODE_UART2_MASK, ++ MT7621_GPIO_MODE_UART2_GPIO, MT7621_GPIO_MODE_UART2_SHIFT), + GRP(jtag, jtag_grp, 1, MT7621_GPIO_MODE_JTAG), + GRP_G(wdt, wdt_grp, MT7621_GPIO_MODE_WDT_MASK, + MT7621_GPIO_MODE_WDT_GPIO, MT7621_GPIO_MODE_WDT_SHIFT), + GRP_G(pcie, pcie_rst_grp, MT7621_GPIO_MODE_PCIE_MASK, + MT7621_GPIO_MODE_PCIE_GPIO, MT7621_GPIO_MODE_PCIE_SHIFT), -+ GRP(mdio, mdio_grp, 1, MT7621_GPIO_MODE_MDIO), ++ GRP_G(mdio, mdio_grp, MT7621_GPIO_MODE_MDIO_MASK, ++ MT7621_GPIO_MODE_MDIO_GPIO, MT7621_GPIO_MODE_MDIO_SHIFT), + GRP(rgmii2, rgmii2_grp, 1, MT7621_GPIO_MODE_RGMII2), + GRP_G(spi, spi_grp, MT7621_GPIO_MODE_SPI_MASK, + MT7621_GPIO_MODE_SPI_GPIO, MT7621_GPIO_MODE_SPI_SHIFT), -- 2.5.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v2 2/4] ramips: Fix amount of MT7621 pins controlled by spi group
The PINS conntrolled by the SPI bits in the GPIO_MODE register is always 7 and not 8 for nand mode. Signed-off-by: Sven Eckelmann s...@open-mesh.com --- v2: - split into multiple patches .../linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch index f08ecb032623..7c29fbeedb35 100644 --- a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch +++ b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch @@ -593,7 +593,7 @@ Signed-off-by: John Crispin blo...@openwrt.org +static struct rt2880_pmx_func rgmii2_grp[] = { FUNC(rgmii, 0, 22, 12) }; +static struct rt2880_pmx_func spi_grp[] = { + FUNC(spi, 0, 34, 7), -+ FUNC(nand, 2, 34, 8), ++ FUNC(nand, 2, 34, 7), +}; +static struct rt2880_pmx_func sdhci_grp[] = { + FUNC(sdhci, 0, 41, 8), -- 2.5.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] rampips: Fix pinmux functions for MT7621
On 31/07/2015 11:23, Sven Eckelmann wrote: On Friday 31 July 2015 10:33:59 John Crispin wrote: [...] What about the other problems like wrong settings width, wrong settings position and missing settings? Should I resend them? which patch exactly ? I have now submitted the patch but this time split into separate patches [1,2,3] (these are the ones with the other problems). The last one [4] is the patch which you want to drop and instead modify the pinctrl-rt2880. thanks, i'll add them to my tree in a sec and push them later on with a pile of other mt7628 patches which i am testing just now. Kind regards, Sven [1] http://patchwork.ozlabs.org/patch/502439/ [2] http://patchwork.ozlabs.org/patch/502440/ [3] http://patchwork.ozlabs.org/patch/502442/ [4] http://patchwork.ozlabs.org/patch/502444/ ___ 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] EdgeRouter POE support
On 07/28/15 01:27, Wojtek Sawaściuk wrote: Hello, What is current status of support for Ubiquity's EdgeRouter POE (this one with 2+3switch ports) ? I can't flash it with sysupgrade using openwrt-15.05-rc3-octeon-er: Sysupgrade is not yet supported on cavium,octeon-3860. Image check 'platform_check_image' failed. I suspect r45462 (and related r45496) broke sysupgrade on EdgeRouter devices. it fills /tmp/sysinfo/board_name with cavium,octeon-3860 while sysupgrade expects it to be er or erlite. This is because octeon only has a few generic dts files, nothing board specific, so there is no useable board name in /proc/device-tree/compatible. I worked around this by putting this intarget/linux/octeon/base-files/lib/preinit/11_sysinfo: #!/bin/sh verify_sysinfo() { if [ -f /tmp/sysinfo/board_name ]; then name=$(cat /tmp/sysinfo/board_name) case $name in er|erlite|erpro) continue ;; *) rm /tmp/sysinfo/board_name ;; esac fi } boot_hook_add preinit_main verify_sysinfo A real fix for this is still needed though. I can with openwrt-15.05-rc3-octeon-erlite but system detects only eth0 and eth1, not switch interface (same status with BarierBraker). I only have ERL devices without switch, so can't help you with that, sorry. Kind regards, Stijn ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v2] lantiq: get more status information from xDSL
Signed-off-by: Florian Eckert eckert.flor...@googlemail.com Signed-off-by: Helge Mader hma...@tdt.de Tested-by: Martin Blumenstingl martin.blumensti...@googlemail.com --- v2 fix annex and line mode comma v2 fix latency to ms .../lantiq/base-files/lib/functions/lantiq_dsl.sh | 423 +++- 1 file changed, 411 insertions(+), 12 deletions(-) mode change 100644 = 100755 target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh old mode 100644 new mode 100755 index 56b8652..938658b --- a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh @@ -19,6 +19,9 @@ dsl_cmd() { dsl_val() { echo $(expr $1 : '.*'$2'=\([-\.[:alnum:]]*\).*') } +dsl_string() { + echo $(expr $1 : '.*'$2'=(\([A-Z0-9,]*\))') +} # # Simple divide by 10 routine to cope with one decimal place @@ -49,6 +52,16 @@ scale() { fi } +scale_latency() { + local val=$1 + local a + local b + + a=$(expr $val / 100) + b=$(expr $val % 100) + printf %d.%d ms ${a} ${b} +} + # # Read the data rates for both directions # @@ -77,7 +90,7 @@ data_rates() { echo dsl.data_rate_down_s=\$sdrd\ echo dsl.data_rate_up_s=\$sdru\ else - echo Data Rate:${sdrd}/s / ${sdru}/s + echo Data Rate:Down: ${sdrd}/s / Up: ${sdru}/s fi } @@ -92,11 +105,340 @@ chipset() { vig=$(dsl_cmd vig) cs=$(dsl_val $vig DSL_ChipSetType) csv=$(dsl_val $vig DSL_ChipSetHWVersion) + csfw=$(dsl_val $vig DSL_ChipSetFWVersion) + csapi=$(dsl_val $vig DSL_DriverVersionApi) if [ $action = lucistat ]; then echo dsl.chipset=\${cs} ${csv}\ + echo dsl.firmware_version=\${csfw}\ + echo dsl.api_version=\${csapi}\ else - echo Chipset: ${cs} ${csv} + echo Chipset: ${cs} ${csv} + echo Firmware Version: ${csfw} + echo API Version: ${csapi} + fi +} + +# +# Vendor information +# +vendor() { + local lig + local vid + local svid + + lig=$(dsl_cmd g997lig 1) + vid=$(dsl_string $lig G994VendorID) + svid=$(dsl_string $lig SystemVendorID) + + if [ $action = lucistat ]; then + echo dsl.atuc_vendor_id=\${vid}\ + echo dsl.atuc_system_vendor_id=\${svid}\ + else + echo ATU-C Vendor ID: ${vid} + echo ATU-C System Vendor ID: ${svid} + fi +} + +# +# XTSE capabilities +# +xtse() { + local xtusesg + local xtse1 + local xtse2 + local xtse3 + local xtse4 + local xtse5 + local xtse6 + local xtse7 + local xtse8 + + local xtse_s= + + local annex_s= + local line_mode_s= + local cmd= + + xtusesg=$(dsl_cmd g997xtusesg) + xtse1=$(dsl_val $xtusesg XTSE1) + xtse2=$(dsl_val $xtusesg XTSE2) + xtse3=$(dsl_val $xtusesg XTSE3) + xtse4=$(dsl_val $xtusesg XTSE4) + xtse5=$(dsl_val $xtusesg XTSE5) + xtse6=$(dsl_val $xtusesg XTSE6) + xtse7=$(dsl_val $xtusesg XTSE7) + xtse8=$(dsl_val $xtusesg XTSE8) + + # Evaluate Annex (according to G.997.1, 7.3.1.1.1) + if [ $((xtse1 13)) != 0 \ + -o $((xtse2 1)) != 0 \ + -o $((xtse3 12)) != 0 \ + -o $((xtse4 3)) != 0 \ + -o $((xtse6 3)) != 0 \ + -o $((xtse8 1)) != 0 ]; then + annex_s= A, + fi + + if [ $((xtse1 48)) != 0 \ + -o $((xtse2 2)) != 0 \ + -o $((xtse3 48)) != 0 \ + -o $((xtse6 12)) != 0 \ + -o $((xtse8 2)) != 0 ]; then + annex_s=$annex_s B, + fi + + if [ $((xtse1 194)) != 0 \ + -o $((xtse2 12)) != 0 \ + -o $((xtse8 4)) != 0 ]; then + annex_s=$annex_s C, + fi + + if [ $((xtse4 48)) != 0 \ + -o $((xtse5 3)) != 0 \ + -o $((xtse6 192)) != 0 ]; then + annex_s=$annex_s I, + fi + + if [ $((xtse4 192)) != 0 \ + -o $((xtse7 3)) != 0 ]; then + annex_s=$annex_s J, + fi + + if [ $((xtse5 60)) != 0 ]; then + annex_s=$annex_s L, + fi + + if [ $((xtse5 192)) != 0 \ + -o $((xtse7 12)) != 0 ]; then + annex_s=$annex_s M, + fi + + annex_s=`echo ${annex_s:1}` + annex_s=`echo ${annex_s%?}` + + # Evaluate Line Mode (according to G.997.1, 7.3.1.1.1) + + # Regional standard: ANSI T1.413 + if [ $((xtse1 1)) != 0 ]; then + line_mode_s= T1.413, + fi
[OpenWrt-Devel] [PATCH] Restore AP scan patch
Restore AP scan patch. Signed-off-by: Dmitry Ivanov d...@ubnt.com --- package/kernel/mac80211/patches/210-ap_scan.patch | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 package/kernel/mac80211/patches/210-ap_scan.patch diff --git a/package/kernel/mac80211/patches/210-ap_scan.patch b/package/kernel/mac80211/patches/210-ap_scan.patch new file mode 100644 index 000..29f05c4 --- /dev/null +++ b/package/kernel/mac80211/patches/210-ap_scan.patch @@ -0,0 +1,11 @@ +--- a/net/mac80211/cfg.c b/net/mac80211/cfg.c +@@ -2008,7 +2008,7 @@ static int ieee80211_scan(struct wiphy * +* the frames sent while scanning on other channel will be +* lost) +*/ +- if (sdata-u.ap.beacon ++ if (0 sdata-u.ap.beacon + (!(wiphy-features NL80211_FEATURE_AP_SCAN) || +!(req-flags NL80211_SCAN_FLAG_AP))) + return -EOPNOTSUPP; -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v2 1/4] ramips: Fix uart2/uart3 pinmux order on MT7621
The uart3 setting in GPIO_MODE register is before the uart2 setting. Also don't mix uart2 and uart3 function/groups. Signed-off-by: Sven Eckelmann s...@open-mesh.com --- v2: - split into multiple patches .../ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch index 771de12f171d..f08ecb032623 100644 --- a/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch +++ b/target/linux/ramips/patches-3.18/0012-MIPS-ralink-add-MT7621-support.patch @@ -555,8 +555,8 @@ Signed-off-by: John Crispin blo...@openwrt.org + +#define MT7621_GPIO_MODE_UART11 +#define MT7621_GPIO_MODE_I2C 2 -+#define MT7621_GPIO_MODE_UART23 -+#define MT7621_GPIO_MODE_UART35 ++#define MT7621_GPIO_MODE_UART33 ++#define MT7621_GPIO_MODE_UART25 +#define MT7621_GPIO_MODE_JTAG 7 +#define MT7621_GPIO_MODE_WDT_MASK 0x3 +#define MT7621_GPIO_MODE_WDT_SHIFT8 @@ -604,8 +604,8 @@ Signed-off-by: John Crispin blo...@openwrt.org +static struct rt2880_pmx_group mt7621_pinmux_data[] = { + GRP(uart1, uart1_grp, 1, MT7621_GPIO_MODE_UART1), + GRP(i2c, i2c_grp, 1, MT7621_GPIO_MODE_I2C), -+ GRP(uart3, uart2_grp, 1, MT7621_GPIO_MODE_UART2), -+ GRP(uart2, uart3_grp, 1, MT7621_GPIO_MODE_UART3), ++ GRP(uart3, uart3_grp, 1, MT7621_GPIO_MODE_UART3), ++ GRP(uart2, uart2_grp, 1, MT7621_GPIO_MODE_UART2), + GRP(jtag, jtag_grp, 1, MT7621_GPIO_MODE_JTAG), + GRP_G(wdt, wdt_grp, MT7621_GPIO_MODE_WDT_MASK, + MT7621_GPIO_MODE_WDT_GPIO, MT7621_GPIO_MODE_WDT_SHIFT), -- 2.5.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings
/etc/config/wireless On Fri, 31 Jul 2015, N.Leiten wrote: Date: Fri, 31 Jul 2015 12:32:14 +0300 From: N.Leiten nicklei...@gmail.com To: openwrt-devel@lists.openwrt.org Subject: Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings In email dated Пятница - 31 июля 2015 17:08:23 user John kerry wrote: Hi, I am working on Ar71xx openWRT Luci project. By default the Wi-Fi is disabled and SSID is OpenWrt. I need to change the default settings. Could anyone help me to change the default settings. Best Regards, John You can look at mac80211 package, in package/kernel/mac80211/files/lib/wifi/mac80211.sh there's function detect_mac80211() and at the end of file there's block of default wifi parameters. ___ 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] Change OpenWrt Wifi default settings
Hi, I am working on Ar71xx openWRT Luci project. By default the Wi-Fi is disabled and SSID is OpenWrt. I need to change the default settings. Could anyone help me to change the default settings. Best Regards, John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] rampips: Fix pinmux functions for MT7621
On Friday 31 July 2015 10:33:59 John Crispin wrote: [...] What about the other problems like wrong settings width, wrong settings position and missing settings? Should I resend them? which patch exactly ? I have now submitted the patch but this time split into separate patches [1,2,3] (these are the ones with the other problems). The last one [4] is the patch which you want to drop and instead modify the pinctrl-rt2880. Kind regards, Sven [1] http://patchwork.ozlabs.org/patch/502439/ [2] http://patchwork.ozlabs.org/patch/502440/ [3] http://patchwork.ozlabs.org/patch/502442/ [4] http://patchwork.ozlabs.org/patch/502444/ signature.asc Description: This is a digitally signed message part. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings
In email dated Пятница - 31 июля 2015 17:08:23 user John kerry wrote: Hi, I am working on Ar71xx openWRT Luci project. By default the Wi-Fi is disabled and SSID is OpenWrt. I need to change the default settings. Could anyone help me to change the default settings. Best Regards, John You can look at mac80211 package, in package/kernel/mac80211/files/lib/wifi/mac80211.sh there's function detect_mac80211() and at the end of file there's block of default wifi parameters. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [brcm63xx] Add support for Plusnet 2704N
Hello, sorry I did not explain myself correctly. $(eval $(call bcm63xxCfe,FAST2604 ,F@ST2604 ,fast2604 ,F@ST2604,... $(eval $(call bcm63xxCfe,FAST2704N,FAST2704N,fast2704n,F@ST2704N,... If I use the the @ symbol in the 3rd argument (DEVICE_NAME), then the kernel does not boot any-more. Looking at all the other builds, the device_name uses the same name as the board_id. When I said board_id, I really meant the DEVICE_NAME. On 30/07/2015 20:34, Jonas Gorski wrote: Hi, On Tue, Jul 28, 2015 at 6:28 AM, Matt Goring matt.gor...@googlemail.com wrote: BCM6318: add support for Plusnet / Sagem 2704N (V1) Signed-off-by: Matt Goring matt.gor...@googlemail.com --- For future submissions, add a changelog here for all the changes between (re-)submissions. target/linux/brcm63xx/base-files/etc/diag.sh |3 + .../brcm63xx/base-files/etc/uci-defaults/01_leds |3 + .../base-files/etc/uci-defaults/02_network |1 + target/linux/brcm63xx/base-files/lib/brcm63xx.sh |3 + target/linux/brcm63xx/dts/fast2704n.dts| 84 target/linux/brcm63xx/image/Makefile |2 + .../patches-3.18/571-board_fast2704n.patch | 65 +++ .../brcm63xx/patches-4.1/571-board_fast2704n.patch | 65 +++ target/linux/brcm63xx/profiles/sagem.mk| 10 +++ 9 files changed, 236 insertions(+) create mode 100644 target/linux/brcm63xx/dts/fast2704n.dts create mode 100644 target/linux/brcm63xx/patches-3.18/571-board_fast2704n.patch create mode 100644 target/linux/brcm63xx/patches-4.1/571-board_fast2704n.patch --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -623,6 +623,8 @@ $(eval $(call bcm63xxCfe,FAST2404,F@ST2404,fast2404,F@ST2404,6348)) $(eval $(call bcm63xxCfe,FAST2504n,F@ST2504n,fast2504n,F@ST2504n,6362)) # Sagem F@ST2604 $(eval $(call bcm63xxCfe,FAST2604,F@ST2604,fast2604,F@ST2604,6348)) +# Sagem F@ST2704N V1 / Plusnet F@ST2704N V1 +$(eval $(call bcm63xxCfe,FAST2704N,FAST2704N,fast2704n,F@ST2704N,6318,--pad 4)) I thought using F@ST2704N as the board name in the image does not work? Rest looks fine. Jonas ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel