You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
apm821xx apm821xx: add support for the Netgear WNDAP620 and WNDAP660 6 years ago
ar71xx uboot-envtools: ar71xx: add support for gl-ar150/-domino/-mifi 4 years ago
ath79 ath79: add support for DomyWifi DW33D 4 years ago
cns3xxx treewide: use the generic board_name function 7 years ago
imx6 uboot-envtools: remove erasesize from MMC config 5 years ago
ipq40xx ipq40xx: Add support for Linksys EA8300 (Dallas) 5 years ago
ipq806x uboot-envtools: adds r7800 uboot env support 6 years ago
kirkwood kirkwood: add support for Iomega Storcenter ix2-200 6 years ago
lantiq lantiq: use the compatible string as board name 7 years ago
layerscape uboot-envtools: add configuration for Traverse LS1043 boards. 6 years ago
mpc85xx mpc85xx: add support for OCEDO Panda 5 years ago
mvebu mvebu: uDPU: add sysupgrade support 5 years ago
mxs uboot-envtools: fix configuration for I2SE Duckbills 6 years ago
oxnas uboot-envtools: fix fw_env.config for ox820/stg-212 5 years ago
pistachio pistachio: remove custom board detection override 7 years ago
ramips uboot-envtools: ramips: add support for ALFA Network Quad-E4G 5 years ago
uboot-envtools.sh uboot-envtools: check for config prior to append 5 years ago