dony71
-
Posts
128 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by dony71
-
-
I have problem now playing from local audio output alsa
I want to play from card 1 : snddaudio
Anybody help?
/etc/forked-daapd.conf
----------------------------------------------------------------------------
# Local audio outputaudio {# Name - used in the speaker list in Remotenickname = "BPi-M2P"# Type of the output (alsa, pulseaudio or dummy)type = "alsa"# Audio PCM device name for local audio output - ALSA only#card = "default"card = "snddaudio"# Mixer channel to use for volume control - ALSA only# If not set, PCM will be used if available, otherwise Master.# mixer = ""# Mixer device to use for volume control - ALSA only# If not set, the value for "card" will be used.# mixer_device = ""# Syncronization# If your local audio is out of sync with AirPlay, you can adjust this# value. Positive values correspond to moving local audio ahead,# negative correspond to delaying it. The unit is samples, where is# 44100 = 1 second. The offset must be between -44100 and 44100.# offset = 0}/var/log/forked-daapd.log----------------------------------.....[2017-01-13 00:45:34] [ LOG] laudio: Unknown PCM snddaudio[2017-01-13 00:45:34] [ LOG] laudio: Could not open playback device: No such file or directory[2017-01-13 00:45:34] [ LOG] player: Could not start ALSA device 'BPi-M2P'[2017-01-13 00:45:34] [ LOG] player: Could not activate ALSA device 'BPi-M2P'aplay -l-----------------------------------
**** List of PLAYBACK Hardware Devices ****card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC sndcodec-0 []Subdevices: 1/1Subdevice #0: subdevice #0card 1: snddaudio [snddaudio], device 0: SUNXI-TDM0 snddaudio-0 []Subdevices: 1/1Subdevice #0: subdevice #0card 2: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []Subdevices: 0/1Subdevice #0: subdevice #0 -
is it possible to do autorun in systemd ??
cannot start with below /etc/systemd/system/forked-daapd.service
===============================================
[unit]Description=DAAP/DACP (iTunes), RSP and MPD server, supports AirPlay and RemoteAfter=network.target sound.target[service]ExecStart=/usr/sbin/forked-daapd -f# Restart, but not more than once every 10 minutesRestart=on-failureStartLimitBurst=2StartLimitInterval=600[install]WantedBy=multi-user.target -
Thanks, compile fine now
For armbian, there is no package libgnutls-dev, instead libgnutls28-dev
-
found issue related to --enable-chromecast
my configure script :
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-chromecastany idea what's missing here to enable chromecast? -
I have also this warning below during ./configure
Not sure whether this is related to the error?configure: WARNING:****** The config script /usr/bin/libgcrypt-config was*** built for arm-unknown-linux-gnueabihf and thus may not match the*** used host armv7l-unknown-linux-gnueabihf.*** You may want to use the configure option --with-libgcrypt-prefix*** to specify a matching config script.***checking for gpg-error-config... /usr/bin/gpg-error-configchecking for GPG Error - version >= 1.6... yes (1.17)configure: WARNING:****** The config script /usr/bin/gpg-error-config was*** built for arm-unknown-linux-gnueabihf and thus may not match the*** used host armv7l-unknown-linux-gnueabihf.*** You may want to use the configure option --with-gpg-error-prefix*** to specify a matching config script or use $SYSROOT.*** -
compile failed ... any idea?
~/Downloads/forked-daapd$ makemake all-recursivemake[1]: Entering directory '/home/pi/Downloads/forked-daapd'Making all in sqlextmake[2]: Entering directory '/home/pi/Downloads/forked-daapd/sqlext'/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -D_LARGEFILE_SOURCE -avoid-version -module -shared -lprotobuf-c -o forked-daapd-sqlext.la -rpath /usr/lib/forked-daapd sqlext.lo -lunistring -lpthreadlibtool: link: gcc -shared -fPIC -DPIC .libs/sqlext.o -lprotobuf-c -lunistring -lpthread -O2 -Wl,-soname -Wl,forked-daapd-sqlext.so -o .libs/forked-daapd-sqlext.so/usr/bin/ld: cannot find -lprotobuf-ccollect2: error: ld returned 1 exit statusMakefile:435: recipe for target 'forked-daapd-sqlext.la' failedmake[2]: *** [forked-daapd-sqlext.la] Error 1make[2]: Leaving directory '/home/pi/Downloads/forked-daapd/sqlext'Makefile:534: recipe for target 'all-recursive' failedmake[1]: *** [all-recursive] Error 1make[1]: Leaving directory '/home/pi/Downloads/forked-daapd'Makefile:401: recipe for target 'all' failedmake: *** [all] Error 2 -
I run mpd on port 6680 in OPi
No problem if reaching in local network (localhost:6680)
Now I try to reach from internet, but verifying with http://www.yougetsignal.com/tools/open-ports/
port is still closed. I try forwarding all other port in OPi like sshd port 22 also closed
I'm pretty sure I set correctly port forwarding in my router because my NAS can work with same iptables rule. It seems something wrong in OPi setting, but couldn't find out what's wrong. Anybody help?
#iptables -LChain INPUT (policy ACCEPT)target prot opt source destinationChain FORWARD (policy ACCEPT)target prot opt source destinationChain OUTPUT (policy ACCEPT)target prot opt source destination#netstat -lActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address Statetcp 0 0 *:6680 *:* LISTEN -
I have BPI-M2+
shutdown -P now or poweroff does not power off the board
Board is just halted and fan is still spinning
Anyway to power off the board completely?
-
can you try to change "sample_resolution = 24" in script.bin
see below in details under [pcm0]
https://github.com/igorpecovnik/lib/blob/master/config/fex/bananapim2plus.fex
-
Yes. use WiringOP from WereCatf https://github.com/WereCatf/WiringOP
example(from my )
void rpmInterrupt(void) { pulseCounter++; } .... void rpmFan(void) { pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); wiringPiSetup () ; pinMode(PIN_RPM, INPUT); pullUpDnControl (PIN_RPM, PUD_UP) ; wiringPiISR (PIN_RPM, INT_EDGE_FALLING, &rpmInterrupt); while (1) { rpm=(pulseCounter/HALL_PULSE)*60 ; pulseCounter = 0; delayMicroseconds ( 1000000 ); //cheÑk every 1 second } }
It works. But this is C++
any python wrapper for this?
-
RPi has this interrupt driven GPIO input detection
GPIO.add_event_detect(pin_number, GPIO.BOTH, callback=callback_function)
Orange Pi has already this python GPIO function
https://github.com/duxingkei33/orangepi_PC_gpio_pyH3
But I see only gpio.input(pin_number) function for GPIO input detection
Anybody can answer whether possible to substitute RPi interrupt driven GPIO input detection?
-
I have armbian 5.17 and notice sometimes cron does not work after reboot
To verify this, I issue "pgrep cron" and nothing comes out
How cron is started in armbian?
I take a look on /etc/rcx.d ... nothing start there
Can somebody explain?
-
VLC from repositories is not working well. vdpau is not working and there are various problems, making it useless. I managed to build it from source only once and it worked like a charm with all functions. I even keep this image. But all my attempts to build it again later failed, because i forgot how i do it first time. I can't beat this - "Makefile:8801: recipe for target 'codec/avcodec/libswscale_plugin_la-chroma.lo' failed".
Instead of VLC i use SMPlayer with mpv - better image quality, everything build from source with no problems for last versions and work very stable. It can stream network videos as well as VLC and with SMTube browser it's even better. Even if it's no problem, if anyone want i will post the steps to build mpv, smplayer, smtube, etc. But it's possible the old version of SMPlayer from repositories to work as well with build-in mpv in Armbian desktop images (never tried).
Will you kindly let me know step by step how to install SMTube using vdpau?
-
May I know what's max PCM rate supported in kernel?
Does it support 384K like in Odroid C1/C2 ?
(https://github.com/hardkernel/linux/blob/odroidc2-3.14.y/include/sound/pcm.h#L115)
-
Some progress in bluetooth now can be seen by bluetoothctl and blueman
also I can pair bluetooth mouse
install blueman >>> sudo apt-get install blueman
add user in bluetooth group >>> sudo usermod -a -G bluetooth $USER
enable hid input device module by adding "hidp" in /etc/modules-load.d/modules.conf
init bluetooth start up in boot by adding this below in /etc/rc.local
/etc/init.d/bluetooth stop
rfkill unblock allecho " " > /dev/ttyS1
hciattach -t 5 /dev/ttyS1 bcm43xx 1500000
hciconfig hci0 up/etc/init.d/bluetooth start
still issue, cannot pair any devices which needs authentication key such as bluetooth keyboard, bluetooth PAN
somehow bluetooth controller timeout authentication key very fast within a second
-
@dony71
Yes, I can pair with clients.
But I cannot establish pan connection with internal controler (I can do it with external usb). Bluetooth report bnep protocol and nap profile via sdp, it register service locally, but bridging fail - it seems that in fact the creation of bnep interface silently fail.
N.B. I have done a lot of thing : recompiled bluez, removed systemd, but I think bnep creation is a bug (one more) in bluez or configuration problem. And I always have to do hciattach 2 times before it download firmware.
how do you pair?
i try to use bluetoothctl, but when i do pair, get authentication failure
on my iphone, there is pop up message "pairing unsuccessful. pairing took too long.
make sure bananapim2plus is turned on, in range, and is ready to pair"
======================================
pi@bananapim2plus:~$ sudo bluetoothctl[NEW] Controller 43:43:A0:12:1F:AC bananapim2plus [default][NEW] Device F8:27:93:1D:AB:E3 iPhone (5S)[bluetooth]# pair F8:27:93:1D:AB:E3Attempting to pair with F8:27:93:1D:AB:E3[CHG] Device F8:27:93:1D:AB:E3 Connected: yesFailed to pair: org.bluez.Error.AuthenticationFailed[CHG] Device F8:27:93:1D:AB:E3 Connected: no -
yeap, it's working
thanks
-
Hi to All,
After some time without problems around RPI-Monitor I get into installation one.
There is a view changes after my last build: Armbian rev. from 5.12 to 5.14; Kernel rev. from 4.5.5 to 4.6.2.
When in firstrun script RPI-Minitor has to be installed apt-get rises following errors:
Get:46 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US Get:47 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en Get:48 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US.UTF-8 Err https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Packages Bad header line Get:49 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US Ign https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US Get:50 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en Ign https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en Get:51 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US.UTF-8 Ign https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US.UTF-8 Fetched 11.5 MB in 18s (625 kB/s) W: Failed to fetch https://github.com/XavierBerger/RPi-Monitor-deb/raw/master/repo/Packages Bad header line E: Some index files failed to download. They have been ignored, or old ones used instead.
and the package and its dependencies can not be installed.
I did not find a way to solve the problem so install them manually.
Any ideas how to install RPI-Minitor at the customization process preferably or using apt-get at the firstrun script?
Best regards
Chris
install manually, but get error below
what's wrong???
pi@bananapim2plus:~/Downloads$ sudo dpkg -i rpimonitor_latest_all.debdpkg-deb: error: `rpimonitor_latest_all.deb' is not a debian format archivedpkg: error processing archive rpimonitor_latest_all.deb (--install):subprocess dpkg-deb --control returned error exit status 2Errors were encountered while processing:rpimonitor_latest_all.deb -
I have a CSR usr Bluetooth dongle but it is not usable on my bpiM2+ with kernel 3.4.112-sun8i.
I can make bluetoothd reconize my TWO controlers ONLY so :
* copy firmware to /etc/firmware/ap6212/4343A0.hcd
* stop bluetooth (and unload btusb used by by CSR dongle)
* unblock rfkill
* init bcm43xx with hciattach (first try fail on timeout but seems to enable correct registration of CSR USB dongle)
* 2nd init with hciattach which load firmware
* bring up interfaces and reload btusb
something like this :
rmmod btusb
/etc/init.d/bluetooth stop
rfkill unblock all
hciattach -t 1 /dev/ttyS1 bcm43xx 115200
hciattach -t 5 /dev/ttyS1 bcm43xx 115200
hciconfig hci0 up
modprobe btusb
hciconfig hci1 up
If I dont do that, bluetoothd complains :
localhost bluetoothd[457]: Failed to read info for index 65535:
Invalid Index (0x11)
and I cannot even use CSR USB dongle.
Can you pair successfully with any bluetooth client devices?
-
Nice.
You built CLI image and built a desktop on your own? That would explain why this was not auto corrected by our scripts.
yes, but i don't understand why armbian build script doesn't correct this?
also it seems latest armbian 5.14 still doesn't solve bluetooth yet
hcitool can see BT controller, but blueman or bluetoothctl cannot
also trying to pair using "hcitool cc <btaddr>" is impossible
same issue found also here
http://unix.stackexchange.com/questions/169931/bluetoothctl-no-default-controller-available
-
Try connecting with:
wpa_driver = none
great, it's working
-
What do you have here:
/etc/wicd/manager-settings.conf
[settings]wireless_interface = wlan0backend = externalwired_interface = eth0wpa_driver = wextalways_show_wired_interface = Falseuse_global_dns = Falseglobal_dns_1 = Noneglobal_dns_2 = Noneglobal_dns_3 = Noneglobal_dns_dom = Noneglobal_search_dom = Noneauto_reconnect = Truedebug_mode = Falsewired_connect_mode = 1signal_display_type = 0should_verify_ap = 1dhcp_client = 0link_detect_tool = 0flush_tool = 0sudo_app = 0prefer_wired = Falseshow_never_connect = True -
i compile latest armbian 5.14 for banana pi m2+
and now wicd unable to get ip address via onboard wifi
previous armbian 5.12 working well
below wicd.log
anybody has idea why?
----------------------------------------------------------------------------
2016/06/09 13:31:08 :: Connecting to wireless network TRENDnet
2016/06/09 13:31:08 :: attempting to set hostname with dhclient2016/06/09 13:31:08 :: using dhcpcd or another supported client may work better2016/06/09 13:31:11 :: attempting to set hostname with dhclient2016/06/09 13:31:11 :: using dhcpcd or another supported client may work better2016/06/09 13:31:12 :: Putting interface down2016/06/09 13:31:12 :: Releasing DHCP leases...2016/06/09 13:31:12 :: attempting to set hostname with dhclient2016/06/09 13:31:12 :: using dhcpcd or another supported client may work better2016/06/09 13:31:12 :: Setting false IP...2016/06/09 13:31:13 :: Stopping wpa_supplicant2016/06/09 13:31:13 :: Flushing the routing table...2016/06/09 13:31:13 :: Putting interface up...2016/06/09 13:31:15 :: Generating psk...2016/06/09 13:31:15 :: Attempting to authenticate...2016/06/09 13:31:29 :: Running DHCP with hostname bananapim2plus2016/06/09 13:31:29 :: attempting to set hostname with dhclient2016/06/09 13:31:29 :: using dhcpcd or another supported client may work better2016/06/09 13:31:29 :: Internet Systems Consortium DHCP Client 4.3.12016/06/09 13:31:29 :: Copyright 2004-2014 Internet Systems Consortium.2016/06/09 13:31:29 :: All rights reserved.2016/06/09 13:31:29 :: For info, please visit https://www.isc.org/software/dhcp2016/06/09 13:31:29 ::2016/06/09 13:31:29 :: Listening on LPF/wlan0/94:a1:a2:ca:17:d82016/06/09 13:31:29 :: Sending on LPF/wlan0/94:a1:a2:ca:17:d82016/06/09 13:31:29 :: Sending on Socket/fallback2016/06/09 13:31:29 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interva 82016/06/09 13:31:37 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interva 152016/06/09 13:31:52 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interva 182016/06/09 13:32:10 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interva 202016/06/09 13:32:30 :: No DHCPOFFERS received.2016/06/09 13:32:30 :: No working leases in persistent database - sleeping.2016/06/09 13:32:30 :: DHCP connection failed2016/06/09 13:32:30 :: exiting connection thread -
I'm out of ideas. FYI, baudrate can be set to 1500000 to get faster connection. It seems that there are some issues with setting baud rate in serial driver, so this speed is the only one I could find.
fex for banana pi m2+ already set to 1500000 then "hciattach /dev/ttyS1 bcm43xx 1500000" should be OK
btw, I found patch in yocto linux, same like your direction to enable bluetooth in raspberry pi
https://lists.yoctoproject.org/pipermail/yocto/2016-April/029425.html
maybe Armbian can apply this patch also?
------------------------------------------------------------------------[bt_para]bt_used = 1bt_uart_id = 1bt_uart_baud = 1500000bt_rst_n = port:PG12<1><default><default><0>bt_wake = port:PG13<1><default><default><0>bt_host_wake = port:PG11<0><default><default><0>bt_host_wake_invert = 0
OrangePi as iTunes server with forked-daapd
in Reviews, Tutorials, Hardware hacks
Posted
still error if change
card = "hw:1,0"
/var/log/forked-daapd.log
-----------------------------------