[PATCH 06/11] boards: enclustra-sa2: read MAC address from EEPROM
David Picard
david.picard at clermont.in2p3.fr
Tue Sep 23 08:31:22 PDT 2025
I figured it out! I tweaked the DT a little bit, and I get this:
barebox at Enclustra Mercury+ SA2:/ md -b -s /dev/atsha204a00.mac at 10
00000000: 20 b0 f7 0a 6c 08 ...l.
Same as what I used to get:
eth0: got preset MAC address: 20:b0:f7:0a:6c:08
David
Le 23/09/2025 à 13:50, David Picard a écrit :
> It works! https://paste.debian.net/1397791/
>
> However, I don't see how I can use the driver to read the MAC address.
> Could you give me some hints?
>
> David
>
> Le 23/09/2025 à 11:40, Sascha Hauer a écrit :
>> On Tue, Sep 23, 2025 at 11:07:39AM +0200, David Picard wrote:
>>> Hi,
>>>
>>> The driver crashes and causes immediate reset.
>>>
>>> I could track it as far as this line:
>>> https://git.pengutronix.de/cgit/barebox/tree/drivers/nvmem/core.c#n473
>>>
>>> Boot log and some more details: https://paste.debian.net/1397772/
>> Seems *i2c_priv is not zeroed. Could you replace the devm_kmalloc() in
>> atmel_i2c_probe() with devm_kzalloc()?
>>
>> Sascha
>>
>
>
More information about the barebox
mailing list