ahoj, mozna uz tu problem byl, ale pres SPI se mi jej nedari "grepnout"
na MalinovePIcce se mi stalo to, ze s novym kernelem/posledni image mi prestaly chodit SPI. resp chodi, jsou videt pomoci gpio -v i pomoci gpio readall z wiringPi.... viz tady:
projects:gpio [Labka Hackerspace Ostrava]
https://labka.cz/wiki/doku.php?id=projects:gpio
root@picka_malinova wiringPi]# gpio -v
gpio version: 2.32
Copyright (c) 2012-2015 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty
Raspberry Pi Details:
Type: Model B, Revision: 03, Memory: 512MB, Maker: Sony
* Device tree is enabled.
* This Raspberry Pi supports user-level GPIO access.
-> See the man-page for more details
-> ie. export WIRINGPI_GPIOMEM=1
[root@picka_malinova wiringPi]# gpio readall
+-----+-----+---------+------+---+-Model B2-+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | | |
| 2 | 8 | SDA.1 | ALT0 | 1 | 3 || 4 | | | 5V | | |
| 3 | 9 | SCL.1 | ALT0 | 1 | 5 || 6 | | | 0v | | |
| 4 | 7 | GPIO. 7 | IN | 0 | 7 || 8 | 0 | IN | TxD | 15 | 14 |
| | | 0v | | | 9 || 10 | 1 | IN | RxD | 16 | 15 |
| 17 | 0 | GPIO. 0 | IN | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |
| 27 | 2 | GPIO. 2 | IN | 0 | 13 || 14 | | | 0v | | |
| 22 | 3 | GPIO. 3 | IN | 0 | 15 || 16 | 0 | IN | GPIO. 4 | 4 | 23 |
| | | 3.3v | | | 17 || 18 | 0 | IN | GPIO. 5 | 5 | 24 |
| 10 | 12 | MOSI | ALT0 | 0 | 19 || 20 | | | 0v | | |
| 9 | 13 | MISO | ALT0 | 0 | 21 || 22 | 1 | IN | GPIO. 6 | 6 | 25 |
| 11 | 14 | SCLK | ALT0 | 0 | 23 || 24 | 1 | OUT | CE0 | 10 | 8 |
| | | 0v | | | 25 || 26 | 1 | OUT | CE1 | 11 | 7 |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| 28 | 17 | GPIO.17 | IN | 0 | 51 || 52 | 0 | IN | GPIO.18 | 18 | 29 |
| 30 | 19 | GPIO.19 | IN | 0 | 53 || 54 | 0 | IN | GPIO.20 | 20 | 31 |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+-Model B2-+---+------+---------+-----+-----+
co mi ale nechodi je tenhle postup:
https://labka.cz/wiki/doku.php?id=projects:rfid, resp konkretne
https://labka.cz/wiki/doku.php?id=projects:rfid#python_to_control_gpi
na BananovePicce mi SPI normalne chodilo, ale tam se pouziva : spi-sun7i kernelovej modul...
dohledal jsem nekde, ze snad muze byt problem s device_tree, ale device_tree= v /boot/config.txt nedela nic [gpio -v pise, ze device tree je on] a kdyz mu dam param device_tree=off, Picka nenabootuje...
nesetkal se nekdo se stejnym problemem, pripadne nejaky workaround jak poresit MFRC522-python s na Jessii?
Rozchazim namo RFC522, coz jsem opomenul napsat.
Jinak zajimave je, ze ackoliv dmesg nerika, ze by spi videl, tak /dev/spi* tam jsou... mozna by stacilo jen nejak obastlit MFRC522, ale nevim, zadny patch jsem nenasel a sam jsem se tim jeste neprokousal...
please `elp!