diff --git a/package/base-files/files/etc/config/network b/package/base-files/files/etc/config/network index 3c9c30a..ec1e3a0 100644 --- a/package/base-files/files/etc/config/network +++ b/package/base-files/files/etc/config/network @@ -10,7 +10,7 @@ config interface lan option ifname eth0 option type bridge option proto static - option ipaddr 192.168.1.1 + option ipaddr 192.168.61.1 option netmask 255.255.255.0 option ip6assign 60 diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh index 5d3adb1..559f3e8 100644 --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh @@ -98,14 +98,12 @@ config wifi-device radio$devidx option hwmode 11${mode_band} $dev_id $ht_capab - # REMOVE THIS LINE TO ENABLE WIFI: - option disabled 1 config wifi-iface option device radio$devidx option network lan option mode ap - option ssid OpenWrt + option ssid VoCore option encryption none EOF diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index b54b555..1557d9a 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -157,6 +157,12 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "0t 5" ;; + vocore) + ucidef_set_interface_lan "eth0.1" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 4 6t" + ;; + wcr-150gn) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "switch0" "1" "1" diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac index 2a0a4fd..082b907 100644 --- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac @@ -89,6 +89,7 @@ preinit_set_mac_address() { ;; m3 |\ m4 |\ + vocore |\ x5 |\ x8) mac=$(mtd_get_mac_binary factory 4) diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 2e831d2..6750774 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -232,6 +232,9 @@ ramips_board_detect() { *"V22RW-2X2") name="v22rw-2x2" ;; + *"VoCore") + name="vocore" + ;; *"W502U") name="w502u" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 8ada58b..1f663c5 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -78,6 +78,7 @@ platform_check_image() { w502u |\ wr6202 |\ v22rw-2x2 | \ + vocore | \ wl341v3 | \ wl-330n | \ wl-330n3g | \ diff --git a/target/linux/ramips/dts/VOCORE.dts b/target/linux/ramips/dts/VOCORE.dts new file mode 100644 index 0000000..3e531a8 --- /dev/null +++ b/target/linux/ramips/dts/VOCORE.dts @@ -0,0 +1,76 @@ +/dts-v1/; + +/include/ "rt5350.dtsi" + +/ { + compatible = "VoCore", "ralink,rt5350-soc"; + model = "VoCore"; + + palmbus@10000000 { + spi@b00 { + status = "okay"; + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "gd25q64"; + reg = <0 0>; + linux,modalias = "m25p80", "gd25q64"; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read_only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + + mmc-slot@1 { + compatible = "mmc-spi-slot"; + reg = <1>; + spi-max-frequency = <50000000>; + }; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + ehci@101c0000 { + status = "okay"; + }; + + ohci@101c1000 { + status = "okay"; + }; +}; diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index c7225a6..1033bc4 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -472,6 +472,8 @@ Image/Build/Profile/SL-R7205=$(call BuildFirmware/Default4M/$(1),$(1),sl-r7205,S Image/Build/Profile/V22RW-2X2=$(call BuildFirmware/Default4M/$(1),$(1),v22rw-2x2,V22RW-2X2) +Image/Build/Profile/VOCORE=$(call BuildFirmware/Default8M/$(1),$(1),vocore,VOCORE) + Image/Build/Profile/W150M=$(call BuildFirmware/CustomFlashFactory/$(1),$(1),w150m,W150M,$(ralink_default_fw_size_4M),W150M Kernel Image,factory) Image/Build/Profile/W306R_V20=$(call BuildFirmware/CustomFlashFactory/$(1),$(1),w306r-v20,W306R_V20,$(ralink_default_fw_size_4M),linkn Kernel Image,factory) @@ -611,6 +613,7 @@ define Image/Build/Profile/Default $(call Image/Build/Profile/SL-R7205,$(1)) $(call Image/Build/Profile/UR-326N4G,$(1)) $(call Image/Build/Profile/V22RW-2X2,$(1)) + $(call Image/Build/Profile/VOCORE, $(1)) $(call Image/Build/Profile/W150M,$(1)) $(call Image/Build/Profile/W306R_V20,$(1)) $(call Image/Build/Profile/W502U,$(1)) diff --git a/target/linux/ramips/rt305x/profiles/vocore.mk b/target/linux/ramips/rt305x/profiles/vocore.mk new file mode 100644 index 0000000..e5e1080 --- /dev/null +++ b/target/linux/ramips/rt305x/profiles/vocore.mk @@ -0,0 +1,16 @@ +# +# Copyright (C) 2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/VOCORE + NAME:=VOCORE + PACKAGES:=kmod-usb-core kmod-usb2 +endef +define Profile/VOCORE/Description + Package set for VoCore board +endef + +$(eval $(call Profile,VOCORE))