dony71
-
Posts
128 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by dony71
-
-
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 serviceLoaded: loaded (/lib/systemd/system/bluetooth.service; enabled)Active: active (running) since Wed 2016-06-08 12:17:16 EDT; 13min agoDocs: man:bluetoothd(8)Main PID: 652 (bluetoothd)Status: "Running"CGroup: /system.slice/bluetooth.service└─652 /usr/lib/bluetooth/bluetoothdJun 08 12:17:16 bananapim2plus bluetoothd[652]: Bluetooth daemon 5.23Jun 08 12:17:16 bananapim2plus bluetoothd[652]: Starting SDP serverJun 08 12:17:16 bananapim2plus systemd[1]: Started Bluetooth service.Jun 08 12:17:16 bananapim2plus bluetoothd[652]: Bluetooth management interfa...dJun 08 12:17:19 bananapim2plus systemd[1]: Started Bluetooth service.Hint: Some lines were ellipsized, use -l to show in full. -
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,bluetoothHowever "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_BUSYBOXconfig BR2_PACKAGE_BROADCOM_BLUETOOTHbool "brcm_patchram_plus"select BR2_PACKAGE_BLUEZ5_UTILShelpBroadcom utility for loading firmware toBluetooth devices.endif-----------------------------But cannot find this BR2_PACKAGE_BROADCOM_BLUETOOTH in Armbian sourceMaybe Armbian source needs this patch?
-
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
-
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?
-
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:1UP RUNNINGRX bytes:7391 acl:0 sco:0 events:83 errors:0TX bytes:596 acl:0 sco:0 commands:37 errors:0Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3Link policy: RSWITCH SNIFFLink mode: SLAVE ACCEPTName: 'BCM4343A0 26MHz AP6212_CL1-0061'Class: 0x000000Service Classes: UnspecifiedDevice Class: Miscellaneous,HCI Version: 4.1 (0x7) Revision: 0xf2LMP Version: 4.1 (0x7) Subversion: 0x2122Manufacturer: Broadcom Corporation (15)However I don't know how to do pairing for next stepI'm doing "hcitool scan" then can seeScanning ...00:07:61:EE:CE:50 Dell BT Travel MouseThen I'm doing followingsudo bluetoothctlagent ondefault-agentpair 00:07:61:EE:CE:50then getDevice 00:07:61:EE:CE:50 not availableI thought BT controller already found "00:07:61:EE:CE:50 Dell BT Travel Mouse"but why not available? -
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 devDevices: -
how about on-board bluetooth? anybody get it working?
-
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
-
i have banana pi m2plus and compile latest armbian
after starting x11, i get "could not connect to wicd's d-bus interface..."
no error shown in /var/log/wicd/wicd.log and wicd seems to be working
also bcmdhd loaded, but when trying to connect wifi, cannot get ip
any idea?
-
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 rightsand 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 rightsand 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 rightsand 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 0Receiving 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 0Unpacking 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 0Unpacking 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 directorycat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directorycat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directorycat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directorycat: /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
-
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 rightsand 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 rightsand 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 rightsand 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 0Receiving 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 0Unpacking 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 0Unpacking 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 directorycat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directorycat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directorycat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directorycat: /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 ] -
Didn't know about that. Thanks!
@dony71
Try now.
compile finished, however cannot boot with image burnt into sdcard
mount image "sudo mount -o offset=1048576 -t ext4 /media/sdcard" shows failure image wrong format
what is the format of image?
-
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$ -
Most critical part is your host. What are you using? Any changes to the configuration?
Ubuntu 14.4 LTS as follow armbian suggestion
No change in configuration
Btw, build process could finish without any problem from git source a week ago
I notice you update source couple days ago, maybe because of that some code broken?
-
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 # -
-
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
-
Update for Armbian_5.10 :
Instructions for remote desktop servers ( xrdp, x2goserver ) and clients ( rdesktop,x2goclient ) are valid and successfully tested on Armbian_5.10.
Did you try to play mpv video remotely using x2goclient?
I have mpv blank video display from remote side
Any idea what's I'm missing?
-
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.wmvPlaying: 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 BallTitle: Wildlife in HD[VDPAU SUNXI] VE version 0x1680 opened[VDPAU SUNXI] OSD enabled, using pixmanAO: [alsa] 44100Hz stereo 2ch s32Using software decoding.VO: [vdpau] 1280x720 yuv420p[osd/libass] PlayResX undefined, setting to -1[VDPAU SUNXI] Presentation time not supportedAV: 00:00:10 / 00:00:30 (33%) A-V: -0.012 -
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
-
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_ARMvoid 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, geverything compile OKhowever now I have problem execute mpv, got this error below
any idea?pi@bananapim2plus:~/Videos$ mpv Wildlife.wmvPlaying: 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 BallTitle: Wildlife in HD[vo/vdpau] Error when calling vdp_device_create_x11: 25Error opening/initializing the selected video_out (-vo) device.Video: no video -
RagnerBG,
I couldn't find
- #if ENABLE_ASSEMBLY && X265_ARCH_ARM == 0
in
x265/source/common/primitives.cpp
but I find
#if X265_ARCH_ARMso I remove this.However while "make -j4", I have this errorScanning dependencies of target common[ 21%] Built target encoder[ 22%] Building CXX object common/CMakeFiles/common.dir/primitives.cpp.o[ 56%] Built target commonLinking CXX shared library libx265.soLinking 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 -fPICencoder/CMakeFiles/encoder.dir/analysis.cpp.o: error adding symbols: Bad valuecollect2: error: ld returned 1 exit statusCMakeFiles/x265-shared.dir/build.make:220: recipe for target 'libx265.so.84' failedmake[2]: *** [libx265.so.84] Error 1CMakeFiles/Makefile2:158: recipe for target 'CMakeFiles/x265-shared.dir/all' failedmake[1]: *** [CMakeFiles/x265-shared.dir/all] Error 2make[1]: *** Waiting for unfinished jobs....[ 77%] Built target x265-staticMakefile:117: recipe for target 'all' failedmake: *** [all] Error 2 -
Hmm... maybe we should really remove every bit of code for M2+? They again start to violate the GPL, provide their new kernel release with fixed WiFi drivers only as binary and do not update the sources?
source is there now
https://github.com/BPI-SINOVOIP/BPI-M2P-bsp/tree/master/linux-sunxi/drivers/net/wireless/bcmdhd
-
Banana Pi M2plus & inboard wifi [solved]
in Allwinner sunxi
Posted
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"