summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-08-29 13:34:45 +0200
committerCorentin LABBE <clabbe@baylibre.com>2018-09-03 15:15:32 +0200
commit8288e3232085ce991a4ddb09eff1d607078d448c (patch)
treef2c349e710ab8846df93a4db07ccf88c13cae0c7
parente21ccee9df4afba55811e58e3d6943a076a56154 (diff)
lavalab-gen.py: change default start port for ser2net
ser2net port range started from 60000 which is between the Linux dynamic port range: 32768-60999 This patch changes it outside of this range to 63001.
-rwxr-xr-xlavalab-gen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index b327813..34c947d 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -12,6 +12,7 @@ import shutil
boards_yaml = "boards.yaml"
tokens_yaml = "tokens.yaml"
baud_default = 115200
+ser2net_port_start = 63001
template_conmux = string.Template("""#
# auto-generated by lavalab-gen.py for ${board}
@@ -326,7 +327,7 @@ def main():
if "boards" not in workers:
print("Missing boards")
sys.exit(1)
- ser2net_port = 60000
+ ser2net_port = ser2net_port_start
boards = workers["boards"]
for board in boards:
board_name = board["name"]