Skip to contentSkip to conversation

parse-ip: Add support for keystone platforms

PATCH Superseded Sam Nelson 1 participant 1 message Jan 16, 2015

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH v2 1/1 parse-ip: Add support for keystone platforms

- Added separate script for keystone platforms
- Script parses ip and sends to uart, picked up by BMC and display on LCD screen

---
Changes from previous patch
- Updated keystone handling with file moved from init.keystone --> keystone/init
- Updated recipe to remove unwanted statments
---

---
 .../recipes-tisdk/parse-ip/parse-ip.bb             |    7 ++++---
 .../parse-ip/parse-ip/{ => keystone}/init          |   16 ++++++++--------
 2 files changed, 12 insertions(+), 11 deletions(-)
 copy meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/{ => keystone}/init (87%)
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +4 -3
index f20db31..b6461ed 100644
@@ -2,12 +2,13 @@ DESCRIPTION = "Script to parse ip address during boot and make it available to t
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://init;beginline=3;endline=31;md5=fc4b04a33df6d892c9f4d4a9d92b945e"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x"
+COMPATIBLE_MACHINE = "ti33x|ti43x|keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SRC_URI = "file://init"
+SRC_URI = "file://init \
+           file://keystone/init"
 
-PR = "r2"
+PR = "r3"
 
 S = "${WORKDIR}"
 
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/keystone/init renamed from meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init +8 -8
similarity index 87%
copy from meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init
copy to meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/keystone/init
index 4050efb..7f260fb 100644
@@ -32,15 +32,15 @@
 
 case "$1" in
     start )
-        if [ -e /run/media/mmcblk0p1 ]
-        then
-            echo `ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $1}'` > /run/media/mmcblk0p1/.ipaddr
-            sync
-	    sync
-	fi
+        echo '#>>>>> LCD 12' > ipaddr
+        echo 'IP Address:' >> ipaddr
+        cat ipaddr
+
+        echo `ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $1}'` > ipaddr
+        cat ipaddr
+
+        sleep 1
     ;;
     stop )
         exit 0;;
 esac
-
-exit 0
Signature · 1 line
1.7.9.5