I don't why it happened but my mail client wrapped some of the lines. Sending
patches again as an attachment.
Index: target/linux/ramips/base-files/lib/upgrade/platform.sh
===
--- target/linux/ramips/base-files/lib/upgrade/platform.sh (revision 32505)
+++ target/linux/ramips/base-files/lib/upgrade/platform.sh (working copy)
@@ -14,6 +14,7 @@
[ "$ARGC" -gt 1 ] && return 1
case "$board" in
+ 3g-6200n | \
all0256n | \
bc2 | \
dir-300-b1 | \
Index: target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
===
--- target/linux/ramips/base-files/lib/preinit/06_set_iface_mac (revision 32505)
+++ target/linux/ramips/base-files/lib/preinit/06_set_iface_mac (working copy)
@@ -8,6 +8,10 @@
. /lib/ramips.sh
case $(ramips_board_name) in
+ 3g-6200n)
+ mac=$(ramips_get_mac_binary factory 4)
+ ifconfig eth0 hw ether $mac 2>/dev/null
+ ;;
bc2 |\
esr-9753 |\
freestation5 |\
Index: target/linux/ramips/base-files/lib/ramips.sh
===
--- target/linux/ramips/base-files/lib/ramips.sh (revision 32505)
+++ target/linux/ramips/base-files/lib/ramips.sh (working copy)
@@ -47,6 +47,9 @@
machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
case "$machine" in
+ *"Edimax 3g-6200n")
+ name="3g-6200n"
+ ;;
*"Allnet ALL0256N")
name="all0256n"
;;
Index: target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
===
--- target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom (revision 32505)
+++ target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom (working copy)
@@ -47,7 +47,8 @@
f5d8235-v2)
rt2x00_eeprom_extract "u-boot" 262144 272
;;
-
+
+ 3g-6200n | \
all0256n | \
argus-atp52b | \
bc2 | \
Index: target/linux/ramips/base-files/etc/uci-defaults/leds
===
--- target/linux/ramips/base-files/etc/uci-defaults/leds (revision 32505)
+++ target/linux/ramips/base-files/etc/uci-defaults/leds (working copy)
@@ -14,6 +14,10 @@
board=$(ramips_board_name)
case $board in
+ 3g-6200n)
+ set_wifi_led "edimax:amber:wlan"
+ set_usb_led "edimax:blue:3g"
+ ;;
all0256n)
set_wifi_led "rt2800pci-phy0::radio"
;;
Index: target/linux/ramips/base-files/etc/uci-defaults/network
===
--- target/linux/ramips/base-files/etc/uci-defaults/network (revision 32505)
+++ target/linux/ramips/base-files/etc/uci-defaults/network (working copy)
@@ -20,7 +20,8 @@
wl-330n)
ucidef_set_interface_lan "eth0.1"
;;
-
+
+ 3g-6200n | \
argus-atp52b | \
b2c | \
nw718 | \
@@ -89,7 +90,7 @@
all0256n)
lan_mac=$(ramips_get_mac_binary factory 40)
;;
-
+ 3g-6200n | \
argus-atp52b | \
b2c | \
f5d8235-v1 | \
Index: target/linux/ramips/base-files/etc/diag.sh
===
--- target/linux/ramips/base-files/etc/diag.sh (revision 32505)
+++ target/linux/ramips/base-files/etc/diag.sh (working copy)
@@ -30,6 +30,9 @@
get_status_led() {
case $(ramips_board_name) in
+ 3g-6200n)
+ status_led="edimax:green:power"
+ ;;
argus-atp52b)
status_led="argus-atp52b:green:run"
;;
Index: target/linux/ramips/image/Makefile
===
--- target/linux/ramips/image/Makefile (revision 32505)
+++ target/linux/ramips/image/Makefile (working copy)
@@ -124,6 +124,11 @@
$(call BuildFirmware/Generic/initramfs,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_8M)))
endef
+mtdlayout_edimax_3g6200n=192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),2752k(rootfs),128k@0x3e(cimage)ro,3648k@0x5(firmware)
+define BuildFirmware/3G6200N
+ $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_edimax_3g6200n)),917504,2818048)
+endef
+
mtdlayout_argus_atp52b=192k(bootloader)ro,64k(config),64k(factory),1152k(kernel),6656k(rootfs),7808k@0x5(firmware)
mtd_argus_atp52b_kernel_part_size=1179648
mtd_argus_atp52b_rootfs_part_size=6815744
@@ -312,6 +317,10 @@
#
# RT305X Profiles
#
+define Image/Build/Profile/3G6200N
+ $(call Image/Build/Template/$(fs_squash)/$(1),3G6200N,3g-6200n,3G-6200N,ttyS1,57600,phys)
+endef
+
define Image/Build/Profile/ALL0256N
$(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,all0256n,ALL0256N,ttyS1,57600,spi)
endef
@@ -444,6 +453,7 @@
ifeq ($(CONFIG_RALINK_RT305X),y)
define Image/Build/Profile/Default
+ $(call Image/Build/Profile/3G6200N,$(1))
$(call Image/Build/Profile/ALL0256N,$(1))
$(call Image/Build/Profile/ARGUS_ATP52B,$(1))
$(call Image/Build/Profile/BC2,$(1))
Index: target/linux/ramips/files/arch/mips/include/asm/mach-ralink/mac