JuanEsf

  • Content Count

    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