hi, if you are using git, you can try the 'git sent-email ' command. if svn, may be there are other similar tool to send a good patch.
Alex Guo Credo Semi. 郭传鈜 <[email protected]>编写: >Sorry. I resent this because of the text format :-( I don't know why >my patch isn't displayed normally in the patchwork page.What should I >do? >I also uploaded my patch file here: >http://php-gch981213.rhcloud.com/wp-content/uploads/2014/07/br100patch.txt > > >Ai-BR100 is a router with mt7620a chip.Maybe it's only sold in China. >There are only 2 lights on the board (WAN and WLAN) so I used the wlan >light as the status led. >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:-( > >Signed-off-by: Chuanhong Guo <[email protected]> > >diff --git a/target/linux/ramips/base-files/etc/diag.sh >b/target/linux/ramips/base-files/etc/diag.sh >index 14d630e..2d34172 100755 >--- a/target/linux/ramips/base-files/etc/diag.sh >+++ b/target/linux/ramips/base-files/etc/diag.sh >@@ -179,6 +179,9 @@ get_status_led() { > na930) > status_led="na930:blue:power" > ;; >+ ai-br100) >+ status_led="aigale:blue:wlan" >+ ;; > esac > } > >diff --git >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 >index b56fb63..64ae008 100644 >--- 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 >@@ -121,6 +121,7 @@ case "$FIRMWARE" in > wr512-3gn | \ > wr6202 | \ > wrtnode | \ >+ ai-br100 | \ > mzk-w300nh2 | \ > ur-326n4g | \ > ur-336un | \ >diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds >b/target/linux/ramips/base-files/etc/uci-defaults/01_leds >index c2f768b..1c99acc 100755 >--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds >+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds >@@ -153,6 +153,10 @@ case $board in > set_usb_led "alfa:blue:usb" > set_wifi_led "rt2800pci-phy0::radio" > ;; >+ ai-br100) >+ ucidef_set_led_netdev "wan" "wan" "aigale:blue:wan" "eth0.2" >+ set_wifi_led "aigale:blue:wlan" >+ ;; > wcr-150gn) > set_usb_led "wcr150gn:amber:user" > ;; >diff --git a/target/linux/ramips/base-files/lib/ramips.sh >b/target/linux/ramips/base-files/lib/ramips.sh >index ca339b3..a46b09d 100755 >--- a/target/linux/ramips/base-files/lib/ramips.sh >+++ b/target/linux/ramips/base-files/lib/ramips.sh >@@ -304,6 +304,9 @@ ramips_board_detect() { > *"Wansview NCS601W") > name="ncs601w" > ;; >+ *"Aigale Ai-BR100") >+ name="ai-br100" >+ ;; > *"Sercomm NA930") > name="na930" > ;; >diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh >b/target/linux/ramips/base-files/lib/upgrade/platform.sh >index a39c433..524fc11 100755 >--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh >+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh >@@ -90,6 +90,7 @@ platform_check_image() { > wr512-3gn |\ > wmr300 |\ > wrtnode |\ >+ ai-br100 |\ > x5 |\ > x8) > [ "$magic" != "27051956" ] && { >diff --git a/target/linux/ramips/dts/AIBR100.dts >b/target/linux/ramips/dts/AIBR100.dts >index e69de29..62361ce 100644 >--- a/target/linux/ramips/dts/AIBR100.dts >+++ b/target/linux/ramips/dts/AIBR100.dts >@@ -0,0 +1,100 @@ >+/dts-v1/; >+ >+/include/ "mt7620a.dtsi" >+ >+/ { >+ compatible = "AIBR100", "ralink,mt7620a-soc"; >+ model = "Aigale Ai-BR100"; >+ >+ palmbus@10000000 { >+ gpio2: gpio@660 { >+ status = "okay"; >+ }; >+ >+ gpio3: gpio@688 { >+ status = "okay"; >+ }; >+ >+ spi@b00 { >+ status = "okay"; >+ >+ m25p80@0 { >+ #address-cells = <1>; >+ #size-cells = <1>; >+ compatible = "en25q64"; >+ reg = <0 0>; >+ linux,modalias = "m25p80", "en25q64"; >+ spi-max-frequency = <10000000>; >+ >+ partition@0 { >+ label = "u-boot"; >+ reg = <0x0 0x20000>; >+ read-only; >+ }; >+ >+ partition@20000 { >+ label = "u-boot-env"; >+ reg = <0x20000 0x10000>; >+ read-only; >+ }; >+ >+ factory: partition@30000 { >+ label = "factory"; >+ reg = <0x30000 0x10000>; >+ read-only; >+ }; >+ >+ partition@40000 { >+ label = "firmware"; >+ reg = <0x40000 0x7c0000>; >+ }; >+ }; >+ }; >+ }; >+ >+ ehci@101c0000 { >+ status = "okay"; >+ }; >+ >+ ohci@101c1000 { >+ status = "okay"; >+ }; >+ >+ pinctrl { >+ state_default: pinctrl0 { >+ gpio { >+ ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd"; >+ ralink,function = "gpio"; >+ }; >+ }; >+ }; >+ >+ ethernet@10100000 { >+ mtd-mac-address = <&factory 0x4>; >+ ralink,port-map = "llllw"; >+ }; >+ >+ gpio-leds { >+ compatible = "gpio-leds"; >+ wan { >+ label = "aigale:blue:wan"; >+ gpios = <&gpio2 4 1>; >+ }; >+ wlan { >+ label = "aigale:blue:wlan"; >+ gpios = <&gpio3 0 1>; >+ }; >+ }; >+ >+ gpio-keys-polled { >+ compatible = "gpio-keys-polled"; >+ #address-cells = <1>; >+ #size-cells = <0>; >+ poll-interval = <20>; >+ reset { >+ label = "reset"; >+ gpios = <&gpio0 12 1>; >+ linux,code = <0x198>; >+ }; >+ }; >+}; >diff --git a/target/linux/ramips/image/Makefile >b/target/linux/ramips/image/Makefile >index 5b23035..567d9d9 100644 >--- a/target/linux/ramips/image/Makefile >+++ b/target/linux/ramips/image/Makefile >@@ -714,6 +714,8 @@ dlink810l_mtd_size=6881280 > Image/Build/Profile/DIR-810L=$(call >BuildFirmware/CustomFlash/$(1),$(1),dir-810l,DIR-810L,$(dlink810l_mtd_size)) > na930_mtd_size=20971520 > Image/Build/Profile/NA930=$(call >BuildFirmware/CustomFlash/$(1),$(1),na930,NA930,$(na930_mtd_size)) >+br100_mtd_size=8126464 >+Image/Build/Profile/AIBR100=$(call >BuildFirmware/CustomFlash/$(1),$(1),ai-br100,AIBR100,$(br100_mtd_size)) > > ifeq ($(SUBTARGET),mt7620a) > define Image/Build/Profile/Default >@@ -727,6 +729,7 @@ define Image/Build/Profile/Default > $(call Image/Build/Profile/WHR600D,$(1)) > $(call Image/Build/Profile/WHR1166D,$(1)) > $(call Image/Build/Profile/NA930,$(1)) >+ $(call Image/Build/Profile/AIBR100,$(1)) > endef > endif > >diff --git a/target/linux/ramips/mt7620a/profiles/AIBR100.mk >b/target/linux/ramips/mt7620a/profiles/AIBR100.mk >index e69de29..5feb729 100644 >--- a/target/linux/ramips/mt7620a/profiles/AIBR100.mk >+++ b/target/linux/ramips/mt7620a/profiles/AIBR100.mk >@@ -0,0 +1,18 @@ >+# >+# Copyright (C) 2011 OpenWrt.org >+# >+# This is free software, licensed under the GNU General Public License v2. >+# See /LICENSE for more information. >+# >+ >+define Profile/AIBR100 >+ NAME:=Aigale Ai-BR100 >+ PACKAGES:=\ >+ kmod-usb-core kmod-usb-dwc2 \ >+ kmod-ledtrig-usbdev >+endef >+ >+define Profile/AIBR100/Description >+ Default package set for Aigale Ai-BR100. >+endef >+$(eval $(call Profile,AIBR100)) >_______________________________________________ >openwrt-devel mailing list >[email protected] >https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
