So does the U-Boot environment determine the MAC address of eth0 prior to
booting the kernel?  Or is it during the make of the boot image?  I just
find it a stretch to believe that I am running an image on a number of
SDRs, and they're all using the same MAC address, possibly from the e310
for which the boot image was generated?



On Wed, Nov 25, 2020 at 8:59 AM Philip Balister <[email protected]> wrote:

> Mine is different, but both seem to be from the National Instruments
> block (which is good):
>
> root@ni-e31x-30D280A:~# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:80:2F:25:02:37
>           inet addr:192.168.11.152  Bcast:192.168.11.255
>
> I see a warning early in boot about using a MAC address from ROM. I'm
> not sure where that came from.
>
> Philip
>
> On 11/25/20 8:36 AM, Andrew Payne via USRP-users wrote:
> > ---------- Forwarded message ---------
> > From: Andrew Payne <[email protected]>
> > Date: Wed, Nov 25, 2020 at 8:35 AM
> > Subject: Re: [USRP-users] E310: Change MAC Address?
> > To: Philip Balister <[email protected]>
> >
> >
> > It is: 00:80:2f:19:4c:37
> >
> > When is that .patch file ran, is it during compilation of the BSP?  When
> > would I see that error message printf("I2C EEPROM MAC address read
> > failed\n");?
> >
> > How could I experiment with compiling a new BSP with the UHD 3.15
> > environment loaded, so then I may insert my own MAC Address or get the
> i2c
> > EEPROM read to work? Do I need
> > https://github.com/EttusResearch/meta-ettus
> > and
> > https://github.com/Xilinx/u-boot-xlnx
> > and may be use this guide:
> > https://opencpi.github.io/bsp_e310/Ettus_E3xx_Getting_Started_Guide.pdf
> > ?
> >
> > Thanks,
> > Andrew
> >
> >
> > On Wed, Nov 25, 2020 at 8:26 AM Philip Balister <[email protected]>
> wrote:
> >
> >> What is that mac address? I'd like to see if it matches mine.
> >>
> >> If I recall correctly, the mac address is flashed into the i2c eeprom,
> >> u-boot is supposed to read that and use it. Factory test should set it
> >> up uniquely. But my memories fade. Inspecting the u-boot source might
> >> show us ....
> >>
> >>
> >>
> https://github.com/EttusResearch/meta-ettus/blob/zeus/meta-e31x/recipes-bsp/u-boot/files/0001-ni-zynq-Add-support-for-NI-E31x-SG1-SG3-boards.patch#L397
> >>
> >> I didn't sift through the ifdef's though.
> >>
> >> Philip
> >>
> >> On 11/24/20 7:28 PM, Andrew Payne via USRP-users wrote:
> >>> Is there a way to change the mac address of my e310s?  I have imaged
> >>> several e310s using the image file in
> >>> https://files.ettus.com/binaries/cache/e3xx/meta-ettus-v3.15.0.0/, and
> >> they
> >>> all have the same MAC address.
> >>>
> >>> On some searching around the web I can see that it is likely that the
> MAC
> >>> address parameter is specified as a U-boot parameter.  I'd like to know
> >>> what my options are for changing it.
> >>>
> >>> Thanks,
> >>> Andrew
> >>>
> >>>
> >>> _______________________________________________
> >>> USRP-users mailing list
> >>> [email protected]
> >>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> >>>
> >>
> >
> >
> > _______________________________________________
> > USRP-users mailing list
> > [email protected]
> > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> >
>
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to