[Dec 07] DietPi(v6.18) - Pinebook / Manjaro KDE (preview3) / Manjaro LXQT (preview3) - Pinebook |[Dec 06] Armbian Debian Stretch (5.67) / Armbian Ubuntu 18.04 Bionic Desktop (5.67) - RockPro64 |[Dec 05] DietPi(v6.18) - 1080P Pinebook | [Nov 28] Slackware Aarch64 Miniroot (20181126) / Slackware Aarch64 XFCE (20181126) - RockPro64 / Manjaro KDE (preview3) / Manjaro LXQT (preview3) /Q4OS (2.6-r6) - 1080P Pinebook

Project Inspiration | Get Started | IRC Logs | Forum Rules/Policy


mmc r/w errors after setting GPIO
#1
Hi,

I have a Pine64-LTS with 16GB eMMC, running the Stretch minimal Sopine kernel by Ayufan (https://github.com/ayufan-pine64/linux-build/releases).

I am trying to install a 3G hat in the Pi bus, and need to enable some GPIO pins. I have followed the tutorial that pfeerick wrote in this forum (https://forum.pine64.org/showthread.php?tid=2088).



I am working with GPIOS 6 (230 in Pine) and 21 (75 in Pine). Just need to put them as output with the 1 value. But a few seconds or minutes (less than 10 minutes) afters setting these GPIOS, I lost the capacity to read or write to the disk (the emmc). It happens even when there is not anything connected to the Pi bus.
These are the errors that I can see in the syslog:

Nov 30 20:02:42 sopine kernel: [169456.474748] sunxi-mmc 1c11000.sdmmc: smc 0 p2 err, cmd 18, RD SBE !!

Nov 30 20:02:42 sopine kernel: [169456.481825] sunxi-mmc 1c11000.sdmmc: data error, sending stop command

Nov 30 20:02:42 sopine kernel: [169456.489060] sunxi-mmc 1c11000.sdmmc: reset:host reset and recover finish

Nov 30 20:02:42 sopine kernel: [169456.496550] mmcblk0: timed out sending r/w cmd command, card status 0x900

Nov 30 20:02:42 sopine kernel: [169456.504094] mmcblk0: not retrying timeout

Nov 30 20:02:42 sopine kernel: [169456.508595] end_request: I/O error, dev mmcblk0, sector 1116624

Nov 30 20:02:42 sopine kernel: [169456.515171] end_request: I/O error, dev mmcblk0, sector 1116632


I have tried several combinations (with or without ataching a hat), but it always happens after touching these GPIOs.


Have anyone see before a problem like this?

Thanks!
Regards
Chema
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  How to control the SOPINE UART and SPI pins as GPIO? Pine 1 171 08-22-2018, 10:15 AM
Last Post: martinayotte

Forum Jump:


Users browsing this thread: 1 Guest(s)