[PATCH] osmo-bts[master]: lc15: use directory instead of symlink

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Fri Jun 16 14:08:13 UTC 2017


Review at  https://gerrit.osmocom.org/2935

lc15: use directory instead of symlink

Use the directory populated by lc15-sysdev-remap directly instead of
symlink to it to simplify OE builds and troubleshooting.

Change-Id: I6208a1f7d62cac7ef64459e62f8e6083b0025580
Related: SYS#3686
---
M src/osmo-bts-litecell15/hw_misc.c
M src/osmo-bts-litecell15/misc/lc15bts_bid.c
M src/osmo-bts-litecell15/misc/lc15bts_clock.c
M src/osmo-bts-litecell15/misc/lc15bts_mgr_nl.c
M src/osmo-bts-litecell15/misc/lc15bts_power.c
M src/osmo-bts-litecell15/misc/lc15bts_temp.c
6 files changed, 29 insertions(+), 29 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/35/2935/1

diff --git a/src/osmo-bts-litecell15/hw_misc.c b/src/osmo-bts-litecell15/hw_misc.c
index 49232b2..a2ec31b 100644
--- a/src/osmo-bts-litecell15/hw_misc.c
+++ b/src/osmo-bts-litecell15/hw_misc.c
@@ -63,7 +63,7 @@
 		return -EINVAL;
 	}
 
-	fd = open("/var/lc15/leds/led0/brightness", O_WRONLY);
+	fd = open("/var/volatile/lc15/leds/led0/brightness", O_WRONLY);
 	if (fd < 0)
 		return -ENODEV;
 
@@ -73,7 +73,7 @@
 	}
 	close(fd);
 
-	fd = open("/var/lc15/leds/led1/brightness", O_WRONLY);
+	fd = open("/var/volatile/lc15/leds/led1/brightness", O_WRONLY);
 	if (fd < 0)
 		return -ENODEV;
 
diff --git a/src/osmo-bts-litecell15/misc/lc15bts_bid.c b/src/osmo-bts-litecell15/misc/lc15bts_bid.c
index 06a126a..bd88f7e 100644
--- a/src/osmo-bts-litecell15/misc/lc15bts_bid.c
+++ b/src/osmo-bts-litecell15/misc/lc15bts_bid.c
@@ -27,8 +27,8 @@
 
 #include "lc15bts_bid.h"
 
