Skip to content

Separate network logic in pc-rtems to support generic targets #375

Open

Description

@skliper

Is your feature request related to a problem? Please describe.
The only non-generic implementation in pc-rtems is the network setup, which prevents use on a generic target.

Describe the solution you'd like
Isolate/separate network setup to support source selection or similar configuration option. Consider configuring from target defs or similar to avoid changes required within psp.

Describe alternatives you've considered
Could make an additional psp, but doesn't seem worth duplicating all the pc-rtems code that isn't specific to pc's.

Additional context
Specific parts:

#include <rtems/rtems_bsdnet.h>
#include <rtems/rtems_dhcp_failsafe.h>
#include <bsp.h>
extern int rtems_fxp_attach(struct rtems_bsdnet_ifconfig *config, int attaching);

static unsigned char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x61};
static char net_name_str[] = "fxp1";
static char ip_addr_str[] = "10.0.2.17";
static char ip_netmask_str[] = "255.255.255.0";
static struct rtems_bsdnet_ifconfig netdriver_config = {
.name = net_name_str,
.attach = rtems_fxp_attach,
.next = NULL,
.ip_address = ip_addr_str,
.ip_netmask = ip_netmask_str,
.hardware_address = ethernet_address
/* more options can follow */
};
struct rtems_bsdnet_config rtems_bsdnet_config = {
.ifconfig = &netdriver_config, .bootp = rtems_bsdnet_do_dhcp_failsafe, /* fill if DHCP is used*/
};

Might also benefit from making /mnt/eeprom a config param... depends on how/where this is actually set up by the PSP. Would be nice to shift away from "eeprom" and use generic "nonvol".

Requester Info
Jacob Hageman - NASA/GSFC

Activity

  1. self-assigned this
    on Jan 4, 2023
  2. added 2 commits that reference this issue on Jan 4, 2023
    bd7db46
    ef155d4
  3. added 2 commits that reference this issue on Mar 2, 2023
    54824f8
    20d6a15
  4. added 2 commits that reference this issue on Jul 17, 2023
    4c86c67
    5a38bcd
  5. added 2 commits that reference this issue on Sep 15, 2023
    2ac5957
    ca9ff99
  6. added 2 commits that reference this issue on Nov 14, 2023
    1b2b747
    f3bbe6b
  7. added 2 commits that reference this issue on Dec 12, 2023
    34b7e04
    5102e94
  8. added a commit that references this issue on Dec 19, 2023
    a988491
  9. 3 remaining items

  10. added a commit that references this issue on Jan 11, 2024
    4f2d699
  11. added a commit that references this issue on Feb 26, 2024
    fd39b8a
  12. added a commit that references this issue on Feb 29, 2024
    a698ef9
  13. added 3 commits that reference this issue on Aug 14, 2024
    9215d7a
    c2190f1
    22fe181
  14. added 3 commits that reference this issue on Mar 28, 2025
    74a72e9
    546264e
    f9251ff
  15. added 3 commits that reference this issue on Mar 28, 2025
    319be48
    0bfc4af
    5521aea
  16. added 3 commits that reference this issue on Apr 9, 2025
    1a04022
    35b7d56
    50dc9d5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions