Editing JAISPI
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Wikify}} | {{Wikify}} | ||
Someone should | |||
Someone should translate the spanish resources into english for wiki here, please. | |||
== JAISPI == | == JAISPI == | ||
Line 18: | Line 19: | ||
** Programming | ** Programming | ||
** Full Erase | ** Full Erase | ||
=== Options === | |||
-i /dev/spidevX.X Get ID from flash | |||
-r file.bin /dev/spidevX.X Read entire flash to file | |||
-e /dev/spidevX.X Erase entire flash | |||
-p file.bin /dev/spidevX.X Only write blocks differences from file | |||
-v file.bin /dev/spidevX.X Verify blocks with file | |||
==== Get ID ==== | |||
-i: Displays information of the flash. | |||
#jaispi -i /dev/spidev0.0 | |||
JaiSpi v1.0 | |||
ID: 0xC22019 MX25L25635 | |||
==== Read ==== | |||
-r: Makes a full dump of the flash (Average time: 35sec) | |||
#jaispi -r DUMP.bin /dev/spidev0.0 | |||
JaiSpi v1.0 | |||
ID: 0xC22019 MX25L25635 | |||
Reading... | |||
0x02000000 | |||
Done! | |||
==== Erase ==== | |||
-e: Clears all flash (Average time: 1min, 30sec) | |||
#jaispi -e /dev/spidev0.0 | |||
JaiSpi v1.0 | |||
ID: 0xC22019 MX25L25635 | |||
Erasing blocks... | |||
Done! | |||
==== Program ==== | |||
-p: Write to flash only the changed sectors (Average time: 1min 30sec) | |||
#jaispi -p Base.bin /dev/spidev0.0 | |||
JaiSpi v1.0 | |||
ID: 0xC22019 MX25L25635 | |||
Starting... | |||
0x02000000 -> 8192 Sectors written | |||
Done! | |||
==== Verify ==== | |||
-v: Compares the flash contents with a file in PC (Average time: 35sec) | |||
#jaispi -v Base.bin /dev/spidev0.0 | |||
JaiSpi v1.0 | |||
ID: 0xC22019 MX25L25635 | |||
Checking... | |||
0x02000000 -> 0 Different sectors | |||
Done! | |||
=== Installation Instructions === | === Installation Instructions === | ||
==== Materials Required ==== | ==== Materials Required ==== | ||
* 1x | * 1x RaspberryPi (raspberrypi.org) | ||
* 1x SD Memory | * 1x SD Memory | ||
* 1x | * 1x Integrated [[MX25L25635FMI-10G]] (Main Memory PS4) | ||
==== Downloads ==== | ==== Downloads ==== | ||
Line 34: | Line 78: | ||
<div style="float:right">[[File:MX25L1006E Pinout.png|200px|thumb|left|[[MX25L1006E]] Pinout]]<br />[[File:25X10CLYA1 Pinout.png|200px|thumb|left|[[25X10CLYA1]] Pinout]]<br />[[File:MX25L25635FMI-10G Pinout.png|200px|thumb|left|[[MX25L25635FMI-10G]] Pinout]]<br /> | <div style="float:right">[[File:MX25L1006E Pinout.png|200px|thumb|left|[[MX25L1006E]] Pinout]]<br />[[File:25X10CLYA1 Pinout.png|200px|thumb|left|[[25X10CLYA1]] Pinout]]<br />[[File:MX25L25635FMI-10G Pinout.png|200px|thumb|left|[[MX25L25635FMI-10G]] Pinout]]<br /> | ||
[[File:Raspberry-pi-rev-1-gpio-pin-out1.jpg|200px|thumb|left|Raspberry Pi | [[File:Raspberry-pi-rev-1-gpio-pin-out1.jpg|200px|thumb|left|Raspberry Pi GPIO pinout]]</div> | ||
{| border="1" cellspacing="0" cellpadding="5" border="#999" class="wikitable" style="border:1px solid #999; border-collapse: collapse;" | {| border="1" cellspacing="0" cellpadding="5" border="#999" class="wikitable" style="border:1px solid #999; border-collapse: collapse;" | ||
|- bgcolor="#cccccc" | |- bgcolor="#cccccc" | ||
Line 74: | Line 118: | ||
Use short wires, esp. if you are not adding the 0.1{{micro}}F capacitor between ground and vcc as close as possible to the chip | Use short wires, esp. if you are not adding the 0.1{{micro}}F capacitor between ground and vcc as close as possible to the chip | ||
Line 81: | Line 123: | ||
==== Installing Raspbian ==== | ==== Installing Raspbian ==== | ||
Run win32diskimage | Run win32diskimage. | ||
- In "Image file" select the downloaded and decompressed Raspbian image. | |||
- In "Device" select the drive where the SD memory is. | |||
- Select "Write". | |||
After finished writing, put the SD card in the Raspberry Pi and power it up by inserting the USB cable. | After finished writing, put the SD card in the Raspberry Pi and power it up by inserting the USB cable. | ||
==== Remote Shell into Raspbian ==== | ==== Remote Shell into Raspbian ==== | ||
Two minutes after booting up the Raspberry Pi, run Putty. | Two minutes after booting up the Raspberry Pi, run Putty. | ||
-In Host Name put: raspberrypi | |||
-In case the previous step doesnt works properlly, go to the router and find the IP assigned to your RaspberryPi. | |||
-Select SSH. | |||
-Select Open. | |||
==== Installing Application ==== | ==== Installing Application ==== | ||
It will request a Login. According Raspbian the user is "pi" and the password "raspberry" (Both without quotes). | It will request a Login. According Raspbian the user is "pi" and the password "raspberry" (Both without quotes). | ||
Insert the following commands: | |||
Insert the following commands: | |||
{{keyboard|content= | {{keyboard|content= | ||
sudo -s | sudo-s | ||
cd /bin | cd /bin | ||
wget http://jaicrab.org/Ps4/Tools/JAISPI/jaispi | wget http://jaicrab.org/Ps4/Tools/JAISPI/jaispi | ||
chmod +x jaispi | chmod +x jaispi | ||
echo "#blacklist spi-bcm2708" > /etc/modprobe.d/ | echo "# blacklist spi-bcm2708"> / etc / modprobe.d / blacklist.conf raspi- | ||
echo "blacklist i2c-bcm2708" >> /etc/modprobe.d/ | echo "blacklist i2c-bcm2708" >> / etc / modprobe.d / blacklist.conf raspi- | ||
reboot | reboot | ||
}} | }} | ||
Installation is complete. By Putty you can access the | Installation is complete. By Putty you can access the RaspberryPi. To run the command jaispi you need to be root (sudo-s): | ||
{{keyboard|content= | {{keyboard|content= | ||
# sudo -s | # sudo-s | ||
# Jaispi -i / dev/spidev0.0 | # Jaispi-i / dev/spidev0.0 | ||
}} | }} | ||
{{Hardware Modification}} | {{Hardware Modification}} | ||
<noinclude>[[Category:Main]]</noinclude> | <noinclude>[[Category:Main]]</noinclude> |