openwrt/package/boot
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
..
arm-trusted-firmware-mvebu packages/boot: bump arm-trusted-firmware-mvebu version 2020-02-22 18:21:37 +01:00
arm-trusted-firmware-sunxi arm-trusted-firmware-sunxi: Replace with official ARM version 2019-01-13 17:35:14 +01:00
at91bootstrap at91bootstrap: add sama5d27_som1_eksd1_uboot as default defconfig 2019-08-17 23:08:44 +02:00
fconfig fconfig: cleanup Makefile 2019-04-06 19:14:06 +02:00
grub2 x86: add bootloader upgrade on sysupgrade 2020-03-01 21:36:00 +01:00
imx-bootlets
kexec-tools treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
kobs-ng
rbcfg rbcfg: make package available for ath79 2020-01-23 15:28:02 +01:00
tfa-layerscape build: include BUILD_VARIANT in PKG_BUILD_DIR 2019-08-05 23:22:26 +02:00
uboot-ar71xx uboot-ar71xx: fix musl host build 2019-01-22 13:29:46 +01:00
uboot-at91 uboot-at91: fix -Wformat-security 2019-08-17 23:08:10 +02:00
uboot-envtools ath79: add support for DomyWifi DW33D 2020-03-07 11:02:13 +08:00
uboot-fritz4040 ipq40xx: add support for AVM FRITZ!Repeater 1200 2019-10-23 01:17:28 +02:00
uboot-imx6 uboot-imx6: bump to 2019.04 and refresh patches 2019-05-20 21:19:48 +02:00
uboot-kirkwood uboot-kirkwood: update to 2019.01 2019-02-17 19:22:39 +01:00
uboot-lantiq
uboot-layerscape layerscape: fix u-boot bootcmd 2019-06-06 15:40:09 +02:00
uboot-mvebu uboot-mvebu: point to UBOOT_CONFIG when setting options 2020-03-01 21:36:00 +01:00
uboot-mxs uboot-mxs: bump to v2019.10 2019-11-09 12:56:25 +01:00
uboot-omap omap: support booting off different mmc devices 2019-11-20 10:46:19 +01:00
uboot-oxnas uboot-oxnas: fix memory leak in tool mkox820crc 2020-01-15 23:15:19 +01:00
uboot-sunxi sunxi: add support for FriendlyARM Nano PI NEO Air dev board 2019-12-13 12:20:09 +01:00
uboot-tegra tegra: add vendor string to device name 2019-05-15 13:34:23 +02:00
uboot-zynq uboot-zynq: update to 2019.07 2019-09-01 18:38:05 +02:00