Jump to content

dony71

Members
  • Posts

    128
  • Joined

  • Last visited

Posts posted by dony71

  1. Also notice "Service Classes: Unspecified"

    Try changing device class in /etc/bluetooth/main.conf as following:

    # Default device class. Only the major and minor device class bits are
    # considered.
    #Class = 0x000100 (from default config)
    Class = 0x100100

     

    But does not help, still "Service Classes: Unspecified"

     

     

    pi@bananapim2plus:~$ hciconfig -a hci0
    hci0:   Type: BR/EDR  Bus: UART
            BD Address: 43:43:A0:12:1F:AC  ACL MTU: 1021:8  SCO MTU: 64:1
            UP RUNNING
            RX bytes:758 acl:0 sco:0 events:20 errors:0
            TX bytes:343 acl:0 sco:0 commands:20 errors:0
            Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
            Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
            Link policy: RSWITCH SNIFF
            Link mode: SLAVE ACCEPT
            Name: 'BCM4343A0 26MHz AP6212_CL1-0061'
            Class: 0x000000
            Service Classes: Unspecified
            Device Class: Miscellaneous,
            HCI Version: 4.1 (0x7)  Revision: 0xf2
            LMP Version: 4.1 (0x7)  Subversion: 0x2122
            Manufacturer: Broadcom Corporation (15)
  2. I tried bluetooth again on OpenELEC and I can pair with the phone and connect to it, but using phone as a speaker has evidently some problems (too slow serial speed?). Nevertheless, there is some sound comming out, which means that bluetooth connection should work. Are you sure that you are running bluetoothd daemon in the background? This daemon is responsible for D-Bus communication with blueman (I might be wrong on that, not sure). Last but not least, according to ArchWiki, you have to be member of lp group.

     

    @Igor,

    What did you try to do? Commands, mentioned in my post, should work.

     

     

    bluetooth daemon is running (see below)

    the problem is bluetoothctl which suppose to control BT controller does not recognize BT controller device

     

    ------------------------------------------------------------------------------

    pi@bananapim2plus:~$ sudo systemctl status bluetooth
    â— bluetooth.service - Bluetooth service
       Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
       Active: active (running) since Wed 2016-06-08 12:17:16 EDT; 13min ago
         Docs: man:bluetoothd(8)
     Main PID: 652 (bluetoothd)
       Status: "Running"
       CGroup: /system.slice/bluetooth.service
               â””─652 /usr/lib/bluetooth/bluetoothd
     
    Jun 08 12:17:16 bananapim2plus bluetoothd[652]: Bluetooth daemon 5.23
    Jun 08 12:17:16 bananapim2plus bluetoothd[652]: Starting SDP server
    Jun 08 12:17:16 bananapim2plus systemd[1]: Started Bluetooth service.
    Jun 08 12:17:16 bananapim2plus bluetoothd[652]: Bluetooth management interfa...d
    Jun 08 12:17:19 bananapim2plus systemd[1]: Started Bluetooth service.
    Hint: Some lines were ellipsized, use -l to show in full.
  3. I found "bluetoothctl" cannot recognize BT controller

    Under bluetoothctl > list, does not show any controller

    Could it be still driver missing?

    I check raspberry pi 3 which using same AP6212 module, lsmod has btbcm

    bnep                   10336  2
    btbcm                   4196  1 hci_uart
    bluetooth             317981  7 bnep,btbcm,hci_uart
    rfkill                 16036  6 cfg80211,bluetooth

     

    However "modprobe btbcm"

    modprobe: FATAL: Module btbcm not found.

     

    Also I checkout nanopi2 patch which using AP6212 module as well

    (git clone https://github.com/jrspruitt/FriendlyARM_NanoPi_Buildroot_Ext.git)

     

    In ~/FriendlyARM_NanoPi_Buildroot_Ext/package/broadcom-bluetooth/Config.in

    -----------------------

    if BR2_INIT_SYSV || BR2_INIT_BUSYBOX
    config BR2_PACKAGE_BROADCOM_BLUETOOTH
            bool "brcm_patchram_plus"
        select BR2_PACKAGE_BLUEZ5_UTILS
     
            help
          Broadcom utility for loading firmware to
          Bluetooth devices.
     
    endif
    -----------------------------
    But cannot find this BR2_PACKAGE_BROADCOM_BLUETOOTH in Armbian source
     

    Maybe Armbian source needs this patch?

  4. Well, I'm preparing OpenELEC images and I fixed BananaPi M2+ bluetooth just today. I forgot "hciconfig hci0 up" command because I didn't need to use it on OE. Bluetooth is managed by scripts which are watching for changes in Kodi and everything is done automatically, except pairing.

     

    how you get pair in OpenELEC ?

    maybe i can follow the same method in armbian

  5. I edited my commands if anyone will look at them. I can't help you further as my system uses daemons which overtakes interfaces automatically and I don't really know what's going on behind.

     

    apt-get install bluez blueman

     

    after installed, bluetooth monitor in desktop also cannot find devices

    what do you mean by using daemons?

  6. what is the output of those commands?

     

    I got the answer .... need to do  "hciconfig hci0 up" then "hciconfig -a" will show 

     

    hci0:   Type: BR/EDR  Bus: UART

            BD Address: 43:43:A0:12:1F:AC  ACL MTU: 1021:8  SCO MTU: 64:1
            UP RUNNING
            RX bytes:7391 acl:0 sco:0 events:83 errors:0
            TX bytes:596 acl:0 sco:0 commands:37 errors:0
            Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
            Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
            Link policy: RSWITCH SNIFF
            Link mode: SLAVE ACCEPT
            Name: 'BCM4343A0 26MHz AP6212_CL1-0061'
            Class: 0x000000
            Service Classes: Unspecified
            Device Class: Miscellaneous,
            HCI Version: 4.1 (0x7)  Revision: 0xf2
            LMP Version: 4.1 (0x7)  Subversion: 0x2122
            Manufacturer: Broadcom Corporation (15)
     
    However I don't know how to do pairing for next step
    I'm doing "hcitool scan" then can see
     
    Scanning ...
            00:07:61:EE:CE:50       Dell BT Travel Mouse
     
    Then I'm doing following
     
    sudo bluetoothctl
    agent on
    default-agent
    pair 00:07:61:EE:CE:50
     
    then get
    Device 00:07:61:EE:CE:50 not available
     
    I thought BT controller already found "00:07:61:EE:CE:50       Dell BT Travel Mouse"
    but why not available?
  7.  

    yes, just copy /lib/firmware/ap6212/bcm43438a0.hcd to /etc/firmware/ap6212/4343A0.hcd and then type:

    echo "0" > /sys/class/rfkill/rfkill0/state
    echo "1" > /sys/class/rfkill/rfkill0/state
    echo " " > /dev/ttyS1
    hciattach /dev/ttyS1 bcm43xx 115200
    

    That should give you hci interface and can be checked with:

    hciconfig -a
    

     

    Nothing shows in devices.... anything else I'm missing?
     
    pi@bananapim2plus:~$ hcitool dev
    Devices:
  8. I run Armbian and Openelec on two separate orange Pi ones.

     

    The Open elec is a VERY paired down version of Linux and only runs the MEDIA player. All be it brilliantly.

     

    The Armbian is great for web surfing  and file serving etc. But I am not sure with all the Armbian processes running,  that there is enough Horse Power left in the system to run a HEVC highly compressed .mkv video file without the sound going out of sink etc.

     

    My very happy situation is a $12.00 Orange PI one for Openelec media centre and another Orange Pi One running  Armbian for everything else.

     

    running h.265 is no problem at all in armbian (to install, follow this http://forum.armbian.com/index.php/topic/1129-h265/)

    core utilization is pretty good also ~20%

    i think kodi should be working fine in armbian, but so far nobody has good recipe to install kodi in armbian

  9.  

     

     

    I try to compile again, try this time using x64 machine

    Got repository error this time

    Repo down?

     

    -----------------------------------------------------------------------------------------------------

    fatal: Could not read from remote repository.
     
    Please make sure you have the correct access rights
    and the repository exists.
    [ o.k. ] Starting Armbian build script [ @host ]
    [ o.k. ] Building [ Armbian 5.12 Bananapim2plus Debian jessie default ]
    [ o.k. ] Syncing clock [ host ]
    [ o.k. ] source downloading [ @host ]
    fatal: Could not read from remote repository.
     
    Please make sure you have the correct access rights
    and the repository exists.
    [ o.k. ] ... creating a shallow clone [ u-boot ]
    Cloning into '/home/user/Armbian/sources/u-boot/v'...
    fatal: Could not read from remote repository.
     
    Please make sure you have the correct access rights
    and the repository exists.
    /home/user/Armbian/lib/general.sh: line 162: cd: /home/user/Armbian/sources/u-boot/v: No such file or directory
    [ o.k. ] ... creating a shallow clone [ linux-sun8i sun8i ]
    Cloning into '/home/user/Armbian/sources/linux-sun8i/sun8i'...
    remote: Counting objects: 45250, done.
    remote: Compressing objects: 100% (40065/40065), done.
    remote: Total 45250 (delta 4576), reused 45249 (delta 4576), pack-reused 0
    Receiving objects: 100% (45250/45250), 126.32 MiB | 1.40 MiB/s, done.
    Resolving deltas: 100% (4576/4576), done.
    Checking connectivity... done.
    [ o.k. ] ... creating a shallow clone [ sunxi-tools ]
    Cloning into '/home/user/Armbian/sources/sunxi-tools'...
    remote: Counting objects: 55, done.
    remote: Compressing objects: 100% (49/49), done.
    remote: Total 55 (delta 18), reused 27 (delta 5), pack-reused 0
    Unpacking objects: 100% (55/55), done.
    Checking connectivity... done.
    [ o.k. ] ... creating a shallow clone [ sunxi-display-changer ]
    Cloning into '/home/user/Armbian/sources/sunxi-display-changer'...
    remote: Counting objects: 9, done.
    remote: Compressing objects: 100% (8/8), done.
    remote: Total 9 (delta 0), reused 7 (delta 0), pack-reused 0
    Unpacking objects: 100% (9/9), done.
    Checking connectivity... done.
    [ o.k. ] Compiling sunxi tools [ @host & target ]
    [ o.k. ] Cleaning [ linux-sun8i/sun8i ]
    /home/user/Armbian/lib/main.sh: line 212: cd: /home/user/Armbian/sources/u-boot/v: No such file or directory
    cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
    cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
    cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
    cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
    [ o.k. ] Started patching process for [ u-boot u-boot-default  ]
    [ o.k. ] Looking for user patches in [ userpatches/u-boot/u-boot-default ]
    [ o.k. ] ... add-awsom-uboot.patch [ succeeded ]
    [ o.k. ] ... add-cubieboard4.patch [ succeeded ]
    [ warn ] ... bananapi-enable-ldo4.patch [ failed ]
    [ warn ] ... u-boot-02-support-cheap-mmc.patch [ failed ]
    [ o.k. ] ... u-boot-99-add-missing-boards.patch [ succeeded ]
    [ error ] ERROR in function compile_uboot [ common.sh:29 ]
    [ error ] Error building u-boot: source directory does not exist [ u-boot/v ]

     

     

    yeah, repo down

    now is ok

  10. I try to compile again, try this time using x64 machine

    Got repository error this time

    Repo down?

     

    -----------------------------------------------------------------------------------------------------

    fatal: Could not read from remote repository.
     
    Please make sure you have the correct access rights
    and the repository exists.
    [ o.k. ] Starting Armbian build script [ @host ]
    [ o.k. ] Building [ Armbian 5.12 Bananapim2plus Debian jessie default ]
    [ o.k. ] Syncing clock [ host ]
    [ o.k. ] source downloading [ @host ]
    fatal: Could not read from remote repository.
     
    Please make sure you have the correct access rights
    and the repository exists.
    [ o.k. ] ... creating a shallow clone [ u-boot ]
    Cloning into '/home/user/Armbian/sources/u-boot/v'...
    fatal: Could not read from remote repository.
     
    Please make sure you have the correct access rights
    and the repository exists.
    /home/user/Armbian/lib/general.sh: line 162: cd: /home/user/Armbian/sources/u-boot/v: No such file or directory
    [ o.k. ] ... creating a shallow clone [ linux-sun8i sun8i ]
    Cloning into '/home/user/Armbian/sources/linux-sun8i/sun8i'...
    remote: Counting objects: 45250, done.
    remote: Compressing objects: 100% (40065/40065), done.
    remote: Total 45250 (delta 4576), reused 45249 (delta 4576), pack-reused 0
    Receiving objects: 100% (45250/45250), 126.32 MiB | 1.40 MiB/s, done.
    Resolving deltas: 100% (4576/4576), done.
    Checking connectivity... done.
    [ o.k. ] ... creating a shallow clone [ sunxi-tools ]
    Cloning into '/home/user/Armbian/sources/sunxi-tools'...
    remote: Counting objects: 55, done.
    remote: Compressing objects: 100% (49/49), done.
    remote: Total 55 (delta 18), reused 27 (delta 5), pack-reused 0
    Unpacking objects: 100% (55/55), done.
    Checking connectivity... done.
    [ o.k. ] ... creating a shallow clone [ sunxi-display-changer ]
    Cloning into '/home/user/Armbian/sources/sunxi-display-changer'...
    remote: Counting objects: 9, done.
    remote: Compressing objects: 100% (8/8), done.
    remote: Total 9 (delta 0), reused 7 (delta 0), pack-reused 0
    Unpacking objects: 100% (9/9), done.
    Checking connectivity... done.
    [ o.k. ] Compiling sunxi tools [ @host & target ]
    [ o.k. ] Cleaning [ linux-sun8i/sun8i ]
    /home/user/Armbian/lib/main.sh: line 212: cd: /home/user/Armbian/sources/u-boot/v: No such file or directory
    cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
    cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
    cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
    cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
    [ o.k. ] Started patching process for [ u-boot u-boot-default  ]
    [ o.k. ] Looking for user patches in [ userpatches/u-boot/u-boot-default ]
    [ o.k. ] ... add-awsom-uboot.patch [ succeeded ]
    [ o.k. ] ... add-cubieboard4.patch [ succeeded ]
    [ warn ] ... bananapi-enable-ldo4.patch [ failed ]
    [ warn ] ... u-boot-02-support-cheap-mmc.patch [ failed ]
    [ o.k. ] ... u-boot-99-add-missing-boards.patch [ succeeded ]
    [ error ] ERROR in function compile_uboot [ common.sh:29 ]
    [ error ] Error building u-boot: source directory does not exist [ u-boot/v ]
  11. Remove sources, that you force clean download, and I think it should work.

     

    I delete all and redo git which means compile from clean

    But still same problem

    My host Ubuntu 14.04 x86 not x64, is it matters?

     

      │ arch/arm/mach-sunxi/power/brom/gen_check_code: 1: arch/arm/mach-sunxi/power/ │  
      │ make[3]: *** [arch/arm/mach-sunxi/power/brom/resumes.code] Error 2           │  
      │ make[2]: *** [arch/arm/mach-sunxi/power/brom/resumes.code] Error 2           │  
      │ make[1]: *** [arch/arm/mach-sunxi/power] Error 2                             │  
      │ make: *** [arch/arm/mach-sunxi] Error 2                                      â”‚  
      └──────────────────────────────────────────────────────────────────────────────┘  
        
     
     
    [ error ] ERROR in function compile_kernel [ common.sh:179 ]
    [ error ] Kernel was not built [ @host ]
    [ o.k. ] Process terminated #
    user@ubuntuvm:~/Armbian$ 
  12. Hi Igor,

     

    I have build error based on latest source on github

    Target platform banana pi m2+

    Anything I'm missing?

     

      │   AS      arch/arm/mach-sunxi/power/brom/resumes.o                           │  
      │   CC      arch/arm/mach-sunxi/power/brom/resume_head.o                       │  
      │ arch/arm/mach-sunxi/power/brom/gen_check_code: 1: arch/arm/mach-sunxi/power/ │  
      │ make[3]: *** [arch/arm/mach-sunxi/power/brom/resumes.code] Error 2           │  
      │ make[2]: *** [arch/arm/mach-sunxi/power/brom/resumes.code] Error 2           │  
      │ make[1]: *** [arch/arm/mach-sunxi/power] Error 2                             │  
      │ make: *** [arch/arm/mach-sunxi] Error 2                                      â”‚  
      └──────────────────────────────────────────────────────────────────────────────┘  
        
     
     
    [ error ] ERROR in function compile_kernel [ common.sh:184 ]
    [ error ] Kernel was not built [ @host ]
    [ o.k. ] Process terminated #
  13. See earlier reply to your post. Remote desktop solutions are not geared at playing videos remotely. The reason you can comfortably view videos locally is GPU acceleration. Available bandwidth and necessary encoding/decoding for remote viewing make it very unlikely to arrive at at satisfactory solution. Stream your data and view it directly. Your sources of information would be mpv-forums.

     

    Good luck.

     

    seems no way to do -vo vdpau remotely, but -vo x11 has video, but off course slow since not hw accel

  14. KERNEL=="mali", MODE="0660", GROUP="video"
    KERNEL=="ump", MODE="0660", GROUP="video"
    KERNEL=="disp", MODE="0660", GROUP="video"
    KERNEL=="fb*", MODE="0660", GROUP="video"
    KERNEL=="cedar_dev", MODE="0660", GROUP="video"
    KERNEL=="ion", MODE="0660", GROUP="video"
    
    

    You may try this as well. Or just start everything from scratch on clean image. This manual building is a little catchy and i always have sort of different results in every new try, even if i follow exactly the same steps.

     

    Add those permission in 50-mali.rules in /etc/udev/rules.d helps. Now mpv working when playing locally

    Now I try to play mpv via remote using X2GO

    mpv is executing well, but no video (blank)

    I don't see any error message either ....

    You have any idea what's I'm missing?

     

    pi@bananapim2plus:~/Videos$ mpv Wildlife.wmv 
    Playing: Wildlife.wmv
     (+) Video --vid=1 (vc1)
     (+) Audio --aid=1 --alang=eng (wmav2)
    File tags:
     Comment: Footage: Small World Productions, Inc; Tourism New Zealand | Producer: Gary F. Spradling | Music: Steve Ball
     Title: Wildlife in HD
    [VDPAU SUNXI] VE version 0x1680 opened
    [VDPAU SUNXI] OSD enabled, using pixman
    AO: [alsa] 44100Hz stereo 2ch s32
    Using software decoding.
    VO: [vdpau] 1280x720 yuv420p
    [osd/libass] PlayResX undefined, setting to -1
    [VDPAU SUNXI] Presentation time not supported
    AV: 00:00:10 / 00:00:30 (33%) A-V: -0.012

    post-1092-0-75098200-1463682088_thumb.jpg

  15. Can someone please enlighten me why it should be necessary going through 'this manual building' at all? We provide Server and Desktop versions of our OS images. The desktop version at least for H3/A10/A20 should already contain all the stuff that's needed to get HW accelerated video decoding (using mpv -- list of supported codes is still here). So where's the benefit trying to build this stuff from source?

     

    I still want to understand the whole issue so that we might eventually be able to save users the hassles going through this since we simply add the missing stuff to the build system. Shouldn't it be better to improve the build process so that everything that's needed is part of a new Armbian image (and comes with apt-get update/upgrade)?

     

    Hi Kaiser,

     

    I have desktop image from armbian.com for banana pi m2 plus platform and mpv is not working with that fresh image

    Since not working, then try apt-get update and apt-get upgrade, but still not working

    That's why I'm trying different things

  16. Huh, this is my favorite developers behavior. Make some minor change and ruin something that hasn't any problems before. You are right, i check it and my "fix" doesn't work any more. The primitives.cpp file is the same, except those 2 lines, but built failing with or without it. And i have to note, the whole last lines of this file are the "fix" for ARM architecture, discovered before, but this checking in "#if ENABLE_ASSEMBLY && X265_ARCH_ARM == 0" doesn't work, so i just remove it. Maybe it's because there is separate build instructions for ARM - ARM Instructions, but when i try to execute "./make-Makefiles.bash" in "x265/build/arm-linux" i got permission denied, but you may try this as well if you know what to fix, i can only guess, it searching for something missing in armbian system.

    Anyway, i can suggest you to using old working source, before those changes, for now. I upload it here - http://upload.bg/?get_file=87234dc02d9099cb8aedc5b156ce4468b155a41b . And i intend to keep to it until someone find solution for newest version. Basically, if you try this on OrangePi PC, you should not need to build it, just untar it, enter "x265/build/linux" and execute "sudo make install". If something is not right (for example, because i use X11 version of mali driver, instead of framebuffer, as in Armbian Desktop), built it again with the above steps and maybe clean old build files before this, comparing with original source. As far, as i remember, only make-Makefiles.bash, need to be in x265/build/linux .

     

    I manage to get it working

    What I did, comment out in x265/source/common/primitives.cpp

     
    /*
    #if X265_ARCH_ARM
    void PFX(cpu_neon_test)(void) {}
    int PFX(cpu_fast_neon_mrc_test)(void) { return 0; }
    #endif // X265_ARCH_ARM
    */
     
    then after execute ./make-Makefiles.bash, need to choose "ENABLE_PIC = ON" then press c, g
     
    everything compile OK

    however now I have problem execute mpv, got this error below

    any idea? 
     
    pi@bananapim2plus:~/Videos$ mpv Wildlife.wmv 
    Playing: Wildlife.wmv
     (+) Video --vid=1 (vc1)
     (+) Audio --aid=1 --alang=eng (wmav2)
    File tags:
     Comment: Footage: Small World Productions, Inc; Tourism New Zealand | Producer: Gary F. Spradling | Music: Steve Ball
     Title: Wildlife in HD
    [vo/vdpau] Error when calling vdp_device_create_x11: 25
    Error opening/initializing the selected video_out (-vo) device.
    Video: no video
     
  17. RagnerBG,

     

    I couldn't find 

    - #if ENABLE_ASSEMBLY && X265_ARCH_ARM == 0

    in

    x265/source/common/primitives.cpp

    but I find 

    #if X265_ARCH_ARM

     

    so I remove this.
    However while "make -j4", I have this error
    Scanning dependencies of target common
    [ 21%] Built target encoder
    [ 22%] Building CXX object common/CMakeFiles/common.dir/primitives.cpp.o
    [ 56%] Built target common
    Linking CXX shared library libx265.so
    Linking CXX static library libx265.a
    /usr/bin/ld: encoder/CMakeFiles/encoder.dir/analysis.cpp.o: relocation R_ARM_MOVW_ABS_NC against `_ZN4x26510g_log2SizeE' can not be used when making a shared object; recompile with -fPIC
    encoder/CMakeFiles/encoder.dir/analysis.cpp.o: error adding symbols: Bad value
    collect2: error: ld returned 1 exit status
    CMakeFiles/x265-shared.dir/build.make:220: recipe for target 'libx265.so.84' failed
    make[2]: *** [libx265.so.84] Error 1
    CMakeFiles/Makefile2:158: recipe for target 'CMakeFiles/x265-shared.dir/all' failed
    make[1]: *** [CMakeFiles/x265-shared.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    [ 77%] Built target x265-static
    Makefile:117: recipe for target 'all' failed
    make: *** [all] Error 2
     
  18. which directory is the best for mounting  usb hdd

    under /media or  /tmp ?

    my understanding /tmp is mounted to memory while /media is mounted to sdcard

    which mean when mounting to /media then can reduce life time of sdcard while often writing

    am i understanding correctly?

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines