Eeprom Bmw

0 views
Skip to first unread message

Melissa Russian

unread,
Aug 5, 2024, 2:50:30 AM8/5/24
to torsneacamli
YesI can read/write the eeprom file with data, and when I do either the bind or manual setup through new_device, dmesg will show a message from the at24 driver showing that the device is bound correctly.

So I believe it was added somehow. Can you please test this overlay? Remember to activate only this overlay, so we can remove other conflicts that might be happening. You can check the overlays.txt file.


A "brief" forewarning: running EEPROM updates can include risks all the way to bricking your Raspberry Pi 4B, therefor I must emphasize that trying out anything mentioned in this reply is DOING SO AT YOUR OWN RISK. ALWAYS MAKE A BACKUP COPY OF YOUR EXISTING SYSTEM BEFORE ATTEMPTING AN EEPROM FLASH UPDATE. Especially a copy of the boot partition, which is quite easy (and small in file size) to backup to another computer by simply copying all files and directories that are inside the boot partition.


It is more than recommended that you backup the entire OS by creating an image clone of it - that is, with all partitions and their files etc. included), and then store them on a separate drive for safekeeping and reverting the process, should anything during update go wrong.


As for now (August 2020), the rpi-eeprom-update script that you can download from i.e. GitHub ( see: -eeprom ) is more or less broken on other distros apart from Raspbian/Raspberry OS (where it is supposed to be either pre-installed, or can be installed with sudo apt install rpi-eeprom-update without any extra hassle). This means that it might be risky to try to run the EEPROM updater from any other OS than the official Raspbian/Raspberry Pi OS's.


Since it's an EEPROM flash update , you should be able to use any installation you've had for Raspbian on the RPi4B -- as long as it's thoroughly updated first! Or, get a separate MicroSD card / USB boot stick for that purpose.


When booted into Ubuntu, check the status of your firmware with sudo rpi-eeprom-update (with no command line options after that -- and, assuming you have it installed or available on the Ubuntu side nonetheless, if not, see below.)


sudo rpi-eeprom-update (with no added commands) should just list the version details and notify if an update is available that the script can see -- see if the output from that command matches the correct EEPROM firmware version you are trying to install.


If the firmware version doesn't match, or if you don't have the rpi-eeprom-update at all on your Ubuntu -- which wouldn't be a surprise, since Ubuntu for the RPi4B does not come with the rpi-eeprom-update pre-installed, nor can it be installed via apt or any PPA's that I know of as of writing this.


After cloning the Git repository, cd rpi-eeprom into the cloned git repo directory and copy the files from its stable/ -sub-directory into whatever is your firmware .bin file directory according to rpi-eeprom-update (see below.)


If it feels like having a separate Raspbian MicroSD card is just extra hassle, keep in mind that a faulty EEPROM update can - in a worst case scenario - brick your Raspberry Pi completely.


**Do remember to keep your Raspbian/Raspberry OS updated, even (or especially) if you use it just to flash the EEPROM! Always run sudo apt update + sudo apt upgrade and REBOOT [!] BEFORE attempting to run rpi-eeprom-update (in some cases, sudo apt dist-upgrade / sudo apt full-upgrade might come in handy.


ALWAYS remember to reboot after running the forementioned set of apt updates + upgrades, otherwise you might not get the right information on your current firmware status or existing configurations and pending updates might overlap and cause havoc.)


After that, re-run the sudo rpi-eeprom-update script and see what it says. The listing above should be what you get for the latest stable version of the RPi4B EEPROM firmware at the time of writing this (Aug. 18th, 2020) -- there also isn't currently a critical version of the EEPROM at the moment that would have direct USB MSD boot support in it.


Think of the stable version as being a nearly-finished, "late-beta" version of the firmware, that is still not yet quite there as for overall reliability. Again, if you run into problems, try to revert to i.e. an older version or try swapping between current versions of stable, beta and critical.


If you want to go really wild somewhere in the future, these instructions apply also to beta versions of the EEPROM firmware - just change the suffix into -beta, and copy the git repository's files accordingly, as explained in the instructions above. Switching to latest betas works by doing all the necessary steps as mentioned there, but with the directory for the firmware binaries (.bin) changed to beta/ instead of it being i.e. stable/ or critical/ .