-#define BOARD_REV_SYSFS		"/var/lc15/platform/revision"
-#define BOARD_OPT_SYSFS		"/var/lc15/platform/option"
+#define BOARD_REV_SYSFS		"/var/volatile/lc15/platform/revision"
+#define BOARD_OPT_SYSFS		"/var/volatile/lc15/platform/option"
  
 static const int option_type_mask[_NUM_OPTION_TYPES] = {
         [LC15BTS_OPTION_OCXO]		= 0x07,
diff --git a/src/osmo-bts-litecell15/misc/lc15bts_clock.c b/src/osmo-bts-litecell15/misc/lc15bts_clock.c
index f4df5d3..0d62a35 100644
--- a/src/osmo-bts-litecell15/misc/lc15bts_clock.c
+++ b/src/osmo-bts-litecell15/misc/lc15bts_clock.c
@@ -27,15 +27,15 @@
 
 #include "lc15bts_clock.h"
 
-#define CLKERR_ERR_SYSFS	"/var/lc15/clkerr/clkerr1_average"
-#define CLKERR_ACC_SYSFS	"/var/lc15/clkerr/clkerr1_average_accuracy"
-#define CLKERR_INT_SYSFS	"/var/lc15/clkerr/clkerr1_average_interval"
-#define CLKERR_FLT_SYSFS	"/var/lc15/clkerr/clkerr1_fault"
-#define CLKERR_RFS_SYSFS	"/var/lc15/clkerr/refresh"
-#define CLKERR_RST_SYSFS	"/var/lc15/clkerr/reset"
+#define CLKERR_ERR_SYSFS	"/var/volatile/lc15/clkerr/clkerr1_average"
+#define CLKERR_ACC_SYSFS	"/var/volatile/lc15/clkerr/clkerr1_average_accuracy"
+#define CLKERR_INT_SYSFS	"/var/volatile/lc15/clkerr/clkerr1_average_interval"
+#define CLKERR_FLT_SYSFS	"/var/volatile/lc15/clkerr/clkerr1_fault"
+#define CLKERR_RFS_SYSFS	"/var/volatile/lc15/clkerr/refresh"
+#define CLKERR_RST_SYSFS	"/var/volatile/lc15/clkerr/reset"
 
-#define OCXODAC_VAL_SYSFS	"/var/lc15/ocxo/voltage"
-#define OCXODAC_ROM_SYSFS	"/var/lc15/ocxo/eeprom"
+#define OCXODAC_VAL_SYSFS	"/var/volatile/lc15/ocxo/voltage"
+#define OCXODAC_ROM_SYSFS	"/var/volatile/lc15/ocxo/eeprom"
 
 /* clock error */
 static int clkerr_fd_err = -1;
diff --git a/src/osmo-bts-litecell15/misc/lc15bts_mgr_nl.c b/src/osmo-bts-litecell15/misc/lc15bts_mgr_nl.c
index 903c5fe..8fcd7e6 100644
--- a/src/osmo-bts-litecell15/misc/lc15bts_mgr_nl.c
+++ b/src/osmo-bts-litecell15/misc/lc15bts_mgr_nl.c
@@ -47,7 +47,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-#define ETH0_ADDR_SYSFS		"/var/lc15/net/eth0/address"
+#define ETH0_ADDR_SYSFS		"/var/volatile/lc15/net/eth0/address"
 
 static struct osmo_fd nl_fd;
 
diff --git a/src/osmo-bts-litecell15/misc/lc15bts_power.c b/src/osmo-bts-litecell15/misc/lc15bts_power.c
index 5b01d36..6d01608 100644
--- a/src/osmo-bts-litecell15/misc/lc15bts_power.c
+++ b/src/osmo-bts-litecell15/misc/lc15bts_power.c
@@ -30,18 +30,18 @@
 
 #define LC15BTS_PA_VOLTAGE      24000000
 
-#define PA_SUPPLY_MIN_SYSFS     "/var/lc15/pa-supply/min_microvolts"
-#define PA_SUPPLY_MAX_SYSFS     "/var/lc15/pa-supply/max_microvolts"
+#define PA_SUPPLY_MIN_SYSFS     "/var/volatile/lc15/pa-supply/min_microvolts"
+#define PA_SUPPLY_MAX_SYSFS     "/var/volatile/lc15/pa-supply/max_microvolts"
 
 static const char *power_enable_devs[_NUM_POWER_SOURCES] = {
-	[LC15BTS_POWER_PA0]     = "/var/lc15/pa-state/pa0/state",
-	[LC15BTS_POWER_PA1]     = "/var/lc15/pa-state/pa1/state",
+	[LC15BTS_POWER_PA0]     = "/var/volatile/lc15/pa-state/pa0/state",
+	[LC15BTS_POWER_PA1]     = "/var/volatile/lc15/pa-state/pa1/state",
 };
 
 static const char *power_sensor_devs[_NUM_POWER_SOURCES] = {
-	[LC15BTS_POWER_SUPPLY]	= "/var/lc15/pwr-sense/pa-supply/",
-	[LC15BTS_POWER_PA0]	= "/var/lc15/pwr-sense/pa0/",
-	[LC15BTS_POWER_PA1]	= "/var/lc15/pwr-sense/pa1/",
+	[LC15BTS_POWER_SUPPLY]	= "/var/volatile/lc15/pwr-sense/pa-supply/",
+	[LC15BTS_POWER_PA0]	= "/var/volatile/lc15/pwr-sense/pa0/",
+	[LC15BTS_POWER_PA1]	= "/var/volatile/lc15/pwr-sense/pa1/",
 };
 
 static const char *power_sensor_type_str[_NUM_POWER_TYPES] = {
diff --git a/src/osmo-bts-litecell15/misc/lc15bts_temp.c b/src/osmo-bts-litecell15/misc/lc15bts_temp.c
index aa35854..d62c037 100644
--- a/src/osmo-bts-litecell15/misc/lc15bts_temp.c
+++ b/src/osmo-bts-litecell15/misc/lc15bts_temp.c
@@ -31,15 +31,15 @@
 
 
 static const char *temp_devs[_NUM_TEMP_SENSORS] = {
-	[LC15BTS_TEMP_SUPPLY]	= "/var/lc15/temp/pa-supply/temp",
-	[LC15BTS_TEMP_SOC]	= "/var/lc15/temp/cpu/temp",
-	[LC15BTS_TEMP_FPGA]	= "/var/lc15/temp/fpga/temp",
-	[LC15BTS_TEMP_LOGRF]	= "/var/lc15/temp/logrf/temp",
-	[LC15BTS_TEMP_OCXO]	= "/var/lc15/temp/ocxo/temp",
-	[LC15BTS_TEMP_TX0]	= "/var/lc15/temp/tx0/temp",
-	[LC15BTS_TEMP_TX1]	= "/var/lc15/temp/tx1/temp",
-	[LC15BTS_TEMP_PA0]	= "/var/lc15/temp/pa0/temp",
-	[LC15BTS_TEMP_PA1]	= "/var/lc15/temp/pa1/temp",
+	[LC15BTS_TEMP_SUPPLY]	= "/var/volatile/lc15/temp/pa-supply/temp",
+	[LC15BTS_TEMP_SOC]	= "/var/volatile/lc15/temp/cpu/temp",
+	[LC15BTS_TEMP_FPGA]	= "/var/volatile/lc15/temp/fpga/temp",
+	[LC15BTS_TEMP_LOGRF]	= "/var/volatile/lc15/temp/logrf/temp",
+	[LC15BTS_TEMP_OCXO]	= "/var/volatile/lc15/temp/ocxo/temp",
+	[LC15BTS_TEMP_TX0]	= "/var/volatile/lc15/temp/tx0/temp",
+	[LC15BTS_TEMP_TX1]	= "/var/volatile/lc15/temp/tx1/temp",
+	[LC15BTS_TEMP_PA0]	= "/var/volatile/lc15/temp/pa0/temp",
+	[LC15BTS_TEMP_PA1]	= "/var/volatile/lc15/temp/pa1/temp",
 };
 
 int lc15bts_temp_get(enum lc15bts_temp_sensor sensor)

-- 
To view, visit https://gerrit.osmocom.org/2935
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6208a1f7d62cac7ef64459e62f8e6083b0025580
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list