Sp0T

Members
  • Content Count

    49
  • Joined

  • Last visited

 Content Type 

Forums

Member Map

Store

Crowdfunding

Raffles

Applications

Calendar

Everything posted by Sp0T

  1. Dear All, It was my bad. Forget to remove pins from gpio. Regards, Sp0T
  2. Dear All, I try to use the UART3 on my Orange Pi mini but it just won't work. I put a jumper on Pin 8 and pin 10 on the header. Also give read/write premmission to all users. Based on this UART3 is /dev/ttyS2 [ 0.000000] console [tty1] enabled [ 0.954713] sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A [ 0.985810] sunxi-uart.2: ttyS1 at MMIO 0x1c28800 (irq = 35) is a U6_16550A [ 1.016890] sunxi-uart.3: ttyS2 at MMIO 0x1c28c00 (irq = 36) is a U6_16550A [ 1.047968] sunxi-uart.7: ttyS3 at MMIO 0x1c29c00 (irq = 52) is a U6_16550A [ 6.014770] systemd[1]: Expecting device dev-ttySAC2.device... [ 6.681738] systemd[1]: Starting system-serial\x2dgetty.slice. [ 6.690398] systemd[1]: Created slice system-serial\x2dgetty.slice. [ 6.695167] systemd[1]: Starting system-getty.slice. [ 6.702124] systemd[1]: Created slice system-getty.slice. I Also checked the speed and other config settings: root@orange:~# stty -F /dev/ttyS2 speed 115200 baud; line = 0; kill = ^H; min = 100; time = 2; -icrnl -imaxbel -opost -onlcr -isig -icanon -echo When i try to send/receive some data i always failed, nothing happend. console 1: echo -ne '\033[2J' > /dev/ttyS2 console2: cat -v < /dev/ttyS2 Can anyone tell me what did i wrong? Thanks Sp0T
  3. Thank you everyone. Based on your hints, i was able to controll a port. And at last i understand it Thank you, Sp0T
  4. So gpio_pin_10 = port:PI12 is physically the 12nd pin on the header?
  5. This one worked: echo 16 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio16/direction echo 1 > /sys/class/gpio/gpio16/value But i still don't know which physical port is this?
  6. The result: root@orange:~# echo 225 > /sys/class/gpio/export -bash: echo: write error: Invalid argument root@orange:~#
  7. Hello, From the script.bin file(linked in the first post) [gpio_para] gpio_used = 1 gpio_num = 88 Yes, i tried and i got error because there are only 88 ports declared into the script.bin file. Regards, Sp0T
  8. Some future more information, my board is an Orange PI mini A20. I tried to use the formla by xunxi : (position of letter in alphabet - 1) * 32 + pin number But all the numbers are over 88 and i'm not able to export them at all. I try to calculate out gpio_pin_16 = port:PH01 but i don't really know it this port 1 or port 16 or none of them. it was (8 - 1) * 32 + 1 which is 225 but there are no 225 the max is 88 If anyone can help i would thanks that. Regards, Spot
  9. Hello Everyone, I would like to play with my A20 board a bit and would like to use the GPIOs. I checked the forum but it's still not clear what to do and how. Can someone explain to me how to get for example pin 16 on the board? This is the fex: Thanks, Sty
  10. Thank you guys for the great helps. Electron is looks promising, and It's up to date. I found another solution too. I Have an A20 board, where I installed Lazarus, but I cannot slove the I/O ports handling. Thanks for a great site now I found a solution on that. It's called PXL Library http://asphyre.net/products/pxl. I'll try out both solution and compare them based on resource using, GUI Development...etc Regards, Sp0T
  11. Hello Guys, The main reason I bought my orange pi One is to create custom softwares on it(mostly on Linux distro). I checked google and can't really decide which is the best programming language, which have a nice IDE, able to handle GPIO-s and other periferials like SPI, COM...etc, able to create a fair looking UI. Can someone suggest me some ideas? Programming language does not really matter. Any ideas are welcome Regards, G.
  12. @Igor The main problem was when you tried to play a video with the Orange Pi/Orange Pi Mini A20 boards the screen was black. It's caused by the default script.bin configuration. After I changed the settings the HW accelerated video playback worked. Regrads, Sp0T
  13. Once i tried rellla's install notes http://linux-sunxi.org/User:Rellla/Armbian. The codec pack not worked because i messed up the things. Also you need these patches http://linux-sunxi.org/User:Rellla/Armbian/vlc too but the "configure.diff" not worked for me(failed) which need some debugging.
  14. Same issue with dev on A20. Also i found out another thing. MPV sometimes fail to decode movie. I'll upload images compared dev and master here Compare dev vs master: Also i noticed if you force fps to 24 the image quality is better. Maybe it1s my monitor or mpv but the colors are not good. I'll try vlc tomorrow.
  15. Yes. dev repo have better contrast, brightness. I'll try to play a full movie and monitor A20 temperature and CPU usage. What i found as issue is only a small one. When the video starts there is no screen at all but if you put it on full screen it's works fine. I'm still testing it and try to find the best config. there are some movies (like avi) where the color is mixed wrong(both dev and master). Sp0T
  16. It's working with the following setting: -cedar_master(i don't try dev but i will) [disp_init] disp_init_enable = 1 disp_mode = 0 screen0_output_type = 3 ;HDMI screen0_output_mode = 8 ;1080p24 screen1_output_type = 2 screen1_output_mode = 2 fb0_framebuffer_num = 2 fb0_format = 10 fb0_pixel_sequence = 0 fb0_scaler_mode_enable = 0 fb1_framebuffer_num = 2 fb1_format = 10 fb1_pixel_sequence = 0 fb1_scaler_mode_enable = 0 Now the screen is flickering. It can be the low refresh rate which i'll test with other ones soon. Update: Flickering gone --> refresh rate to 1920x1080p60 dev working(only in fullscreen) ToDo: test vlc test vdr(i have an usb stick dvb-t) Thank you everyone who helped me. Sum up the solution: The original script.bin is configured wrong for hw video playback.
  17. Hello, So my last idea is to set kernel config CMA=Y. Can someone tell me which menu in the configurator hold this attribute?
  18. Hello, I never terminated mpv or or other apps with CTRL+C. I have rights for disp i checked twice. Can server script.bin different from desktop? Maybe the problem is there. I found someting in the script.bin [disp_init] disp_init_enable = 1 disp_mode = 4 screen0_output_type = 4 #This is the VGA mode according to sunxi fex guide screen0_output_mode = 4 #720p50 screen1_output_type = 3 #This is the HDMI mode according to sunxi fex guide screen1_output_mode = 5 #720p60 fb0_framebuffer_num = 2 fb0_format = 10 fb0_pixel_sequence = 1 fb0_scaler_mode_enable = 0 fb1_framebuffer_num = 2 fb1_format = 10 fb1_pixel_sequence = 0 fb1_scaler_mode_enable = 0 I use VGA mode now thru HDMI connection. so i modified them but it wont helped at all.
  19. Display export not worked. dmesg
  20. Ok, i found the problem it was chmod i set it to 0660. Now i changed it to 777 and no segmentation fail...but we are back to black screen
  21. Yes, even my MATE desktop is only a core version, only thing i changed was the version of the mpv and ffmpeg i used the latest ones MPV: 0.18.0 FFMPEG: 3.1 I don't have any other media package installed only the suggested ones. Regards, Sp0T
  22. Yes that was the problem...i'm just tired. One question if i change libvdpau-sunxi (upstream) from dev to master do i have to rebuild mpv? Cause i got segmentation error with vdpau vo...With software decoding(x11) it works.
  23. @rella After i installed everything i got the following error: mpv: error while loading shared libraries: libavutil.so.55: cannot open shared object file: No such file or directory Than ldd ffmpeg: libavdevice.so.57 => not found libavfilter.so.6 => not found libavformat.so.57 => not found libavcodec.so.57 => not found libswresample.so.2 => not found libswscale.so.4 => not found libavutil.so.55 => not found libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6f36000) libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6f13000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6e23000) /lib/ld-linux-armhf.so.3 (0xb6fab000) After this i curios if this file is missing or not so i checked the library /usr/local/lib and all the files where there. Can you help me in this? Thanks, Sp0T
  24. Just a question. H3 kernel for A20?. And sure i'll test vlc
  25. @rellla I'm not ignoring what you suggest i'm following the instructions what you made here http://linux-sunxi.org/User:Rellla/Armbian. There are some parts when i run on error and ask suggestion here. Sometimes i get good ones sometimes i mess up the whole thing. All i would like to do is play videos with my Orange PI. The fastest way is if i install the desktop version but there i run into the black screen problem, that is why i would like to build my own desktop from the begining. Linux is new for me but i'm not afraid from failures also not noob for programing. I'll try it again till i wont succeed. I'm also very grateful that you help me, i know you have other things to do . Regards, Sp0T