NOTE: firmware beta versions are usually NOT recommended for novice users or in some cases even for the experienced. In fact, only the EEPROM firmware updates marked as "critical" are deemed as being "production-ready" (= safe and stable to use.) All of these warnings are by no means baseless -- if you look at i.e. threads on the Raspberry Pi forums, multiple users have ran their well-working RPi distro builds headlong into a ditch of random OS glitches and miseries alike after flashing in an EEPROM firmware's [unstable] beta version.


I've had best results with rpi-eeprom-update by cloning it from Github whenever there's a new release out, sudo copying the subdirectories ( = stable/ , critical/ , beta/ ) underneath my firmware directory (in this case /usr/bin/firmware/ ) - be sure to be EXTREMELY cautious with that procedure though. I usually check each file against existing ones thoroughly before copying them to the firmware directories.


The rpi-eeprom-update and the rpi-eeprom-config scripts I've placed under /bin/ in my Ubuntu so that I can the EEPROM update from any directory, usually just to view what the current situation with the EEPROM version is.


Should you run into trouble with the EEPROM updater itself or experience hiccups with the new firmware installed, it's recommended (especially when using beta/stable pre-release FW versions) to post the problem and ask for help on the official Raspberry Pi Forums at - there is usually a dedicated thread for bug hunting considering betas & pre-release versions, just add that prayer to the prayer mill.


If any (RPi) developers/code monkeys out there are eyeing this topic, a lot of things in the RPi4B's EEPROM update process could be made a helluva lot easier... and make them work straight on other distros than just Raspberry Foundation's very own "Lada-Linux"'s (= the only tool with them you need is a hammer, but they are rough and bulky as hell. :-D) Just sayin'! Cheers!


I'm trying to establish I2C communication from the Zynq to on board EEPROM of the device. When I referred the technical manual from digilent, I happen to find nowhere regarding the presence of on board EEPROM. Is there any onboard EEPROM/flash in the board?


The block design is likely functional, but I'd need some configuration settings from the IIC IP and maybe Zynq PS to confirm. Constraints also matter, presumably the DDC interface is connected to the correct pins on the HDMI source/TX port. If possible, archiving the entire Vivado project would be ideal. See the attached screenshot


Oh - that's the HDMI input DDC, not the output. If using that connection, the AXI IIC needs to act as an I2C slave that can provide EDID information to computers connecting to the board, instead of as a master on the bus. Please confirm what physical connection you are trying to make between the board and the outside world.


These connections look plausible for a PS-PS loopback, but the AXI IIC is fundamentally a peripheral of the processor, and the processor is still controlling it. How is your EEPROM instantiated in the FPGA, would it be controlling the AXI IIC S_AXI interface? At that point, it would just be easier to implement an AXI slave that the processor can use to read data from the EEPROM. The EEPROM ought to either be written in HDL and added as an RTL module, or encapsulated in an IP. It could have an I2C interface and connect to IIC_1 on the PS block, but it needs to be represented in the project first.


I'm using on board EEPROM(which is present in the FPGA itself). Yes, I realised that I've not instantiated any IP/ module related to EEPROM in the Block design which needs to be connected as slave to the PS IIC_1. I'm not sure on how to instantiate the EEPROM!


I don't think this type of communication is possible. Because the EEPROM am trying to access is based on Quad-SPI Interface, but am trying to access via I2C interface.

I might need to use an external EEPROM chip which supports I2C:Example- -i2c-interface-eeprom-memory-module?gclid=Cj0KCQjwmvSoBhDOARIsAK6aV7hn7EnbanQaLghuTKA4WcMn3d8TjgbbJyFyM1AOmvgD1CuA3OgkCukaAvZ9EALw_wcB


Yep, the Zybo Z7 doesn't have an I2C EEPROM, inside the FPGA chip or otherwise. If you want EEPROM functionality that isn't based on I2C, look at the QSPI flash. If you need it to be I2C, look for external modules you can connect.


EEPROM 4 click is aimed towards industrial and commercial applications, which require low voltage and low power operational capabilities. It can be used for any kind of temporary or permanent data storage for various embedded electronic devices, simple data logging, storing various working parameters of a module or device, safeguarding the sensitive data in case of a power cycle, and other similar applications where EEPROM memory is needed.


As always, MikroElektronika provides libraries that simplify and speed up working with this device. The provided application example demonstrates the functionality of the provided libraries and can be used as the reference point for own development.


We provide a library for EEPROM 4 click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.

3a8082e126
Reply all
Reply to author
Forward
0 new messages