From a9360452f0130bb39a8e732334a174cc3f8991fd Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Mon, 15 Jul 2019 19:43:31 +0800 Subject: ath79: add support for Qihoo C301 Specifications: - SoC: AR9344 - RAM: 128MB - Flash: 2 * 16MB (MX25L12845) - Ethernet: 2 * FE LAN & 1 * FE WAN - WiFi: 2.4G: AR9344 5G: QCA9882 Flash instruction: 1. Hold reset and power up the router 2. Set your IP to 192.168.1.x 3. Open 192.168.1.1 and upload the generated *factory* firmware Signed-off-by: Chuanhong Guo --- target/linux/ath79/base-files/etc/init.d/bootcount | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 target/linux/ath79/base-files/etc/init.d/bootcount (limited to 'target/linux/ath79/base-files/etc/init.d/bootcount') diff --git a/target/linux/ath79/base-files/etc/init.d/bootcount b/target/linux/ath79/base-files/etc/init.d/bootcount new file mode 100755 index 0000000000..b71fbf9a69 --- /dev/null +++ b/target/linux/ath79/base-files/etc/init.d/bootcount @@ -0,0 +1,11 @@ +#!/bin/sh /etc/rc.common +START=99 + +boot() { + case $(board_name) in + qihoo,c301) + local n=$(fw_printenv activeregion | cut -d = -f 2) + fw_setenv "image${n}trynum" 0 + ;; + esac +} -- cgit v1.2.3