导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. KunYi
    • 资料
    • 关注 0
    • 粉丝 0
    • 我的积分 12555
    • 主题 3
    • 帖子 34
    • 最佳 8
    • 群组 0

    KunYiLV 8

    @KunYi

    12555
    积分
    10
    声望
    19
    资料浏览
    34
    帖子
    0
    粉丝
    0
    关注
    注册时间 最后登录

    KunYi 取消关注 关注

    KunYi 发布的最佳帖子

    • 回复: 【T527 SDK编译报错】

      @bill_j

      我用Docker 裝 ubuntu 20.04

      安裝下面 package 可以正常build core and full 版本

      RUN dpkg --add-architecture i386 && \
          apt-get update && \
          apt-get install -y locales && \
          localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
      
      ENV LANG en_US.UTF-8
      
      RUN apt-get install --no-install-recommends --no-install-suggests --yes \
              build-essential ca-certificates gcc gcc-multilib clang curl \
              git git-lfs gnupg gperf build-essential zip libc6-dev python \
              x11proto-core-dev libgl1-mesa-dev g++-multilib tofrodos zlib1g-dev \
              libncurses5-dev:i386 libx11-dev:i386 libreadline6-dev:i386  \
              libgl1-mesa-glx:i386 zlib1g-dev:i386 linux-libc-dev:i386 gawk \
              libncurses5-dev bc bison flex gettext libssl-dev autoconf libtool \
              wget patch dos2unix tree u-boot-tools libelf-dev libncurses5 \
              libxml2-utils xsltproc markdown texinfo gettext busybox \
              fakeroot cpio unzip rsync ccache xxd vim liblzo2-2 && \
          apt-get clean && \
          rm -rf /var/lib/apt/* /var/cache/apt/* /tmp/* /var/tmp/*
      
      

      後面是完整的 Dockerfile 還有怎樣build docker image 跟進入docker環境用的shell script

      進 container 後 
      直接 ./build.sh config && ./build.sh 即可
      文件講的環境變數
      只需要
      export ARCH=arm64
      export CROSS_COMPILE=aarch64-none-linux-gnu-
      用我的Dockerfile 已經寫在裡面了
      加上其他會產生類似你的錯誤
      entrycontainer
      build-container
      Dockerfile

      发布在 T Series
      KunYi
      KunYi
    • 回复: 新 SDK 平台下载 MR813 SDK

      @whycanservice

      repo sync
      难道不支持 git/ssh keyfile了吗?
      只剩下https?

      发布在 A Series
      KunYi
      KunYi
    • 回复: 请教一下各位大佬,这是mipi屏原厂给过来的初始化代码,麻烦大家帮忙看一下这是什么意思?

      @wyljkl
      看這個
      https://bbs.aw-ol.com/topic/1486/一图看懂-mipi-lcd-的初始化序列

      发布在 MR Series
      KunYi
      KunYi
    • 回复: 求高人指点! ISP通路测试 sample_vin_isp_test 报错

      @xjy_5
      ref. https://blog.csdn.net/wanglining1987/article/details/50202615

      发布在 V Series
      KunYi
      KunYi
    • 回复: AvaotaSBC 系列 A1 自带SPI显示屏 T527 开源版来啦!!!

      @radxiaohe
        官方網站 https://avaota.fun/
        源代碼在 github 上 https://github.com/AvaotaSBC

      发布在 T Series
      KunYi
      KunYi
    • 回复: D1S 调试串口uart3,如何配置,需修改哪些文件

      @westwhale
      在
      全志芯片Tina Linux 修改 UART 引脚、UART端口
      https://bbs.aw-ol.com/topic/1673

      修改启动bootargs

      有這個
      你有做嗎?
      這個決定linux 的console

      发布在 MR Series
      KunYi
      KunYi
    • 回复: 求高人指点! ISP通路测试 sample_vin_isp_test 报错

      @xjy_5
      沒實際做過
      不過看你的log 你可以看到是有呼叫到 驅動的但是 image pipeline 建立失敗
      你仔細研究看看 應該有機會的

      I0101 03:45:59.705919  1128 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:MIC2 In[   32.135476] [tc358743_mipi]sensor_power
      put Select
      I0101 03:45:59.70604[   32.142119] [tc358743_mipi]PWR_ON!
      1  1128 alsa_interface.c:736]                               <alsaOpenMixer> alsa_elem:MIC2 gain volume
      I0101 03:45:59.706113  1128 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:SPK
      I0101 03:45:59.706173  1128 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:digital volume
      I0101 03:45:59.706228  1128 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:rx sync mode
      I0101 03:45:59.706281  1128 alsa_interface.c:736]           <alsaOpenMixer> alsa_elem:tx hub mode
      I0101 03:45:59.712543  1128 sample_virvi.c:633]             <initSaveB[   32.193321] [tc358743_mipi]sensor_init
      ufMgr> node[0] alloc data len[3110400] phy addr[1221591040] vir addr[0xb6966000]
      I0101 03:45:59.719106  1128 sample_virvi.c:633]             <initSaveBufMgr> node[1] alloc data len[3110400] phy addr[1224736768] vir addr[0xb666e000]
      I0101 03:45:59.725542  1128 sample_virvi.c:633]             <initSaveBufMgr> node[2] alloc data len[3110400] phy addr[1227882496] vir addr[0xb6376000]
      I0101 03:45:59.731885  1128 sample_virvi.c:633]             <initSaveBufMgr> node[3] alloc data len[3110400] phy addr[1231028224] vir addr[0xb607e000]
      I0101 03:45:59.738354  1128 sample_virvi.c:633]             <initSaveBufMgr> node[4] alloc data len[3110400] phy addr[1234173952] vir addr[0xb5d86000]
      [ISP]video device name is vin_video0
      [ISP]open video device[0], detect isp0 success!
      I0101 03:45:59.739078  1128 media_debug.c:45]               <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null)
      I0101 03:45:59.739625  1128 videoInputHw.c:1015]            <videoInputHw_SetChnAttr> ViCh[0], user set disable Encpp
      [   32.375465] v4l2_dev:ddc438b8
      [   32.379612] [TC358743]tc358743 chipid:0x0
      [ISP]video0 fd[14] ve_online_en=[   32.384193] [VIN]ve_online close
      0, dma_buf_num=0
      [   32.391026] [VIN_ERR]vin is not support this pixelformat
      [   32.398110] [VIN_ERR]vin_pipeline_try_format failed
      [ISP_ERR]video_set_fmt, line: 194,VIDIOC_S_FMT error!
      E0101 03:[   32.406800] [tc358743_mipi]sensor_ioctl cmd:-1069787396
      46:00.008377  1128 videoInputHw.c:1055]                     <videoInputHw_SetChnAttr> video set_fmt failed, chn[0]
      E0101 03:46:00.008512  1128 sample_virvi.c:758]             <prepare> fatal error! vi dev[0] set vipp attr fail!
      [ISP]open isp device[0] success!
      [ISP_ERR]isp_sensor_get_configs, line: 810,tc358743_mipi get config failed: Invalid argument (22).
      [ISP_WARN]open /mnt/extsd/isp0_0_0_0_ctx_saved.bin failed, err:No such file or directory.
      [ISP]prefer isp config: [tc358743_mipi], 0x0, 0, 0, 0
      [ISP_WARN]cannot find tc358743_mipi_0_0_0_0_0 isp config, use gc2053_mipi_1920_1088_20_0_0 -> [gc2053_mipi_isp600_20220511_164617_vlc4_day]
      [ISP_ERR]isp_ctx_config_init, line: 2305,sensor attribute is not init.
      [ISP]create isp0 server thread!
      planes number is error!
      

      記得你的 ISP 要trun off
      ref.https://zhuanlan.zhihu.com/p/628496408

      发布在 V Series
      KunYi
      KunYi
    • 回复: V853的板子能像windows一样吗?设置两个不同的ip

      @sunxi 跟板子無關
      可以看看這個
      http://cn.linux.vbird.org/linux_server/0230router.php#routing_ip_alias

      发布在 V Series
      KunYi
      KunYi

    KunYi 发布的最新帖子

    • 回复: F133 RTSCTS LINE

      Okay, Maybe you can try the below code

      #include <stdio.h>
      #include <fcntl.h>
      #include <errno.h>
      #include <termios.h>
      #include <unistd.h>
      #include <sys/ioctl.h>
      #include <linux/serial.h>
      #include <string.h>
      
      int main(int argc, char *argv[]) {
          // Open serial port ttyS1
          const char *device = "/dev/ttyS1";
          int fd = open(device, O_RDWR | O_NOCTTY);
          
          if (fd < 0) {
              perror("Error opening serial port");
              return -1;
          }
      
          // Get the current serial port settings
          struct termios tty;
          if (tcgetattr(fd, &tty) < 0) {
              perror("Error getting port attributes");
              close(fd);
              return -1;
          }
      
          // Configure the serial port settings
          // Clear all settings first
          tty.c_cflag = 0;
          tty.c_iflag = 0;
          
          // Enable receiver, ignore modem control lines
          tty.c_cflag |= CREAD | CLOCAL;
          
          // Enable hardware flow control (RTS/CTS)
          tty.c_cflag |= CRTSCTS;
          
          // Set baud rate to 19200
          cfsetispeed(&tty, B19200);
          cfsetospeed(&tty, B19200);
          
          // Set 7 bits per byte
          tty.c_cflag |= CS7;
          
          // Enable even parity bit,  without PARODD
          tty.c_cflag |= PARENB;
          
          // Set 2 stop bits
          tty.c_cflag |= CSTOPB;
          
          // Apply the new settings
          if (tcsetattr(fd, TCSANOW, &tty) < 0) {
              perror("Error setting port attributes");
              close(fd);
              return -1;
          }
      
          printf("Serial port configured successfully\n");
          printf("Port configuration:\n");
          printf("- Device: %s\n", device);
          printf("- Baud rate: 19200\n");
          printf("- Data bits: 7\n");
          printf("- Parity: Even\n");
          printf("- Stop bits: 2\n");
          printf("- Flow control: RTS/CTS\n");
      
          // Test string to send
          const char *test_string = "Hello! This is UART1\n";
          ssize_t bytes_written = write(fd, test_string, strlen(test_string));
          
          if (bytes_written < 0) {
              perror("Error writing to serial port");
          } else {
              printf("\nSent %zd bytes: %s", bytes_written, test_string);
          }
      
          // Keep the port open briefly to ensure transmission
          sleep(1);
      
          // Close the serial port
          close(fd);
          return 0;
      }
      
      发布在 H/F/TV Series
      KunYi
      KunYi
    • 回复: F133 RTSCTS LINE

      @emresensoy

      check device tree first, check uart1_pins_a with RTS/CTS pin control

      pinctrl-0 = <&uart1_pins_a>;

      发布在 H/F/TV Series
      KunYi
      KunYi
    • 回复: T113-S3,adb shell乱码[T113_QA0002]

      不要用Cmd 這沒法支持

      用Putty Tray 試試
      或是 PowerShell
      另外還有Cmder
      b907009b-e3dd-4930-a1d3-9f9642600245-image.png

      发布在 T Series
      KunYi
      KunYi
    • 回复: V853的板子能像windows一样吗?设置两个不同的ip

      @sunxi 跟板子無關
      可以看看這個
      http://cn.linux.vbird.org/linux_server/0230router.php#routing_ip_alias

      发布在 V Series
      KunYi
      KunYi
    • 回复: V3s两个串口同时打开报错

      @b18770205274
      不是喔
      你的語法是 send_fd > 0 就會執行 printf("open error\n"); exit(EXIT_FAILURE);

      要 if ((send_fd < 0) || (receive_fd < 0))這樣才是你說的意思

      发布在 V Series
      KunYi
      KunYi
    • 回复: H618怎么才能支持sdio 3.0模式

      @gwx123

      就dts 可能有問題

      如果你都確定其他版本可以正確
      表示在那個版本的軟硬件設定正確

      那事情就簡單了 就是Android 12 設定不正確

      我也不是原廠的工程師
      只是說明訊息產生的原因
      言盡於此

      发布在 H/F/TV Series
      KunYi
      KunYi
    • 回复: H618怎么才能支持sdio 3.0模式

      @gwx123
      電壓要能支持1.8V and 3.3V切換才行支持 SDIO 3.0
      不然就吐那個說你的卡需要更低電壓

      发布在 H/F/TV Series
      KunYi
      KunYi
    • 回复: 全志T113 运行 谷歌 Flutter UI 示例,请问有没有哪位大佬了解怎么移植适配最新 Flutter 版本呢?

      @baiwen
      看看這個 https://github.com/sony/flutter-embedded-linux

      发布在 GUI
      KunYi
      KunYi
    • 回复: A133芯片uboot运行时,SDK的uboot源码电源芯片有一个2s的超时机制,是否可将这个超时时间减少

      @li32134134

      沒試過不過看起來這段代碼有bugs
      應該 if() else break; 讀到後就離開 while()

      发布在 Linux
      KunYi
      KunYi
    • 回复: Ubuntu18.04配置livesuit环境时报错insmod: ERROR: could not insert module awusb.ko: Invalid module format

      @ary_ye 在 Ubuntu18.04配置livesuit环境时报错insmod: ERROR: could not insert module awusb.ko: Invalid module format 中说:

      @kunyi

      linxiaoyan@WP:~/sunxi-livesuite-master/awusb$ modinfo ./awusb.ko 
      filename:       /home/linxiaoyan/sunxi-livesuite-master/awusb/./awusb.ko
      license:        GPL
      description:    AW USB driver
      author:         Jojo
      srcversion:     E085DDDF9EB284306C544FA
      alias:          usb:v1F3ApEFE8d*dc*dsc*dp*ic*isc*ip*in*
      depends:        
      retpoline:      Y
      name:           awusb
      vermagic:       5.15.0-41-generic SMP mod_unload modversions 
      linxiaoyan@WP:~/sunxi-livesuite-master/awusb$ uname -r
      5.15.0-41-generic
      linxiaoyan@WP:~/sunxi-livesuite-master/awusb$ sudo insmod ./awusb.ko 
      [sudo] linxiaoyan 的密码: 
      insmod: ERROR: could not insert module ./awusb.ko: Invalid module format
      linxiaoyan@WP:~/sunxi-livesuite-master/awusb$ 
      

      内核版本对的上,livesuit上说重新安装dkms我也照做了,还是用不了,奇怪了😕

      這樣我就也搞不懂了,我遇過的是版本對不上,livesuit 上的Makefile & dkms.conf 有問題
      當系統kernel 升級的時候,它dkms 可能在前一個版本執行,uname -r 會有問題
      要修改,我回答你問題的時候就發現我用5.15.0-116-generic 但是它會變成用5.15.0-113-generic
      重新編譯才正常
      你的系統有沒有開Secure Boot? 有的話只能用dkms 去編譯跟簽名
      acd2aca2-95d0-439a-86f6-edf790b029bf-image.png
      d7b9f6dc-8152-4340-9cfe-8fef8cb81db3-image.png

      下面是我改過得 Makefile & dkms.conf
      Makefile

      code_text
      
      obj-m := awusb.o
      KDIR ?= /lib/modules/$(shell uname -r)/build
      PWD := $(shell pwd)
      
      default:
      	$(MAKE) -C $(KDIR) M=$(PWD) modules
      clean:
      	$(MAKE) -C $(KDIR) M=$(PWD) clean
      	rm -rf Module.markers module.order module.sysvers
      
      

      dkms.conf

      code_text
      
      PACKAGE_NAME="awdev"
      PACKAGE_VERSION="0.5"
      CLEAN="make clean"
      MAKE[0]="make default KERNELVERSION=$kernelver KDIR=/lib/modules/$kernelver/build"
      BUILT_MODULE_NAME[0]="awusb"
      DEST_MODULE_LOCATION[0]="/updates"
      AUTOINSTALL="yes"
      
      
      发布在 编译和烧写问题专区
      KunYi
      KunYi