Jump to content

JuanEsf

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by JuanEsf

  1. you must run two commands one to compile u-boot with the codec node, the other is to compile and copy the new codec with r40/v40 support. and finally it remains to load the modules, there are two ways one is to load it manually:

    sudo modprobe sun8i-codec-analog

    sudo modprobe sun4i-codec

    and the second way is to add the two previous commands in /etc/rc.local which loads the modules automatically. first try the manual commands, if after loading manually the sound card appears you should modify rc.local so that it loads automatically

  2. Compile Codec for R40/V40:

    curl -s https://raw.githubusercontent.com/juanesf/codec/master/compile-codec.sh | sudo bash /dev/stdin

    Compile u-boot for R40 emmc (M2-Ultra):

    curl -s https://raw.githubusercontent.com/juanesf/u-boot/audio-codec/compile_u-boot_r40_emmc.sh | sudo bash /dev/stdin

    Compile u-boot for R40 sd (M2-Ultra):

    curl -s https://raw.githubusercontent.com/juanesf/u-boot/audio-codec/compile_u-boot_r40_sd.sh | sudo bash /dev/stdin

    Compile u-boot for V40 emmc (M2-Berry):

    curl -s https://raw.githubusercontent.com/juanesf/u-boot/audio-codec/compile_u-boot_v40_emmc.sh | sudo bash /dev/stdin

    Compile u-boot for V40 sd (M2-Berry)

    curl -s https://raw.githubusercontent.com/juanesf/u-boot/audio-codec/compile_u-boot_v40_sd.sh | sudo bash /dev/stdin

     

    it only remains to add two lines to /etc/rc.local before exit 0:

     

    modprobe sun8i-codec-analog

    modprobe sun4i-codec

     

    sudo nano /etc/rc.local

     

    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    
    modprobe sun8i-codec-analog
    modprobe sun4i-codec
    
    exit 0

     

  3. what happens is this is just the module, for them to work you need to add the codec node to sun8i-r40.dts and sun8i-r40-bananapi-m2-ultra.dts, just give me a few hours to fix some details and give you details how to compile u-boot with changes

  4. Hello, following the steps to add audio support to h3, v3s, a23 modified sun4i-codec to add support for r40, and if anyone else wants to try:

     

    Video

     

    curl -s https://raw.githubusercontent.com/juanesf/codec/master/compile-codec.sh | sudo bash /dev/stdin

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines