percu

Validating
  • Content Count

    6
  • Joined

  • Last visited

  1. 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 jitter
  2. 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 num
  3. 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.
  4. 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 ques
  5. 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?
  6. 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?