[OpenWrt-Devel] [PATCH] ramips: drop m25p,chunked-io from dts
This option was a spi nor hack which is dropped in gbcf4a5f474 Signed-off-by: Chuanhong Guo --- target/linux/ramips/dts/AP-MT7621A-V60.dts | 1 - target/linux/ramips/dts/AWUSFREE1.dts | 1 - target/linux/ramips/dts/DIR-860L-B1.dts| 1 - target/linux/ramips/dts/DUZUN-DM06.dts | 1 - target/linux/ramips/dts/EW1200.dts | 1 - target/linux/ramips/dts/FIREWRT.dts| 1 - target/linux/ramips/dts/GB-PC1.dts | 1 - target/linux/ramips/dts/GB-PC2.dts | 1 - target/linux/ramips/dts/GL-MT300N-V2.dts | 1 - target/linux/ramips/dts/HC5661A.dts| 1 - target/linux/ramips/dts/HC5861B.dts| 1 - target/linux/ramips/dts/K2P.dts| 1 - target/linux/ramips/dts/LINKIT7688.dts | 1 - target/linux/ramips/dts/MAC1200RV2.dts | 1 - target/linux/ramips/dts/MIWIFI-NANO.dts| 1 - target/linux/ramips/dts/MT7628.dts | 1 - target/linux/ramips/dts/Newifi-D2.dts | 1 - target/linux/ramips/dts/OMEGA2.dtsi| 1 - target/linux/ramips/dts/PBR-D1.dts | 1 - target/linux/ramips/dts/PBR-M1.dts | 1 - target/linux/ramips/dts/R6120.dts | 1 - target/linux/ramips/dts/RE350.dts | 1 - target/linux/ramips/dts/RE6500.dts | 1 - target/linux/ramips/dts/SAP-G3200U3.dts| 1 - target/linux/ramips/dts/SK-WB8.dts | 1 - target/linux/ramips/dts/SKW92A.dts | 1 - target/linux/ramips/dts/TL-MR3020V3.dts| 1 - target/linux/ramips/dts/TL-WR840NV5.dts| 1 - target/linux/ramips/dts/TPLINK-8M-SPLIT-UBOOT.dtsi | 1 - target/linux/ramips/dts/TPLINK-8M.dtsi | 1 - target/linux/ramips/dts/Timecloud.dts | 1 - target/linux/ramips/dts/U7621-06-256M-16M.dts | 1 - target/linux/ramips/dts/U7621-06-512M-64M.dts | 1 - target/linux/ramips/dts/U7628-01-128M-16M.dts | 1 - target/linux/ramips/dts/UBNT-ER-e50.dtsi | 1 - target/linux/ramips/dts/VOCORE2.dts| 1 - target/linux/ramips/dts/VOCORE2LITE.dts| 1 - target/linux/ramips/dts/VR500.dts | 1 - target/linux/ramips/dts/W06.dts| 1 - target/linux/ramips/dts/W2914NSV2.dtsi | 1 - target/linux/ramips/dts/WCR-1166DS.dts | 1 - target/linux/ramips/dts/WIDORA-NEO-16M.dts | 1 - target/linux/ramips/dts/WIDORA-NEO-32M.dts | 1 - target/linux/ramips/dts/WITI.dtsi | 1 - target/linux/ramips/dts/WL-WN570HA1.dts| 1 - target/linux/ramips/dts/WL-WN575A3.dts | 1 - target/linux/ramips/dts/WN-AX1167GR.dts| 1 - target/linux/ramips/dts/WN-GX300GR.dts | 1 - target/linux/ramips/dts/WNDR3700V5.dts | 1 - target/linux/ramips/dts/WR1200JS.dts | 1 - target/linux/ramips/dts/WR1201.dts | 1 - target/linux/ramips/dts/WRC-1167GHBK2-S.dts| 1 - target/linux/ramips/dts/WRTNODE2.dtsi | 1 - target/linux/ramips/dts/WSR-1166.dts | 1 - target/linux/ramips/dts/WSR-600.dts| 1 - target/linux/ramips/dts/ZBT-WE1226.dts | 1 - target/linux/ramips/dts/ZBT-WE1326.dts | 1 - target/linux/ramips/dts/ZBT-WE3526.dts | 1 - target/linux/ramips/dts/ZBT-WG2626.dts | 1 - target/linux/ramips/dts/ZBT-WG3526.dtsi| 1 - target/linux/ramips/dts/elecom_wrc-gst.dtsi| 1 - target/linux/ramips/dts/ki_rb.dts | 1 - 62 files changed, 62 deletions(-) diff --git a/target/linux/ramips/dts/AP-MT7621A-V60.dts b/target/linux/ramips/dts/AP-MT7621A-V60.dts index bd29e0b3f2..b613c9c371 100644 --- a/target/linux/ramips/dts/AP-MT7621A-V60.dts +++ b/target/linux/ramips/dts/AP-MT7621A-V60.dts @@ -85,7 +85,6 @@ compatible = "mx25l6405d","jedec,spi-nor"; reg = <0 0>; spi-max-frequency = <1000>; - m25p,chunked-io = <32>; partitions { compatible = "fixed-partitions"; diff --git a/target/linux/ramips/dts/AWUSFREE1.dts b/target/linux/ramips/dts/AWUSFREE1.dts index 3edafb3335..52d1e4ebe2 100644 --- a/target/linux/ramips/dts/AWUSFREE1.dts +++ b/target/linux/ramips/dts/AWUSFREE1.dts @@ -129,7 +129,6 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <1000>; - m25p,chunked-io = <32>; partitions { compatible = "fixed-partitions"; diff --git a/target/linux/ramips/dts/DIR-860L-B1.dts b/target/linux/ramips/dts/DIR-860L-B1.dts index a37d68ff3b..541520f852 100644 --- a/target/linux/ramips/dts/DIR-860L-B1.dts +++ b/target/linux/ramips/dts/DIR-860L-B1.dts @@ -74,7 +74,6 @@
[OpenWrt-Devel] [PATCH 2/2] ath79: GL.iNet AR300M family: Correct DTS LED definitions
Resend as per M. Kreskin From f485678e7f37b3f2995fefc1e7c41794091bd73e Mon Sep 17 00:00:00 2001 From: Jeff Kletsky Date: Sun, 20 Jan 2019 14:48:09 -0800 Subject: [PATCH 2/2] ath79: GL.iNet AR300M family: Correct DTS LED definitions Change the "status" LED to proper GPIO 12 and "red" naming. Remove GPIO 2 from definition as a USB LED. GPIO 2 is used to control power to the USB socket, not an LED. As such, PWM on the line or typical LED triggers are inappropriate. Users who wish to control the USB power for custom applications can manipulate the GPIO through code, or for example, export it through /sys/class/gpio/export. Runtime-tested: GL.iNet AR300M-Lite Signed-off-by: Jeff Kletsky --- target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi index 2a0c4385cd..9baa6235b2 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi @@ -41,13 +41,6 @@ leds { compatible = "gpio-leds"; - usb { - label = "gl-ar300m:green:usb"; - gpios = < 2 GPIO_ACTIVE_LOW>; - trigger-sources = <_port>; - linux,default-trigger = "usbport"; - }; - wlan { label = "gl-ar300m:green:wlan"; gpios = < 14 GPIO_ACTIVE_LOW>; @@ -60,8 +53,8 @@ }; led_status: status { - label = "gl-ar300m:green:status"; - gpios = < 3 GPIO_ACTIVE_LOW>; + label = "gl-ar300m:red:status"; + gpios = < 12 GPIO_ACTIVE_LOW>; }; }; }; -- 2.11.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/2] ath79: Add GL.iNet AR-300M-Lite
Resend as per M. Kreskin From 2e3b968813e3862c5319c6c360781b0921d4b413 Mon Sep 17 00:00:00 2001 From: Jeff Kletsky Date: Sun, 20 Jan 2019 14:07:30 -0800 Subject: [PATCH 1/2] ath79: Add GL.iNet AR-300M-Lite AR300M-Lite is single-Ethernet variant of the AR300M series Its eth0 would otherwise be assigned to the WAN interface making it unreachable firstboot or failsafe. Installation instructions from OEM (OpenWrt variant): * Install sysupgrade.bin using OEM's "Advanced" GUI (LuCI), * Do not preserve settings * Access rebooted device via Ethernet at OpenWrt default address Runtime-tested: GL.iNet AR300M-Lite Signed-off-by: Jeff Kletsky --- target/linux/ath79/base-files/etc/board.d/02_network | 1 + target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts | 8 target/linux/ath79/image/generic.mk | 14 -- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 3eb0e413f3..fa947203f8 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -13,6 +13,7 @@ ath79_setup_interfaces() devolo,dvl1200i|\ devolo,dvl1750c|\ devolo,dvl1750i|\ + glinet,ar300m-lite|\ ocedo,koala|\ ocedo,raccoon|\ pcs,cap324|\ diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts new file mode 100644 index 00..b14d1a47a9 --- /dev/null +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts @@ -0,0 +1,8 @@ +/dts-v1/; + +#include "qca9531_glinet_gl-ar300m-nor.dts" + +/ { + compatible = "glinet,gl-ar300m-lite", "qca,qca9531"; + model = "GL.iNet GL-AR300M-Lite"; +}; diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 22ba5305b1..2021d83471 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -296,13 +296,23 @@ define Device/glinet_gl-ar150 endef TARGET_DEVICES += glinet_gl-ar150 -define Device/glinet_gl-ar300m-nor +define Device/glinet_gl-ar300m-common-nor ATH_SOC := qca9531 - DEVICE_TITLE := GL.iNet GL-AR300M DEVICE_PACKAGES := kmod-usb-core kmod-usb2 IMAGE_SIZE := 16000k SUPPORTED_DEVICES += gl-ar300m endef + +define Device/glinet_gl-ar300m-lite + $(Device/glinet_gl-ar300m-common-nor) + DEVICE_TITLE := GL.iNet GL-AR300M-Lite +endef +TARGET_DEVICES += glinet_gl-ar300m-lite + +define Device/glinet_gl-ar300m-nor + $(Device/glinet_gl-ar300m-common-nor) + DEVICE_TITLE := GL.iNet GL-AR300M +endef TARGET_DEVICES += glinet_gl-ar300m-nor define Device/glinet_gl-ar750s -- 2.11.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Ath10k driver load fails to load on 18.06.1 and latest trunk
Having problems using the ath10k/QCA988X for Compex WLE600VX mini pcie wifi card to load in the APU X86 X64 system. I've used the Compex 200 series card with good success, so wanted to try a more up to date card with the 600 series. I've tried the 18.06.1 and the latest trunk but I get the same errors. Even with the errors the car seems to limp along and 1/2 work, but not in a usable way. Wondering if its a bad card or are the drivers known to have issues with these cards. Here are the system messages I get at boot. Sun Jan 27 16:12:37 2019 kern.info kernel: [ 7.415352] ath10k_pci :01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 Sun Jan 27 16:12:37 2019 kern.warn kernel: [ 7.653890] ath10k_pci :01:00.0: Direct firmware load for ath10k/pre-cal-pci-:01:00.0.bin failed with error -2 Sun Jan 27 16:12:37 2019 kern.warn kernel: [ 7.664864] ath10k_pci :01:00.0: Falling back to user helper Sun Jan 27 16:12:37 2019 kern.err kernel: [ 7.677730] firmware ath10k!pre-cal-pci-:01:00.0.bin: firmware_loading_store: map pages failed Sun Jan 27 16:12:37 2019 kern.warn kernel: [ 7.687198] ath10k_pci :01:00.0: Direct firmware load for ath10k/cal-pci-:01:00.0.bin failed with error -2 Sun Jan 27 16:12:37 2019 kern.warn kernel: [ 7.698039] ath10k_pci :01:00.0: Falling back to user helper Sun Jan 27 16:12:37 2019 kern.err kernel: [ 7.710433] firmware ath10k!cal-pci-:01:00.0.bin: firmware_loading_store: map pages failed Sun Jan 27 16:12:37 2019 kern.warn kernel: [ 7.720756] ath10k_pci :01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2 Sun Jan 27 16:12:37 2019 kern.warn kernel: [ 7.731877] ath10k_pci :01:00.0: Falling back to user helper Sun Jan 27 16:12:37 2019 kern.err kernel: [ 7.745497] firmware ath10k!QCA988X!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed Sun Jan 27 16:12:37 2019 kern.info kernel: [ 7.766983] ath10k_pci :01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub : Sun Jan 27 16:12:37 2019 kern.info kernel: [ 7.776578] ath10k_pci :01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1 Sun Jan 27 16:12:37 2019 kern.info kernel: [ 7.787839] ath10k_pci :01:00.0: firmware ver 10.2.4-1.0-00041 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 f43fa422 Sun Jan 27 16:12:37 2019 kern.warn kernel: [ 7.832906] ath10k_pci :01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2 Sun Jan 27 16:12:37 2019 kern.warn kernel: [ 7.843667] ath10k_pci :01:00.0: Falling back to user helper Sun Jan 27 16:12:37 2019 kern.err kernel: [ 7.856609] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed Sun Jan 27 16:12:37 2019 kern.info kernel: [ 7.866578] ath10k_pci :01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08 Sun Jan 27 16:12:37 2019 kern.info kernel: [ 9.008780] ath10k_pci :01:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1 Thanks Derek ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 4/9] sunxi: switch to lzma compressed fit image
Hi, On 27.1.2019 1.13, Hauke Mehrtens wrote: > On 1/14/19 6:54 PM, Oskari Lemmela wrote: >> Use LZMA compressed fit image to load kernel and dtb. >> Fit image can be used load kernel and dtb from SPI flash. >> >> Signed-off-by: Oskari Lemmela >> --- >> package/boot/uboot-sunxi/uEnv-a64.txt | 5 ++- >> package/boot/uboot-sunxi/uEnv-default.txt | 5 ++- >> package/boot/uboot-sunxi/uEnv-pangolin.txt | 5 ++- >> target/linux/sunxi/Makefile| 2 +- >> target/linux/sunxi/cortexa53/target.mk | 1 - >> target/linux/sunxi/image/Makefile | 17 +++--- >> target/linux/sunxi/image/cortex-a53.mk | 25 --- >> target/linux/sunxi/image/cortex-a7.mk | 36 +++--- >> target/linux/sunxi/image/cortex-a8.mk | 11 --- >> 9 files changed, 49 insertions(+), 58 deletions(-) >> > My H3 Xunlong Orange Pi R1 does not boot fit images, CONFIG_FIT is not > set in my U-Boot configuration. > > I am getting this error: > --- > Scanning mmc 0:1... > Found U-Boot script /boot.scr > 301 bytes read in 1 ms (293.9 KiB/s) > ## Executing script at 4310 > 2770296 bytes read in 125 ms (21.1 MiB/s) > Wrong Image Format for bootm command > ERROR: can't get kernel image! > SCRIPT FAILED: continuing... > > Device 0: device type unknown > ... is now current device > ethernet@1c3 Waiting for PHY auto negotiation to complete.. done > BOOTP broadcast 1 > --- > > I activated these U-Boot configuration options: > CONFIG_FIT=y > CONFIG_LZMA=y > and now I am hitting the next problem: > --- > Found U-Boot script /boot.scr > 301 bytes read in 2 ms (146.5 KiB/s) > ## Executing script at 4310 > 2772324 bytes read in 126 ms (21 MiB/s) > ## Loading kernel from FIT Image at 4330 ... >Using 'config@1' configuration >Trying 'kernel@1' kernel subimage > Description: ARM OpenWrt Linux-4.14.95 > Type: Kernel Image > Compression: lzma compressed > Data Start: 0x433000e4 > Data Size:2755114 Bytes = 2.6 MiB > Architecture: ARM > OS: Linux > Load Address: 0x4200 > Entry Point: 0x4200 > Hash algo:crc32 > Hash value: 62b0495d > Hash algo:sha1 > Hash value: ca607078b06de248018641320577e910a1967dab >Verifying Hash Integrity ... crc32+ sha1+ OK > ## Loading fdt from FIT Image at 4330 ... >Using 'config@1' configuration >Trying 'fdt@1' fdt subimage > Description: ARM OpenWrt sun8i-h2-plus-orangepi-r1 device tree blob > Type: Flat Device Tree > Compression: uncompressed > Data Start: 0x435a0c54 > Data Size:15325 Bytes = 15 KiB > Architecture: ARM > Hash algo:crc32 > Hash value: c9c29924 > Hash algo:sha1 > Hash value: 6f4bee23444eb246cc8287c40ebb240cdf45aa9d >Verifying Hash Integrity ... crc32+ sha1+ OK >Booting using the fdt blob at 0x435a0c54 > EHCI failed to shut down host controller. > EHCI failed to shut down host controller. >Uncompressing Kernel Image ... Image too large: increase > CONFIG_SYS_BOOTM_LEN > Must RESET board to recover > resetting ... > --- > > My H5 Xunlong Orange Pi Zero Plus works fine. > > Hauke Thanks for testing. I did not expect that some of targets does not have CONFIG_FIT enabled. I'll modify patch so that only cortex-a53 platforms use this lzma and fit image boot. U-boot is not currently updated while running sysupgrade. That has to implemented before FIT boot can be enabled to other sunxi targets. Thanks, Oskari ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel