Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apard32690 IP settings fixes #2176

Merged
merged 5 commits into from
May 13, 2024
Merged

apard32690 IP settings fixes #2176

merged 5 commits into from
May 13, 2024

Conversation

CiprianRegus
Copy link
Contributor

@CiprianRegus CiprianRegus commented May 7, 2024

Pull Request Description

Currently, there are some issues which cause the IP settings for the echo server project version to ignore the IP settings done in the makefile.

Related to #2172

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)

PR Checklist

  • I have followed the Coding style guidelines
  • I have performed a self-review of the changes
  • I have commented my code, at least hard-to-understand parts
  • I have build all projects affected by the changes in this PR
  • I have tested in hardware affected projects, at the relevant boards
  • I have signed off all commits from this PR
  • I have updated the documentation (wiki pages, ReadMe etc), if applies

In case we want to use a static IP, the NO_OS_IP, NO_OS_NETMASK and
NO_OS_GATEWAY variables have to be set before including generic.mk.
Otherwise, the macros with the same name won't be defined in lwip.mk,
thus the static IP settings will be ignored (resulting in trying to get
an IP over DHCP).

Fixes: b51e518 ("Allow for IP setting at compile time")
Reported-by: Brandon Hurst <brandon.hurst@analog.com>
Signed-off-by: Ciprian Regus <ciprian.regus@analog.com>
Configure the echo server project to use a static IP by default instead
of using DHCP. This is done in order to allow easier evaluation, since
most people would connect the board directly to their system (no DHCP
server in between).

Signed-off-by: Ciprian Regus <ciprian.regus@analog.com>
Update the README document in order to include that the IP settings are
printed over the serial connection during the LWIP initialization.

Signed-off-by: Brandon Hurst <brandon.hurst@analog.com>
Signed-off-by: Ciprian Regus <ciprian.regus@analog.com>
Similarly to 18b5609 ("projects: swiot1l: Change default static IP "),
change the default static IP for the echo server project version, since
IPs in the 169.254.0.0/16 range shouldn't be assigned manually.

Update the network mask variable and the documentation accordingly.

Signed-off-by: Ciprian Regus <ciprian.regus@analog.com>
rbolboac
rbolboac previously approved these changes May 7, 2024
@CiprianRegus CiprianRegus marked this pull request as draft May 7, 2024 11:31
Since both the apard32690 and swiot1l projects are now using the
192.168.97.40/16 IP by default, the user is required to manually
configure an IP in the same network for their host's interface. Update
the documentation to include the wiki guide on how to do this.

Signed-off-by: Ciprian Regus <ciprian.regus@analog.com>
@CiprianRegus CiprianRegus marked this pull request as ready for review May 13, 2024 12:35
@buha buha merged commit 7b70f05 into main May 13, 2024
14 checks passed
@buha buha deleted the staging/apard32690_fixes branch May 13, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants