Jump to content

dony71

Members
  • Posts

    128
  • Joined

  • Last visited

Posts posted by dony71

  1. 5 hours ago, Igor said:

    I just checked again and it's working, also with stock config and connecting to AP. There is a typo / syntax error in one of the guides. This is correct way:

    
    echo 'options dhd op_mode=2' >/etc/modprobe.d/ap6212.conf

    I guess this is the problem ? :D

     

    This is it !!!

    Thank you for your support :)

  2. 2 hours ago, Igor said:


    I did and also did't saw AP. Than I try the same on Friendly ARM M1+ which uses the same wireless chip and it's working. Than I used nanopim1plus.bin on Banana M2+ and it's working there too ... which means stock board configuration is messed up. 

     

    Manage to get nanopim2plus fex at https://github.com/igorpecovnik/lib/blob/master/config/fex/nanopim1plus.fex

    I compare and found differences only in bluetooth gpio pin assignment below

    It should not affect any function on wifi, but you mentioned using nanopim1plus.bin on bpim2+ then AP shows up? strange .....

     

    [bt_para]

      bt_used = 1
      bt_uart_id = 3
      bt_uart_baud = 115200
      bt_rst_n = port:PG13<1><default><default><0>
      bt_wake = port:PA08<1><default><default><0>
      bt_host_wake = port:PA07<0><default><default><0>
      bt_host_wake_invert = 0
  3. On 4/6/2017 at 0:39 AM, Igor said:

    I am running out of ideas. Try changing channel, change SSID ...  When you got this at running hostapd:

    
    wlan1: AP-ENABLED

    You should see your AP even your network settings are wrong. Those must be correct only when you are trying to connect.

     

    change channel and SSID, but still same problem, SSID is not shown
    what is this message below referring to?
    nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)

  4. 2 minutes ago, Igor said:

    I guess there is bcmdhd modile in /etc/modules ...  and it loads automatically - remove it and reboot if you want to "modprobe bcmdhd op_mode=2" ... It looks that you properly enabled AP mode since you won't get this in first place:

    
    nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)
    Using interface wlan1 with hwaddr 94:a1:a2:ca:17:d8 and ssid "BPi-M2P"
    wlan1: interface state UNINITIALIZED->ENABLED
    wlan1: AP-ENABLED

    According to this log, AP mode is working, while the network part, when removing op_mode=2 from interfaces file, should also be fine. Not two things: this driver is shit and you will get some errors and driver might crash on unloading, so you need to reboot each time you need to load it with different settings.

     

    BTW. The kernel is not ours while I assume nothing vital has been changed.

     

    yes, this is retrorangpie kernel which based on armbian 5.23 (http://www.retrorangepi.org/)

    i don't get it what you mean ... so how to fix this since i don't see AP SSID 

  5. 8 minutes ago, Igor said:

    op_mode=2 does not go to the interfaces but elsewhere. The rest is o.k. and you need to reboot after those changes.

     

    i put in /etc/modules-load.d/module.conf
    bcmdhd op_mode=2

    but still same failure

     

    then i do "modprobe bcmdhd op_mode=2"

    root@RetrOrangePi:/etc/modules-load.d# modprobe bcmdhd op_mode=2
    modprobe: FATAL: Module bcmdhd not found.

     

    but wifi is working fine in client mode, so bcmdhd should be already loaded
     

  6. Anybody can guide me how to enable wifi in AP mode?

    I already follow https://docs.armbian.com/User-Guide_Advanced-Features/#how-to-set-wireless-access-point

    Also add op_mode=2 in /etc/network/interfaces (see attached file)

    However when I run "hostapd /etc/hostapd.conf", it shows message below and AP not running
    Anything I'm missing?

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

    root@RetrOrangePi:/etc# hostapd /etc/hostapd.conf
    Configuration file: /etc/hostapd.conf
    nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)
    Using interface wlan1 with hwaddr 94:a1:a2:ca:17:d8 and ssid "BPi-M2P"
    wlan1: interface state UNINITIALIZED->ENABLED
    wlan1: AP-ENABLED
     

    hostapd.conf

    interfaces

  7. I just purchased JM567 USB-SATA adapter and using Armbian 5.23 Jessie Desktop.

    However "dmesg | grep uas" doesn't show anything.

    It seems that usb uasp is not enable by default.

    Can anybody tell me how to enable uasp ?

     

    root@RetrOrangePi:~# modprobe uas

    modprobe: FATAL: Module uas not found.

     

    strange ... I though armbian 5.23 which has already kernel compiled with CONFIG_USB_UAS=y ???

  8. I think the developer (E.Jurgensen) might be willing to help. So I would suggest to ask him directly in this thread:

    https://www.raspberrypi.org/forums/viewtopic.php?t=49928

     

    I know this is a Raspberry-Pi Forum, but regarding sound-card configuration there should be no difference. Maybe he has an idea, or another user has a similar setup to yours. If you can solve your problem it would be nice to post the solution here as well.

     

    Best wishes, Bernie_O

     

    Thanks

    Will post the solution here

  9. Please try

    card = "default"
    

    in forked-daapd

     

    /var/log/forked-daapd.log

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

    [2017-01-16 12:28:51] [  LOG]   laudio: Failed to open configured mixer element 'I2s Or Pcm Audio Mode Select format'
    [2017-01-16 12:28:51] [  LOG]   laudio: Could not open mixer
    [2017-01-16 12:28:51] [  LOG]   player: Could not start ALSA device 'BPi-M2P'
    [2017-01-16 12:28:51] [  LOG]   player: Could not activate ALSA device 'BPi-M2P'
     
    FYI, sound output is OK by testing "aplay -f cd -D default test.wav"
  10. You need to create ctl.!default block in asoundrc too, since the log tells that it fails to open the mixer controls.

    Also I may be wrong about referencing the card in forked-daapd, you should check its manuals too.

     

    I read below link under software mixing

    https://www.alsa-project.org/main/index.php/Asoundrc#dmix

     

    I follow .asoundrc overthere and aplay running with default device

     

    unfortunately forked-daapd has very limited reference for the card

  11. change card = "plug:default"

     

    /var/log/forked-daapd.log

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

    [2017-01-16 02:29:33] [  LOG]   laudio: Invalid CTL plug:default[2017-01-16 02:29:33] [  LOG]   laudio: Failed to attach mixer: No such file or directory
    [2017-01-16 02:29:33] [  LOG]   laudio: Could not open mixer
    [2017-01-16 02:29:33] [  LOG]   player: Could not start ALSA device 'BPi-M2P'
    [2017-01-16 02:29:33] [  LOG]   player: Could not activate ALSA device 'BPi-M2P'
  12. But you are still telling your applications to use "hw:1" directly and thus bypassing the dmix. If your default configuration is correct, you should be able to use something like "plug:default" in applications too.

     

    /var/log/forked-daapd.log

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

    [2017-01-16 02:27:51] [  LOG]   laudio: Invalid CTL plug:dmix[2017-01-16 02:27:51] [  LOG]   laudio: Failed to attach mixer: No such file or directory
    [2017-01-16 02:27:51] [  LOG]   laudio: Could not open mixer
    [2017-01-16 02:27:51] [  LOG]   player: Could not start ALSA device 'BPi-M2P'
    [2017-01-16 02:27:51] [  LOG]   player: Could not activate ALSA device 'BPi-M2P'
     
  13. Yes, you need to set it as a default ALSA input or you need to tell your applications to use dmix explicitly (instead of "hw:1" it should be something like "plug:dmix" if I remember correctly.

     

     I change .asoundrc to this below, but still not working

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

    pcm.!default {

        type plug

        slave.pcm "dmixer"

    }

     

    pcm.dmixer {

        type dmix

        ipc_key 1024

        slave {

            pcm "hw:1,0"

            period_time 0

            period_size 1024

            buffer_size 4096

            rate 44100

        }

        bindings {

            0 0

            1 1

        }

    }

     

    ctl.dmixer {

        type hw

        card 1

    }

  14. dmix if we are talking about ALSA, otherwise pulseaudio can do this too.

    http://alsa.opensrc.org/Dmix

    https://www.alsa-project.org/main/index.php/Asoundrc#dmix

     

    I do have already enable dmixer in .asoundrc

    Am I missing something?

     

    .asoundrc

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

    pcm.snd_card {
            type hw
            card 1
            device 0
    }
     
    ctl.snd_card {
            type hw
            card 1
            device 0
    }
     
    pcm.dmixer {
        type dmix
        ipc_key 1024
        ipc_perm 0666
        slave.pcm snd_card
        slave {
            period_time 0
            period_size 1024
            buffer_size 4096
            rate 44100
            format S32_LE
            channels 2
        }
        bindings {
            0 0
            1 1
        }
    }
  15. This looks like forked-daapd is trying to access the correct device, but there is another service/application running which accesses and thus blocks the audio device - or another application was running which used the audio device and didn't free the access again after using that audio-device.

     

    Do you have an idea what that could be? Try to disable it (or maybe reboot) and then try again with forked-daapd.

     

    I think we found the correct card and mixer. But with the "device or resource busy" problem I can't help any further. This you need to figure out yourself. Good luck :-)

     

    shairport-sync is using this audio device

    however i didn't hard lock the device, instead i'm using .asoundrc in /home/shairport-sync

    my understanding by doing this, hw:1,0 can be switched, activated upon usage selection, but seems it's not the case

    do you know anyway to share same device by multiple application?

  16. This doesn't work?

    card = "hw:1"
    mixer = "I2s Or Pcm Audio Mode Select format"

     

    /var/log/forked-daapd.log

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

    [2017-01-15 00:05:54] [  LOG]   laudio: open '/dev/snd/pcmC1D0p' failed (-16)[2017-01-15 00:05:54] [  LOG]   laudio: Could not open playback device: Device or resource busy
    [2017-01-15 00:05:54] [  LOG]   player: Could not start ALSA device 'BPi-M2P'
    [2017-01-15 00:05:54] [  LOG]   player: Could not activate ALSA device 'BPi-M2P'
  17. amixer --card 1

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

    Simple mixer control 'I2s Or Pcm Audio Mode Select format',0

      Capabilities: pswitch pswitch-joined

      Playback channels: Mono

      Mono: Playback [on]

     

    Change in /etc/forked-daapd.conf

    .....

    mixer = "I2s Or Pcm Audio Mode Select format"

     

     


    /var/log/forked-daapd.log


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




    [2017-01-14 22:31:03] [  LOG]   laudio: Failed to open configured mixer element 'I2s Or Pcm Audio Mode Select format'

    [2017-01-14 22:31:03] [  LOG]   laudio: Could not open mixer

    [2017-01-14 22:31:03] [  LOG]   player: Could not start ALSA device 'BPi-M2P'

    [2017-01-14 22:31:03] [  LOG]   player: Could not activate ALSA device 'BPi-M2P'

     

  18. I have Banana Pi M2+ and use PCM5102 DAC via I2S

    So far I know PCM5102 doesn't have digital mixer to control volume

    "amixer" output below, no mixer for PCM ??

     

    ==================================================

    Simple mixer control 'Lineout volume control',0

      Capabilities: volume volume-joined
      Playback channels: Mono
      Capture channels: Mono
      Limits: 0 - 31
      Mono: 31 [100%]
    Simple mixer control 'ADC input gain ctrl',0
      Capabilities: volume volume-joined
      Playback channels: Mono
      Capture channels: Mono
      Limits: 0 - 7
      Mono: 3 [43%]
    Simple mixer control 'Audio adda drc',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [off]
    Simple mixer control 'Audio adda loop',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [off]
    Simple mixer control 'Audio linein in',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [off]
    Simple mixer control 'Audio lineout',0
      Capabilities: pswitch pswitch-joined
      Playback channels: Mono
      Mono: Playback [on]
    Simple mixer control 'LINEIN_G boost stage output mixer control',0
      Capabilities: volume volume-joined
      Playback channels: Mono
      Capture channels: Mono
      Limits: 0 - 7
      Mono: 3 [43%]
    Simple mixer control 'MIC1 boost AMP gain control',0
      Capabilities: volume volume-joined
      Playback channels: Mono
      Capture channels: Mono
      Limits: 0 - 7
      Mono: 4 [57%]
    Simple mixer control 'MIC1_G boost stage output mixer control',0
      Capabilities: volume volume-joined
      Playback channels: Mono
      Capture channels: Mono
      Limits: 0 - 7
      Mono: 3 [43%]
    Simple mixer control 'MIC2 boost AMP gain control',0
      Capabilities: volume volume-joined
      Playback channels: Mono
      Capture channels: Mono
      Limits: 0 - 7
      Mono: 4 [57%]
    Simple mixer control 'MIC2_G boost stage output mixer control',0
      Capabilities: volume volume-joined
      Playback channels: Mono
      Capture channels: Mono
      Limits: 0 - 7
      Mono: 3 [43%]
    Simple mixer control 'audio capture mode',0
      Capabilities: enum
      Items: 'main mic' 'mic1_2' 'linein'
      Item0: 'main mic'
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines