Difference: MassStorage (6 vs. 7)

Revision 72019-01-27 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 182 to 182
  SHRC GLO R5 B2 SETBIT ; branch if bit set
Changed:
<
<
SHR ; bit not set
>
>
SHL ; bit not set
  BR SAVEBIT SETBIT:
Changed:
<
<
SHRC
>
>
SHLC
 SAVEBIT: PLO R5 GLO R6
Line: 239 to 239
 
SPI1 CS1 17 WAIT
Changed:
<
<
raspi-eeprom.png
Schematic
>
>
raspi-eeprom.png
Schematic
raspi-zero-eeprom.jpg
Raspberry Pi Zero and EEPROM interface
 
Deleted:
<
<
Because of: "A high-to-low transition on the CS pin is required to start an operation and a low-to-high transition is required to end an operation." That means the CS has to be active as long as a read or write process is going on. Therefore the SPI0 CSx can't be used.
 

eeprom2bin (download tool)

Line: 268 to 268
 
-e hexadr
end adress in hex (0x1FFFF is default)
Added:
>
>

How to get and build the RaspiElf tools

Get the source from the GIT repository (if you have not installed GIT yet, then install it with sudo apt-get install git), type only the bold text after the $ sign:

pi@cosmac:~/elf $ git clone https://github.com/spyren/RaspiElf
Cloning into 'RaspiElf'...
pi@cosmac:~/elf $

Build (compile) from the sources:

pi@cosmac:~/elf $ cd RaspiElf
pi@cosmac:~/elf/RaspiElf $ cd eeprom/
pi@cosmac:~/elf/RaspiElf/eeprom $ make
cc -g -c eeprom2bin.c
cc -g -o eeprom2bin -lwiringPi eeprom2bin.o
cc -g -c bin2eeprom.c
cc -g -o bin2eeprom -lwiringPi bin2eeprom.o
pi@cosmac:~/elf/RaspiElf/eeprom $ 

Install the binaries into /usr/local/bin

pi@cosmac:~/elf/RaspiElf/eeprom $ sudo make install
install -m 557 eeprom2bin bin2eeprom /usr/local/bin

Install wiringPi (GPIO Interface library for the Raspberry Pi), details see http://wiringpi.com/download-and-install/

Enable the SPI interface

@cosmac:~/elf/RaspiElf/eeprom $ sudo raspi-config
  • 5 Interfacing Options Configure connections to peripherals
  • P4 SPI Enable/Disable automatic loading of SPI kernel module
 
Kermit/ZModem

Kermit/ZModem

Line: 290 to 328
 
<--/commentPlugin-->
Changed:
<
<
META FILEATTACHMENT attachment="raspi-eeprom.png" attr="" comment="" date="1548535017" name="raspi-eeprom.png" path="raspi-eeprom.png" size="25608" user="PeterSchmid" version="2"
>
>
META FILEATTACHMENT attachment="raspi-eeprom.png" attr="" comment="" date="1548624176" name="raspi-eeprom.png" path="raspi-eeprom.png" size="26456" user="PeterSchmid" version="3"
META FILEATTACHMENT attachment="raspi-zero-eeprom.jpg" attr="" comment="" date="1548625222" name="raspi-zero-eeprom.jpg" path="raspi-zero-eeprom.jpg" size="206454" user="PeterSchmid" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback