radosek21 Posted August 11, 2015 Share Posted August 11, 2015 As soon as I installed the latest version of the Wheezy I have found that there is some problem with an USB. When I start my Orange PI I can see that USB devices are power supplied from the bus only first a few seconds (when the bootloader is active I guess) and then being switched off. When I plug an USB device and supply it externally then it seems to be working well. My question is: how to switch on power supply of the USB port on my Orange PI? I have read a number of linux forums and found nothing. Very promising seems a command echo on > /sys/bus/usb/devices/usb1/power/level or similar but unfortunately it has no effect. Any hint, guys? Thanks a lot. Radek Link to comment Share on other sites More sharing options...
Igor Posted August 11, 2015 Share Posted August 11, 2015 Latest U-boot has direct support for Orange Pi mini while there is no support for it in kernel. In any of it - talking about stable kernels. Haven't search the dev zone. My question is: how to switch on power supply of the USB port on my Orange PI? For which kernel? Link to comment Share on other sites More sharing options...
radosek21 Posted August 11, 2015 Author Share Posted August 11, 2015 Hello Igor. Thanks for reply. My kernel is 4.1.2-orangepi. Br, Radek Link to comment Share on other sites More sharing options...
Igor Posted August 11, 2015 Share Posted August 11, 2015 sun7i-a20-orangepi-mini.zip Try this orangepi mini blob. Copy to /boot/dtb and alter boot scripts to point to this file. Or just unpack and copy over sun7i-a20-orangepi.dtb Link to comment Share on other sites More sharing options...
radosek21 Posted August 12, 2015 Author Share Posted August 12, 2015 Excellent job Igor. Thank you very much and have a nice day. Br, Radek 1 Link to comment Share on other sites More sharing options...
Schlechter Posted August 25, 2015 Share Posted August 25, 2015 Dear Igor, please, can You explain me step-by-step (because I'm a noob) how can I make usable with Orange Pi mini your Desktop Trusty image (Kernel 3.4.108 with HW accelerated video playback)? When I just boot image, I have dead USB, even OTG, when I try to do according your recommendation (maybe I do it wrong), I have nothing. Link to comment Share on other sites More sharing options...
Igor Posted August 25, 2015 Share Posted August 25, 2015 The solution we are talking here is for a new / vanilla kernel (www.kernel.org) which uses standard Device Tree. I don't have a proven .fex file for Orange PI mini , neither I have a board to adjust .fex. If you can tell me which official / semi official image is working ok, I / you can salvage that file (script.bin). ... and your USB ports will be operational. Link to comment Share on other sites More sharing options...
Schlechter Posted August 25, 2015 Share Posted August 25, 2015 If it may be helpfull, my Orange Pi mini now is operating under Lubuntu from this link. But it based on kernel 3.4.90 armv7l. Also I've a bit tried to use your Debian image for Orange Pi (not mini) from your site Both have working USB I beg your pardon for stupid questions, but it is hard way of beginner - to be a clown for Masters Link to comment Share on other sites More sharing options...
Igor Posted August 25, 2015 Share Posted August 25, 2015 Ahaa, you are using image designed for Cubietruck or Banana. There are small differences between those boards. You can simply relink board definitions. Login as root and type: ln -sf /boot/bin/orangepi.bin /root/script.bin reboot Or use this image: http://mirror.igorpecovnik.com/Armbian_4.2_Orangepi_Ubuntu_trusty_3.4.108_desktop.zip Not yet officially released and also you might need to wait for a file to get mirrored to the server. Up to one hour from now. Link to comment Share on other sites More sharing options...
Schlechter Posted August 27, 2015 Share Posted August 27, 2015 Igor, it's awesome, thank You Bit of features - HW mouse pointer not working, but SW works fine. And what about sound over HDMI? Do You know if can it works with this core or there is no sense to try?And one more question - how can I check to be sure about HW video acceleration is working? Mplayer with "-zoom" option is very slow. If HW acceleration works in this case, my hope about multimedia capabilities of Orange under Linux is crashed Link to comment Share on other sites More sharing options...
Igor Posted August 27, 2015 Share Posted August 27, 2015 I used the default driver implementation - check what an how it works: http://linux-sunxi.org/Cedrus It's not user friendly but hacker friendly Playing of video is normal. In window or full screen. HDMI audio is possible to achieve. http://linux-sunxi.org/Audio_Codec Link to comment Share on other sites More sharing options...
Schlechter Posted August 27, 2015 Share Posted August 27, 2015 Thanks a lot, I'll try Link to comment Share on other sites More sharing options...
Schlechter Posted August 30, 2015 Share Posted August 30, 2015 I've fixed a sound over HDMI according your recommendation without any problem, but about HW acceleration of video I have no enough experience to understand WTF: Step-by-step all was checked and done, but... root@orangepi:~# mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, *avi MPlayer 1.1-4.8 © 2000-2012 MPlayer Team__blah-blah-blah__Playing The.Simpsons_S03_E01_Stark.Raving.Dad.avi.libavformat version 54.20.4 (external)Mismatching header version 54.20.3AVI file format detected.[aviheader] Video stream found, -vid 0[aviheader] Audio stream found, -aid 1VIDEO: [XVID] 640x480 12bpp 23.976 fps 941.3 kbps (114.9 kbyte/s)Clip info:__blah-blah-blah__Error opening/initializing the selected video_out (-vo) device.==========================================================================Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders__blah-blah-blah__ ...and sound only, no video Link to comment Share on other sites More sharing options...
Igor Posted August 30, 2015 Share Posted August 30, 2015 Check if XVID codec is supported. I think it's not. Try if sample video is working: http://samplemedia.linaro.org/H264/big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4 Link to comment Share on other sites More sharing options...
Recommended Posts