<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:14px">Ai-BR100 is a router with mt7620a chip.Maybe it's only sold in China.</div><div style="font-family:arial,sans-serif;font-size:14px">There are only 2 lights on the board (WAN and WLAN) so I used the wlan light as the status led.</div>
<span style="font-family:arial,sans-serif;font-size:14px">USB is not working normally (only usb2.0 devices can be recognized when I select kmod-usb2 and kmod-usb-ohci) I don't know if it is caused by my dts file:-(</span><div style="font-family:arial,sans-serif;font-size:14px">
<div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)"><br></span></div><div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)">Signed-off-by: Chuanhong Guo <<a href="mailto:gch981213@gmail.com" target="_blank">gch981213@gmail.com</a>></span></div>
<div><br></div><div><br></div><div>diff -ruN a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh</div><div>--- a/target/linux/ramips/base-files/etc/diag.sh<span style="white-space:pre-wrap">      </span>2014-07-02 23:06:16.196364942 +0800</div>
<div>+++ b/target/linux/ramips/base-files/etc/diag.sh<span style="white-space:pre-wrap">  </span>2014-07-02 17:50:24.925880926 +0800</div><div>@@ -179,6 +179,9 @@</div><div> <span style="white-space:pre-wrap">  </span>na930)</div>
<div> <span style="white-space:pre-wrap">                </span>status_led="na930:blue:power"</div><div> <span style="white-space:pre-wrap">                </span>;;</div><div>+<span style="white-space:pre-wrap">      </span>ai-br100)</div><div>
+<span style="white-space:pre-wrap">            </span>status_led="aigale:blue:wlan"</div><div>+<span style="white-space:pre-wrap">         </span>;;</div><div> <span style="white-space:pre-wrap">     </span>esac</div><div> }</div><div>
 </div><div>diff -ruN a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom</div><div>--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom<span style="white-space:pre-wrap">      </span>2014-07-02 23:06:16.197364943 +0800</div>
<div>+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom<span style="white-space:pre-wrap">      </span>2014-07-02 17:50:24.926880924 +0800</div><div>@@ -121,6 +121,7 @@</div><div> <span style="white-space:pre-wrap">  </span>wr512-3gn | \</div>
<div> <span style="white-space:pre-wrap">        </span>wr6202 | \</div><div> <span style="white-space:pre-wrap">     </span>wrtnode | \</div><div>+<span style="white-space:pre-wrap">     </span>ai-br100 | \</div><div> <span style="white-space:pre-wrap">   </span>mzk-w300nh2 | \</div>
<div> <span style="white-space:pre-wrap">        </span>ur-326n4g | \</div><div> <span style="white-space:pre-wrap">  </span>ur-336un | \</div><div>diff -ruN a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds</div>
<div>--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds<span style="white-space:pre-wrap">     </span>2014-07-02 23:06:16.197364943 +0800</div><div>+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds<span style="white-space:pre-wrap"> </span>2014-07-02 17:50:24.926880924 +0800</div>
<div>@@ -153,6 +153,10 @@</div><div> <span style="white-space:pre-wrap">             </span>set_usb_led "alfa:blue:usb"</div><div> <span style="white-space:pre-wrap">          </span>set_wifi_led "rt2800pci-phy0::radio"</div>
<div> <span style="white-space:pre-wrap">                </span>;;</div><div>+<span style="white-space:pre-wrap">      </span>ai-br100)</div><div>+<span style="white-space:pre-wrap">               </span>ucidef_set_led_netdev "wan" "wan" "aigale:blue:wan" "eth0.2"</div>
<div>+<span style="white-space:pre-wrap">         </span>set_wifi_led "aigale:blue:wlan"</div><div>+<span style="white-space:pre-wrap">               </span>;;</div><div> <span style="white-space:pre-wrap">     </span>wcr-150gn)</div><div>
 <span style="white-space:pre-wrap">           </span>set_usb_led "wcr150gn:amber:user"</div><div> <span style="white-space:pre-wrap">            </span>;;</div><div>diff -ruN a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh</div>
