Nao

Members
  • Content Count

    33
  • Joined

  • Last visited

  1. Hi, I'm currently facing strange problems... I'm using NanoPi M4 and operate a USB camera with it. Since I wanted to know the total power consumption of the system, I measured current which flows into NanoPi from the outlet. (I used GPIO to supply 5V power this time for some reasons) The current during while the camera working was very nice (about 1A) so I shut the pi down. Then, I found that the total current value gradually rose up from about 1A to 1.5A. This seems to be so strange because when it gets shutdown, the power should be off as well, and the pi only needs small amount of power just to light the red LED. I tried a few times but the result was always same... I can't understand the reason why this happens, does anyone have ideas to explain this phenomena? Thank you
  2. Nao

    SPI with NanoPi M4

    I did the same thing with the nightly and got the following so I tested this spidev1.0 with spidev_test.c but again, it returned this
  3. Nao

    UART with NanoPi M4

    I succeeded to boot spi1.0 somehow... I edited device tree by following your way and I got the result below and /dev/spidev1.0 appeared (by default, this was spidev0.0 but after I added spi1 = "/spi@ff1d0000" to aliases in dts, the spidev1.0 appeared) I felt so happy this time and tested that spidev1.0 function with spidev_test.c and I got following result again... I'm using spidev1.0 this time but this result again... what can I do now...?
  4. Nao

    UART with NanoPi M4

    well I checked the connection so many times so it should be correct Also, with a default DTB I can log in via UART with the following command % sudo screen -L /dev/tty.usbserial-FTADURC2 1500000 I attached the pic of my USB-TTL on nano pi so you can check it I will try with this kernel EDIT: good news. with the nightly, nano pi booted after editing the DTB /dev/spidev0.0 appeared so I tested with it but nothing happened, I remembered that spi0 is for other use I'll try with the other spi, not spi@ff1d0000 ->well, with spi@ff1e0000 spidev0.0 appeared...and this doesn't work I think something was wrong so I'll try again -> whichever spi@ff1***** I edited, /dev/spidev0.0 always appeared I edited rk3399-nanopi4-rev01.dtb but this isn't the DTB that I should fix? by accident I destroyed that file and I rebooted it but it was fine and the results were the same....
  5. Nao

    UART with NanoPi M4

    I mean, when I tried as I usually do with USB-TTL, unfortunately the screen is just black, shows nothing ( implying no data coming via UART-TTL? ) If this makes no sense, sorry for that but this is what I got so far... Now Im using this legacy kernel just because it is distributed here https://www.armbian.com/nanopi-m4/ If there are some possibilities that SPI can work by updating the latest mainline, I'm happy to do that but I would like you to tell me how, I couldn't find the method
  6. Nao

    UART with NanoPi M4

    well, I meant nothing appeared, so the screen is remaining black after the boot I can check /var/log/bootstrap.log with other LINUX machine but can this show the latest log? for the kernel version, "uname -r" returns "4.4.162-rk3399" Should I upgrade this kernel?
  7. Nao

    UART with NanoPi M4

    Thank you so much I did all the things mentioned here and checked the boot logs.... then nothing appeared... I attached a dts file which I edited again just in case rk3399-nanopi4-rev01.dts
  8. Nao

    UART with NanoPi M4

    Sorry that I made you confused I have it and I can use it but since I don't know which UART in main DT represents the UART4 which share GPIO with SPI1, I disabled all of the UARTs anyway So I thought all of the UARTs were OFF and thus never tried to see what was going on while booting... just for information, nano pi m4 doesn't shoe its yellow light blinking while booting after I changed main DT to enable SPI1 EDIT: I run UART console with "screen" command on UNIX
  9. Nao

    UART with NanoPi M4

    I have it. Usually I use it for console but how can I check logs with it ? In addition, I would like to know which UART is supposed to be "disable" UART4 and SPI1 share GPIOs but since I don't know which is the one, I disabled all of the UARTs the red light on nano pi m4 is on but the yellow one which is supposed to blink while booting does not appear anyway
  10. Nao

    SPI with NanoPi M4

    sorry I edited a status at a wrong spi (actually it was spi@ff1c0000, which corresponds to the SPI0 which is only for SPIFlash) and after edited the status at spi@ff1d0000, my machine doesn't boot... basically I followed an instruction mentioned here,
  11. Nao

    UART with NanoPi M4

    yes, it doesn't boot again, why .... I attached dts file edited for this in case rk3399-nanopi4-rev01.dts
  12. Nao

    UART with NanoPi M4

    Now I'm trying ... so please wait haha Is it possible that I download the img file which you made or someone made to enable SPI?
  13. Nao

    UART with NanoPi M4

    I followed your suggestion below but a change on spi@ff1c0000 showed the change at SPI0 not SPI1 so I thought I had to change the different one, such as spi@ff1d0000. After I edited spi@ff1d0000, I changed dts file to dtb and I rebooted my pi, then it never booted again... I did the same thing with my backup file and got the same problem Maybe this spi@ff1d0000 should not be abled..? So how can I know which spi@***** represents SPI1?
  14. Thank you for showing this website. All descriptions about LCD display does not refer to M4...can these work with M4? (I guess so) If possible it is better to be able to use USB monitor since USB monitor can be used with some other PCs
  15. I need USB3.0 connections to control a USB camera. This need decreases the number of choices and I've tried with some boards to check with which one the camera can work the most effectively.