[PATCH] [iwinfo] devices: add device id for Atheros AR9287 and AR9380

2023-05-22 Thread yangshiji66
From: Shiji Yang 

Atheros AR9287 is a 2*2 PCI wireless chip used in TP-Link TL-WR841N v7.
Atheros AR9380 is a 3*3 PCI wireless chip used in TP-Link TL-WR2543N v1.

Signed-off-by: Shiji Yang 
---
 devices.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/devices.txt b/devices.txt
index 5f0b369..3f28446 100644
--- a/devices.txt
+++ b/devices.txt
@@ -149,6 +149,8 @@
 0x168c 0x002e 0x1a3b 0x11210  0  "Atheros"  "AR9287"
 0x168c 0x002e 0x0777 0xe0a28  0  "Ubiquiti" "NanoStation Loco M2 (XM)" 
/* wrong offset! */
 0x168c 0x002e 0x168c 0x30a40  0  "Atheros"  "AR9287"
+0x168c 0x002e 0x168c 0xa1990  0  "Atheros"  "AR9287"
+0x168c 0x0030 0x168c 0x31120  0  "Atheros"  "AR9380"
 0x168c 0x0030 0x168c 0x31140  0  "Atheros"  "AR9390"
 0x168c 0x0033 0x168c 0xa1200  0  "Atheros"  "AR9580"
 0x168c 0x0033 0x168c 0xa1360  0  "Atheros"  "AR9580"
-- 
2.30.2


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH] ramips: fix build error on Airlink AR670W

2023-05-19 Thread yangshiji66
From: Shiji Yang 

The 'KERNEL' is not referenced by other objects, so double '$$' will
cause shell unable to parse the variable 'BLOCKSIZE':
  dd ... bs=$(BLOCKSIZE) conv=sync
  bash: line 1: BLOCKSIZE: command not found

fixes: 09a0efbe83(ramips: set default BLOCKSIZE to 64k for nor flash devices)

Signed-off-by: Shiji Yang 
---
 target/linux/ramips/image/rt288x.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/image/rt288x.mk 
b/target/linux/ramips/image/rt288x.mk
index 3d2d0c7ae0..c93d7d78e5 100644
--- a/target/linux/ramips/image/rt288x.mk
+++ b/target/linux/ramips/image/rt288x.mk
@@ -15,7 +15,7 @@ define Device/airlink101_ar670w
   DEVICE_VENDOR := Airlink
   DEVICE_MODEL := AR670W
   IMAGE_SIZE := 3840k
-  KERNEL := $(KERNEL_DTB) | pad-to (BLOCKSIZE)
+  KERNEL := $(KERNEL_DTB) | pad-to $$(BLOCKSIZE)
   IMAGES += factory.bin
   IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
wrg-header wrgn16a_airlink_ar670w
-- 
2.30.2


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH 1/1] ramips: fix build error on Airlink AR670W

2023-05-18 Thread yangshiji66--- via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.--- Begin Message ---
From: Shiji Yang 

The 'KERNEL' is not referenced by other objects, so double '$$' will
cause shell unable to parse the variable 'BLOCKSIZE':
  dd ... bs=$(BLOCKSIZE) conv=sync
  bash: line 1: BLOCKSIZE: command not found

fixes: 09a0efbe83(ramips: set default BLOCKSIZE to 64k for nor flash devices)

Signed-off-by: Shiji Yang 
---
 target/linux/ramips/image/rt288x.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/image/rt288x.mk 
b/target/linux/ramips/image/rt288x.mk
index 3d2d0c7ae0..c93d7d78e5 100644
--- a/target/linux/ramips/image/rt288x.mk
+++ b/target/linux/ramips/image/rt288x.mk
@@ -15,7 +15,7 @@ define Device/airlink101_ar670w
   DEVICE_VENDOR := Airlink
   DEVICE_MODEL := AR670W
   IMAGE_SIZE := 3840k
-  KERNEL := $(KERNEL_DTB) | pad-to (BLOCKSIZE)
+  KERNEL := $(KERNEL_DTB) | pad-to $$(BLOCKSIZE)
   IMAGES += factory.bin
   IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
wrg-header wrgn16a_airlink_ar670w
-- 
2.30.2


--- End Message ---
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel