Chris Johns commented on a discussion on bsps/powerpc/beatnik/start/bspstart.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152552

 >    printk("Number of PCI buses found is : %d\n", pci_bus_count());
 >  #endif
 >  
 > +  motload_gev_set_nvbase(BSP_NVRAM_BASE_ADDR);
 > +  if (board_type == MVME5500) {
 > +    motload_gev_set_net_unit(1);
 > +    motload_gev_set_net_label(1, "em0");
 > +  } else {
 > +    motload_gev_set_net_unit(1);
 > +    motload_gev_set_net_unit(2);
 > +    motload_gev_set_net_label(1, "em0");

The ordering reflects the required steps to use the API. You need to first set 
the boot loader interfaces you have so it is tagged as valid and then you say 
that _unit_ is this interface _string_. The _unit_ is the boot loader's index 
and the _string_ is the networking stack's mapping.

You are implying the _unit_ number and the networking _string_ have to be the 
same. They do not.

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


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to