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.
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>
4 years ago
..
arm-trusted-firmware-mvebu packages/boot: bump arm-trusted-firmware-mvebu version 4 years ago
arm-trusted-firmware-sunxi arm-trusted-firmware-sunxi: Replace with official ARM version 5 years ago
at91bootstrap at91bootstrap: add sama5d27_som1_eksd1_uboot as default defconfig 5 years ago
fconfig fconfig: cleanup Makefile 5 years ago
grub2 x86: add bootloader upgrade on sysupgrade 4 years ago
imx-bootlets treewide: clean up download hashes 8 years ago
kexec-tools treewide: Remove self from MAINTAINER entries 5 years ago
kobs-ng kobs-ng: add header for integer definitions 7 years ago
rbcfg rbcfg: make package available for ath79 4 years ago
tfa-layerscape build: include BUILD_VARIANT in PKG_BUILD_DIR 5 years ago
uboot-ar71xx uboot-ar71xx: fix musl host build 5 years ago
uboot-at91 uboot-at91: fix -Wformat-security 5 years ago
uboot-envtools ath79: add support for DomyWifi DW33D 4 years ago
uboot-fritz4040 ipq40xx: add support for AVM FRITZ!Repeater 1200 5 years ago
uboot-imx6 uboot-imx6: bump to 2019.04 and refresh patches 5 years ago
uboot-kirkwood uboot-kirkwood: update to 2019.01 5 years ago
uboot-lantiq uboot-lantiq: fix compile with modern host dtc 6 years ago
uboot-layerscape layerscape: fix u-boot bootcmd 5 years ago
uboot-mvebu uboot-mvebu: point to UBOOT_CONFIG when setting options 4 years ago
uboot-mxs uboot-mxs: bump to v2019.10 5 years ago
uboot-omap omap: support booting off different mmc devices 5 years ago
uboot-oxnas uboot-oxnas: fix memory leak in tool mkox820crc 4 years ago
uboot-sunxi sunxi: add support for FriendlyARM Nano PI NEO Air dev board 5 years ago
uboot-tegra tegra: add vendor string to device name 5 years ago
uboot-zynq uboot-zynq: update to 2019.07 5 years ago