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

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

Open
skliper opened this issue Jan 4, 2023 · 0 comments · May be fixed by #376
Open

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

skliper opened this issue Jan 4, 2023 · 0 comments · May be fixed by #376
Assignees
Labels
enhancement New feature or request

Comments

@skliper
Copy link
Contributor

skliper commented Jan 4, 2023

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

@skliper skliper added the enhancement New feature or request label Jan 4, 2023
@skliper skliper self-assigned this Jan 4, 2023
skliper added a commit to skliper/PSP that referenced this issue Jan 4, 2023
skliper added a commit to skliper/PSP that referenced this issue Jan 5, 2023
skliper added a commit to skliper/PSP that referenced this issue Mar 2, 2023
skliper added a commit to skliper/PSP that referenced this issue Mar 2, 2023
skliper added a commit to skliper/PSP that referenced this issue Jul 17, 2023
skliper added a commit to skliper/PSP that referenced this issue Sep 15, 2023
skliper added a commit to skliper/PSP that referenced this issue Nov 14, 2023
skliper added a commit to skliper/PSP that referenced this issue Dec 12, 2023
skliper added a commit to skliper/PSP that referenced this issue Dec 19, 2023
skliper added a commit to skliper/PSP that referenced this issue Jan 11, 2024
skliper added a commit to skliper/PSP that referenced this issue Feb 26, 2024
pepepr08 added a commit to pepepr08/PSP that referenced this issue Feb 29, 2024
skliper added a commit to skliper/PSP that referenced this issue Aug 14, 2024
skliper added a commit to skliper/PSP that referenced this issue Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant