aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* base-files: send informational UDP message each second waitingPaul Fertser2019-12-191-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The preinit network initialisation and failsafe informational message are inherently racy as the interface takes some time to become functional after "ip link set $pi_ifname up" command. Consider this timing: [ 12.002713] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 12.008819] IPv6: ADDRCONF(NETDEV_UP): eth1.1: link is not ready [ 12.118877] random: procd: uninitialized urandom read (4 bytes read) [ 13.068614] eth1: link up (1000Mbps/Full duplex) [ 13.073309] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 13.080445] IPv6: ADDRCONF(NETDEV_CHANGE): eth1.1: link becomes ready Since the UDP message was sent prior to link becoming ready, it was never seen on the wire. The default failsafe timeout is set to 2 seconds, so with this patch there are two attempts to send the message, one spent in vain, and the other visible in tcpdump on an attached host. Of course, in cases when the interface is brought up faster it leads to two messages, however it should be harmless. This patch (almost) doesn't affect normal boot time while still allowing to enter failsafe reliably with a single button press, matching the official "generic failsafe" documentation. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
* iputils: move iputils tools to packages feedPetr Štetiar2019-12-197-510/+0
| | | | | | | | | iputils has moved from the master tree to the packages feed, and is switching from the abandoned skbuff.net upstream to github.com/iputils/iputils. Ref: https://git.openwrt.org/556698cedf9e86a0ffe9f148d4e8e733676c26f6 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: switch to 4.19 kernel versionAnsuel Smith2019-12-191-1/+1
| | | | | | | | | | | | It has been used by several people for some time already and feedback has been mostly positive. Ref: https://github.com/openwrt/openwrt/pull/2472 Tested-by: Hannu Nyman <hannu.nyman@iki.fi> [ipq8065, R7800] Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [ipq8065, NBG6817] Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [separate commit, commit subject and description facelift] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: update USB3 modules for 4.19Ansuel Smith2019-12-191-1/+1
| | | | | | | | | - Use new dwc3-qcom usb driver. - Drop dwc3-of-simple as we have a dedicated driver now. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [split into separate commit, commit subject facelift] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: add missing core1 voltage tolerancePavel Kubelun2019-12-191-0/+1
| | | | | | | | Voltage tolerance is accounted per core, not per cpu, so add missing DT entry. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* kernel: make dwc3 usb driver depends on kernel 4.14Ansuel Smith2019-12-191-2/+2
| | | | | | | - usb-dwc3-of-simple is not used anymore as we have qcom dedicated driver - usb-phy-qcom-dwc3 is not dependent of dwc3-of-simple Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: fix tsens driver in 4.19Ansuel Smith2019-12-191-0/+20
| | | | | | | | | | | | | | | | | | | Added patch: - 063-3 Fix tsense shared memory problem Recent changes in ioremap_resource function are causing fails for the memory areas which are already mapped. This changes are causing tsense driver failures during initialization: qcom-tsens 900000.thermal-sensor: tsens init failed So this patch uses simple ioremap in order to use this shared memory space. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [commit subject and desciption facelitf] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: improve mdio gpios listChristian Lamparter2019-12-199-9/+18
| | | | | | | | | Improve rediability of gpio mdio list. No functional change. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [proper authorship of the patch] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: ap161: fix wrong definition stdoutChristian Lamparter2019-12-191-1/+1
| | | | | | | | | | | From documentation https://www.kernel.org/doc/Documentation/devicetree/bindings/chosen.txt should be just stdout-path Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [proper authorship of the patch] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: ap148: reorganize dtsChristian Lamparter2019-12-191-161/+155
| | | | | | | Reorganize dts to use tags from ipq8064 dtsi Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: d7800: fix warning on dtc compilationChristian Lamparter2019-12-191-2/+3
| | | | | | | | There is warning with "property has invalid length (4 bytes)" related to nand definition. Set size-cells to zero to fix this. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: r7800: add missing wifi definition for pcieChristian Lamparter2019-12-191-0/+30
| | | | | | | Add missing wifi compatible definition for r7800 device. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: use ipq8064 dedicated watchdogChristian Lamparter2019-12-191-1/+2
| | | | | | | Add missing watchdog to list of compatible timers Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: add nand and sata tagsChristian Lamparter2019-12-191-2/+2
| | | | | | | | Add some tags for nand and sata structure to easily reference them in other dts. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: increase drive-strength for pinmuxChristian Lamparter2019-12-191-3/+3
| | | | | | | | | | | | | | | Increase drive-strength from https://lore.kernel.org/patchwork/patch/626885/ 2mA drive strength is not enough when we connect multiple i2c devices on the bus with different pull up resistors. This issue was detected when multiple i2c devices connected on the other side of level shifters on Linaro sensor board. Maxing up to 16mA made i2c much stable. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: add missing gpio and gsbi declarationChristian Lamparter2019-12-191-0/+51
| | | | | | | Adds missing gpio and gsbi declaration. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: disable spc on ipq8065 socAnsuel Smith2019-12-191-0/+8
| | | | | | | Spc is disabled in ipq8065 board as it does cause cpu lockup (probably caused by wrong register being set) Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: set apq8064 regulator to support cpuidleAnsuel Smith2019-12-191-2/+3
| | | | | | Set qcom,apq8064-saw2-v1.1-cpu as regulator to make cpuidle work. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: convert ipq8064 dtsi interruptsChristian Lamparter2019-12-191-27/+33
| | | | | | | | | | | | | Convert hardcoded interrupts value to types defined in gci include file. Interrupts sets to 0 are converted to IRQ_TYPE_LEVEL_HIGH to fix kernel warning. Same fix has been applied to arm64 dts. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1797143 https://patchwork.kernel.org/patch/10367453/ https://patchwork.kernel.org/patch/10315315/ Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: use new usb3 implementationChristian Lamparter2019-12-1916-290/+64
| | | | | | | | | Use new usb3 implementation and refresh dts to the new dwc3 structure Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [proper authorship of the patch] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: fix missing compatible and renameChristian Lamparter2019-12-192-2/+2
| | | | | | | | | | - ipq8064 compatible was missing from nbg6817. - Rename ap148 with a better descriptive name. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [proper authorship of the patch] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: convert ok to okay in dtsChristian Lamparter2019-12-1912-184/+184
| | | | | | | DT spec require okay instead of ok in dts files Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: refresh 4.19 patchesChristian Lamparter2019-12-1948-12445/+1092
| | | | | | | | | | | | | | | | | | | | | | | | | | Reworked: - 0034 patchset update Added: - 080 Add support for pinctrl-msm framework Removed: - 0074-ipq806x-usb-Control-USB-master-reset.patch (we now have a dedicated driver for qcom usb) - 0047-mtd-nand-Create-a-BBT-flag-to-access-bad-block-marke (merged upstream) - 310-msm-adhoc-bus-support (it looks like it was never actually used in any dts) Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [commit subject and description facelift, SoB fix] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* kernel: generic: add missing config symbol to 4.19Ansuel Smith2019-12-191-0/+1
| | | | | | | | | PCI_V3_SEMI config symbol was found missing in generic kernel config after ipq806x config refresh to 4.19. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [commit subject and description facelift] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: update 4.19 kernel configAnsuel Smith2019-12-191-46/+67
| | | | | | | | | | These changes are needed in order to migrate old kernel 4.14 config to the upcoming kernel version 4.19. Also add missing configuration options that comes up with this SoC. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [line wrap long commit description, add 4.19 to subject, soc->SoC] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: copy files from 4.14 to 4.19Ansuel Smith2019-12-1970-0/+26575
| | | | | | | | | This copies files from files-4.14 to files-4.19 directory in order to get clear diffs for any changes done from now on. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [added missing commit description, refreshed ea8500 and wpq864 DTS] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: restore gpio-export on TL-WDR3600/4300Lech Perczak2019-12-191-30/+28
| | | | | | | | | | | | | | | | | | This partially reverts commit 32144ba275d163ce6e7d93546ab4414f03f508fb. This commit replaced gpio-exports in favor of gpio-hogs for enabling USB power at boot, but this rids the user of control of the USB port power present on this device for a long time. It was agreed on a mailing list [1] that this is not the way to go, and this patch breaks a very common use-case of WWAN modem reset by power cycle, used on a lot USB equipped routers, hence revert this change until a better solution can be found. [1] http://lists.infradead.org/pipermail/openwrt-devel/2019-November/020151.html Tested-by: Sungbo Eo <mans0n@gorani.run> Signed-off-by: Lech Perczak <lech.perczak@gmail.com> [adjusted commit title] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ath79: add support for TP-Link TL-WR902AC v1Lech Perczak2019-12-196-2/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TP-Link TL-WR902AC v1 is a pocket-size, dual-band (AC750), successor of TL-MR3020 (both devices use very similar enclosure, in same size). New device is based on Qualcomm QCA9531 v2 + QCA9887. FCC ID: TE7WR902AC. Specification: - 650/391/216 MHz (CPU/DDR/AHB) - 1x 10/100 Mbps Ethernet - 1x USB 2.0 (GPIO-controlled power) - 64 MB of RAM (DDR2) - 8 MB of FLASH - 2T2R 2.4 GHz (QCA9531) - 1T1R 5 GHz (QCA9887) - 5x LED (GPIO-controlled), 2x button, 1x 3-pos switch - UART pads on PCB (TP1 -> TX, TP2 -> RX, TP3 -> GND, TP4 -> 3V3, jumper resitors are missing on TX/RX lines) - 1x micro USB (for power only) Flash instructions: Use "factory" image under vendor GUI. Recovery instructions: This device contains tftp recovery mode inside U-Boot. You can use it to flash OpenWrt (use "factory" image) or vendor firmware. 1. Configure PC with static IP 192.168.0.66/24 and tftp server. 2. Rename "openwrt-ath79-generic-tplink_tl-wr902ac-v1-squashfs-factory.bin" to "wr902acv1_un_tp_recovery.bin" and place it in tftp server dir. 3. Connect PC with LAN port, press the reset button, power up the router and keep button pressed until WPS LED lights up. 4. Router will download file from server, write it to flash and reboot. MAC Address summary: - wlan1 (2.4GHz Wi-Fi): Label MAC - wlan0 (5GHz Wi-Fi): Offset -1 from label - eth0 (Wired): Offset +1 from label Root access over serial line in vendor firmware: root/sohoadmin. Based on support in ar71xx target by: Piotr Dymacz <pepe2k@gmail.com> Signed-off-by: Lech Perczak <lech.perczak@gmail.com> [remove size-cells from gpio-export] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ramips: fix portmap for TP-Link Archer C50 v4Maxim Anisimov2019-12-191-1/+1
| | | | | | According to 02_network portmap is wan=0 lan1=1 lan2=2 lan3=3 lan4=4 Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
* mac80211: brcm: add support for BCM4359 SDIO chipsetRafał Miłecki2019-12-197-0/+519
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* mac80211: brcm: backport 5.5 and 5.6 kernel patchesRafał Miłecki2019-12-1910-1/+325
| | | | | | | | | This update doesn't include: 3b1e0a7bdfee brcmfmac: add support for SAE authentication offload be898fed355e brcmfmac: send port authorized event for FT-802.1X due to nl80211 dependencies. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm2708: switch to cypress-nvram packageÁlvaro Fernández Rojas2019-12-181-6/+6
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* cypress-nvram: add new packageÁlvaro Fernández Rojas2019-12-181-0/+95
| | | | | | | This package contains nvram files for brcmfmac, a mac80211 driver for FullMAC Cypress devices. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* wireguard: bump to 0.0.20191212Kevin Darbyshire-Bryant2019-12-171-2/+2
| | | | | | | | | | | | 1ec6ece version: bump snapshot e13de91 main: remove unused include <linux/version.h> 72eb17c wg-quick: linux: support older nft(8) 1d8e978 global: fix up spelling e02713e wg-quick: linux: add support for nft and prefer it b4e3a83 compat: support building for RHEL-8.1 instead of RHEL-8.0 f29e3ac socket: convert to ipv6_dst_lookup_flow for 5.5 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* brcmfmac-board-rpi: remove uneeded packageÁlvaro Fernández Rojas2019-12-171-53/+0
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* brcm2708: switch to cypress-firmware packageÁlvaro Fernández Rojas2019-12-171-6/+6
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* cypress-firmware: add new packageÁlvaro Fernández Rojas2019-12-171-0/+239
| | | | | | | This package contains firmwares provided by Cypress See https://community.cypress.com/community/linux Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* uboot-envtools: check for config prior to appendImran Khan2019-12-172-2/+2
| | | | | | | | | | | | | In the rare event a pre-populated fw_env.config exists in the rootfs prior to firstboot, calling fw_setenv after the system has initialised will annihilate the devices environment due to two identical lines in fw_env.config. Check for existence prior to blind appendage. Signed-off-by: Imran Khan <gururug@gmail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org> [daniel@makrotopia.org: fixed patch format, improved grep, cosmetics]
* ramips: allow to set switchdev by board in ramips_set_preinit_ifaceAdrian Schmutzler2019-12-171-20/+47
| | | | | | | | | | | | | | This adds the option to determine switchdev by board when setting preinit iface for failsafe. The patch reorganizes the code to use functions for setting correct switchdev based on SOC and board, which is supposed to improve readability and maintainability. In this patch, the ramips_switchdev_from_board function is added without specifying an actual device using it. This is meant to make the life of device supporters waiting for merge easier, as there is less to rebase and keep track of. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ramips: add support for ipTIME A104nsSungbo Eo2019-12-174-0/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ipTIME A104ns is a 2.4/5GHz band AC750 router, based on MediaTek MT7620A. Specifications: - SoC: MT7620A - RAM: DDR2 64MB - Flash: SPI NOR 8MB - WiFi: - 2.4GHz: SoC internal - 5GHz: MT7610EN - Ethernet: 5x 10/100Mbps - Switch: SoC internal - USB: 1x 2.0 - UART: - J2: 3.3V, TX, RX, GND (3.3V is the square pad) / 57600 8N1 Installation via web interface: 1. Flash **initramfs** image through the stock web interface. 2. Boot into OpenWrt and perform sysupgrade with sysupgrade image. Revert to stock firmware: 1. Perform sysupgrade with stock image. In contrast to to-be-supported A1004ns, the A104ns has no usable value in 0x1fc40 (uboot), so wan_mac needs to be calculated. Also note that GPIOs for the LEDs really are inverted compared to the A1004ns. Signed-off-by: Sungbo Eo <mans0n@gorani.run> [moved state_default to device DTS, reordered properties in wmac, added comment about wan_mac and LED GPIOs] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ath79: migrate LED paths of TL-WDR4300 boardSungbo Eo2019-12-171-1/+4
| | | | | | | | | | | | | TL-WDR4300 board uses only green LED names in DTSI. This patch adds migration for them. The actual LED colors on the devices have been reported to vary across subrevisions (v1.x). Despite, the USB LEDs on the back might have different color than the other LEDs on the front. Signed-off-by: Sungbo Eo <mans0n@gorani.run> [extended commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ramips: add label MAC address for Edimax RG21SAdrian Schmutzler2019-12-171-0/+1
| | | | | | | | | | | | | | | | The Edimax RG21S has a label which bears two MAC addresses: 2.4 GHz (n) and 5 GHz (n+1) The complete MAC address setup is as follows: 2.4 GHz *:83 factory 0x4, u-boot-env wlanaddr 5 GHz *:84 factory 0x8004 LAN *:83 u-boot-env ethaddr WAN *:85 u-boot-env wanaddr Since 2.4 GHz is the first address on the label and the same as used for ethernet, take this one for label MAC address. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ramips: increase SPI frequency for Edimax RG21SBirger Koblitz2019-12-171-1/+1
| | | | | | | | This increases SPI frequency from the relatively low 10 MHz to 40 MHz. Signed-off-by: Birger Koblitz <mail@birger-koblitz.de> [added commit title/message, split patch] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ramips: remove unnecessary nodes in DTS for Edimax RG21SBirger Koblitz2019-12-171-10/+0
| | | | | | | | | This sdhci and i2c nodes were copy-pasted, but are not needed as the device does not provide that functionality. Remove them. Signed-off-by: Birger Koblitz <mail@birger-koblitz.de> [added commit title/message, split patch] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* rpcd: update to latest Git HEADJo-Philipp Wich2019-12-171-3/+3
| | | | | | aaa0836 file: extend exec acl checks to commands with arguments Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ar71xx: indicate upgrade using system LEDDavid Bauer2019-12-161-0/+3
| | | | | | | | | This enables the system LED to indicate a running firmware upgrade. This pattern is used on most platforms provided by the generic base-files package. ar71xx uses it's own implementation for the system-LED, where the upgrade case is not yet implemented. Signed-off-by: David Bauer <mail@david-bauer.net>
* mac80211: fix txpower when using DFS channelsDavid Bauer2019-12-161-2/+7
| | | | | | | | | | | With this patch, txpower for the PHY is applied when configuring the PHY instead of the VIF. Otherwise, the configured txpower is not applied for the first initialized VIF when using DFS channels, as it is currently applied too early when the CAC hasn't finished. Reported-by: Martin Weinelt <martin@darmstadt.freifunk.net Signed-off-by: David Bauer <mail@david-bauer.net> Tested-by: Martin Weinelt <martin@darmstadt.freifunk.net>
* odhcpd: update to latest git HEADHans Dedecker2019-12-151-3/+3
| | | | | | d60f0a6 treewide: optimize syslog priority values Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* mpc85xx: add support for Enterasys WS-AP3710iDavid Bauer2019-12-137-0/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware -------- SoC: NXP P1020 (2x e500 @ 800MHz) RAM: 256M DDR3 (Micron) FLASH: 32M NOR (Spansion S29GL128S) BTN: 1x Reset WiFi: 1x Atheros AR9590 2.4 bgn 3x3 2x Atheros AR9590 5.0 an 3x3 ETH: 1x Gigabit Ethernet (Atheros AR8033) LED: System (green/red) - Radio{0,1} (green) LAN (connected to PHY) - GE blue - FE green Serial is a Cisco-compatible RJ45 next to the ethernet port. 115200-N-8 are the settings for OS and U-Boot. Installation ------------ 1. Grab the OpenWrt initramfs, rename it to 01C8A8C0.img. Place it in the root directory of a TFTP server and serve it at 192.168.200.200/24. 2. Connect to the serial port and boot the AP. Stop autoboot in U-Boot by pressing Enter when prompted. Credentials are identical to the one in the APs interface. By default it is admin / new2day. 3. Set the bootcmd so the AP can boot OpenWrt by executing $ setenv boot_openwrt "setenv bootargs; cp.b 0xee000000 0x1000000 0x1000000; bootm 0x1000000" $ setenv bootcmd "run boot_openwrt" $ saveenv If you plan on going back to the vendor firmware - the bootcmd for it is stored in the boot_flash variable. 4. Load the initramfs image to RAM and boot by executing $ tftpboot 0x1000000 192.168.200.200:01C8A8C0.img; bootm 5. Make a backup of the "firmware" partition if you ever wish to go back to the vendor firmware. 6. Upload the OpenWrt sysupgrade image via SCP to the devices /tmp folder. 7. Flash OpenWrt using sysupgrade. $ sysupgrade -n /tmp/openwrt-sysupgrade.bin Signed-off-by: David Bauer <mail@david-bauer.net>
* ramips: add support for JCG JHR-AC876MDENG Qingfang2019-12-133-0/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | JCG JHR-AC876M is an AC2600M router Hardware specs: SoC: MT7621AT 2.4GHz: MT7615N 4x4 @ PCIe0 5GHz: MT7615N 4x4 @ PCIe1 Flash: Winbond W25Q128JVSQ 16MiB RAM: Nanya NT5CB128M16 256MiB USB 2.0 and 3.0 ports 6 LEDs, 3 of which are connected to SoC GPIO Reset and WPS buttons Flash instructions: Stock to OpenWrt: Upload factory.bin in stock firmware's upgrade page, do not preserve settings OpenWrt to stock: Push and hold the reset button for 5s while power cycling to enter recovery mode; Visit 192.168.1.1 and upload stock firmware MAC addresses map: 0x0004 *:1c wlan2g/wan/label 0x8004 *:20 wlan5g 0xe000 *:1b lan 0xe006 *:1a not used in stock fw Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>