Skip to content

usb-gadget-service/scripts: handle SDP/ARDZ EEPROMs#94

Open
dlech wants to merge 1 commit intoanalogdevicesinc:mainfrom
dlech:add-ardz-eeprom-support
Open

usb-gadget-service/scripts: handle SDP/ARDZ EEPROMs#94
dlech wants to merge 1 commit intoanalogdevicesinc:mainfrom
dlech:add-ardz-eeprom-support

Conversation

@dlech
Copy link
Copy Markdown

@dlech dlech commented Jun 5, 2025

Handle reading the EEPROM on SDP/ARDZ boards. These use a different data format from the FMC boards and need a different parser. There doesn't seem to be a general purpose tool for this, so add a new Python script here for that and use that in the iiod_context.sh script to read the EEPROM and update the /etc/libiio.ini file.

This way, libiio will be able to pick up the hw_mezzanine and hw_serial

Handle reading the EEPROM on SDP/ARDZ boards. These use a different
data format from the FMC boards and need a different parser. There
doesn't seem to be a general purpose tool for this, so add a new
Python script here for that and use that in the iiod_context.sh script
to read the EEPROM and update the /etc/libiio.ini file.

This way, libiio will be able to pick up the hw_mezzanine and hw_serial

Signed-off-by: David Lechner <dlechner@baylibre.com>
@dlech
Copy link
Copy Markdown
Author

dlech commented Jun 5, 2025

I tested by manually editing my local iiod_context.sh and got:

IIO context has 7 attributes:
	hw_carrier: Terasic DE10-Nano
	hw_model: EVAL-AD4112SDZ on Terasic DE10-Nano
	hw_mezzanine: EVAL-AD4112SDZ
	hw_vendor: Analog Devices
	hw_serial: 60657100000000B8
	local,kernel: 6.15.0-next-20250605-socfpga-00004-g1e7b0df14bac-dirty
	uri: local:

So looks to be working as intended.

@dlech
Copy link
Copy Markdown
Author

dlech commented Oct 23, 2025

@SRaus could you please take a look?

@SRaus
Copy link
Copy Markdown
Contributor

SRaus commented Nov 28, 2025

@nunojsa / @dNechita - can you please take a look ?

@dNechita
Copy link
Copy Markdown

Looks good to me!

Copy link
Copy Markdown
Contributor

@nunojsa nunojsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants