From 900438916108c23096298be8c45191bf2f8433de Mon Sep 17 00:00:00 2001 From: Vikas Katariya Date: Mon, 7 Oct 2024 16:22:20 +0100 Subject: [PATCH] bsp: Use `send-no-hostname` for Corstone-1000 We assume the board will always come up with the same IP address in our setup if the lease on the DHCP server has not expired, but this is not the case with Corstone-1000 MPS3. It is been observed, we have two IP address leases, one lease with just a MAC address identifier when it boots into recovery/firmware and other with a MAC address and a host name when the Cassini distro boots up. The DHCP servers are configured this way and are outside of our control. Therefore, when the Cassini distro boots, we configure systemd network to request an IP address without a host name, which should give out the old leased IP address from the DHCP server. Signed-off-by: Vikas Katariya --- .dictionary | 3 +++ .../include/corstone1000-mps3-cassini-extra-settings.inc | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.dictionary b/.dictionary index 6cdf094..b8b4b3b 100644 --- a/.dictionary +++ b/.dictionary @@ -26,6 +26,7 @@ corstone corstone1000 cpio crypto +DHCP dialout distro DISTROOVERRIDES @@ -47,6 +48,7 @@ gitlab gitlab-ciyml gzio homepageping +hostname IMAGE_FSTYPES initscripts kernelcfg @@ -102,6 +104,7 @@ sourceparams sp srcurifile suggestedvar +systemd tarbz2 TF-A THISDIR diff --git a/conf/machine/include/corstone1000-mps3-cassini-extra-settings.inc b/conf/machine/include/corstone1000-mps3-cassini-extra-settings.inc index a94957d..4f7d52e 100644 --- a/conf/machine/include/corstone1000-mps3-cassini-extra-settings.inc +++ b/conf/machine/include/corstone1000-mps3-cassini-extra-settings.inc @@ -5,3 +5,7 @@ # Due to performance limitations, add wait-online helper IMAGE_INSTALL:append:cassini = " wait-online" + +# Since the host has two stage booting, we need to ensure we +# only get a single ip address for the same MAC incase of reboot +IMAGE_INSTALL:append:cassini = " send-no-hostname" -- GitLab