percu

  • Posts

    7
  • Joined

  • Last visited

percu's Achievements

  1. Hello, I have problem that wireless interface only reachable when ethernet cable plugged to my orange pi zero. I use nmtui, to setup my WiFi connection. All connects fine and works. But when I disconnect ethernet cable, I lost also WiFi connection. I see this post: https://forum.armbian.com/topic/4098-orange-pi-zero-wifi-issues-when-disconnect-ethernet-cable/ But even after rebooting without ethernet cable, WiFi connnection doesn't work. Then in a new clean image, I try to run nmtui without connecting ethernet cable. WiFi connects without any errors, but doesn't work. Please, help!
  2. Hi all! I have Orange Pi One with Armbian Debian 5.8.9-sunxi on board. The problem is that when I catch 2 kHz square wave with OPi gpio, I have very big delta between signals. If I use "interrupt both endges" parameter for gpio, time between signals must be 250 microsecs. But now it floats between 200 - 290 microsecs. And I have achive this result after some suggestions from other forum topics: using isolcpu=3, run c program on this cpu, use max priority, disable powersaving for CPU. I try to read with wiringOP lib, and directly from sysfs, but still have jittering about 90 us. Also I think, that I have not very bad results for cyclictest: # cyclictest -a -t -n -p80 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.00 0.00 0.00 1/127 2335 T: 0 ( 2332) P:80 I:1000 C: 32762 Min: 8 Act: 11 Avg: 12 Max: 98 T: 1 ( 2333) P:80 I:1500 C: 21841 Min: 8 Act: 19 Avg: 11 Max: 48 T: 2 ( 2334) P:80 I:2000 C: 16381 Min: 8 Act: 9 Avg: 12 Max: 113 T: 3 ( 2335) P:80 I:2500 C: 13104 Min: 10 Act: 10 Avg: 10 Max: 16 The main quieston is - does direct programming /dev/mem gpio registers helps me to decrease floating between receiving signals? May be other suggestions? Please, help! Thank you!
  3. Hi all! I try to run ./demo file, that must make diode blinks on 4 pin. But nothing happens... It finds correct board name (Running on a Orange Pi One), but blinking doesn't works. I also try simple c++ program: Builded without any errors, but blinking doesn't work. It is very strange, because MAX7219 lib, that I also use in my c++ program works fine. But MAX7219 lib uses ArmbianIO lib! What's wrong? Any ideas? This is my output "gpio readall": Does it means that number 4 in AIOWriteGPIO(4, 1) associates with 10 hardware pin number? Honestly I had try different pins, but AIOWriteGPIO still doesn't work.
  4. Hi, all! Is it possible to make micro usb otg connection through gpio pins on the orange pi zero? I'm asking because when OPi is located in the box, I need to use external USB type B socket to micro usb cable. So it will be really cool, if I will have opportunity to connect usb otg socket through gpios. Regards.
  5. Sooo, it works now! Big thanks to Igor and usual user! What I do: 1) Reconfigure kernel, turn on midi gadget support(https://linux-sunxi.org/USB_Gadget/MIDI) and compile it. (https://docs.armbian.com/Developer-Guide_Build-Preparation/) 2) Turn on usbhost0 in System -> Hardware section using armbian-config. 3) Install new kernel on my Pi ( sudo dpkg -i linux-image-current-sunxi_20.08.0-trunk_armhf.deb) 4) sudo modeprobe g_midi Profit! Now I can see my midi device in device manager in Win10. It appears with name "MIDI function". So one more question: how I can change this name? Or do I need to do somthing before compiling kernel?
  6. Thank you for replying! In the armbian-config -> hardware I turned on usbhost0. After rebooting, and command "modprobe g_ether", now I can see my OPi as usb COM device in windows. But when I try: sudo modprobe g_midi I get error: modprobe: FATAL: Module g_midi not found in directory /lib/modules/4.19.57-sunxi Where I can get this module? Here I had read, that I need to reconfigure kernel. Think that I need to use make menuconfig command in the kernel build directory. Right? But I don't have source code in /usr/src. May be it is in the other dir? I can't find any info about midi device tree configurations. May be devicetree setup have some rules to configure it? Does USB gadget framework included in the Armbian? Or where I can find it? Sorry for my questions, I'm really stupid in linux.
  7. Hello! I try to turn on usb gadget mode on my OPi. For example g_ethernet, or g_midi. Read many posts, but still don't understand what I should do. Is it possible to turn on gadget mode without compiling my own armbian? Also, I had found on this forum info that legacy roms already have OTG support from the box. Is it true? May be somebody knows tutorials of how to turn on usb gadget mode?