It seems the ML is choking on the full patch and splitting it up because it in turn adds a patch into the kernel patches dir, so here's the download link for the full patch:<div><br></div><div><a href="https://volatilesystems.org/dl/openwrt/targets/add-minibox-target-trunk.patch">https://volatilesystems.org/dl/openwrt/targets/add-minibox-target-trunk.patch</a></div><div><br></div><div>I think the full patch meets the requirements, if I need to split out, let me know.</div><div><br></div><div>Stijn<br><br>Op zo, 9 aug 2015 om 10:47 , schreef Stijn Segers <francesco.borromini@inventati.org>:<br>
<blockquote type="cite">Hello,<div><br><div>The patch below adds support for the Gainstrong Minibox v1.0 mini router into trunk. This is based off the Barrier Breaker based source code at <a href="http://ooioe.com/miniboxv1/Sourcecode/">http://ooioe.com/miniboxv1/Sourcecode/</a>.</div><div><br></div><div>Patch applies cleanly, has been compile-tested on a 15.05 tree (the patch below is for the trunk ar17xx target with kernel 4.1). For those interested, I can provide the 15.05 patch as well.</div><div><br></div><div>Any questions, let me know. </div><div><br></div><div>Thank you</div><div><br></div><div>Stijn</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Index: openwrt/trunk/target/linux/ar71xx/base-files/etc/diag.sh</div><div>===================================================================</div><div>--- openwrt.orig/trunk/target/linux/ar71xx/base-files/etc/diag.sh</div><div>+++ openwrt/trunk/target/linux/ar71xx/base-files/etc/diag.sh</div><div>@@ -222,6 +222,9 @@ get_status_led() {</div><div> <span class="Apple-tab-span" style="white-space:pre">    </span>qihoo-c301)</div><div> <span class="Apple-tab-span" style="white-space:pre">            </span>status_led="qihoo:green:status"</div><div> <span class="Apple-tab-span" style="white-space:pre">              </span>;;</div><div>+<span class="Apple-tab-span" style="white-space:pre">  </span>minibox-v1)</div><div>+<span class="Apple-tab-span" style="white-space:pre">         </span>status_led="minibox-v1:green:system"</div><div>+<span class="Apple-tab-span" style="white-space:pre">              </span>;;</div><div> <span class="Apple-tab-span" style="white-space:pre">     </span>tew-632brp)</div><div> <span class="Apple-tab-span" style="white-space:pre">            </span>status_led="tew-632brp:green:status"</div><div> <span class="Apple-tab-span" style="white-space:pre">         </span>;;</div><div>@@ -366,7 +369,7 @@ set_state() {</div><div> <span class="Apple-tab-span" style="white-space:pre">             </span>status_led_blink_preinit_regular</div><div> <span class="Apple-tab-span" style="white-space:pre">               </span>;;</div><div> <span class="Apple-tab-span" style="white-space:pre">     </span>done)</div><div>-<span class="Apple-tab-span" style="white-space:pre">               </span>status_led_on</div><div>+<span class="Apple-tab-span" style="white-space:pre">               </span>status_led_off</div><div> <span class="Apple-tab-span" style="white-space:pre">         </span>case $(ar71xx_board_name) in</div><div> <span class="Apple-tab-span" style="white-space:pre">           </span>qihoo-c301)</div><div> <span class="Apple-tab-span" style="white-space:pre">                    </span>local n=$(fw_printenv activeregion | cut -d = -f 2)</div><div>Index: openwrt/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network</div><div>===================================================================</div><div>--- openwrt.orig/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network</div><div>+++ openwrt/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network</div><div>@@ -419,6 +419,7 @@ ja76pf |\</div><div> mc-mac1200r|\</div><div> mynet-n600 |\</div><div> oolite |\</div><div>+minibox-v1 |\</div><div> qihoo-c301 |\</div><div> rb-750 |\</div><div> rb-751 |\</div><div>Index: openwrt/trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh</div><div>===================================================================</div><div>--- openwrt.orig/trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh</div><div>+++ openwrt/trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh</div><div>@@ -119,6 +119,9 @@ tplink_board_detect() {</div><div> <span class="Apple-tab-span" style="white-space:pre">     </span>"3C0001"*)</div><div> <span class="Apple-tab-span" style="white-space:pre">           </span>model="OOLITE"</div><div> <span class="Apple-tab-span" style="white-space:pre">               </span>;;</div><div>+<span class="Apple-tab-span" style="white-space:pre">  </span>"3C0002"*)</div><div>+<span class="Apple-tab-span" style="white-space:pre">                </span>model="MINIBOX_V1"</div><div>+<span class="Apple-tab-span" style="white-space:pre">                </span>;;</div><div> <span class="Apple-tab-span" style="white-space:pre">     </span>"070300"*)</div><div> <span class="Apple-tab-span" style="white-space:pre">           </span>model="TP-Link TL-WR703N"</div><div> <span class="Apple-tab-span" style="white-space:pre">            </span>;;</div><div>@@ -320,6 +323,9 @@ ar71xx_board_detect() {</div><div> <span class="Apple-tab-span" style="white-space:pre">   </span>*"AC1750DB")</div><div> <span class="Apple-tab-span" style="white-space:pre">         </span>name="f9k1115v2"</div><div> <span class="Apple-tab-span" style="white-space:pre">             </span>;;</div><div>+<span class="Apple-tab-span" style="white-space:pre">  </span>*"MiniBox V1.0")</div><div>+<span class="Apple-tab-span" style="white-space:pre">          </span>name="minibox-v1"</div><div>+<span class="Apple-tab-span" style="white-space:pre">         </span>;;</div><div> <span class="Apple-tab-span" style="white-space:pre">     </span>*"AirGateway")</div><div> <span class="Apple-tab-span" style="white-space:pre">               </span>name="airgateway"</div><div> <span class="Apple-tab-span" style="white-space:pre">            </span>;;</div><div>Index: openwrt/trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh</div><div>===================================================================</div><div>--- openwrt.orig/trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh</div><div>+++ openwrt/trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh</div><div>@@ -315,6 +315,7 @@ platform_check_image() {</div><div> <span class="Apple-tab-span" style="white-space:pre">   </span>mc-mac1200r | \</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>onion-omega | \</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>oolite | \</div><div>+<span class="Apple-tab-span" style="white-space:pre">  </span>minibox-v1 |\</div><div> <span class="Apple-tab-span" style="white-space:pre">  </span>smart-300 | \</div><div> <span class="Apple-tab-span" style="white-space:pre">  </span>tl-mr10u | \</div><div> <span class="Apple-tab-span" style="white-space:pre">   </span>tl-mr11u | \</div><div>Index: openwrt/trunk/target/linux/ar71xx/config-4.1</div><div>===================================================================</div><div>--- openwrt.orig/trunk/target/linux/ar71xx/config-4.1</div><div>+++ openwrt/trunk/target/linux/ar71xx/config-4.1</div><div>@@ -73,6 +73,7 @@ CONFIG_ATH79_MACH_EW_DORIN=y</div><div> CONFIG_ATH79_MACH_F9K1115V2=y</div><div> CONFIG_ATH79_MACH_GL_INET=y</div><div> CONFIG_ATH79_MACH_GS_OOLITE=y</div><div>+CONFIG_ATH79_MACH_MINIBOX_V1=y</div><div> CONFIG_ATH79_MACH_HIWIFI_HC6361=y</div><div> CONFIG_ATH79_MACH_HORNET_UB=y</div><div> CONFIG_ATH79_MACH_JA76PF=y</div><div>Index: openwrt/trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-minibox-v1.c</div><div>===================================================================</div><div>--- /dev/null</div><div>+++ openwrt/trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-minibox-v1.c</div><div>@@ -0,0 +1,85 @@</div><div>+/*</div><div>+ *  Oolite board support</div><div>+ *</div><div>+ *</div><div>+ *  This program is free software; you can redistribute it and/or modify it</div><div>+ *  under the terms of the GNU General Public License version 2 as published</div><div>+ *  by the Free Software Foundation.</div><div>+ */</div><div>+</div><div>+#include <linux/gpio.h></div><div>+</div><div>+#include <asm/mach-ath79/ath79.h></div><div>+#include <asm/mach-ath79/ar71xx_regs.h></div><div>+</div><div>+#include "common.h"</div><div>+#include "dev-eth.h"</div><div>+#include "dev-gpio-buttons.h"</div><div>+#include "dev-leds-gpio.h"</div><div>+#include "dev-m25p80.h"</div><div>+#include "dev-wmac.h"</div><div>+#include "machtypes.h"</div><div>+#include "dev-usb.h"</div><div>+</div><div>+#define MINIBOX_V1_GPIO_BTN_RESET<span class="Apple-tab-span" style="white-space:pre">     </span>11</div><div>+</div><div>+#define MINIBOX_V1_GPIO_LED_SYSTEM<span class="Apple-tab-span" style="white-space:pre">        </span>1</div><div>+</div><div>+#define MINIBOX_V1_KEYS_POLL_INTERVAL<span class="Apple-tab-span" style="white-space:pre">      </span>20<span class="Apple-tab-span" style="white-space:pre">  </span>/* msecs */</div><div>+#define MINIBOX_V1_KEYS_DEBOUNCE_INTERVAL (3 * MINIBOX_V1_KEYS_POLL_INTERVAL)</div><div>+</div><div>+static const char *MINIBOX_V1_part_probes[] = {</div><div>+<span class="Apple-tab-span" style="white-space:pre">     </span>"tp-link",</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>NULL,</div><div>+};</div><div>+</div><div>+static struct flash_platform_data MINIBOX_V1_flash_data = {</div><div>+<span class="Apple-tab-span" style="white-space:pre">  </span>.part_probes<span class="Apple-tab-span" style="white-space:pre">        </span>= MINIBOX_V1_part_probes,</div><div>+};</div><div>+</div><div>+static struct gpio_led MINIBOX_V1_leds_gpio[] __initdata = {</div><div>+<span class="Apple-tab-span" style="white-space:pre">     </span>{</div><div>+<span class="Apple-tab-span" style="white-space:pre">           </span>.name<span class="Apple-tab-span" style="white-space:pre">               </span>= "minibox-v1:green:system",</div><div>+<span class="Apple-tab-span" style="white-space:pre">              </span>.gpio<span class="Apple-tab-span" style="white-space:pre">               </span>= MINIBOX_V1_GPIO_LED_SYSTEM,</div><div>+<span class="Apple-tab-span" style="white-space:pre">               </span>.active_low<span class="Apple-tab-span" style="white-space:pre"> </span>= 0,</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>},</div><div>+};</div><div>+</div><div>+static struct gpio_keys_button MINIBOX_V1_gpio_keys[] __initdata = {</div><div>+<span class="Apple-tab-span" style="white-space:pre">    </span>{</div><div>+<span class="Apple-tab-span" style="white-space:pre">           </span>.desc<span class="Apple-tab-span" style="white-space:pre">               </span>= "reset",</div><div>+<span class="Apple-tab-span" style="white-space:pre">                </span>.type<span class="Apple-tab-span" style="white-space:pre">               </span>= EV_KEY,</div><div>+<span class="Apple-tab-span" style="white-space:pre">           </span>.code<span class="Apple-tab-span" style="white-space:pre">               </span>= KEY_RESTART,</div><div>+<span class="Apple-tab-span" style="white-space:pre">              </span>.debounce_interval = MINIBOX_V1_KEYS_DEBOUNCE_INTERVAL,</div><div>+<span class="Apple-tab-span" style="white-space:pre">             </span>.gpio<span class="Apple-tab-span" style="white-space:pre">               </span>= MINIBOX_V1_GPIO_BTN_RESET,</div><div>+<span class="Apple-tab-span" style="white-space:pre">                </span>.active_low<span class="Apple-tab-span" style="white-space:pre"> </span>= 0,</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>},</div><div>+};</div><div>+</div><div>+static void __init MINIBOX_V1_setup(void)</div><div>+{</div><div>+<span class="Apple-tab-span" style="white-space:pre">      </span>u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);</div><div>+<span class="Apple-tab-span" style="white-space:pre">     </span>u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);</div><div>+</div><div>+<span class="Apple-tab-span" style="white-space:pre">      </span>ath79_register_leds_gpio(-1, ARRAY_SIZE(MINIBOX_V1_leds_gpio),</div><div>+<span class="Apple-tab-span" style="white-space:pre">                              </span> MINIBOX_V1_leds_gpio);</div><div>+</div><div>+<span class="Apple-tab-span" style="white-space:pre">     </span>ath79_register_gpio_keys_polled(-1, MINIBOX_V1_KEYS_POLL_INTERVAL,</div><div>+<span class="Apple-tab-span" style="white-space:pre">                                  </span>ARRAY_SIZE(MINIBOX_V1_gpio_keys),</div><div>+<span class="Apple-tab-span" style="white-space:pre">                                   </span>MINIBOX_V1_gpio_keys);</div><div>+</div><div>+<span class="Apple-tab-span" style="white-space:pre">      </span>ath79_register_usb();</div><div>+</div><div>+<span class="Apple-tab-span" style="white-space:pre">       </span>ath79_register_m25p80(&MINIBOX_V1_flash_data);</div><div>+<span class="Apple-tab-span" style="white-space:pre">  </span>ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1);</div><div>+<span class="Apple-tab-span" style="white-space:pre">   </span>ath79_init_mac(ath79_eth1_data.mac_addr, mac, -1);</div><div>+</div><div>+<span class="Apple-tab-span" style="white-space:pre">  </span>ath79_register_mdio(0, 0x0);</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>ath79_register_eth(1);</div><div>+<span class="Apple-tab-span" style="white-space:pre">      </span>ath79_register_eth(0);</div><div>+</div><div>+<span class="Apple-tab-span" style="white-space:pre">      </span>ath79_register_wmac(ee, mac);</div><div>+}</div><div>+</div><div>+MIPS_MACHINE(ATH79_MACH_MINIBOX_V1, "MINIBOX-V1",</div><div>+<span class="Apple-tab-span" style="white-space:pre">   </span>     "MiniBox V1.0", MINIBOX_V1_setup);</div><div>Index: openwrt/trunk/target/linux/ar71xx/generic/profiles/minibox-v1.mk</div><div>===================================================================</div><div>--- /dev/null</div><div>+++ openwrt/trunk/target/linux/ar71xx/generic/profiles/minibox-v1.mk</div><div>@@ -0,0 +1,17 @@</div><div>+#</div><div>+# Copyright (C) 2015 OpenWrt.org</div><div>+#</div><div>+# This is free software, licensed under the GNU General Public License v2.</div><div>+# See /LICENSE for more information.</div><div>+#</div><div>+</div><div>+define Profile/MINIBOXV1</div><div>+<span class="Apple-tab-span" style="white-space:pre">  </span>NAME:=MINIBOX V1.0</div><div>+<span class="Apple-tab-span" style="white-space:pre">  </span>PACKAGES:=kmod-usb-core kmod-usb2  kmod-ledtrig-usbdev</div><div>+endef</div><div>+</div><div>+</div><div>+define Profile/MINIBOXV1/Description</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>Package set optimized for the MINIBOX V1.0</div><div>+endef</div><div>+$(eval $(call Profile,MINIBOXV1))</div><div>Index: openwrt/trunk/target/linux/ar71xx/image/Makefile</div><div>===================================================================</div><div>--- openwrt.orig/trunk/target/linux/ar71xx/image/Makefile</div><div>+++ openwrt/trunk/target/linux/ar71xx/image/Makefile</div><div>@@ -902,6 +902,15 @@ endef</div><div> </div><div> TARGET_DEVICES += ubnt-uap-pro ubnt-unifi-outdoor-plus</div><div> </div><div>+define Device/minibox-v1</div><div>+    $(Device/tplink-16mlzma)</div><div>+    BOARDNAME := MINIBOX-V1</div><div>+    DEVICE_PROFILE := MINIBOXV1</div><div>+    TPLINK_HWID := 0x3C000201</div><div>+    CONSOLE := ttyATH0,115200</div><div>+endef</div><div>+TARGET_DEVICES += minibox-v1</div><div>+</div><div> rootfs_type=$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1)))</div><div> </div><div> # $(1): rootfs type.</div><div>Index: openwrt/trunk/target/linux/ar71xx/patches-4.1/799-MIPS-ath79-add-minibox-v1-support.patch</div><div>===================================================================</div><div>--- /dev/null</div><div>+++ openwrt/trunk/target/linux/ar71xx/patches-4.1/799-MIPS-ath79-add-minibox-v1-support.patch</div><div>@@ -0,0 +1,39 @@</div><div>+--- a/arch/mips/ath79/machtypes.h</div><div>++++ b/arch/mips/ath79/machtypes.h</div><div>+@@ -61,6 +61,7 @@ enum ath79_mach_type {</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>ATH79_MACH_ESR1750,<span class="Apple-tab-span" style="white-space:pre">         </span>/* EnGenius ESR1750 */</div><div>+<span class="Apple-tab-span" style="white-space:pre">      </span>ATH79_MACH_GL_INET,<span class="Apple-tab-span" style="white-space:pre">         </span>/* GL-CONNECT GL-INET */</div><div>+<span class="Apple-tab-span" style="white-space:pre">    </span>ATH79_MACH_GS_OOLITE,           /* GS OOLITE V1.0 */</div><div>++<span class="Apple-tab-span" style="white-space:pre">      </span>ATH79_MACH_MINIBOX_V1,           /* MINIBOX V1.0 */</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>ATH79_MACH_HIWIFI_HC6361,<span class="Apple-tab-span" style="white-space:pre">   </span>/* HiWiFi HC6361 */</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>ATH79_MACH_JA76PF,<span class="Apple-tab-span" style="white-space:pre">          </span>/* jjPlus JA76PF */</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>ATH79_MACH_JA76PF2,<span class="Apple-tab-span" style="white-space:pre">         </span>/* jjPlus JA76PF2 */</div><div>+--- a/arch/mips/ath79/Kconfig</div><div>++++ b/arch/mips/ath79/Kconfig</div><div>+@@ -446,6 +446,16 @@ config ATH79_MACH_GS_OOLITE</div><div>+       select ATH79_DEV_USB</div><div>+       select ATH79_DEV_WMAC</div><div>+</div><div>++config ATH79_MACH_MINIBOX_V1</div><div>++       bool "OOLITE BOX V1.0 support"</div><div>++       select SOC_AR933X</div><div>++       select ARH79_DEV_ETH</div><div>++       select ARH79_DEV_GPIO_BUTTONS</div><div>++       select ATH79_DEV_LEDS_GPIO</div><div>++       select ATH79_DEV_M25P80</div><div>++       select ATH79_DEV_USB</div><div>++       select ATH79_DEV_WMAC</div><div>++</div><div>+ config ATH79_MACH_HIWIFI_HC6361</div><div>+<span class="Apple-tab-span" style="white-space:pre">       </span>bool "HiWiFi HC6361 board support"</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>select SOC_AR933X</div><div>+--- a/arch/mips/ath79/Makefile</div><div>++++ b/arch/mips/ath79/Makefile</div><div>+@@ -72,6 +72,7 @@ obj-$(CONFIG_ATH79_MACH_DIR_825_C1)<span class="Apple-tab-span" style="white-space:pre">  </span>+= m</div><div>+ obj-$(CONFIG_ATH79_MACH_ESR1750)<span class="Apple-tab-span" style="white-space:pre">       </span>+= mach-esr1750.o</div><div>+ obj-$(CONFIG_ATH79_MACH_GL_INET)<span class="Apple-tab-span" style="white-space:pre">  </span>+= mach-gl-inet.o</div><div>+ obj-$(CONFIG_ATH79_MACH_GS_OOLITE)<span class="Apple-tab-span" style="white-space:pre">        </span>+= mach-gs-oolite.o</div><div>++obj-$(CONFIG_ATH79_MACH_MINIBOX_V1)<span class="Apple-tab-span" style="white-space:pre">     </span>+= mach-minibox-v1.o</div><div>+ obj-$(CONFIG_ATH79_MACH_HIWIFI_HC6361)<span class="Apple-tab-span" style="white-space:pre"> </span>+= mach-hiwifi-hc6361.o</div><div>+ obj-$(CONFIG_ATH79_MACH_JA76PF)<span class="Apple-tab-span" style="white-space:pre">             </span>+= mach-ja76pf.o</div><div>+ obj-$(CONFIG_ATH79_MACH_JWAP003)<span class="Apple-tab-span" style="white-space:pre">   </span>+= mach-jwap003.o</div><div><br></div></div></blockquote></div>