From: David Picard <david.picard@clermont.in2p3.fr>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: BAREBOX <barebox@lists.infradead.org>
Subject: Re: [PATCH 06/11] boards: enclustra-sa2: read MAC address from EEPROM
Date: Tue, 23 Sep 2025 17:31:22 +0200 [thread overview]
Message-ID: <0afb7e25-5660-45d0-bfc5-90ce2582e6c4@clermont.in2p3.fr> (raw)
In-Reply-To: <6099cd02-f779-4cbd-af0c-daab487bb8ef@clermont.in2p3.fr>
I figured it out! I tweaked the DT a little bit, and I get this:
barebox@Enclustra Mercury+ SA2:/ md -b -s /dev/atsha204a00.mac@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
>>
>
>
next prev parent reply other threads:[~2025-09-23 15:32 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-17 15:22 [PATCH 00/11] ARM: boards: add support for Enclustra Mercury SA2 David Picard
2025-09-17 15:22 ` [PATCH 01/11] Add handoff files David Picard
2025-09-17 15:22 ` [PATCH 02/11] Add Enclustra Mercury+ SA2 module David Picard
2025-09-18 6:21 ` Sascha Hauer
2025-09-17 15:22 ` [PATCH 03/11] Add Enclustra devicetree files David Picard
2025-09-17 15:22 ` [PATCH 04/11] ARM: dts: socfpga: use upstream SA2 device tree David Picard
2025-09-18 6:32 ` Sascha Hauer
2025-09-18 10:09 ` David Picard
2025-09-18 10:20 ` Ahmad Fatoum
2025-09-17 15:22 ` [PATCH 05/11] ARM: dts: socfpga: adapt " David Picard
2025-09-17 15:22 ` [PATCH 06/11] boards: enclustra-sa2: read MAC address from EEPROM David Picard
2025-09-17 17:06 ` Alexander Shiyan
2025-09-18 6:18 ` Sascha Hauer
2025-09-18 14:01 ` David Picard
2025-09-18 14:12 ` Sascha Hauer
2025-09-18 15:07 ` David Picard
2025-09-22 13:15 ` Sascha Hauer
2025-09-23 9:07 ` David Picard
2025-09-23 9:40 ` Sascha Hauer
2025-09-23 11:50 ` David Picard
2025-09-23 15:31 ` David Picard [this message]
2025-09-17 15:22 ` [PATCH 07/11] gpio: dw: support numbering via aliases David Picard
2025-09-18 6:35 ` Sascha Hauer
2025-09-17 15:22 ` [PATCH 08/11] gpio: dw: make deep probe compatible David Picard
2025-09-17 15:22 ` [PATCH 09/11] boards: enclustra-sa2: enable bridges David Picard
2025-09-18 6:37 ` Sascha Hauer
2025-09-17 15:22 ` [PATCH 10/11] boards: enclustra-sa2: configure SI5338 David Picard
2025-09-18 7:09 ` Sascha Hauer
2025-09-18 13:23 ` David Picard
2025-09-17 15:22 ` [PATCH 11/11] boards: enclustra-sa2: enable SI5338 David Picard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0afb7e25-5660-45d0-bfc5-90ce2582e6c4@clermont.in2p3.fr \
--to=david.picard@clermont.in2p3.fr \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox