summaryrefslogtreecommitdiff
path: root/cleopatre/buildroot/target/device/Spidcom
diff options
context:
space:
mode:
authorTerry Lu2013-06-20 19:25:30 +0800
committerJulien Lacour2013-10-01 12:12:51 +0200
commit02b214c04adaa0543e653d5c7fa39ddb42a29df0 (patch)
tree69774b94d68ab4d9318d5476ee93ce1e5ec26cac /cleopatre/buildroot/target/device/Spidcom
parent530ba809e1abf304d701a5a481b857f62a23363a (diff)
cleo/{app,buildroot}: port httpd and add wifi config page, closes #4210
Diffstat (limited to 'cleopatre/buildroot/target/device/Spidcom')
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/common/defconfig.base1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/defconfig.part1
-rwxr-xr-xcleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/init.d/S90httpd41
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/save.lst4
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/system.conf40
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/web_reset.info2
6 files changed, 89 insertions, 0 deletions
diff --git a/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base b/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base
index f0a0510d79..95dd8b8402 100644
--- a/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base
+++ b/cleopatre/buildroot/target/device/Spidcom/common/defconfig.base
@@ -365,6 +365,7 @@ BR2_PACKAGE_PLCDRV=y
# BR2_PACKAGE_RT5572DRV is not set
# BR2_PACKAGE_DEBUG_UTILS is not set
# BR2_PACKAGE_MT7601UDRV is not set
+# BR2_PACKAGE_SPIDGOAHEAD is not set
#
# portmap requires a toolchain with 'Enable RPC' selected
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/defconfig.part b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/defconfig.part
index 8651067852..29c6cdccf9 100644
--- a/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/defconfig.part
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/defconfig.part
@@ -3,3 +3,4 @@ BR2_HOSTNAME="mpr520e"
BR2_TARGET_SPIDCOM_MPR520E=y
BR2_PACKAGE_PMD=y
BR2_PACKAGE_MT7601UDRV=y
+BR2_PACKAGE_SPIDGOAHEAD=y \ No newline at end of file
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/init.d/S90httpd b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/init.d/S90httpd
new file mode 100755
index 0000000000..8cd512a514
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/init.d/S90httpd
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# Start the httpd daemon....
+#
+
+start() {
+ echo "Starting HTTP Daemon..."
+ if [ -f /usr/bin/httpd ]
+ then
+ /usr/bin/httpd &
+ fi
+}
+stop() {
+ echo "Stopping HTTP Daemon..."
+ if [ -f /usr/bin/httpd ]
+ then
+ killall httpd
+ fi
+}
+restart() {
+ stop
+ start
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart|reload)
+ restart
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit $?
+
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/save.lst b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/save.lst
new file mode 100644
index 0000000000..048412f71d
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/save.lst
@@ -0,0 +1,4 @@
+Wireless/RT2870AP/RT2870AP.dat
+network/interfaces
+hostname
+save.lst
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/system.conf b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/system.conf
new file mode 100644
index 0000000000..9ce02d74b2
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/system.conf
@@ -0,0 +1,40 @@
+ADMIN_LOGICAL_ID = SPiDCOM Technologies
+ADMIN_TECHPROJECT = Mstarsemi
+ADMIN_EMS_IP_ADDRESS = 0.0.0.0
+UPGRADE_SERVER_IP = 127.0.0.1
+UPGRADE_SERVER_PORT = 21
+UPGRADE_SERVER_LOGIN = spidcom
+UPGRADE_SERVER_PASSWORD = spidcom
+UPGRADE_MASTER_FILENAME = master_filename
+UPGRADE_SLAVE_FILENAME = slave_filename
+UPGRADE_BOARD_TYPE_CHECK = yes
+CONFIG_SERVER_IP = 127.0.0.1
+CONFIG_SERVER_PORT = 21
+CONFIG_SERVER_LOGIN = spidcom
+CONFIG_SERVER_PASSWORD = spidcom
+CONFIG_SERVER_FILENAME = filename
+AUTOUPDATE = yes
+REMOTE_UPDATE = yes
+AUTOCONF = yes
+FTP_SERVICE = yes
+SNMP_SERVICE = yes
+SERIAL_SERVICE = yes
+TELNET_SERVICE = yes
+TELNET_TIMEOUT_SEC = 60
+TELNET_SESSIONS_MAX_NB = 4
+8021X_SUPPLICANT_SERVICE = no
+8021X_AUTH_SERVICE = no
+HTTP_SERVICE = yes
+AUTODISCOVERY_ENABLE = yes
+AUTODISCOVERY_TIME_SEC = 60
+AUTODISCOVERY_TIME_SEC2 = 1200
+AUTODISCOVERY_INTERFACE = eth0
+PLC_FORWARDING_ENABLE = yes
+STP_ENABLE = no
+SSH_ENABLE = no
+WL_CONTROL = 1
+NSCRTV_EPONEOC_MOD_EOC = no
+VLAN_VERSION = 1
+VLAN_MAX_ID = 4095
+VLAN_MAX_SUPPORTED_VLANS = 4095
+BCMP_ENABLE = no
diff --git a/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/web_reset.info b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/web_reset.info
new file mode 100644
index 0000000000..c02e7ce932
--- /dev/null
+++ b/cleopatre/buildroot/target/device/Spidcom/targets/mpr520e/target_skeleton_add/etc/web_reset.info
@@ -0,0 +1,2 @@
+RESET_BY_WEB = no
+WIFI_CFG_CHANGE = no