Home Forums Software Flashing the Compute Module eMMC

Viewing 4 reply threads
  • Author
    Posts
    • hmarthenshmarthens
      Participant
      Post count: 12

      Hi

      I wanted to reinstall the OS on the raspberry pi that comes with the Flexbench because of some issues I came across when installing python3 from source, however, it appears that the SD card is write-protected. Debugging the error has taken a lot of time, after several uninstalls and reinstall, and different solution trys, I reckon reinstalling the OS would be the best option.

      Normally, for the compute module 4, with Compute Module IO board, one would use a jumper that would allow me to write to eMMC storage.

      How do you recommend me to solve this for our case? Is there an equivalent jumper on your PCB board allowing this functionality ? I have attached a picture of the backside with jumpers below.

    • hmarthenshmarthens
      Participant
      Post count: 12

      P.S. I needed to reinstall python3,
      1. Because the one that was installed the interpreter was 32bit, and I needed to run a script that uses a library which is 64-bit
      2. Because I had also changed the kernel from the default 32bit “armv71” to the 64bit “aarch64”

    • hmarthenshmarthens
      Participant
      Post count: 12

      All in all, I need to install a 64-bit Raspberry Pi OS, and it appears that even though I had changed the kernel…some of the libraries remaining were still 32-bit…meaning, the only stable way to go and be able to run the python script with the 64-bit libraries for my project is to install a new OS. And this would require me to be able to write to the eMMC storage.

    • hmarthenshmarthens
      Participant
      Post count: 12

      Hi,

      I had a meeting with Rhyse, and he told me how to reinstall the OS. I was able to do it successfully!
      I was also able to install virtual client usb server, and are now able to flash again to the MCU.
      I wanted to kindly know if there are any other setups that I need to follow ?

      I am thinking of trying the example(https://www.audesseinc.com/resources/python/) of running python script “spiLogger.py”, however is it possible to provide me with that script since all data on pi was lost.

      Thanks

    • ConnorConnor
      Keymaster
      Post count: 20

      Please see attached files. The python tutorial also mentions setting up scripts to run at startup, which you can apply to “spiComm.py” after verifying that it runs standalone. The “spiLogger.py” can be run as needed while spiComm is running. You will also need to add the following line to /boot/config.txt to make the SPI interface available:

      dtoverlay=spi0-2cs

      • This reply was modified 1 year, 3 months ago by ConnorConnor.
      Attachments:
      You must be logged in to view attached files.
Viewing 4 reply threads
  • You must be logged in to reply to this topic.