Jump to content

Andy

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by Andy

  1. I like to connect an Atmega328 micro to the UART of the Neo Core. The micro runs on 5v. Are the neo core pins 5v tolerant? I can't find any information on the Website only this one: "All pins are 3.3V, output current is 5mA"
  2. thx a lot for the help hope to try this soon
  3. hmm thx I use a NanoPi NEO Core I now decopiled sun50i-h5-nanopi-neo-core2.dtb and have does entries: leds { compatible = "gpio-leds"; pwr { label = "nanopi:red:pwr"; gpios = <0x38 0x00 0x0a 0x00>; linux,default-trigger = "default-on"; }; status { label = "nanopi:green:status"; gpios = <0x0c 0x00 0x0a 0x00>; linux,default-trigger = "heartbeat"; }; }; So i don't won't to brick my core so can I just add this: ledBoot { label = "ctf-red"; linux,default-trigger = "default-on"; default-state = "on"; gpios = ????; }; but how do I define the GPIOS?
  4. I like to attach an additional LED to my Core on any GPIO that is also going to switch on as soon as the Core boots (similar to the red one). This way I can give the user a feedback that the core is now booting. Is there a way to achieve this?
  5. ok thx a lot by the way where I can report a bug? Armbianmonitor for displaying the network on a SINGLE line (-N) does not work. It does not stay on a single line it does scroll like the -n option EDIT: ok submitted the issue on GitHub Andy
  6. Yes I already did realize that since my CPU usage is now down to 1-2% before it was more like 5 to 8% in "idle" mode So can I now stay on this Image will I be able to update to further updates etc.? Andy
  7. ok I did install the image and it works with the usb devices I currently need (USB FTDI Serial, USB 4G Modem) Andy
  8. but for my device there is nothing else then nightly build versions... (Nanopi Neo Core 2 LTS) And before (3 months ago) I used the Armbian Stretch which worked but was not based on Ubuntu... Or which one should I use for my Core 2 with EMMC support...
  9. hmm I think that the DTO are not loaded. So I downloaded some DTS from https://github.com/armbian/sunxi-DT-overlays/tree/master/sun50i-h5 and added the sun50i-h5-usbhost0.dts with sudo armbian-add-overlay But after the boot I get this error: I tried several things but I think I don't get it... Andy
  10. Hy Just installed the Armbian Bionic image. Tried to attach different usb devices but they did not got registered. So I tried to look at the settings under Hardware in den armbian-config but it's gone.... I remember in the Armbian Stretch build it was Variable... Can someone help me Andy
  11. Andy

    GPIO access

    thx for the link but still I get the same error.... Andy
  12. After reading several threads without success I need to ask again how I can get permission as a "normal" user to use the GPIO pins via my python script: #!/usr/bin/python import time PIN_NUM = 200 print "GPIO %s" % PIN_NUM try: # check to see if the pin is already exported open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/direction'])).read() except: # it isn't, so export it open('/sys/class/gpio/export', 'w').write(str(PIN_NUM)) # set gpiochip198 to output open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/direction']), 'w').write('out') for i in range(1000): open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/value']), 'w').write("1") time.sleep(0.5) open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/value']), 'w').write("0") time.sleep(0.5) # remove GPIO87 folder from file system open('/sys/class/gpio/unexport', 'w').write(str(PIN_NUM)) I get this error: Traceback (most recent call last): File "testGPIO.py", line 17, in <module> open(''.join(['/sys/class/gpio/gpio',str(PIN_NUM),'/direction']), 'w').write('out') IOError: [Errno 13] Permission denied: '/sys/class/gpio/gpio200/direction' So I tried to add: SUBSYSTEM=="gpio", ACTION=="add", RUN="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\ chown -R root:gpio /sys$DEVPATH && chmod -R 770 /sys$DEVPATH\ '" into /etc/udev/rules.d/90-gpiomem.rules and yes my username is the GPIO group.... Can someone help me further...thx Andy
  13. hmm ok Currently I use the "Nanopi Neo 2" image. So is the nano pi neo plus2 closer to the "NanoPi NEO Core2"? I just thought the Neo Core 2 is the bare bone cpu board compared the the Neo 2 where USB and Ethernet Jack is present...
  14. hmm I would love to do that. but as I'm using a NanoPi NEO Core2 I don't wan't to code on the wrong image. For me it's currently a too hard start to first figure out how to develop the write image first for the Core 2 and then search start searching for the right LED pins etc to get it working. If someone could build a NanoPi NEO Core2 image I could definitely start helping in improving the side of the Core 2... Andy
  15. hmm ok I use the "Nanopi Neo 2" image on my "NanoPi NEO Core2" and it works too. So what is the difference to the "NanoPi Neo Plus2" image? Is the Plus2 image better supported do to its emmc? Andy
  16. any news to this problem. Still facing the same problem. I can control the RED led on my NanoPi NEO Core2 but not the blue one... Andy
  17. hmm I had no problems with the Ethernet on the Armbian. What does ifconfig show? Andy
  18. Phu now it's working again. So this is what I did: I made a bootable SD Card to boot the system form the SD. Then I used chkdsk on the internal 8GB eMMC. Then I powered off the device, removed the SD-Card and now it works again.... strange... But thx for the help hope this won't happen again...
  19. thx. it keeps printing out the same line: Begin: Running /scripts/local-block ... done. and after 10 or so seconds it does reboot and start over again
  20. An hour a go I powered down my Neo Core 2 and now I can't get it to boot properly. When I hook it to the serial Monitor this is the output. It tries to load the "-fixup.scr" file in the /boot/dtb/allwinner/overlay folder but of course this is not available. With the extfls command I searched the folder and those two files would be available: sun50i-h5-fixup.scr sun50i-a64-fixup.scr The "sun50i-h5-fixup.scr" would be the right one for my processor however why does it choose "-fixup.scr" instead? Here is the boot sequence output:
  21. oh wow thx now its clear and easy to change. Now I understand how the file is constructed. Thx a lot for all the help, to all of you!!!
  22. In the overlay I tried to change the default pin where the 1Wire interface is connected. So the default is PD14. Then I tried to use the PA20 and because this didn't worked I also tried PG7. so I nee to change the gpios = <0xffffffff 0x00000003 0x0000000e 0x00000000>; part in the "onewire@0" Block? but is the 0xffffffff not the reference to the "w1_pins" block and there to the PD14 pin? Andy
  23. hmm sounds logic but I also tried PG7 but no success with this either...
  24. hmm but will the overlays not work on top of the main DT, so overwriting the "old" settings?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines