Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package/kernel/mac80211/files/lib/wifi/mac80211.sh | 2 +-
- .../linux/ramips/base-files/etc/board.d/02_network | 1 +
- target/linux/ramips/base-files/etc/diag.sh | 1 +
- target/linux/ramips/base-files/lib/ramips.sh | 3 +
- .../ramips/base-files/lib/upgrade/platform.sh | 1 +
- target/linux/ramips/dts/IONIKCLOUDHUB.dts | 99 ++++++++++++++++++++++
- target/linux/ramips/image/rt305x.mk | 2 +
- target/linux/ramips/rt305x/config-4.4 | 2 +-
- .../linux/ramips/rt305x/profiles/ionikcloudhub.mk | 20 +++++
- 9 files changed, 129 insertions(+), 2 deletions(-)
- diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
- index 06f3b8b..a939e1e 100644
- --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
- +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
- @@ -117,7 +117,7 @@ config wifi-device radio$devidx
- $dev_id
- $ht_capab
- # REMOVE THIS LINE TO ENABLE WIFI:
- - option disabled 1
- + # option disabled 1
- config wifi-iface
- option device radio$devidx
- diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
- index 6157d87..fce13e4 100755
- --- a/target/linux/ramips/base-files/etc/board.d/02_network
- +++ b/target/linux/ramips/base-files/etc/board.d/02_network
- @@ -142,6 +142,7 @@ ramips_setup_interfaces()
- "0:lan" "1:wan" "6@eth0"
- ;;
- b2c|\
- + ionik-cloud-hub|\
- nw718|\
- psr-680w|\
- sl-r7205|\
- diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
- index 0c5abb2..f55415b 100644
- --- a/target/linux/ramips/base-files/etc/diag.sh
- +++ b/target/linux/ramips/base-files/etc/diag.sh
- @@ -138,6 +138,7 @@ get_status_led() {
- status_led="$board:blue:status"
- ;;
- miwifi-mini|\
- + ionik-cloud-hub|\
- zte-q7)
- status_led="$board:red:status"
- ;;
- diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
- index 10139d7..96f8f4d 100755
- --- a/target/linux/ramips/base-files/lib/ramips.sh
- +++ b/target/linux/ramips/base-files/lib/ramips.sh
- @@ -217,6 +217,9 @@ ramips_board_detect() {
- *"HW550-3G")
- name="hw550-3g"
- ;;
- + *"i.onik Wi-Fi Cloud Hub")
- + name="ionik-cloud-hub"
- + ;;
- *"IP2202")
- name="ip2202"
- ;;
- diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
- index e3bea00..778c0c2 100755
- --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
- +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
- @@ -68,6 +68,7 @@ platform_check_image() {
- ht-tm02|\
- hw550-3g|\
- ip2202|\
- + ionik-cloud-hub|\
- jhr-n805r|\
- jhr-n825r|\
- jhr-n926r|\
- diff --git a/target/linux/ramips/dts/IONIKCLOUDHUB.dts b/target/linux/ramips/dts/IONIKCLOUDHUB.dts
- new file mode 100644
- index 0000000..e58a252
- --- /dev/null
- +++ b/target/linux/ramips/dts/IONIKCLOUDHUB.dts
- @@ -0,0 +1,99 @@
- +/dts-v1/;
- +
- +#include "rt5350.dtsi"
- +
- +/ {
- + compatible = "IONIKCLOUDHUB", "ralink,rt5350-soc";
- + model = "i.onik Wi-Fi Cloud Hub";
- +
- + gpio-leds {
- + compatible = "gpio-leds";
- +
- + status {
- + label = "ionikcloudhub:red:status";
- + gpios = <&gpio0 9 1>;
- + };
- + };
- +
- + gpio-keys-polled {
- + compatible = "gpio-keys-polled";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + poll-interval = <20>;
- +
- + power {
- + label = "power";
- + gpios = <&gpio0 0 1>;
- + linux,code = <0x116>;
- + };
- +
- + reset {
- + label = "reset";
- + gpios = <&gpio0 10 1>;
- + linux,code = <0x198>;
- + };
- + };
- +};
- +
- +
- +&spi0 {
- + status = "okay";
- +
- + en25q64@0 {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + compatible = "jedec,spi-nor";
- + reg = <0>;
- + linux,modalias = "m25p80", "en25q64";
- + 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 = "recover";
- + reg = <0x50000 0x1c0000>;
- + };
- +
- + partition@210040 {
- + label = "firmware";
- + reg = <0x210000 0x5f0000>;
- + };
- + };
- +};
- +
- +&pinctrl {
- + state_default: pinctrl0 {
- + gpio {
- + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
- + ralink,function = "gpio";
- + };
- + };
- +};
- +
- +&ehci {
- + status = "okay";
- +};
- +
- +&ohci {
- + status = "okay";
- +};
- +
- +&wmac {
- + ralink,mtd-eeprom = <&factory 0>;
- +};
- diff --git a/target/linux/ramips/image/rt305x.mk b/target/linux/ramips/image/rt305x.mk
- index 9617574..94e1b76 100644
- --- a/target/linux/ramips/image/rt305x.mk
- +++ b/target/linux/ramips/image/rt305x.mk
- @@ -280,6 +280,7 @@ Image/Build/Profile/WCR150GN=$(call BuildFirmware/Default4M/$(1),$(1),wcr150gn,W
- Image/Build/Profile/MZK-DP150N=$(call BuildFirmware/Default4M/$(1),$(1),mzk-dp150n,MZK-DP150N)
- Image/Build/Profile/WHRG300N=$(call BuildFirmware/WHRG300N/$(1),$(1))
- Image/Build/Profile/WIZARD8800=$(call BuildFirmware/Default8M/$(1),$(1),wizard-8800,WIZARD8800,Linux Kernel Image)
- +Image/Build/Profile/IONIKCLOUDHUB=$(call BuildFirmware/Default8M/$(1),$(1),ionik-cloud-hub,IONIKCLOUDHUB,Linux Kernel Image)
- Image/Build/Profile/WIZFI630A=$(call BuildFirmware/Default16M/$(1),$(1),wizfi630a,WIZFI630A)
- Image/Build/Profile/WL-330N=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n,WL-330N)
- Image/Build/Profile/WL-330N3G=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n3g,WL-330N3G)
- @@ -336,6 +337,7 @@ define Image/Build/Profile/Default
- $(call Image/Build/Profile/FREESTATION5,$(1))
- # $(call Image/Build/Profile/HG255D,$(1))
- $(call Image/Build/Profile/HLKRM04,$(1))
- + $(call Image/Build/Profile/IONIKCLOUDHUB,$(1))
- $(call Image/Build/Profile/HT-TM02,$(1))
- $(call Image/Build/Profile/HW550-3G,$(1))
- $(call Image/Build/Profile/IP2202,$(1))
- diff --git a/target/linux/ramips/rt305x/config-4.4 b/target/linux/ramips/rt305x/config-4.4
- index 9911d92..71697b4 100644
- --- a/target/linux/ramips/rt305x/config-4.4
- +++ b/target/linux/ramips/rt305x/config-4.4
- @@ -23,7 +23,7 @@ CONFIG_CLKSRC_MMIO=y
- CONFIG_CLKSRC_OF=y
- CONFIG_CLKSRC_PROBE=y
- CONFIG_CLONE_BACKWARDS=y
- -CONFIG_CMDLINE="rootfstype=squashfs,jffs2"
- +CONFIG_CMDLINE="rootfstype=squashfs,jffs2 mem=64M"
- CONFIG_CMDLINE_BOOL=y
- # CONFIG_CMDLINE_OVERRIDE is not set
- CONFIG_CPU_GENERIC_DUMP_TLB=y
- diff --git a/target/linux/ramips/rt305x/profiles/ionikcloudhub.mk b/target/linux/ramips/rt305x/profiles/ionikcloudhub.mk
- new file mode 100644
- index 0000000..ee6c92d
- --- /dev/null
- +++ b/target/linux/ramips/rt305x/profiles/ionikcloudhub.mk
- @@ -0,0 +1,20 @@
- +#
- +# Copyright (C) 2013 OpenWrt.org
- +#
- +# This is free software, licensed under the GNU General Public License v2.
- +# See /LICENSE for more information.
- +#
- +
- +define Profile/IONIKCLOUDHUB
- + NAME:=IONIK CLOUD HUB
- + PACKAGES:=\
- + kmod-ledtrig-netdev kmod-ledtrig-timer kmod-leds-gpio \
- + kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-net usbutils \
- + kmod-scsi-core kmod-scsi-generic kmod-fs-ext4 kmod-fs-msdos \
- + kmod-usb-storage kmod-usb-storage-extras block-mount
- +endef
- +
- +define Profile/IONIKCLOUDHUB/Description
- + Package set for i.onik Wi-Fi Cloud Hub
- +endef
- +$(eval $(call Profile,IONIKCLOUDHUB))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement