Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Changed: | |||||||||||
< < | Raspberry Pi Interface to Cosmac Elf | ||||||||||
> > |
Raspberry Pi Interface to Cosmac Elf
| ||||||||||
elf2bin UtilityCopies the Elf (Membership Card) memory to a binary file on the Raspberry Pi. The Raspberry Pi GPIO is used as interface to the Cosmac Elf SBC (e.g. Elf Membership Card parallel port). | |||||||||||
Added: | |||||||||||
> > | Initialise the Elf memory with 00H | ||||||||||
pi@cosmac:~/elf/RaspiElf/chase $ bin2elf -e 7fff </dev/zero 0x8000 bytes written | |||||||||||
Line: 45 to 49 | |||||||||||
pi@cosmac:~/elf/RaspiElf/chase $ elf -v LED:02 Q:0 Rx:1 IN:0 WAIT:0 CLR:0 READ:0 SWITCH:80 | |||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > |
| ||||||||||
bin2elf Utility | |||||||||||
Deleted: | |||||||||||
< < |
http://hex2bin.sourceforge.net/
hexdump
/dev/null
elf CLI Tool | ||||||||||
| |||||||||||
Line: 67 to 60 | |||||||||||
-i increment -v verbose | |||||||||||
Added: | |||||||||||
> > | h
How to get and build RaspiElf tools | ||||||||||
Added: | |||||||||||
> > | Get the source from the GIT repository (if you have not installed GIT yet, then install it with
sudo apt-get install git ):
pi@cosmac:~/elf $ git clone https://github.com/spyren/RaspiElf Cloning into 'RaspiElf'... remote: Counting objects: 68, done. remote: Compressing objects: 100% (37/37), done. remote: Total 68 (delta 32), reused 62 (delta 29), pack-reused 0 Unpacking objects: 100% (68/68), done. Checking connectivity... done. pi@cosmac:~/elf $ | ||||||||||
Changed: | |||||||||||
< < | wiringPi | ||||||||||
> > | Build (compile) from the sources:
pi@cosmac:~/elf $ cd RaspiElf pi@cosmac:~/elf/RaspiElf $ cd tools/ pi@cosmac:~/elf/RaspiElf/tools $ make cc -g -c elf2bin.c cc -g -c raspi_gpio.c cc -g -o elf2bin -lwiringPi elf2bin.o raspi_gpio.o cc -g -c bin2elf.c cc -g -o bin2elf -lwiringPi bin2elf.o raspi_gpio.o cc -g -c elf.c cc -g -o elf -lwiringPi elf.o raspi_gpio.o pi@cosmac:~/elf/RaspiElf/tools $Install the binaries into /usr/local/bin
pi@cosmac:~/elf/RaspiElf/tools $ sudo make install install -m 557 elf2bin bin2elf elf /usr/local/bin | ||||||||||
Added: | |||||||||||
> > | |||||||||||
Line: 118 to 148 | |||||||||||
| |||||||||||
Deleted: | |||||||||||
< < | Other Tools | ||||||||||
Changed: | |||||||||||
< < | hex2bin | ||||||||||
> > | |||||||||||
Deleted: | |||||||||||
< < | Intel Hex or Motorola Hex file converter. | ||||||||||
Deleted: | |||||||||||
< < | http://hex2bin.sourceforge.net/ | ||||||||||
Changed: | |||||||||||
< < | > tar xvjf Hex2bin-2.5.tar.bz2 > make > sudo make install | ||||||||||
> > |
elf CLI Tool | ||||||||||