Jump to content

giseleznev

Members
  • Content Count

    36
  • Joined

  • Last visited

Posts posted by giseleznev


  1. @tooz

    By the way, here is my dmesg with some errors. What does it mean ?

    linaro@linaro-alip:~$ dmesg | grep i2c
    
    [    1.865109] i2c /dev entries driver
    
    [    1.869490] of_get_named_gpiod_flags: parsed 'vsel-gpios' property of node '/i2c@ff3c0000/fan53200@60[0]' - status (0)
    
    [    1.883092] rk3x-i2c ff3c0000.i2c: Initialized RK3xxx I2C bus at ffffff8009858000
    
    [    1.891296] rk3x-i2c ff110000.i2c: Initialized RK3xxx I2C bus at ffffff800985a000
    
    [    1.899201] rk3x-i2c ff120000.i2c: Initialized RK3xxx I2C bus at ffffff800985c000
    
    [    1.907105] rk3x-i2c ff150000.i2c: Initialized RK3xxx I2C bus at ffffff800985e000
    
    [    1.915409] of_get_named_gpiod_flags: parsed 'vsel-gpios' property of node '/i2c@ff3d0000/fan53200@60[0]' - status (0)
    
    [    1.928973] rk3x-i2c ff3d0000.i2c: Initialized RK3xxx I2C bus at ffffff8009860000
    
    [    1.937317] rk3x-i2c ff3e0000.i2c: Initialized RK3xxx I2C bus at ffffff8009862000
    
    [    1.964363] tinker-mcu: tinker_mcu_probe: i2c_id= 0x8
    
    [    2.027682] tinker-mcu: tinker_mcu_ili9881c_probe: i2c_id= 0x8
    
    [    2.210914] of_get_named_gpiod_flags: can't parse 'dvs-gpios' property of node '/i2c@ff3c0000/pmic@1b[0]'
    
    [    2.210925] of_get_named_gpiod_flags: can't parse 'dvs-gpio' property of node '/i2c@ff3c0000/pmic@1b[0]'
    
    [    2.217168] of_get_named_gpiod_flags: can't parse 'dvs-gpios' property of node '/i2c@ff3c0000/pmic@1b[1]'
    
    [    2.217179] of_get_named_gpiod_flags: can't parse 'dvs-gpio' property of node '/i2c@ff3c0000/pmic@1b[1]'
    
    [    2.295962] of_get_named_gpiod_flags: parsed 'int-n-gpios' property of node '/i2c@ff3d0000/fusb30x@22[0]' - status (0)
    
    [    2.296029] of_get_named_gpiod_flags: parsed 'vbus-5v-gpios' property of node '/i2c@ff3d0000/fusb30x@22[0]' - status (0)
    
    [    2.296073] of_get_named_gpiod_flags: can't parse 'vbus-other-gpios' property of node '/i2c@ff3d0000/fusb30x@22[0]'
    
    [    2.296083] of_get_named_gpiod_flags: can't parse 'vbus-other-gpio' property of node '/i2c@ff3d0000/fusb30x@22[0]'
    
    [    2.296128] of_get_named_gpiod_flags: can't parse 'discharge-gpios' property of node '/i2c@ff3d0000/fusb30x@22[0]'
    
    [    2.296138] of_get_named_gpiod_flags: can't parse 'discharge-gpio' property of node '/i2c@ff3d0000/fusb30x@22[0]'
    
    [    2.315813] input: Typec_Headphone as /devices/platform/ff3d0000.i2c/i2c-4/4-0022/input/input0
    
    [    3.141361] of_get_named_gpiod_flags: parsed 'irq_gpio_number' property of node '/i2c@ff110000/gsl3673@40[0]' - status (0)
    
    [    3.141394] of_get_named_gpiod_flags: parsed 'rst_gpio_number' property of node '/i2c@ff110000/gsl3673@40[0]' - status (0)
    
    [    3.141697] input: gsl3673 as /devices/platform/ff110000.i2c/i2c-1/1-0040/input/input1
    
    [    3.197419] gsl3673 1-0040: GSL3673 test_i2c error!
    
    [    3.780928] of_get_named_gpiod_flags: parsed 'enable-gpios' property of node '/i2c@ff110000/imx219@10[0]' - status (0)
    
    [    4.654953] i2c i2c-9: of_i2c: modalias failure on /hdmi@ff940000/ports
    
    [    4.692103] i2c i2c-10: of_i2c: modalias failure on /dp@fec00000/ports

     


  2. Device is si5351chip
    I've just changed 

    #intf:i2c6=off to intf:i2c6=on

    from the default, i do have 6-th here:

    ls /dev/i2c*

    but i get empty line from 

    sudo i2cdetect -y 6

  3. hi everyone

    I think I'm doing smth wrong with my tinker board 2

    I've turned on all i2c overlays and connected i2c device to pins 3,5, double checked wires

    i2cdetect can't detect any device, prints empty bus, but device is connected

    What am I missing ?


  4. ADC is pcm1804, but it doesn't matter, as basically all I need is master clock signal, taken from i2s. I can test master clock adding with a DAC pcm5102. That's what I'm doing. 

    I'm using hifiberry-dac-overlay with changes above, and in addition to usual i2s I want to get master clock on one of the pins. As I think, it can be done with adding i2s-8ch-mclk to an overlay. The question is how ?

    pcm 5102 connected and it sounds OK, I'm probing additional pin with oscillograph, hoping to get master clock

    image.png


  5. For a simple test, I'm adding usage of i2s_8ch_mclk to a hifiberry dac overlay. I want to see not just i2s signal, but also master clock on pin 37 (phys num). There no master clock, just i2s for now. What am I doing wrong? Any ideas, please, help!
    Overlay (Linux linaro-alip 4.4.194) :

    #include <dt-bindings/pinctrl/rockchip.h>
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/clock/rk3399-cru.h>
    
    /dts-v1/;
    /plugin/;
    
    / {
    	compatible = "rockchip,rk3399";
    
    	fragment@0 {
    		target-path = "/spdif-sound";
    		__overlay__ {
    			status = "disabled";
    		};
    	};
    
    	fragment@1 {
    		target-path = "/hdmi-dp-sound";
    		__overlay__ {
    			status = "disabled";
    		};
    	};
    
    	fragment@2 {
    		target = <&i2s0>;
    		__overlay__ {
    			assigned-clocks = <&cru SCLK_I2SOUT_SRC>;
                		assigned-clock-parents = <&cru SCLK_I2S0_8CH>;
    			pinctrl-0 = <&i2s_8ch_mclk>, <&i2s0_8ch_bus>;
    			status = "okay";
    		};
    	};
    
    	fragment@3 {
    		target-path = "/";
    		__overlay__ {
    			pcm5102a-codec {
    				#sound-dai-cells = <0>;
    				compatible = "ti,pcm5102a";
    				status = "okay";
    			};
    		};
    	};
    
    	fragment@4 {
            	target = <&pinctrl>;
            	__overlay__ {
                		i2s0 {
                    		i2s_8ch_mclk: i2s-8ch-mclk {
                        			// GPIO4_A0 - RK3399 I2S_CLK
                        			rockchip,pins = <4 21 1 &pcfg_pull_none>;
                    		};
                		};
    		};
        	};
    
    	fragment@5 {
    		target-path = "/sound-ext-card";
    		__overlay__ {
    			compatible = "hifiberry,hifiberry-dac";
    			i2s-controller = <&i2s0>;
    			status = "okay";
    		};
    	};
    };

     


  6. OK, I found:

    i2s_8ch_mclk: i2s-8ch-mclk {
    		rockchip,pins = <4 0 RK_FUNC_1 &pcfg_pull_none>;
    };

    Seems like I need this one to use in overlay to output mclk. How should I add it to a .dts file ?


  7. I got I2S working with a PCM5102 codec (DAC), but in the next board I would like to use a board which requires MCLK (256*fs).

    How to output MCLK as well additionally to BCLK/LRCLK?


  8. @tooz

     

    coder@mod4:~/Projects/tinker_2$ python3 /usr/bin/repo sync
    warning: Python 3 support is currently experimental. YMMV.
    Please use Python 2.6 - 2.7 instead.
    
    ... A new version of repo (2.32) is available.
    ... New version is available at: /home/coder/Projects/tinker_2/.repo/repo/repo
    ... The launcher is run from: /usr/bin/repo
    !!! The launcher is not writable.  Please talk to your sysadmin or distro
    !!! to get an update installed.
    
    Fetching: 100% (55/55), done in 1m53.075s
    repo sync has finished successfully.
    coder@mod4:~/Projects/tinker_2$ ./docker_builder/docker-builder-run.sh
    Docker is installed and the execute permission is granted.
    User coder is in the group docker.
    The package qemu-user-static is installed.
    The package binfmt-support is installed.
    There is no directory path to the source provided.
    Use the default directory path to the source [/home/coder/Projects/tinker_2].
    Sending build context to Docker daemon  703.5kB
    Step 1/24 : FROM ubuntu:18.04
     ---> 3941d3b032a8
    Step 2/24 : ARG DEBIAN_FRONTEND=noninteractive
     ---> Using cache
     ---> 87dc09c519f1
    Step 3/24 : ARG userid
     ---> Using cache
     ---> c252a5fc6017
    Step 4/24 : ARG groupid
     ---> Using cache
     ---> f13d24d94dbc
    Step 5/24 : ARG username
     ---> Using cache
     ---> 6dcdfb098a80
    Step 6/24 : COPY packages /packages
     ---> Using cache
     ---> 7700bfeba439
    Step 7/24 : COPY device-tree-compiler_1.4.7-4_amd64.deb .
     ---> Using cache
     ---> 694bb7ddb575
    Step 8/24 : RUN apt-get update
     ---> Using cache
     ---> 996afe4c0b92
    Step 9/24 : RUN apt-get install -y repo git ssh make gcc libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib unzip device-tree-compiler python-pip ncurses-dev python-pyelftools
     ---> Using cache
     ---> 69dfbd1b9f1a
    Step 10/24 : RUN apt-get update && apt-get install -y kmod expect patchelf
     ---> Using cache
     ---> 94fb903151db
    Step 11/24 : RUN apt-get update && apt-get install -y zip mtools
     ---> Using cache
     ---> 3ac5a80f9d7d
    Step 12/24 : RUN apt-get install -y binfmt-support qemu-user-static live-build
     ---> Using cache
     ---> 49e41b1a75b6
    Step 13/24 : RUN apt-get install -y bc time rsync
     ---> Using cache
     ---> 9f60ffcef5e2
    Step 14/24 : RUN apt-get install -y zstd
     ---> Using cache
     ---> da9c73706cf0
    Step 15/24 : RUN apt-get update && apt-get install -y locales
     ---> Using cache
     ---> c475127e3538
    Step 16/24 : RUN dpkg -i device-tree-compiler_1.4.7-4_amd64.deb
     ---> Using cache
     ---> 8f0cd55e4ec6
    Step 17/24 : RUN dpkg -i /packages/* || apt-get install -f -y
     ---> Using cache
     ---> ec0c4d58f339
    Step 18/24 : RUN rm device-tree-compiler_1.4.7-4_amd64.deb
     ---> Using cache
     ---> e50065a84a30
    Step 19/24 : RUN locale-gen en_US.UTF-8
     ---> Using cache
     ---> 736747386d07
    Step 20/24 : RUN groupadd -g $groupid $username &&     useradd -m -u $userid -g $groupid $username &&     echo "$username ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers &&     echo $username >/root/username
     ---> Using cache
     ---> 081c901cc447
    Step 21/24 : ENV HOME=/home/$username
     ---> Using cache
     ---> 03a2ea164546
    Step 22/24 : ENV USER=$username
     ---> Using cache
     ---> 5a8ed192fd95
    Step 23/24 : WORKDIR /source
     ---> Using cache
     ---> 50d9bf27fb76
    Step 24/24 : ENTRYPOINT chroot --skip-chdir --userspec=$(cat /root/username):$(cat /root/username) / /bin/bash -i
     ---> Using cache
     ---> e4c4537eb6ba
    Successfully built e4c4537eb6ba
    Successfully tagged asus/tinker_2-linux-builder:latest
    Options to run docker: --privileged --rm -it --volume /home/coder/Projects/tinker_2:/source
    coder@828f3ca52a6b:/source$ ./build.sh
    VERSION: debug
    VERSION_NUMBER: eng-coder-20230518
    RELEASE_NAME: Tinker_Board_2-Debian-Buster-eng-coder-20230518
    processing option: allsave
    ============================================
    TARGET_ARCH=arm64
    TARGET_PLATFORM=tinker_board_2
    TARGET_UBOOT_CONFIG=tinker_board_2
    TARGET_SPL_CONFIG=
    TARGET_KERNEL_CONFIG=tinker_board_2_defconfig
    TARGET_KERNEL_DTS=rk3399-tinker_board_2
    TARGET_TOOLCHAIN_CONFIG=
    TARGET_BUILDROOT_CONFIG=rockchip_tinker_board_2
    TARGET_RECOVERY_CONFIG=rockchip_rk3399_recovery
    TARGET_PCBA_CONFIG=rockchip_rk3399_pcba
    TARGET_RAMBOOT_CONFIG=
    ============================================
    ============Start building uboot============
    TARGET_UBOOT_CONFIG=tinker_board_2
    =========================================
    ## make tinker_board_2_defconfig -j8
    #
    # configuration written to .config
    #
    scripts/kconfig/conf  --silentoldconfig Kconfig
      CHK     include/config.h
      GEN     include/autoconf.mk.dep
      CFG     u-boot.cfg
      CFG     spl/u-boot.cfg
      CFG     tpl/u-boot.cfg
      GEN     spl/include/autoconf.mk
      GEN     include/autoconf.mk
      GEN     tpl/include/autoconf.mk
      CHK     include/config/uboot.release
      CHK     include/generated/timestamp_autogenerated.h
      UPD     include/generated/timestamp_autogenerated.h
      CHK     include/config.h
      CFG     u-boot.cfg
      UPD     include/config/uboot.release
      CHK     include/generated/version_autogenerated.h
      UPD     include/generated/version_autogenerated.h
      CHK     include/generated/generic-asm-offsets.h
      CHK     include/generated/asm-offsets.h
      HOSTCC  tools/mkenvimage.o
      HOSTCC  tools/fit_image.o
      HOSTCC  tools/image-host.o
      HOSTCC  tools/mkimage.o
      HOSTCC  tools/dumpimage.o
      HOSTCC  tools/rockchip/boot_merger.o
      HOSTCC  tools/rockchip/loaderimage.o
      HOSTLD  tools/loaderimage
      HOSTLD  tools/mkenvimage
      HOSTLD  tools/mkimage
      HOSTLD  tools/dumpimage
      HOSTLD  tools/boot_merger
      CC      arch/arm/cpu/armv8/fwcall.o
      CC      cmd/version.o
      CC      common/main.o
      LD      arch/arm/cpu/armv8/built-in.o
      LD      cmd/built-in.o
      LD      common/built-in.o
      CC      drivers/usb/gadget/f_fastboot.o
      CC      lib/smbios.o
      CC      lib/display_options.o
      LD      drivers/usb/gadget/built-in.o
      LD      lib/built-in.o
      LD      u-boot
      OBJCOPY u-boot.srec
      OBJCOPY u-boot-nodtb.bin
      SYM     u-boot.sym
    make[2]: 'arch/arm/dts/rk3399-evb.dtb' is up to date.
      COPY    u-boot.dtb
    start=$(/source/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(/source/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00200000 $start $end
      CAT     u-boot-dtb.bin
      CC      tpl/arch/arm/mach-rockchip/tpl.o
      CC      spl/arch/arm/cpu/armv8/fwcall.o
      LD      spl/arch/arm/cpu/armv8/built-in.o
      CC      tpl/common/spl/spl.o
      LD      tpl/arch/arm/mach-rockchip/built-in.o
      CC      spl/common/spl/spl.o
      CC      tpl/arch/arm/cpu/armv8/fwcall.o
      MKIMAGE u-boot.img
      LD      tpl/arch/arm/cpu/armv8/built-in.o
      LD      tpl/common/spl/built-in.o
      LD      spl/common/spl/built-in.o
      MKIMAGE u-boot-dtb.img
      COPY    u-boot.bin
      ALIGN   u-boot.bin
      COPY    tpl/u-boot-tpl.dtb
      CC      tpl/lib/display_options.o
      CC      spl/lib/display_options.o
      COPY    spl/u-boot-spl.dtb
      LD      tpl/lib/built-in.o
      LD      spl/lib/built-in.o
      LD      tpl/u-boot-tpl
      LD      spl/u-boot-spl
      OBJCOPY tpl/u-boot-tpl-nodtb.bin
      CAT     tpl/u-boot-tpl-dtb.bin
      COPY    tpl/u-boot-tpl.bin
      OBJCOPY spl/u-boot-spl-nodtb.bin
      CAT     spl/u-boot-spl-dtb.bin
      COPY    spl/u-boot-spl.bin
      CFGCHK  u-boot.cfg
    
     load addr is 0x200000!
    pack input u-boot.bin 
    pack file size: 1098664(1072 KB)
    crc = 0xe5e79a4b
    uboot version: U-Boot 2017.09-gc64e256218-200416 #yzc (Apr 29 2020 - 16:22:05)
    pack uboot.img success! 
    pack uboot okay! Input: u-boot.bin
    
    out:trust.img
    merge success(trust.img)
    pack trust okay! Input: /source/rkbin/RKTRUST/RK3399TRUST.ini
    
    /source/u-boot
    ********boot_merger ver 1.2********
    Info:Pack loader ok.
    pack loader okay! Input: /source/rkbin/RKBOOT/RK3399MINIALL.ini
    /source/u-boot
    
    Platform RK3399 is build OK, with new .config(make tinker_board_2_defconfig -j8)
    /source/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
    Thu May 18 08:46:11 UTC 2023
    Running build_uboot succeeded.
    Skipping build_loader for missing configs:  RK_LOADER_BUILD_TARGET.
    ============Start building kernel============
    TARGET_ARCH          =arm64
    TARGET_KERNEL_CONFIG =tinker_board_2_defconfig
    TARGET_KERNEL_DTS    =rk3399-tinker_board_2
    TARGET_KERNEL_CONFIG_FRAGMENT =
    ==========================================
    arch/arm64/configs/tinker_board_2_defconfig:205:warning: override: reassigning to symbol NETFILTER
    arch/arm64/configs/tinker_board_2_defconfig:206:warning: override: reassigning to symbol IP_NF_MANGLE
    #
    # configuration written to .config
    #
    scripts/kconfig/conf  --syncconfig Kconfig
      CALL    scripts/checksyscalls.sh
      CHK     include/generated/compile.h
      UPD     include/generated/compile.h
      CC      init/version.o
      GZIP    kernel/config_data.gz
      AR      init/built-in.a
      GEN     .version
      CHK     include/generated/compile.h
      UPD     include/generated/compile.h
      CC      init/version.o
      AR      init/built-in.a
      AR      built-in.a
      MODPOST vmlinux.o
      KSYM    .tmp_kallsyms1.o
      KSYM    .tmp_kallsyms2.o
      LD      vmlinux
      SORTEX  vmlinux
      SYSMAP  System.map
      OBJCOPY arch/arm64/boot/Image
      LZ4C    arch/arm64/boot/Image.lz4
      Image:  kernel.img is ready
      CALL    scripts/checksyscalls.sh
      Building modules, stage 2.
      MODPOST 14 modules
    is not rk356x
      Image:  resource.img (with rk3399-tinker_board_2.dtb logo.bmp logo_kernel.bmp) is ready
      Image:  boot.img (with Image  resource.img) is ready
      Image:  zboot.img (with Image.lz4  resource.img) is ready
     PLEASE CHECK BOARD GPIO POWER DOMAIN CONFIGURATION !!!!!
     <<< ESPECIALLY Wi-Fi/Flash/Ethernet IO power domain >>> !!!!!
     Check Node [pmu_io_domains] in the file: /source/kernel/arch/arm64/boot/dts/rockchip/rk3399-tinker_board_2.dts 
    
     请再次确认板级的电源域配置!!!!!!
     <<< 特别是Wi-Fi,FLASH,以太网这几路IO电源的配置 >>> !!!!!
     检查内核文件 /source/kernel/arch/arm64/boot/dts/rockchip/rk3399-tinker_board_2.dts 的节点 [pmu_io_domains] 
    
    
    pmu1830-supply = < 0x83
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1500mV
    regulator-max-microvolt =  1500mV
    regulator-min-microvolt =  900mV
    regulator-max-microvolt =  900mV
    regulator-min-microvolt =  3000mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  12000mV
    regulator-max-microvolt =  12000mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  3000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  800mV
    regulator-max-microvolt =  1400mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    
    
    bt656-supply = < 0x83
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1500mV
    regulator-max-microvolt =  1500mV
    regulator-min-microvolt =  900mV
    regulator-max-microvolt =  900mV
    regulator-min-microvolt =  3000mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  12000mV
    regulator-max-microvolt =  12000mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  3000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  800mV
    regulator-max-microvolt =  1400mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    
    
    audio-supply = < 0x83
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1500mV
    regulator-max-microvolt =  1500mV
    regulator-min-microvolt =  900mV
    regulator-max-microvolt =  900mV
    regulator-min-microvolt =  3000mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  12000mV
    regulator-max-microvolt =  12000mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  3000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  800mV
    regulator-max-microvolt =  1400mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    
    
    sdmmc-supply = < 0x30
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1500mV
    regulator-max-microvolt =  1500mV
    regulator-min-microvolt =  900mV
    regulator-max-microvolt =  900mV
    regulator-min-microvolt =  3000mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  12000mV
    regulator-max-microvolt =  12000mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  3000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  800mV
    regulator-max-microvolt =  1400mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    
    
    gpio1830-supply = < 0x83
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  750mV
    regulator-max-microvolt =  1350mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1500mV
    regulator-max-microvolt =  1500mV
    regulator-min-microvolt =  900mV
    regulator-max-microvolt =  900mV
    regulator-min-microvolt =  3000mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  12000mV
    regulator-max-microvolt =  12000mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    regulator-max-microvolt =  3000mV
    regulator-min-microvolt =  3000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  5000mV
    regulator-max-microvolt =  5000mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  800mV
    regulator-max-microvolt =  1400mV
    regulator-min-microvolt =  3300mV
    regulator-max-microvolt =  3300mV
    regulator-min-microvolt =  1800mV
    regulator-max-microvolt =  1800mV
    Running build_kernel succeeded.
    ============Start building kernel modules============
    TARGET_ARCH          =arm64
    TARGET_KERNEL_CONFIG =tinker_board_2_defconfig
    TARGET_KERNEL_CONFIG_FRAGMENT =
    ==================================================
    arch/arm64/configs/tinker_board_2_defconfig:205:warning: override: reassigning to symbol NETFILTER
    arch/arm64/configs/tinker_board_2_defconfig:206:warning: override: reassigning to symbol IP_NF_MANGLE
    #
    # configuration written to .config
    #
    scripts/kconfig/conf  --syncconfig Kconfig
      CALL    scripts/checksyscalls.sh
      Building modules, stage 2.
      MODPOST 14 modules
      INSTALL drivers/bluetooth/rtk_btusb.ko
      INSTALL drivers/net/can/can-dev.ko
      INSTALL drivers/net/can/spi/mcp251x.ko
      INSTALL drivers/net/wireless/marvell/mwifiex/mwifiex.ko
      INSTALL drivers/net/wireless/marvell/mwifiex/mwifiex_sdio.ko
      INSTALL drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.ko
      INSTALL drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/8812au.ko
      INSTALL drivers/net/wireless/rockchip_wlan/rtl8814au/8814au.ko
      INSTALL drivers/net/wireless/rockchip_wlan/rtl8822ce/8822ce.ko
      INSTALL drivers/net/wireless/rockchip_wlan/rtl8852be/8852be.ko
      INSTALL net/can/can-bcm.ko
      INSTALL net/can/can-gw.ko
      INSTALL net/can/can-raw.ko
      INSTALL net/can/can.ko
      DEPMOD  4.19.232
    Running build_modules succeeded.
    Skipping build_toolchain for missing configs:  RK_CFG_TOOLCHAIN.
    =========Start building debian for arm64=========
    ./build.sh: line 829: ./mk-base-debian.sh: No such file or directory
    ERROR: Running build_debian failed!
    ERROR: exit code 127 from line 829:
        RELEASE=$RK_DEBIAN_VERSION TARGET=desktop ARCH=$ARCH ./mk-base-debian.sh
    coder@mod4:~/Projects/tinker_2$ find . -name mk-base-debian.sh
    ./debian/mk-base-debian.sh

    there is no this file in the debian_new dir


  9. 5 hours ago, tooz said:

    hello @giseleznev

    what is the os version you're using and can we have the screenshot of the aplay -l result for checking?

    the 'hdmi-dp-sound' is an old structure that does not exist anymore, i don't have a pisound but if its chip is pcm5102a then 'overlay=hifiberry-dac' may work. please use v.2.1.6 (debian 10, kernel 4.19) or later versioin Tinker Board 2 Debian 10 V2.1.6

     

    image.png

    image.png

    currently using Linux linaro-alip 4.4.194 #1 SMP Tue Aug 23 06:14:15 UTC 2022 aarch64 GNU/Linux, I'll try new release today

    that's true 'overlay=hifiberry-dac' works for dac, but thing I need from pisound is adc, there is the same problem with adc:

    image.png

    pisound.c file seems not board-specific, so thing that might differ is .dts file, can you see any more mistakes ?
    what should I use instead of 'hdmi-dp-sound'?


  10. Hi team, I'm trying to make pisound(https://blokas.io/pisound/) work with tinker board 2.

    I'm using pisound repo to get pisound.c kernel module file, and dts file: https://github.com/BlokasLabs/pisound

    Changes for tinker board(not 2) are available here: https://github.com/BlokasLabs/pisound/compare/master...tinkerboard, and it works: https://community.blokas.io/t/pisound-on-tinker-board/1015

    I changed .dts file, so that it suits tinker board 2. Dmesg is correct(https://pastebin.com/Cfdz5ct0), it is attached lower. I can see pisound in aplay -l and arecord -l lists.

    But when I run "speaker-test -D hw:pisound -c 2 -r 48000", I get:

    Can you look at pisound.c file please, is it ok for tinker board 2 ? Should I change something in a dts file or in pisound.c file ? How can I solve this problem ? Thanks a lot!

    (Linux linaro-alip 4.4.194)

    speaker-test 1.1.8
    
    Playback device is hw:pisound
    Stream parameters are 48000Hz, S16_LE, 2 channels
    Using 16 octaves of pink noise
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 128 to 131072
    Period size range from 64 to 65536
    Using max buffer size 131072
    Periods = 4
    was set period_size = 32768
    was set buffer_size = 131072
     0 - Front Left
     1 - Front Right
    Write error: -5,Input/output error
    xrun_recovery failed: -5,Input/output error
    Transfer failed: Input/output error
    /dts-v1/;
    /plugin/;
    
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/pinctrl/rockchip.h>
    
    / {
    	compatible = "rockchip,rk3399";
    	
    	fragment@0 {
    		target-path = "/spdif-sound";
    		__overlay__ {
    			status = "disabled";
    		};
    	};
    
    	fragment@1 {
    		target-path = "/hdmi-dp-sound";
    		__overlay__ {
    			status = "disabled";
    		};
    	};
    	fragment@2 {
    		target-path ="/i2s@ff880000";
    		__overlay__ {
    			#sound-dai-cells = <0>;
    			status = "okay";
    		};
    	};
    	fragment@3 {
    		target = <&spi2>;
    		__overlay__ {
    			#address-cells = <1>;
    			#size-cells = <0>;
    			status = "okay";
    			spidev@0 {
    				status="okay";
    			};
    			spidev@1 {
    				status="okay";
    			};
    			pisound_spi: pisound_spi@0{
    				compatible = "blokaslabs,pisound-spi";
    				reg = <0>;
    				spi-max-frequency = <100000>;
    			};
    		};
    	};
    
    	fragment@4 {
    		target-path = "/";
    		__overlay__ {
    			pcm5102a-codec {
    				#sound-dai-cells = <0>;
    				compatible = "ti,pcm5102a";
    				status = "okay";
    			};
    		};
    	};
    
    	fragment@5 {
    		target = <&pinctrl>;
    		__overlay__ {
    			pisound_pins: pisound_pins {
    				rockchip,pins =
    					<&gpio4 22 RK_FUNC_GPIO &pcfg_pull_none>,
    					<&gpio4 21 RK_FUNC_GPIO &pcfg_pull_none>,
    					<&gpio2 18 RK_FUNC_GPIO &pcfg_pull_none>,
    					<&gpio4 18 RK_FUNC_GPIO &pcfg_pull_none>,
    					<&gpio2 23 RK_FUNC_GPIO &pcfg_pull_none>,
    					<&gpio3 28 RK_FUNC_GPIO &pcfg_pull_none>,
    					<&gpio2 19 RK_FUNC_GPIO &pcfg_pull_none>;
    			};
    		};
    	};
    
    	fragment@6 {
    		target-path = "/sound-ext-card";
    		__overlay__ {
    			compatible = "blokaslabs,pisound";
    			i2s-controller = <&i2s0>;
    			status = "okay";
    
    			pinctrl-names = "default";
    			pinctrl-0 = <&pisound_pins>;
    
    			osr-gpios =
    				<&gpio4 22 GPIO_ACTIVE_HIGH>, // GP7C6
    				<&gpio4 21 GPIO_ACTIVE_HIGH>, // GP7B0
    				<&gpio2 18 GPIO_ACTIVE_HIGH>; // GP7A7
    
    			reset-gpios =
    				<&gpio4 18 GPIO_ACTIVE_HIGH>, // GP7C7
    				<&gpio2 23 GPIO_ACTIVE_HIGH>; // GP5B3
    
    			data_available-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>; // GP5C3
    
    			button-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; // GP5B4
    		};
    	};
    };

     


  11. @tooz

    Thanks a lot! Really worked for me, but now I'm getting a new error:
    It's true, there no mk-base-debian.sh in a debian_new dir

    Running build_modules succeeded.
    Skipping build_toolchain for missing configs:  RK_CFG_TOOLCHAIN.
    =========Start building debian for arm64=========
    ./build.sh: line 829: ./mk-base-debian.sh: No such file or directory
    ERROR: Running build_debian failed!
    ERROR: exit code 127 from line 829:
        RELEASE=$RK_DEBIAN_VERSION TARGET=desktop ARCH=$ARCH ./mk-base-debian.sh

     


  12. @tooz
    Synced lasted 4 hours, now ok. Got it, then did ./docker_builder/docker-builder-run.sh
    Now I have a problem inside a docker after ./build.sh
    Log attached. Please help!

    ============Start building kernel============
    TARGET_ARCH          =arm64
    TARGET_KERNEL_CONFIG =tinker_board_2_defconfig
    TARGET_KERNEL_DTS    =rk3399-tinker_board_2
    TARGET_KERNEL_CONFIG_FRAGMENT =
    ==========================================
    arch/arm64/configs/tinker_board_2_defconfig:205:warning: override: reassigning to symbol NETFILTER
    arch/arm64/configs/tinker_board_2_defconfig:206:warning: override: reassigning to symbol IP_NF_MANGLE
    #
    # configuration written to .config
    #
    scripts/kconfig/conf  --syncconfig Kconfig
      CALL    scripts/checksyscalls.sh
      CHK     include/generated/compile.h
      UPD     include/generated/compile.h
      CC      init/version.o
      AR      init/built-in.a
      GZIP    kernel/config_data.gz
    make[2]: *** No rule to make target 'net/netfilter/xt_TCPMSS.o', needed by 'net/netfilter/built-in.a'.  Stop.
    scripts/Makefile.build:637: recipe for target 'net/netfilter' failed
    make[1]: *** [net/netfilter] Error 2
    make[1]: *** Waiting for unfinished jobs....
    Makefile:1194: recipe for target 'net' failed
    make: *** [net] Error 2
    make: *** Waiting for unfinished jobs....
    fatal: not a git repository (or any parent up to mount point /)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
    ERROR: Running build_kernel failed!
    ERROR: exit code 2 from line 674:
        make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS

     

×
×
  • Create New...