diff options
| author | INAGAKI Hiroshi <musashino.open@gmail.com> | 2021-05-02 22:06:09 +0900 |
|---|---|---|
| committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-08-20 01:26:15 +0200 |
| commit | ac68fbf526d1b7145d611d5cbc4eb0cbc8a82094 (patch) | |
| tree | b85b25fa70fa5077f745fe7a77bbe352c18e3167 /target/linux/ramips/image | |
| parent | 9088b5445f8e3586836820a63fd804941eda7b8a (diff) | |
| download | upstream-ac68fbf526d1b7145d611d5cbc4eb0cbc8a82094.tar.gz upstream-ac68fbf526d1b7145d611d5cbc4eb0cbc8a82094.tar.bz2 upstream-ac68fbf526d1b7145d611d5cbc4eb0cbc8a82094.zip | |
ramips: add support for I-O DATA WN-DEAX1800GR
I-O DATA WN-DEAX1800GR is a 2.4/5 GHz band 11ax (Wi-Fi 6) router, based
on MT7621A.
Specification:
- SoC : MediaTek MT7621A
- RAM : DDR3 256 MiB (Nanya NT5CC128M16JR-EK)
- Flash : RAW NAND 128 MiB (Winbond W29N01HVSINF)
- WLAN : 2.4/5 GHz (MediaTek MT7915)
- Ethernet : 5x 10/100/1000 Mbps
- Switch : MT7530 (SoC)
- LEDs/Keys : 6x/3x
- UART : through-hole on PCB (J2)
- assignment: 3.3V, GND, TX, RX from "1" marking
- settings : 115200n8
- Power : 12 VDC, 1 A
Flash instruction using initramfs-factory image:
1. Boot WN-DEAX1800GR normally
2. Access to "http://192.168.0.1/" and open firmware update page
("ファームウェア")
3. Select the OpenWrt initramfs-factory.bin image and click update
("更新") button to perform firmware update
4. On the initramfs image, perform sysupgrade with the
squashfs-sysupgrade.bin image
5. Wait ~120 seconds to complete flashing
Note:
- This device has 2x OS images on the flash storage. In this support,
the first one will be used.
Warning:
- Do not use "saveenv" command on U-Boot CLI.
This device has wrong u-boot-env data. The actual length of individual
env data installed to the device is 0x1000 (4 KiB), but installed
U-Boot requires 0x20000 (128 KiB). So U-Boot determines the data is
invalid. Then, if you perform saving environment data with saveenv on
U-Boot CLI, installed env data will be overwritten with too few
default values without individual values (SSID, password, MAC
addresses, etc...).
MAC addresses:
LAN : 50:41:B9:xx:xx:F4 (Config, ethaddr (text))
WAN : 50:41:B9:xx:xx:F6 (Config, wanaddr (text))
2.4 GHz: 50:41:B9:xx:xx:F4 (Config, rmac (text) / Factory, 0x4 (hex))
5 GHz : 50:41:B9:xx:xx:F5 (none)
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/ramips/image')
| -rw-r--r-- | target/linux/ramips/image/mt7621.mk | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 07e8aea182a..ad45613a0b4 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -58,6 +58,37 @@ define Build/iodata-mstc-header ) endef +define Build/iodata-mstc-header2 + $(eval model=$(word 1,$(1))) + $(eval model_id=$(word 2,$(1))) + + ( \ + fw_len_crc=$$(gzip -c $@ | tail -c 8 | \ + od -An -tx8 --endian little); \ + printf "\x03\x1d\x61\x29\x07$(model)" | \ + dd bs=21 count=1 conv=sync 2>/dev/null; \ + printf "0.00.000" | dd bs=16 count=1 conv=sync 2>/dev/null; \ + printf "$$(echo $(REVISION) | cut -d- -f1 | head -c8)" | \ + dd bs=9 count=1 conv=sync 2>/dev/null; \ + printf "$(call toupper,$(LINUX_KARCH)) $(VERSION_DIST) Linux-$(LINUX_VERSION)" | \ + dd bs=33 count=1 conv=sync 2>/dev/null; \ + date -d "@$(SOURCE_DATE_EPOCH)" "+%F" | tr -d "\n" | \ + dd bs=15 count=1 conv=sync 2>/dev/null; \ + printf "$$(echo $(model_id) | sed 's/../\\x&/g')" | \ + dd bs=8 count=1 conv=sync 2>/dev/null; \ + printf "$$(echo $$fw_len_crc | sed 's/../\\x&/g')" | \ + dd bs=14 count=1 conv=sync 2>/dev/null; \ + cat $@; \ + ) > $@.new + ( \ + header_crc="$$(head -c116 $@.new | gzip -c | tail -c8 | \ + od -An -tx4 -N4 --endian little)"; \ + printf "$$(echo $$header_crc | sed 's/../\\x&/g')"; \ + ) | dd of=$@.new bs=4 oflag=seek_bytes seek=110 conv=notrunc + + mv $@.new $@ +endef + define Build/znet-header $(eval version=$(word 1,$(1))) ( \ @@ -1195,6 +1226,27 @@ define Device/iodata_wn-ax2033gr endef TARGET_DEVICES += iodata_wn-ax2033gr +define Device/iodata_wn-deax1800gr + $(Device/dsa-migration) + DEVICE_VENDOR := I-O DATA + DEVICE_MODEL := WN-DEAX1800GR + BLOCKSIZE := 128k + PAGESIZE := 2048 + KERNEL_SIZE := 6144k + IMAGE_SIZE := 47104k + UBINIZE_OPTS := -E 5 + KERNEL_LOADADDR := 0x82000000 + KERNEL := kernel-bin | relocate-kernel 0x80001000 | lzma | \ + fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata + ARTIFACTS := initramfs-factory.bin + ARTIFACT/initramfs-factory.bin := append-image-stage initramfs-kernel.bin | \ + check-size | xor-image -p 29944a25120984c2 -x | \ + iodata-mstc-header2 WN-DEAX1800GR 00021003 + DEVICE_PACKAGES := kmod-mt7915-firmware +endef +TARGET_DEVICES += iodata_wn-deax1800gr + define Device/iodata_wn-dx1167r $(Device/iodata_nand) DEVICE_MODEL := WN-DX1167R |
