openwrt/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts
DENG Qingfang a30abb1b6b ipq40xx: add support for MobiPromo CM520-79F
MobiPromo CM520-79F is an AC1300 dual band router based on IPQ4019

Specification:

SoC/Wireless: QCA IPQ4019
RAM: 512MiB
Flash: 128MiB SLC NAND
Ethernet PHY: QCA8075
Ethernet ports: 1x WAN, 2x LAN
LEDs: 7 LEDs
      2 (USB, CAN) are GPIO
      other 5 (2.4G, 5G, LAN1, LAN2, WAN) are connected to a shift register
Button: Reset

Flash instruction:
Disassemble the router, connect UART pins like this:
 GND TX    RX
  [x x . . x .]
  [. . . . . .]

(QCA8075 and IPQ4019 below)
Baud-rate: 115200

Set up TFTP server: IP 192.168.1.188/24
Power on the router and interrupt the booting with UART console
env backup (in case you want to go back to stock and need it there):
	printenv
	(Copy the output to somewhere save)
Set bootenv:
	setenv set_ubi 'set mtdids nand0=nand0; set mtdparts mtdparts=nand0:0x7480000@0xb80000(fs); ubi part fs'
	setenv bootkernel 'ubi read 0x84000000 kernel; bootm 0x84000000#config@1'
	setenv cm520_boot 'run set_ubi; run bootkernel'
	setenv bootcmd 'run cm520_boot'
	setenv bootargs
	saveenv
Boot initramfs from TFTP:
	tftpboot openwrt-ipq40xx-generic-mobipromo_cm520-79f-initramfs-fit-zImage.itb
	bootm
After initramfs image is booted, backup rootfs partition in case of reverting to stock image
	cat /dev/mtd12 > /tmp/mtd12.bin
Then fetch it via SCP

