RTEMS | powerpc/beatnik: Convert MOTLoad GEV variables into env variables (!1276)

Gedare Bloom (@gedare) gitlab at rtems.org
Wed Jun 17 16:00:03 UTC 2026




Gedare Bloom commented on a discussion on bsps/powerpc/shared/start/motload-gev-net-env.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152637

 > +      }
 > +      *(nfs_export - 1) = ':';
 > +      setenv("RTEMS_NFS_MOUNT_PATH", nfs_server, 1);
 > +    } else {
 > +      printf("error: GEV epics-script: no server delimiter found\n");
 > +    }
 > +  }
 > +}
 > +
 > +void motload_gev_set_net_envs(uintptr_t nvram_base, const size_t unit,
 > +                              const char* label) {
 > +  /*
 > +   * The boot script is parsed for `tftpGet` settings -s -g and -m
 > +   * and the values are used if there are no explictic names set.
 > +   */
 > +  char var[256];

i think the `var` field is only set by the `snprintf` below, and then it is unmodified? It just have to be large enough for the string "RTEMS_NET_IFACE_%i" unless I misunderstood something.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152637
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260617/a7c76019/attachment-0001.htm>


More information about the bugs mailing list