1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 14:08:17 +02:00
openwrt/target/linux
WeiDong Jia 643cab4f31 ath79: add support for DomyWifi DW33D
This commit ports the device from ar71xx to the ath79 target and
modifies the partition layout.
1. Firmware is installed to nand flash.
2. Modify the uboot-env parameter to boot from the nand flash.
3. The kernel size is extended to 5M.
4.nor flash retains the oem firmware.

oem partition layout
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00e30000 00010000 "rootfs"
mtd3: 00170000 00010000 "kernel"
mtd4: 00010000 00010000 "art"
mtd5: 00f90000 00010000 "firmware"
mtd6: 06000000 00020000 "rootfs_data"
mtd7: 02000000 00020000 "backup"

new partition layout
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00fa0000 00010000 "oem-firmware"
mtd3: 00010000 00010000 "art"
mtd4: 00500000 00020000 "kernel"
mtd5: 05b00000 00020000 "ubi"
mtd6: 02000000 00020000 "oem-backup"

MAC address overview:
All mac addresses are stored in the art partition.
eth0: 0x0
eth1: 0x6
ath9k: 0xc
ath10k: 0x12
No valid addresses in 0x1002 and 0x5006. All addresses match the OEM
firmware.

Install from oem firmware.
Enable ssh service:
Connect to the router web, click professional, click system-startup,
and add dropbear in the local startup input box. Click
system-administration, delete ssh-key, and replace your ssh pub key.
Restart the router.
1.Upload openwrt firmware to the device
scp openwrt-snapshot-r11365-df60a0852c-ath79-nand-domywifi_dw33d-\
squashfs-factory.bin root@192.168.10.1:/tmp
2.modify uboot-env.
ssh login to the device:
fw_setenv bootcmd 'nboot 0x8050000 0;bootm || bootm 0x9fe80000'
Run the fw_printenv command to check if the settings are correct.
3.Write openwrt firmware.
ssh login to the device:
mtd -r write /tmp/openwrt-snapshot-r11365-df60a0852c-ath79-nand-\
domywifi_dw33d-squashfs-factory.bin /dev/mtd6
The device will restart automatically and the openwrt firmware
installation is complete.

Restore oem firmware.just erase the kernel partition and the ubi
partition.
ssh login to the device:
mtd erase /dev/mtd4
mtd -r erase /dev/mtd5
Reboot the device

Signed-off-by: WeiDong Jia <jwdsccd@gmail.com>
[alter flash instruction in commit message]
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2020-03-07 11:02:13 +08:00
..
apm821xx treewide: move commonly disabled symbols to generic config 2020-03-01 00:51:23 +01:00
ar71xx ar71xx: add missing LED migration for Archer C7 2020-03-01 23:39:27 +01:00
arc770 arc770: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:27:32 +01:00
archs38 archs38: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:26:35 +01:00
armvirt kernel: remove non-existant symbols from 4.19 config 2020-02-22 16:38:41 +01:00
at91 at91: gen_at91_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:25:44 +01:00
ath25 kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
ath79 ath79: add support for DomyWifi DW33D 2020-03-07 11:02:13 +08:00
bcm27xx bcm27xx: bcm2708: refresh linux 5.4 config 2020-03-01 13:43:29 +01:00
bcm47xx kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
bcm53xx bcm53xx: fix ASUS firmwares to use vendor format 2020-03-02 22:06:02 +01:00
bcm63xx kernel: remove non-existant symbols from 4.19 config 2020-02-22 16:38:41 +01:00
cns3xxx kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
gemini gemini: dns313_gen_hdd_img.sh: switch to /bin/sh 2019-12-31 01:23:24 +01:00
generic generic: add missing symbol from 5.4 config 2020-03-03 23:38:23 +01:00
imx6 imx6: 5.4: dts: backport lsm9ds1 imu support for GW553x 2020-03-01 21:36:00 +01:00
ipq40xx ipq40xx: fix support of EnGenius EAP2200 2020-03-05 12:53:06 +01:00
ipq806x ipq806x: add newline at the end of qcom-ipq8064-v1.0.dtsi 2020-03-05 12:53:14 +01:00
ipq807x ipq807x: fix indent in image/Makefile 2020-02-28 20:00:10 +01:00
kirkwood kirkwood: switch kernel version to 5.4 2020-03-03 23:38:23 +01:00
lantiq kernel: remove non-existant symbols from 4.19 config 2020-02-22 16:38:41 +01:00
layerscape kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
malta malta: enable HighMem on MIPS32 2020-01-15 22:35:48 +01:00
mediatek mediatek: update uci-defaults for renamed smp packet steering option 2020-03-03 22:43:09 +01:00
mpc85xx mpc85xx: disable kernel uImage generation 2020-03-01 00:51:23 +01:00
mvebu mvebu: uDPU: drop patch compiling dtb 2020-03-01 21:36:00 +01:00
mxs mxs: gen_sdcard_ext4_ext4.sh: use /bin/sh 2019-12-31 01:19:48 +01:00
octeon octeon: apply vendor_model scheme to device definition/image name 2020-01-26 23:00:26 +01:00
octeontx kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
omap omap: gen_omap_sdcard_img.sh: use /bin/sh 2019-12-31 01:17:09 +01:00
oxnas oxnas: add 5.4 as testing kernel version 2020-03-06 19:21:03 +01:00
pistachio kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
ramips ramips: increase spi-max-frequency to 50 MHz for D-Link DIR-810L 2020-03-05 12:53:50 +01:00
rb532 rb532: gen_image.sh: use /bin/sh 2019-12-31 01:16:17 +01:00
samsung samsung: add subtarget condition for device 2020-01-03 00:04:22 +01:00
sunxi sunxi: backport increased SATA/AHCI DMA TX/RX FIFOs 2020-02-13 17:45:46 +01:00
tegra x86,tegra,mvebu: image: use common reproducible IMG_PART_SIGNATURE 2019-11-11 16:37:13 +01:00
uml treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
x86 kernel: x86_64: drop CALGARY IOMMU on 5.4 2020-03-02 11:42:31 +00:00
zynq zynq: derive DEVICE_DTS from device definition name 2020-01-21 14:26:04 +01:00
Makefile