dony71

  • Posts

    128
  • Joined

  • Last visited

 Content Type 

Forums

Member Map

Store

Crowdfunding

Applications

Posts posted by dony71

  1. still error if change

    card = "hw:1,0"

     

    /var/log/forked-daapd.log

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

    [2017-01-13 01:04:47] [  LOG]   laudio: Invalid value for card[2017-01-13 01:04:47] [  LOG]   laudio: Could not open playback device: No such file or directory
    [2017-01-13 01:04:47] [  LOG]   player: Could not start ALSA device 'BPi-M2P'
    [2017-01-13 01:04:47] [  LOG]   player: Could not activate ALSA device 'BPi-M2P'
  2. 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 output
    audio {
            # Name - used in the speaker list in Remote
            nickname = "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/1
      Subdevice #0: subdevice #0
    card 1: snddaudio [snddaudio], device 0: SUNXI-TDM0 snddaudio-0 []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
      Subdevices: 0/1
      Subdevice #0: subdevice #0
  3. 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 Remote
    After=network.target sound.target
     
    [service]
    ExecStart=/usr/sbin/forked-daapd -f
     
    # Restart, but not more than once every 10 minutes
    Restart=on-failure
    StartLimitBurst=2
    StartLimitInterval=600
     
    [install]
    WantedBy=multi-user.target
     
  4. 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-config
    checking 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.
    ***
  5. compile failed ... any idea?

     

    ~/Downloads/forked-daapd$ make
    make  all-recursive
    make[1]: Entering directory '/home/pi/Downloads/forked-daapd'
    Making all in sqlext
    make[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 -lpthread
    libtool: 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-c
    collect2: error: ld returned 1 exit status
    Makefile:435: recipe for target 'forked-daapd-sqlext.la' failed
    make[2]: *** [forked-daapd-sqlext.la] Error 1
    make[2]: Leaving directory '/home/pi/Downloads/forked-daapd/sqlext'
    Makefile:534: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/pi/Downloads/forked-daapd'
    Makefile:401: recipe for target 'all' failed
    make: *** [all] Error 2
     
  6. 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 -L
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
     
    #netstat -l
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0            0         *:6680                               *:*                     LISTEN

     

  7. 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?

  8. 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?

  9. 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?

  10. 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 all

    echo " " > /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 

  11. @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:E3
    Attempting to pair with F8:27:93:1D:AB:E3
    [CHG] Device F8:27:93:1D:AB:E3 Connected: yes
    Failed to pair: org.bluez.Error.AuthenticationFailed
    [CHG] Device F8:27:93:1D:AB:E3 Connected: no
  12. 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.deb
    dpkg-deb: error: `rpimonitor_latest_all.deb' is not a debian format archive
    dpkg: error processing archive rpimonitor_latest_all.deb (--install):
     subprocess dpkg-deb --control returned error exit status 2
    Errors were encountered while processing:
     rpimonitor_latest_all.deb
  13. 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?

  14. 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

  15.  

    What do you have here:

    /etc/wicd/manager-settings.conf

     

    [settings]
    wireless_interface = wlan0
    backend = external
    wired_interface = eth0
    wpa_driver = wext
    always_show_wired_interface = False
    use_global_dns = False
    global_dns_1 = None
    global_dns_2 = None
    global_dns_3 = None
    global_dns_dom = None
    global_search_dom = None
    auto_reconnect = True
    debug_mode = False
    wired_connect_mode = 1
    signal_display_type = 0
    should_verify_ap = 1
    dhcp_client = 0
    link_detect_tool = 0
    flush_tool = 0
    sudo_app = 0
    prefer_wired = False
    show_never_connect = True
     
  16. 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 dhclient
    2016/06/09 13:31:08 :: using dhcpcd or another supported client may work better
    2016/06/09 13:31:11 :: attempting to set hostname with dhclient
    2016/06/09 13:31:11 :: using dhcpcd or another supported client may work better
    2016/06/09 13:31:12 :: Putting interface down
    2016/06/09 13:31:12 :: Releasing DHCP leases...
    2016/06/09 13:31:12 :: attempting to set hostname with dhclient
    2016/06/09 13:31:12 :: using dhcpcd or another supported client may work better
    2016/06/09 13:31:12 :: Setting false IP...
    2016/06/09 13:31:13 :: Stopping wpa_supplicant
    2016/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 bananapim2plus
    2016/06/09 13:31:29 :: attempting to set hostname with dhclient
    2016/06/09 13:31:29 :: using dhcpcd or another supported client may work better
    2016/06/09 13:31:29 :: Internet Systems Consortium DHCP Client 4.3.1
    2016/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/dhcp
    2016/06/09 13:31:29 ::
    2016/06/09 13:31:29 :: Listening on LPF/wlan0/94:a1:a2:ca:17:d8
    2016/06/09 13:31:29 :: Sending on   LPF/wlan0/94:a1:a2:ca:17:d8
    2016/06/09 13:31:29 :: Sending on   Socket/fallback
    2016/06/09 13:31:29 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interva 8
    2016/06/09 13:31:37 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interva 15
    2016/06/09 13:31:52 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interva 18
    2016/06/09 13:32:10 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interva 20
    2016/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 failed
    2016/06/09 13:32:30 :: exiting connection thread
  17. 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 = 1
    bt_uart_id = 1
    bt_uart_baud = 1500000
    bt_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