Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Jeffer

  1. Thank you so much for your suggestion, I edited a SPI1 description in stead of SPI0 in my main DT and rebooted, but my NanoPi never booted... please wait
  2. Thank you very much for your patience.. Just in case, I show the result from dmesg | grep spi still struggling to get the spi worked
  3. Hi, I'm currently working to enable SPI on NanoPi M4 but it is not working... I have edited main DT to the following one and now /dev/spidev0.0 appears. But when I checked spi with this tool:https://github.com/torvalds/linux/blob/master/tools/spi/spidev_test.c I only got the result below and no matrix appears... spi mode: 0x0 bits per word: 8 max speed: 500000 Hz (500 KHz) Here is what dmesg | grep spi returns I have checked the output from the proper GPIO with oscilloscope but found nothing. almost spent couple weeks on this Anyone had the same issue or knows what to do here?
  4. I think there are 2 dtb and dts files (rev00 and rev01) by default but what is the deference between 00 and 01? and I found that aliases in dts file does not include spi, while it sentences dis, ethernet, i2c and serial. After I added the following, spi0 = "/spi@ff1c0000" /dev/spidev0.0 appears but lsmod doesn't include spi... I guess there is still something to do....
  5. I know other method is better when it comes to sending a big data like an image. But for some reasons, I have to work it with SPI, so I'll keep trying this
  6. the kernel is 4.4.162-rk3399 I got only... spi mode: 0x0 bits per word: 8 max speed: 500000 Hz (500 kHz) So does this mean the spi is not working?
  7. Thanks for the tips, I did what you wrote here exactly and rebooted my Nano Pi M4 After those process, I checked if spi is active with lsmod but it returned no spi information. I also checked ls /dev/spi* but this returns nothing. I guess there is still something to do turn it on... Could you please tell me what to do now? -> so sorry, I realized that I edited a wrong dtb file. now I found /dev/spidev32766.0 but lsmod doesn't return spi information... also when I try to use SPI with WiringPi ( I got this worked and checked with GPIO on nano pi m4 ), I got the error which says "unable to open SPI device: No such file or directory" so I checked dmesg and found some error massage like "Failed to request TX DMA channel" "Failed to request RX DMA channel" These errors have something to do with the error in wiringpi or could you know a solution to this problem?
  8. yes, first I tried to use wiringpi with the default configuration but got the same error message, and followed the instruction given here http://wiki.friendlyarm.com/wiki/index.php/WiringPi-Python_for_RK3399 and at the final command, easy_install, I got error and stopped. I'm sorry but what is "main DT"? I know UART4 and SPI shares some pins so I thought somehow I had to disable UART but I couldn't find how
  9. Thank you, it worked! I really appreciate it I tried this now again, and it can connect to the server, think there were some miss-spelling. And I thought I could finally use wiringpi, but after I tried to do easy_install wiringpi-2.44.4-py3.6-linux-aarch64.egg this raised error Traceback .... .. File "/usr/local/lib/python3.6/dist-packages/setuptools-33-1.1.-py3.6.egg/setuptools/archive_util.py", Milne 11, in <module> ImportError: cannot import name 'ContextualZipFile' I googled this error and people say I just need to erase the word "ContextualZipFile" in the file of archive_util.py But I couldn't find archive_util.py in the directory which was shown by the error message. Now I don't know what to do with it... Also I tried to use SPI with SpiDev, not in wiringpi, but I cannot use it.... not like UART, do I have to enable SPI somehow??
  10. Thank you so much for the prompt reply and sorry, I really don't know why but after a while I tried and it succeeded. Actually I have one more problem now... I have tried to control the GPIO with wiringpi in python3 by following the procedure below. http://wiki.friendlyarm.com/wiki/index.php/WiringPi-Python_for_RK3399#Install_WiringPi_in_Python3 but the command, $ wget doesn't work because my NanoPi M4 can't connect to the address Is there anyway to control GPIO on NanoPi M4 such as RPi.GPIO?
  11. Hi, I'm currently woking on transmitting image data by UART connection with the NanoPi M4, but I couldn't send data from '/dev/ttyS4', which is offered as for UART connection. I used pyserial in python to use UART but no change has been detected the pin #19 by the oscilloscope. Do I have to enable the UART somehow? If I can use UART with NanoPi M4, I would say this machine is so fantastic.
  • Create New...