Upload nand-factory.ubi to /tmp via SCP, then run
	mtd erase rootfs
	mtd write /tmp/*nand-factory.ubi rootfs
	reboot

To revert to stock image, restore default bootenv in uboot UART console
	setenv bootcmd 'bootipq'
	printenv
use the saved dump you did back when you installed OpenWrt to verify that
there are no other differences from back in the day.
	saveenv
upload the backed up mtd12.bin and run
	tftpboot mtd12.bin
	nand erase 0xb80000 0x7480000
	nand write 0x84000000 0xb80000 0x7480000
The BOOTCONFIG may have been configured to boot from alternate partition (rootfs_1) instead
In case of this, set it back to rootfs:
	cd /tmp
	cat /dev/mtd7 > mtd7.bin
	echo -ne '\x0b' | dd of=mtd7.bin conv=notrunc bs=1 count=1 seek=4
	for i in 28 48 68 108; do
		dd if=/dev/zero of=mtd7.bin conv=notrunc bs=1 count=1 seek=$i
	done
	mtd write mtd7.bin BOOTCONFIG
	mtd write mtd7.bin BOOTCONFIG1

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
[renamed volume to ubi to support autoboot,
as per David Lam's test in PR#2432]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2020-04-10 15:22:26 +02:00
..
qcom-ipq4018-a42.dts ipq40xx: dts: Unify naming of gpio-led nodes 2019-01-24 15:53:03 +01:00
qcom-ipq4018-ap120c-ac.dts ipq40xx: add ath10k-calibration-variant in AP120C-AC DTS 2019-03-08 19:28:31 +01:00
qcom-ipq4018-cs-w3-wd1200g-eup.dts ipq40xx: add support for EZVIZ CS-W3-WD1200G EUP 2020-01-12 15:57:58 +01:00
qcom-ipq4018-dap-2610.dts ipq40xx: Add support for D-Link DAP-2610 2020-01-26 01:20:45 +01:00
qcom-ipq4018-ea6350v3.dts ipq40xx: ea6350v3: 4.19: enable pseudo rng support 2019-02-14 16:56:15 +01:00
qcom-ipq4018-eap1300.dts ipq40xx: dts: Unify naming of gpio-led nodes 2019-01-24 15:53:03 +01:00
qcom-ipq4018-emd1.dts ipq40xx: add support for EnGenius EMD1 2020-01-26 01:20:45 +01:00
qcom-ipq4018-ens620ext.dts ipq40xx: Fix reboot on EnGenius ENS620EXT 2019-05-11 16:37:11 +02:00
qcom-ipq4018-ex61x0v2.dtsi ipq40xx: add label MAC address for Netgear EX6100v2/EX6150v2 2019-10-27 14:03:43 +01:00
qcom-ipq4018-ex6100v2.dts ipq40xx: remove qcom,ipq4019 on all devices 2018-12-27 14:30:45 +01:00
qcom-ipq4018-ex6150v2.dts ipq40xx: remove qcom,ipq4019 on all devices 2018-12-27 14:30:45 +01:00
qcom-ipq4018-fritzbox-4040.dts ipq40xx: build DEVICE_DTS based on SOC and device name 2019-12-27 18:00:15 +01:00
qcom-ipq4018-jalapeno.dts ipq40xx: use DTSI for Jalapeno 2019-11-30 00:53:36 +01:00
qcom-ipq4018-jalapeno.dtsi ipq40xx: use DTSI for Jalapeno 2019-11-30 00:53:36 +01:00
qcom-ipq4018-meshpoint-one.dts ipq40xx: add support for Crisis Innovation Lab MeshPoint.One 2019-11-30 00:53:36 +01:00
qcom-ipq4018-nbg6617.dts ipq40xx: convert to device-tree based USB LED trigger 2018-12-27 14:36:23 +01:00
qcom-ipq4018-rt-ac58u.dts ipq40xx: fix usbport trigger on the RT-AC58U with USB 2.0 devices 2020-01-12 15:47:50 +01:00
qcom-ipq4018-wre6606.dts ipq40xx: dts: Unify naming of gpio-led nodes 2019-01-24 15:53:03 +01:00
qcom-ipq4019-a62.dts ipq40xx: 4.19: fix pcie wifi unit-address of the MR33 and A62 2019-01-26 17:10:19 +01:00
qcom-ipq4019-ap.dk04.1-c1.dts ipq40xx: Add files for 4.19 2018-12-27 14:06:38 +01:00
qcom-ipq4019-ap.dk04.1.dtsi ipq40xx: 4.19: Enable pseudo random number generator 2018-12-27 14:30:45 +01:00
qcom-ipq4019-cm520-79f.dts ipq40xx: add support for MobiPromo CM520-79F 2020-04-10 15:22:26 +02:00
qcom-ipq4019-e2600ac-c1.dts ipq40xx: build DEVICE_DTS based on SOC and device name 2019-12-27 18:00:15 +01:00
qcom-ipq4019-e2600ac-c2.dts ipq40xx: build DEVICE_DTS based on SOC and device name 2019-12-27 18:00:15 +01:00
qcom-ipq4019-e2600ac.dtsi ipq40xx: build DEVICE_DTS based on SOC and device name 2019-12-27 18:00:15 +01:00
qcom-ipq4019-ea8300.dts ipq40xx: build DEVICE_DTS based on SOC and device name 2019-12-27 18:00:15 +01:00
qcom-ipq4019-eap2200.dts ipq40xx: fix support of EnGenius EAP2200 2020-03-05 12:53:06 +01:00
qcom-ipq4019-fritzbox-7530.dts ipq40xx: fix FRITZBox 7530 NAND controller node 2019-03-13 16:25:34 +01:00
qcom-ipq4019-fritzrepeater-1200.dts ipq40xx: add support for AVM FRITZ!Repeater 1200 2019-10-23 01:17:28 +02:00
qcom-ipq4019-fritzrepeater-3000.dts ipq40xx: add support for AVM FRITZ!Repeater 3000 2019-03-13 16:25:35 +01:00
qcom-ipq4019-habanero-dvk.dts ipq40xx: add support for 8devices Habanero DVK 2020-03-09 00:53:50 +01:00
qcom-ipq4019-map-ac2200.dts ipq40xx: limit frequencies for Asus Lyra 2019-03-13 16:25:35 +01:00
qcom-ipq4019-u4019-32m.dts ipq40xx: build DEVICE_DTS based on SOC and device name 2019-12-27 18:00:15 +01:00
qcom-ipq4019-u4019.dtsi ipq40xx: build DEVICE_DTS based on SOC and device name 2019-12-27 18:00:15 +01:00
qcom-ipq4019-wpj419.dts ipq40xx: fix misplaced cells-sizes in WPJ419's dts 2020-01-26 01:20:46 +01:00
qcom-ipq4028-wpj428.dts ipq40xx: wpj428: fix missing MDIO GPIO reset and pinmux 2020-03-28 13:03:02 +01:00
qcom-ipq4029-ap-303.dts ipq40xx: add support for Aruba AP-303 2019-12-20 17:48:52 +01:00
qcom-ipq4029-ap-303h.dts ipq40xx: add support for Aruba AP-303H 2020-01-14 09:38:32 +01:00
qcom-ipq4029-gl-b1300.dts ipq40xx: dts: Unify naming of gpio-led nodes 2019-01-24 15:53:03 +01:00
qcom-ipq4029-mr33.dts ipq40xx: 4.19: fix pcie wifi unit-address of the MR33 and A62 2019-01-26 17:10:19 +01:00