<div>--- a/target/linux/ramips/base-files/lib/ramips.sh<span style="white-space:pre-wrap">        </span>2014-07-02 23:06:16.198364946 +0800</div><div>+++ b/target/linux/ramips/base-files/lib/ramips.sh<span style="white-space:pre-wrap">    </span>2014-07-02 17:50:24.926880924 +0800</div>
<div>@@ -304,6 +304,9 @@</div><div> <span style="white-space:pre-wrap">      </span>*"Wansview NCS601W")</div><div> <span style="white-space:pre-wrap">         </span>name="ncs601w"</div><div> <span style="white-space:pre-wrap">               </span>;;</div>
<div>+<span style="white-space:pre-wrap"> </span>*"Aigale Ai-BR100")</div><div>+<span style="white-space:pre-wrap">           </span>name="ai-br100"</div><div>+<span style="white-space:pre-wrap">               </span>;;</div>
<div> <span style="white-space:pre-wrap">        </span>*"Sercomm NA930")</div><div> <span style="white-space:pre-wrap">            </span>name="na930"</div><div> <span style="white-space:pre-wrap">         </span>;;</div><div>
diff -ruN a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh</div><div>--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh<span style="white-space:pre-wrap">       </span>2014-07-02 23:06:16.199364951 +0800</div>
<div>+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh<span style="white-space:pre-wrap">      </span>2014-07-02 17:50:24.927880922 +0800</div><div>@@ -90,6 +90,7 @@</div><div> <span style="white-space:pre-wrap">    </span>wr512-3gn |\</div>
<div> <span style="white-space:pre-wrap">        </span>wmr300 |\</div><div> <span style="white-space:pre-wrap">      </span>wrtnode |\</div><div>+<span style="white-space:pre-wrap">      </span>ai-br100 |\</div><div> <span style="white-space:pre-wrap">    </span>x5 |\</div>
<div> <span style="white-space:pre-wrap">        </span>x8)</div><div> <span style="white-space:pre-wrap">            </span>[ "$magic" != "27051956" ] && {</div><div>diff -ruN a/target/linux/ramips/dts/AIBR100.dts b/target/linux/ramips/dts/AIBR100.dts</div>
<div>--- a/target/linux/ramips/dts/AIBR100.dts<span style="white-space:pre-wrap"> </span>1970-01-01 08:00:00.000000000 +0800</div><div>+++ b/target/linux/ramips/dts/AIBR100.dts<span style="white-space:pre-wrap">     </span>2014-07-02 17:47:58.887491883 +0800</div>
<div>@@ -0,0 +1,100 @@</div><div>+/dts-v1/;</div><div>+</div><div>+/include/ "mt7620a.dtsi"</div><div>+</div><div>+/ {</div><div>+<span style="white-space:pre-wrap">   </span>compatible = "AIBR100", "ralink,mt7620a-soc";</div>
<div>+<span style="white-space:pre-wrap"> </span>model = "Aigale Ai-BR100";</div><div>+</div><div>+<span style="white-space:pre-wrap">    </span>palmbus@10000000 {</div><div>+<span style="white-space:pre-wrap">              </span>gpio2: gpio@660 {</div>
<div>+<span style="white-space:pre-wrap">                 </span>status = "okay";</div><div>+<span style="white-space:pre-wrap">              </span>};</div><div>+</div><div>+<span style="white-space:pre-wrap">              </span>gpio3: gpio@688 {</div>
<div>+<span style="white-space:pre-wrap">                 </span>status = "okay";</div><div>+<span style="white-space:pre-wrap">              </span>};</div><div>+</div><div>+<span style="white-space:pre-wrap">              </span>spi@b00 {</div><div>
+<span style="white-space:pre-wrap">                    </span>status = "okay";</div><div>+</div><div>+<span style="white-space:pre-wrap">                      </span>m25p80@0 {</div><div>+<span style="white-space:pre-wrap">                              </span>#address-cells = <1>;</div>
<div>+<span style="white-space:pre-wrap">                         </span>#size-cells = <1>;</div><div>+<span style="white-space:pre-wrap">                                </span>compatible = "en25q64";</div><div>+<span style="white-space:pre-wrap">                               </span>reg = <0 0>;</div>
<div>+<span style="white-space:pre-wrap">                         </span>linux,modalias = "m25p80", "en25q64";</div><div>+<span style="white-space:pre-wrap">                               </span>spi-max-frequency = <10000000>;</div><div>+</div>
<div>+<span style="white-space:pre-wrap">                         </span>partition@0 {</div><div>+<span style="white-space:pre-wrap">                                   </span>label = "u-boot";</div><div>+<span style="white-space:pre-wrap">                                     </span>reg = <0x0 0x20000>;</div>
<div>+<span style="white-space:pre-wrap">                                 </span>read-only;</div><div>+<span style="white-space:pre-wrap">                              </span>};</div><div>+</div><div>+<span style="white-space:pre-wrap">                              </span>partition@20000 {</div><div>
+<span style="white-space:pre-wrap">                                    </span>label = "u-boot-env";</div><div>+<span style="white-space:pre-wrap">                                 </span>reg = <0x20000 0x10000>;</div><div>+<span style="white-space:pre-wrap">                                  </span>read-only;</div>
<div>+<span style="white-space:pre-wrap">                         </span>};</div><div>+</div><div>+<span style="white-space:pre-wrap">                              </span>factory: partition@30000 {</div><div>+<span style="white-space:pre-wrap">                                      </span>label = "factory";</div>
<div>+<span style="white-space:pre-wrap">                                 </span>reg = <0x30000 0x10000>;</div><div>+<span style="white-space:pre-wrap">                                  </span>read-only;</div><div>+<span style="white-space:pre-wrap">                              </span>};</div><div>
+</div><div>+<span style="white-space:pre-wrap">                            </span>partition@40000 {</div><div>+<span style="white-space:pre-wrap">                                       </span>label = "firmware";</div><div>+<span style="white-space:pre-wrap">                                   </span>reg = <0x40000 0x7c0000>;</div>
<div>+<span style="white-space:pre-wrap">                         </span>};</div><div>+<span style="white-space:pre-wrap">                      </span>};</div><div>+<span style="white-space:pre-wrap">              </span>};</div><div>+<span style="white-space:pre-wrap">      </span>};</div>
<div>+</div><div>+<span style="white-space:pre-wrap"> </span>ehci@101c0000 {</div><div>+<span style="white-space:pre-wrap">         </span>status = "okay";</div><div>+<span style="white-space:pre-wrap">      </span>};</div>
<div>+</div><div>+<span style="white-space:pre-wrap"> </span>ohci@101c1000 {</div><div>+<span style="white-space:pre-wrap">         </span>status = "okay";</div><div>+<span style="white-space:pre-wrap">      </span>};</div>
<div>+</div><div>+<span style="white-space:pre-wrap"> </span>pinctrl {</div><div>+<span style="white-space:pre-wrap">               </span>state_default: pinctrl0 {</div><div>+<span style="white-space:pre-wrap">                       </span>gpio {</div><div>
+<span style="white-space:pre-wrap">                            </span>ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";</div><div>+<span style="white-space:pre-wrap">                               </span>ralink,function = "gpio";</div>
<div>+<span style="white-space:pre-wrap">                 </span>};</div><div>+<span style="white-space:pre-wrap">              </span>};</div><div>+<span style="white-space:pre-wrap">      </span>};</div><div>+</div><div>+<span style="white-space:pre-wrap">      </span>ethernet@10100000 {</div>
<div>+<span style="white-space:pre-wrap">         </span>mtd-mac-address = <&factory 0x4>;</div><div>+<span style="white-space:pre-wrap">             </span>ralink,port-map = "llllw";</div><div>+<span style="white-space:pre-wrap">    </span>};</div>
<div>+</div><div>+<span style="white-space:pre-wrap"> </span>gpio-leds {</div><div>+<span style="white-space:pre-wrap">             </span>compatible = "gpio-leds";</div><div>+<span style="white-space:pre-wrap">             </span>wan {</div>
<div>+<span style="white-space:pre-wrap">                 </span>label = "aigale:blue:wan";</div><div>+<span style="white-space:pre-wrap">                    </span>gpios = <&gpio2 4 1>;</div><div>+<span style="white-space:pre-wrap">         </span>};</div>
<div>+<span style="white-space:pre-wrap">         </span>wlan {</div><div>+<span style="white-space:pre-wrap">                  </span>label = "aigale:blue:wlan";</div><div>+<span style="white-space:pre-wrap">                   </span>gpios = <&gpio3 0 1>;</div>
<div>+<span style="white-space:pre-wrap">         </span>};</div><div>+<span style="white-space:pre-wrap">      </span>};</div><div>+</div><div>+<span style="white-space:pre-wrap">      </span>gpio-keys-polled {</div><div>+<span style="white-space:pre-wrap">              </span>compatible = "gpio-keys-polled";</div>
<div>+<span style="white-space:pre-wrap">         </span>#address-cells = <1>;</div><div>+<span style="white-space:pre-wrap">             </span>#size-cells = <0>;</div><div>+<span style="white-space:pre-wrap">                </span>poll-interval = <20>;</div>
<div>+<span style="white-space:pre-wrap">         </span>reset {</div><div>+<span style="white-space:pre-wrap">                 </span>label = "reset";</div><div>+<span style="white-space:pre-wrap">                      </span>gpios = <&gpio0 12 1>;</div>
<div>+<span style="white-space:pre-wrap">                 </span>linux,code = <0x198>;</div><div>+<span style="white-space:pre-wrap">             </span>};</div><div>+<span style="white-space:pre-wrap">      </span>};</div><div>+};</div><div>diff -ruN a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile</div>
<div>--- a/target/linux/ramips/image/Makefile<span style="white-space:pre-wrap">  </span>2014-07-02 23:06:16.214364992 +0800</div><div>+++ b/target/linux/ramips/image/Makefile<span style="white-space:pre-wrap">      </span>2014-07-02 17:50:24.928880926 +0800</div>
<div>@@ -714,6 +714,8 @@</div><div> Image/Build/Profile/DIR-810L=$(call BuildFirmware/CustomFlash/$(1),$(1),dir-810l,DIR-810L,$(dlink810l_mtd_size))</div><div> na930_mtd_size=20971520</div><div> Image/Build/Profile/NA930=$(call BuildFirmware/CustomFlash/$(1),$(1),na930,NA930,$(na930_mtd_size))</div>
<div>+br100_mtd_size=8126464</div><div>+Image/Build/Profile/AIBR100=$(call BuildFirmware/CustomFlash/$(1),$(1),ai-br100,AIBR100,$(br100_mtd_size))</div><div> </div><div> ifeq ($(SUBTARGET),mt7620a)</div><div> define Image/Build/Profile/Default</div>
<div>@@ -727,6 +729,7 @@</div><div> <span style="white-space:pre-wrap">      </span>$(call Image/Build/Profile/WHR600D,$(1))</div><div> <span style="white-space:pre-wrap">       </span>$(call Image/Build/Profile/WHR1166D,$(1))</div>
<div> <span style="white-space:pre-wrap">        </span>$(call Image/Build/Profile/NA930,$(1))</div><div>+<span style="white-space:pre-wrap">  </span>$(call Image/Build/Profile/AIBR100,$(1))</div><div> endef</div><div> endif</div>
<div> </div><div>diff -ruN a/target/linux/ramips/mt7620a/profiles/AIBR100.mk b/target/linux/ramips/mt7620a/profiles/AIBR100.mk</div><div>--- a/target/linux/ramips/mt7620a/profiles/AIBR100.mk<span style="white-space:pre-wrap">        </span>1970-01-01 08:00:00.000000000 +0800</div>
<div>+++ b/target/linux/ramips/mt7620a/profiles/AIBR100.mk<span style="white-space:pre-wrap">     </span>2014-04-04 18:52:23.183785000 +0800</div><div>@@ -0,0 +1,18 @@</div><div>+#</div><div>+# Copyright (C) 2011 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/AIBR100</div><div>+<span style="white-space:pre-wrap">   </span>NAME:=Aigale Ai-BR100</div>
<div>+<span style="white-space:pre-wrap"> </span>PACKAGES:=\</div><div>+<span style="white-space:pre-wrap">             </span>kmod-usb-core kmod-usb-dwc2 \</div><div>+<span style="white-space:pre-wrap">           </span>kmod-ledtrig-usbdev</div>
<div>+endef</div><div>+</div><div>+define Profile/AIBR100/Description</div><div>+<span style="white-space:pre-wrap">  </span>Default package set for Aigale Ai-BR100.</div><div>+endef</div><div>+$(eval $(call Profile,AIBR100)) </div>
</div></div>