导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. awwwwa
    3. 帖子
    A
    • 资料
    • 关注 0
    • 粉丝 18
    • 我的积分 14031
    • 主题 11
    • 帖子 546
    • 最佳 147
    • 群组 1

    awwwwa 发布的帖子

    • 回复: D1-H烧录固件后无法进入tina linux

      看一下 device/config/chips/d1-h/configs/nezha/sys_config.fex 的内容

      发布在 MR Series
      A
      awwwwa
    • 回复: v853 vin通路配置

      (1)在线模式:四个vipp和dma实体,最大缩小比例为16*16,每路最多可支持16个orl
      (2)离线模式:每个vipp和dma可分时复用为4个vipp和dma虚拟体,四个vipp和dma实体相互独立,在线模式和离线模式开关也是相互独立的;
      (3)VIPP和DAM的分时复用(离线模式)与isp和tdm的分时复用(离线模式)是绑定关系,即tdm和isp开启了离线模式,vipp和dma的输入端如果是isp,那么vipp和dma也需要开启离线模式;
      (4)只有VIPP0和dma0实体支持VE在线编码,而vipp0在线,如果vipp00的输入端为isp,那么tdm和isp也只能配置在线模式,而isp在线,那么四个vipp和dma实体都只能配置在线模式;

      online 和 offline 配 置 方 式 在 board.dts , 所 以 需 要 在 对 应 版 型 的 board.dts 中 找 到 vind0 节 点 配 置 列 表 , 对 应 关 系 为 tdm 对 应 节 点 , isp 对 应 isp00 节 点 , vipp 对 应 scaler00 、 scaler10 、 scaler20 和 scaler30 节 点 , dma 对 , 应 vinc00 、 vinc10 、 vinc20 和 vinc30 节 点 。

      • 在线模式,单路3输出

      18ca36be-ad38-4813-9032-065baa08e803-image.png

      • 离线模式,2路8输出

      7c83156e-caa3-4a20-b0cb-cbb1546d1931-image.png

      发布在 V Series
      A
      awwwwa
    • 回复: T113 nand flash 启动失败

      @cwj1986521 内核没有配置UBIFS

      5140d1f6-ea76-42f0-b4fd-9fac6c725ebb-image.png

      83e11990-9d61-49d0-9eac-ac1d699cb2cb-image.png

      CONFIG_UBIFS_FS=y
      CONFIG_UBIFS_FS_ADVANCED_COMPR=y
      # CONFIG_UBIFS_FS_LZO is not set
      # CONFIG_UBIFS_FS_ZLIB is not set
      # CONFIG_UBIFS_FS_ZSTD is not set
      # CONFIG_UBIFS_ATIME_SUPPORT is not set
      CONFIG_UBIFS_FS_XATTR=y
      CONFIG_UBIFS_FS_SECURITY=y
      
      发布在 MR Series
      A
      awwwwa
    • 回复: 全志D1如何获取芯片运行的频率呢?

      @ppatb01 cpufreq需要配置

      c0ef7a84-7ed8-4e93-8996-3060c936b0d0-image.png

      发布在 MR Series
      A
      awwwwa
    • 回复: 全志D1如何获取芯片运行的频率呢?
      cd /sys/kernel/debug/
      cat clk/clk_summary | grep pll-cpux
      

      bdbb1cc0-55d6-4d0e-bc4f-5c2b49624ea1-image.png

      切换到 /sys/kernel/debug/ 目录,并尝试使用 cat 命令读取 clk/clk_summary 文件的内容,并通过 grep 过滤显示包含 "pll-cpux" 的行,便是CPU的运行时钟。

      如果运行命令时没有出现错误,并且输出了包含 "pll-cpux" 的行,则说明成功执行了命令并找到了匹配的行。

      如果命令未能正常执行,请确保目录和文件存在,以及你是否拥有适当的权限。另外,也请确保你的系统支持 debugfs 文件系统,并且已经正确挂载。

      发布在 MR Series
      A
      awwwwa
    • 回复: R128 PMU问题

      @alvinlbl 这个pmu指的是外置的电池管理pmu,内置的pmu不会使用twi控制输出。

      https://r128.docs.aw-ol.com/peripheral/pmu/

      发布在 A Series
      A
      awwwwa
    • 回复: 测试编译不过

      打入这个补丁试一下:de88083d-a6c8-403e-947c-81ccd05dc849-0001-fix-add-ENABLE_HARDFP-options.patch

      0001-feat-Support-e907-core-boot-up.patch

      可能是不同编译器导致的

      发布在 V Series
      A
      awwwwa
    • 回复: 测试编译不过
      • helloworld_fel 使用了 VFP 寄存器参数,但是某个库文件(libgcc.a(_udivmoddi4.o))却不支持。

      • 缺少 .note.GNU-stack 段,暗示可执行栈缺失。

      • 对于具有 RWX 权限的 LOAD 段,给出了警告。

      • 在链接时,出现了对 raise 函数的未定义引用。

      发布在 V Series
      A
      awwwwa
    • 回复: R128 PMU问题

      @alvinlbl 板子上要有pmu芯片才能通讯成功

      发布在 A Series
      A
      awwwwa
    • 回复: T113-S3 Tina_linux编译后启动失败

      @cwj1986521
      启用MTD子系统:UBIFS是建立在MTD(Memory Technology Devices)子系统之上的,因此首先需要启用MTD子系统。在内核配置中,你可以找到 CONFIG_MTD 配置项并将其启用。

      启用UBI:UBIFS需要使用UBI(Unsorted Block Images)层来管理闪存设备,因此你需要启用UBI支持。在内核配置中,查找 CONFIG_UBI 配置项并将其启用。

      启用UBIFS文件系统支持:在内核配置中,查找 CONFIG_UBIFS_FS 配置项并将其启用。这将启用UBIFS文件系统的核心支持。

      配置MTD设备:UBIFS需要与特定的MTD设备进行交互。你需要在内核配置中启用相应的MTD设备驱动,以及指定UBI和UBIFS所需的MTD设备参数。这些配置选项可能因硬件平台和具体的MTD设备而有所不同。

      发布在 MR Series
      A
      awwwwa
    • 回复: T113-S3 Tina_linux编译后启动失败

      ubi设备没有挂载,挂载为裸mtd设备

      正常挂载会出现大量UBI开头的log

      [    1.952826] sunxi-mmc 4021000.sdmmc: smc 0 p1 err, cmd 5, RTO !!
      [    1.960398] sunxi-mmc 4021000.sdmmc: smc 0 p1 err, cmd 5, RTO !!
      [    1.967886] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
      [    1.977685] sunxi-mmc 4021000.sdmmc: smc 0 p1 err, cmd 5, RTO !!
      [    1.984522] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
      [    1.997425] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
      [    2.010714] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
      [    2.020708] NET: Registered protocol family 10
      [    2.027327] Segment Routing with IPv6
      [    2.031537] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
      [    2.039133] NET: Registered protocol family 17
      [    2.044411] Bluetooth: RFCOMM TTY layer initialized
      [    2.049865] Bluetooth: RFCOMM socket layer initialized
      [    2.055819] Bluetooth: RFCOMM ver 1.11
      [    2.096457] ubi0: attaching mtd3
      [    2.473414] ubi0: scanning is finished
      [    2.490836] ubi0: attached mtd3 (name "sys", size 123 MiB)
      [    2.497186] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
      [    2.504905] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
      [    2.512552] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
      [    2.520340] ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0
      [    2.527055] ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128
      [    2.535131] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
      [    2.544501] ubi0: available PEBs: 10, total reserved PEBs: 482, PEBs reserved for bad PEB handling: 10
      [    2.555351] ubi0: background thread "ubi_bgt0d" started, PID 64
      [    2.564391] block ubiblock0_5: created from ubi0:5(rootfs)
      [    2.571959] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
      [    2.581694] clk: Not disabling unused clocks
      [    2.586458] ALSA device list:
      [    2.589758]   #0: audiocodec
      [    2.593045] cfg80211: failed to load regulatory.db
      [    2.598481] alloc_fd: slot 0 not NULL!
      [    2.606842] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
      [    2.618509] devtmpfs: mounted
      [    2.622621] Freeing unused kernel memory: 176K
      [    2.627755] This architecture does not have kernel memory protection.
      [    2.635026] Run /pseudo_init as init process
      mount: mounting none on /dev failed: Device or resource busy
      [    3.197350] UBIFS (ubi0:7): Mounting in unauthenticated mode
      [    3.204248] UBIFS (ubi0:7): background thread "ubifs_bgt0_7" started, PID 90
      [    3.306905] UBIFS (ubi0:7): recovery needed
      [    3.437736] random: crng init done
      [    3.484394] UBIFS (ubi0:7): recovery completed
      [    3.489563] UBIFS (ubi0:7): UBIFS: mounted UBI device 0, volume 7, name "rootfs_data"
      [    3.498354] UBIFS (ubi0:7): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
      [    3.509494] UBIFS (ubi0:7): FS size: 3096576 bytes (2 MiB, 12 LEBs), journal size 1806337 bytes (1 MiB, 5 LEBs)
      [    3.520808] UBIFS (ubi0:7): reserved for root: 146258 bytes (142 KiB)
      [    3.528009] UBIFS (ubi0:7): media format: w5/r0 (latest is w5/r0), UUID F3C42DF5-C431-46B6-9FB0-44D877A77B61, small LPT model
      can't run '/etc/preinit': No such file or directory
      mount: mounting devpts on /dev/pts failed: No such device
      [    3.914941] UBIFS (ubi0:8): Mounting in unauthenticated mode
      [    3.923295] UBIFS (ubi0:8): background thread "ubifs_bgt0_8" started, PID 118
      [    4.074613] UBIFS (ubi0:8): recovery needed
      [    4.176774] UBIFS (ubi0:8): recovery completed
      [    4.190587] UBIFS (ubi0:8): UBIFS: mounted UBI device 0, volume 8, name "UDISK"
      [    4.198772] UBIFS (ubi0:8): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
      [    4.211023] UBIFS (ubi0:8): FS size: 47738880 bytes (45 MiB, 185 LEBs), journal size 2322432 bytes (2 MiB, 9 LEBs)
      [    4.223836] UBIFS (ubi0:8): reserved for root: 2254825 bytes (2201 KiB)
      [    4.231568] UBIFS (ubi0:8): media format: w5/r0 (latest is w5/r0), UUID 36942453-7E73-45BA-9E89-913155DABE62, small LPT model
      
      发布在 MR Series
      A
      awwwwa
    • 回复: V851/V853怎么改boot0

      AWOL的开源版本不提供快起功能,如果需要请联系代理或者原厂FAE获取NDA版本SDK

      http://www.sochip.com.cn/

      发布在 V Series
      A
      awwwwa
    • 回复: 全志在线开源芯片 新 SDK 平台下载方法汇总

      @vaagolevs 请联系销售人员获取SDK与后续的更新通知

      发布在 代码下载问题专区
      A
      awwwwa
    • 回复: XR829不接串口能用吗?

      可以用,正常工作

      发布在 Wireless & Analog Series
      A
      awwwwa
    • 回复: R128 SDK。运行lunch_rtos退出的时候报错。

      @tianya000180 v0.9版本R128 SDK已修复,不是报错只是使用错误可以无视

      发布在 A Series
      A
      awwwwa
    • 回复: V853 SDK : PMU TWI

      @alb702 在 V853 SDK : PMU TWI 中说:

      [267]ic cant match axp, please check...

      V853 和 V853s 的芯片安全系统验证不一样,SDK不能通用,这行输出表示芯片型号验证失败,跳过初始化DRAM

      发布在 V Series
      A
      awwwwa
    • 回复: D1-H芯片用户手册中的USB部分

      @guoyao RT-Thread 推出过裸机HAL,https://github.com/RT-Thread/rt-thread/tree/master/bsp/allwinner/libraries/sunxi-hal/hal/source/usb

      发布在 MR Series
      A
      awwwwa
    • 回复: t113使用sd卡启动卡住了

      @xingxing8 注释掉CD之后就是轮询机制了,这也是为什么使用CD进行卡检测的原因

      发布在 Linux
      A
      awwwwa
    • 回复: R128 打包失败 merge_full_rtos_img_failed

      @cai_yp 分区参数错误,只打包了UDISK分区,但是UDISK是自动生成的分区

      32356+0 records in
      32356+0 records out
      8283136 bytes (8.3 MB) copied, 0.0394041 s, 210 MB/s
      this is not a partition key
      update mbr file ok
      ----------------mbr convert to gpt start---------------------
      out: sunxi_gpt_nor.fex
      source: sunxi_mbr_nor.fex
      input_logic_offset: 256
      input_flash_size: 16M
      gpt partition entry crc32 = 0x618ebc8
      gpt header crc32 = 0x4fdf09e2
      GPT----part num 10---
      gpt_entry: 128
      gpt_header: 92
      GPT:env         : 120           127
      GPT:env-redund  : 128           12f
      GPT:arm-lpsram  : 130           a8f
      GPT:rv-lpsram   : a90           1a2f
      GPT:dsp-hpsram  : 1a30          206f
      GPT:rtos-xip    : 2070          33f7
      GPT:arm-b       : 33f8          3d57
      GPT:config      : 3d58          3d77
      GPT:settings    : 3d78          3db7
      GPT:UDISK       : 3db8          7fff
      update gpt file ok
      ----------------mbr convert to gpt end---------------------
      boot0: boot0_spinor.fex
      redund boot0: boot0_spinor.fex
      mbr: sunxi_gpt_nor.fex
      partition: sys_partition_nor.bin
      UDISK_partition_size: 16968 sector
      outfile: rtos_16Mnor.bin
      logic_start: 128K
      total_image_size: 16M
      load file: boot0_spinor.fex ok
      load file: sunxi_gpt_nor.fex ok
      load file: boot0_spinor.fex ok
      support redund boot0 at 0x10000
      load file: sys_partition_nor.bin ok
      part name=env
      file name:env.fex
      part size:8 sector
      load file: env.fex ok
      part name=env-redund
      file name:env.fex
      part size:8 sector
      load file: env.fex ok
      part name=arm-lpsram
      file name:rtos_arm.fex
      part size:2400 sector
      load file: rtos_arm.fex ok
      part name=rv-lpsram
      file name:rtos_riscv.fex
      part size:4000 sector
      load file: rtos_riscv.fex ok
      part name=dsp-hpsram
      file name:rtos_dsp.fex
      part size:1600 sector
      load file: rtos_dsp.fex ok
      part name=rtos-xip
      file name:rtos_xip_rv.fex
      part size:5000 sector
      load file: rtos_xip_rv.fex ok
      part name=arm-b
      file name:etf.fex
      part size:2400 sector
      load file: etf.fex ok
      part name=config
      file name:config.fex
      part size:32 sector
      load file: config.fex ok
      part name=settings
      part size:64 sector
      part name=UDISK
      file name:data_udisk.fex
      load file: data_udisk.fex ok
      partname: UDISK
      this is not a partition key
      merge_package ok
      
      
      发布在 MR Series
      A
      awwwwa
    • 回复: t113使用sd卡启动卡住了

      同时注释掉

      cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;

      发布在 Linux
      A
      awwwwa
    • 回复: D1-H芯片用户手册中的USB部分

      @guoyao 是

      发布在 MR Series
      A
      awwwwa
    • 回复: t113使用sd卡启动卡住了

      @xingxing8 在 t113使用sd卡启动卡住了 中说:

      先看这行

      VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6

      这行表示没有挂载上mmc设备

      再往上找

      [ 4.002919] sunxi-mmc 4020000.sdmmc: Got CD GPIO
      [ 4.008458] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
      [ 4.018859] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B

      CD卡检测GPIO检测不到卡,关闭MMC驱动

      Linux中的驱动为了省电会根据CD引脚检测卡是否存在,不存在则关闭MMC驱动,U-boot驱动没有这个逻辑

      解决方法:

      1. 正向解决法
      • 根据实物硬件查看CD引脚配置,上下拉状态是否正常,是否反转CD
        83a89a3e-cad1-4bd7-9ad4-7d8caa3f582f-image.png
      1. 软件规避法
      • 直接关闭CD检测功能,取消注释 broken-cd;
        8fb933a9-17ad-4ed8-b25a-ac7d1e157945-image.png
      发布在 Linux
      A
      awwwwa
    • 回复: D1-H芯片用户手册中的USB部分

      架构图不全,看下面的寄存器就行

      1ae7fdf8-e9c9-499c-9426-6b0a689592ae-image.png

      发布在 MR Series
      A
      awwwwa
    • 回复: RISCV支持的编译链

      @zhaodongyu 在 RISCV支持的编译链 中说:

      0.7.1到1.0的映射

      0.7.1到1.0的映射

      发布在 MR Series
      A
      awwwwa
    • 回复: V853 SDK : PMU TWI

      @alb702 在device\config\chips\v853\configs\vision\sys_config.fex 中,out目录是从这里拷贝过去的

      发布在 V Series
      A
      awwwwa
    • 回复: Nano pi neo 加载文件系统的时候出现的问题

      /dev/mmcblk1p2

      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: V3s nor flash 烧录之后必须断电才能引导?

      @march1993 不太清楚NOR的布局,可以试试换NAND。V3s比较老的平台了解的不多

      发布在 编译和烧写问题专区
      A
      awwwwa
    • 回复: 请问D1s支持有源晶振吗?

      支持,HXIN接有源,HXOUT接地

      发布在 MR Series
      A
      awwwwa
    • 回复: V851S tina linux ov5647 驱动程序没有 dmesg

      ov5647 这个型号的摄像头并没有适配,SDK也没有支持。

      请参考V85x的摄像头支持手册选择适配的摄像头。这里推荐已经量产的产品使用的GC2063,GC2083,GC4663这三款摄像头,已经经过严格的测试与调试,可以达到最佳画质和分辨率

      https://bbs.aw-ol.com/assets/uploads/files/1661647266904-a0795b5c-bac6-4a32-8987-c214b30a0b91-allwinner-v853-raw-sensor-support-list_v1.0.pdf

      发布在 V Series
      A
      awwwwa
    • 回复: V853 SDK : PMU TWI

      引脚配置位于 sys_config.fex,与 Linux 设备树类似,是动态解析的

      58bbff70-0e86-4c5a-9f1e-b72f449b9578-image.png

      发布在 V Series
      A
      awwwwa
    • 回复: 全志在线开源芯片 新 SDK 平台下载方法汇总

      @vaagolevs 目前R128 1.0 SDK还未正式发布,测试版SDK可能未来会有较大接口变动。请耐心等待

      发布在 代码下载问题专区
      A
      awwwwa
    • 回复: T113-S3平台,使用can通信,TX发送数据出现大量错误码

      @duanzhh 这个需要咨询下代理有没有包含最新的CAN代码

      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: R128能从SD启动吗?

      @wj8331585 1.0正式版发布,目前都是内测版SDK

      发布在 A Series
      A
      awwwwa
    • 回复: V3s nor flash 烧录之后必须断电才能引导?

      @march1993 主线可能不支持,bsp有这个物料

      发布在 编译和烧写问题专区
      A
      awwwwa
    • 回复: V851S I2C/TWI 损坏(xfer 错误)

      @kanken6174 上拉是1.8V吗,还是上拉到3.3v了

      发布在 V Series
      A
      awwwwa
    • 回复: R128能从SD启动吗?

      @zcl508 之后适配完成会给demo与方案,目前操作还比较繁琐

      发布在 A Series
      A
      awwwwa
    • 回复: R128能从SD启动吗?

      @wj8331585 需要固件与方案支持,固件名称有emmc或nand
      82c339fd-14f5-4ede-acca-261cb958629c-image.png

      发布在 A Series
      A
      awwwwa
    • 回复: 2.4 spi lcd点不亮

      @wj8331585

      f3ec68a9-a16a-43f1-a011-0e0dceae5ba6-image.png

      这个输出不是报错,我这边正常驱动PWM也会出现这个输出

      发布在 A Series
      A
      awwwwa
    • 回复: 提高香橙派GPIO最高速率

      SoC一般不推荐GPIO翻转,如果需要提高需要提高APB的时钟,但是修改APB的时钟会对APB上的全部设备造成影响,例如UART,TWI,PWM,Timer全部需要重新计算频率配置

      1ea7f7cb-1d03-48b4-9151-fb997d0dc2eb-image.png

      发布在 H/F/TV Series
      A
      awwwwa
    • 回复: V3s nor flash 烧录之后必须断电才能引导?

      @march1993 在 V3s nor flash 烧录之后必须断电才能引导? 中说:

      u-boot-sunxi-with-spl.bin

      考虑u-boot-sunxi-with-spl.bin代码给rtc的fel标识位置位了

      发布在 编译和烧写问题专区
      A
      awwwwa
    • 回复: 2.4 spi lcd点不亮

      505588fa-ed45-4742-b25b-b7418a86bb64-image.png

      PA26是PWM6,不是PWM1

      发布在 A Series
      A
      awwwwa
    • 回复: T113-S3 MIPI + LVDS 可以实现吗

      @lansecd lcd_gpio_0 = <&pio PD 20 GPIO_ACTIVE_HIGH>; //reset 在Uboot里怎么配置的

      发布在 MR Series
      A
      awwwwa
    • 回复: R128能从SD启动吗?

      @wj8331585 在 R128能从SD启动吗? 中说:

      nor

      固件名称有nor,是片内nor专用,不支持sd卡启动

      发布在 A Series
      A
      awwwwa
    • 回复: 2.4 spi lcd点不亮

      8d362788-7781-45ce-9cc1-8f1db9131cdc-image.png

      配置成DBI了,老版本SDK需要手动注释DBI功能

      lichee\rtos-hal\hal\source\spilcd\lcd_fb\lcd_fb_feature.h
      

      0942f7c8-013c-4099-b1d5-830df0267c3a-image.png

      新版SDK已修复

      发布在 A Series
      A
      awwwwa
    • 回复: adb传输失败,文件系统变成只读的

      @towel_roll rootfs空间太大了把UDSIK都占了

      发布在 MR Series
      A
      awwwwa
    • T113 busybox init 配置 overlayfs 为 UDISK 分区而不是 rootfs_data
      1. 先确定挂载overlayfs

      查看 pseudo_init 中 MOUNT_OVERLAY 是不是 1,如果不是配置为 1

      package/busybox-init-base-files/files/pseudo_init
      

      9a131c14-2a2c-493d-8acc-b623cce5a138-image.png

      1. 修改挂载分区

      找到文件末尾,吧 rootfs_data 改成UDISK

      c3474e4a-e208-4549-9a82-9d9cc7372300-image.png

      发布在 Linux
      A
      awwwwa
    • 回复: adb传输失败,文件系统变成只读的

      @towel_roll dmesg看一下为什么没有挂载上

      发布在 MR Series
      A
      awwwwa
    • 回复: adb传输失败,文件系统变成只读的

      mount看看overlayfs挂载了吗

      发布在 MR Series
      A
      awwwwa
    • busybox init 简介

      一、简介

      tina 使用busybox init方式启动,首先调用执行pseudo_init(挂载文件系统,如/proc、/tmp、/sys /etc、/usr),接着会调用/sbin/init进程,而init进程调用的第一个启动脚本为/etc/init.d/rcS。


      二、平台的自定义
      不同的平台文件系统具有其共性与特殊性。tina/packge/busybox-init-base-files/files下提供了所有平台的基础文件。而在tina/target/allwinner/XXX/busybox-init-base-files下存放的是平台特性文件,其优先级高于前者,即当前者目录和后者存在有相同文件时,以后者为准。如有以下两个文件:

      A:tina/target/allwinner/r11-R11_pref1/busybox-init-base-files/etc/banner
      B:tina/package/busybox-init-base-files/files/etc/banner

      最终拷贝到文件系统中的为A。


      三、pseudo_init与rcS
      pseudo_init与rcS文件中存在很多平台共性的代码,避免系统充斥大量冗余代码,以及方便基础文件的维护和开发。所以不允许在特定平台下自定义pseudo_init、rcS文件(必须使用tina/packge/busybox-init-base-files/files下的pseudo_init、rcS)。
      如果需要添加平台特定配置(pseudo_init,rcS没有配置),可将其写到rc.preboot,rc.final中,参考第四节。


      四、rcS脚本
      1.功能描述
      (1)执行/etc/init.d/rc.preboot。
      为了满足开机快速启动的需求,提供了用户可自定义rc.preboot文件,即在tina/target/allwinner/XXX/busybox-init-base-files/etc/init.d/目录下创建rc.preboot脚本文件,将会被rcS最先调用执行。
      (2)配置打印级别,主机名称。
      (3)执行/etc/init.d/rc.log,配置系统log信息。
      系统默认使用的是tina/package/busybox-init-base-files/files/etc/init.d/rc.log脚本进行配置系统log信息。用户可在tina/target/allwinner/XXX/busybox-init-base-files/etc/init.d/下创建rc.log,自定义rc.log。
      如果需要使用默认rc.log,需要在make menuconfig配置。

      	Base system  --->
      	 busybox-init-base-files......................... Busybox init base system  --->
      	  [*]   Use the rc.log
      

      (4)挂载UDISK。
      (5)执行/etc/init.d/rc.modules,加载内核模块。
      系统默认使用的是tina/package/busybox-init-base-files/files/etc/init.d/rc.modules脚本进行内核模块自加载,用户可在tina/target/allwinner/XXX/busybox-init-base-files/etc/init.d/下创建rc.modules,自定义rc.modules。
      如果需要使用默认rc.modules,需要在make menuconfig配置如下。

      	Base system  --->
      	 busybox-init-base-files......................... Busybox init base system  --->
      	   [*]   Use the rc.modules
      

      (6)启动/etc/rc.d下的脚本。

      关于执行rc.d下的启动脚本,目的为兼容procd式的应用脚本。/etc/rc.d下的脚本是链接到/etc/init.d/下,默认情况下只执行adbd,如果需要执行其他脚本,需要在tina/target/allwinner/XXX/busybox-init-base-files/etc/init.d/下,自定义load_script.conf文件,文件内容中写上要启动的应用,如adbd(注意,每一个应用占一行)。可参考:tina/packge/busybox-init-base-files/files/etc/init.d/load_script.conf。
      
      	如果需要执行rc.d下的启动脚本,需要在make menuconfig做如下配置。
      	Base system  --->
      	 busybox-init-base-files......................... Busybox init base system  --->
      	   [*]   Auto load the script in /etc/rc.d
      

      (7)ota初始化。

      (8)执行/etc/init.d/rc.final,用户自定义启动脚本。
      用户可在tina/packge/busybox-init-base-files/files/etc/init.d/下创建一个rc.final脚本,自定义启动应用程序,该脚本将会被rcS最后调用执行。

      2.rc.preboot与rc.final的区别?
      rc.preboot比rc.final先运行,在执行rc.preboot脚本的时候,系统的一些初始化操作还没完成,如挂载UDISK、内核模块自加载、ota等等操作。而rc.final执行的时候,以上的初始化操作已经完成。

      五.如何写应用的启动脚本

      example:开机自启动smartlinkd(tina/package/allwinner/smartlinkd/files/smartlinkd.init)
      1.方法一(特定格式要求)

      详细的格式参考:
      https://wiki.openwrt.org/inbox/procd-init-scripts
      https://wiki.openwrt.org/doc/techref/initscripts

      (1)procd式

      #!/bin/sh /etc/rc.common   #本质为script脚本,以#!开头, 之后执行/etc/rc.common
      START=98		#开机启动优先级(序列) [数值越小, 越先启动]
      STOP=98			#关机停止优先级(序列) [数值越小, 越先关闭]
      
      USE_PROCD=1
      PROG=smartlinkd
      
      start_service() {    #启动函数
          procd_open_instance
          procd_set_param command $PROG -d
          procd_close_instance
      }
      
      shutdown() {
          echo shutdown
      }
      

      (2)Sys式

      #!/bin/sh /etc/rc.common
      START=98
      STOP=98
      
      PROG=smartlinkd
      
      start() {
        smartlinkd -d &
      }
      
      

      使用上述procd式和sys式脚本,既能兼容procd init启动和busybox init的启动方式。
      另外如果使用的是busybox init的启动方式,还需要在load_script.conf文件中换行添加内容:smartlinkd

      2.方法二(无特定格式要求)
      创建rc.preboot或者rc.final脚本,添加启动smartlinkd的内容。

      发布在 Linux
      A
      awwwwa
    • 回复: T113-S3平台,使用can通信,TX发送数据出现大量错误码

      @duanzhh 请问SDK是哪里获取的?据我所知CAN目前在T113-I的平台上有压测过,T113-S3的SDK里的驱动可能是很早期的版本

      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: V851S I2C/TWI 损坏(xfer 错误)

      dmesg -n 1 再运行测试命令

      发布在 V Series
      A
      awwwwa
    • 回复: R128能从SD启动吗?

      可以,默认启动顺序其实就是从SD卡

      发布在 A Series
      A
      awwwwa
    • 回复: V853去掉LCD怎么配置

      在UBOOT和Linux注释掉 SUNXI_DISP2

      发布在 V Series
      A
      awwwwa
    • 回复: T113串口波特率支持4.5M吗,稳定吗

      @duanzhh 高速建议用SPI,IIC,CAN代替,3M以上串口稳定性较差对走线要求较高

      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: T113芯片APB0_CLK由原来的100M调整为150M,对CCU模块会产生影响吗,稳定吗

      @duanzhh

      SPC是安全控制模块,这个模块不对外开放,且只有安全模式中的CPU才能访问,正常可以无视。如果需要开发安全方案,请联系原厂

      CCU就是配置时钟的控制器,手册里有详细说明

      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: D1-H芯片用户手册中文版

      7b555183-66d6-497d-97d8-2b6a7ee4f7dd-image.png

      发布在 MR Series
      A
      awwwwa
    • 回复: V851s buildroot openwrt 编译GCC失败

      @kanken6174 不建议编译gcc进入固件,首先这个gcc没有适配平台,其次v851s的64M内存也无法支持gcc的使用

      发布在 编译和烧写问题专区
      A
      awwwwa
    • 回复: V851s buildroot openwrt 警告

      @kanken6174 在 V851s buildroot openwrt 警告 中说:

      忽略这些警告

      忽略这些警告即可,这些是openwrt提供的软件包,暂时不适配v851s平台,所以有警告

      发布在 编译和烧写问题专区
      A
      awwwwa
    • 回复: T113串口波特率支持4.5M吗,稳定吗

      最高支持3.75M波特率

      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: T113芯片APB0_CLK由原来的100M调整为150M,对CCU模块会产生影响吗,稳定吗

      会对挂在APB0_CLK上的全部外设造成影响

      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: T113基于Longan在LVGL中如何播放视屏,通过tplayer
          static lv_style_t style_scr_act;
          if (style_scr_act.prop_cnt == 0) {
              lv_style_init(&style_scr_act);
              lv_style_set_bg_opa(&style_scr_act, LV_OPA_COVER);
              lv_obj_add_style(lv_scr_act(), &style_scr_act, 0);
          }
          lv_disp_get_default()->driver->screen_transp = 1;
          lv_disp_set_bg_opa(lv_disp_get_default(), LV_OPA_TRANSP);
          /* Empty the buffer, not emptying will cause the UI to be opaque */
          lv_memset_00(lv_disp_get_default()->driver->draw_buf->buf_act,
          lv_disp_get_default()->driver->draw_buf->size * sizeof(lv_color32_t));
          lv_style_set_bg_opa(&style_scr_act, LV_OPA_TRANSP);
          lv_obj_report_style_change(&style_scr_act);
      

      设置透明层

      发布在 GUI
      A
      awwwwa
    • 回复: R128 GPIO默认功能和复用说明在哪里可以查?

      https://r128.docs.aw-ol.com/r128/chip_info/#gpio

      发布在 A Series
      A
      awwwwa
    • 回复: R128S2 Ubuntu20.04 编译系统错误

      @oneofzero 待正式版1.0SDK发布后会从论坛开放

      发布在 A Series
      A
      awwwwa
    • 回复: R128S2 Ubuntu20.04 编译系统错误

      @oneofzero 删除这两个文件可以用吗

      发布在 A Series
      A
      awwwwa
    • 回复: 全志T113-i 或者V85X MIPI DSI 寻求控制器寄存器资料

      @chrisvista 不可以用RT-Thread的HAL库吗?

      发布在 V Series
      A
      awwwwa
    • 回复: R128S2 Ubuntu20.04 编译系统错误

      @oneofzero 这个是,直接从其他sdk复制过来的吗?、

      rm -rf out
      rm -rf lichee/rtos/build/
      
      发布在 A Series
      A
      awwwwa
    • 回复: R128S2 Ubuntu20.04 编译系统错误

      先删除预解压的工具链,再重新解压。这是因为之前解压工具链解压未完成导致丢失文件。

      rm -rf lichee/rtos/tools/riscv64-elf-x86_64-20201104
      
      发布在 A Series
      A
      awwwwa
    • 回复: 全志T113-i 或者V85X MIPI DSI 寻求控制器寄存器资料

      @chrisvista 在 全志T113-i 或者V85X MIPI DSI 寻求控制器寄存器资料 中说:

      统定义里面不停更新,比如第一个就已经改变了:

      A64的MIPI DSI是使用的 synopsys 的,T113的不是这个IP,所以有差异

      发布在 V Series
      A
      awwwwa
    • 回复: 全志T113-i 或者V85X MIPI DSI 寻求控制器寄存器资料

      芯片寄存器开放有很多因素制约,大部分外购的IP都不允许详细描述寄存器,需要提交申请审核后才能公开,法务流程很长索性不开放,开放了还会有潜在的法律风险和抄袭风险,再加上IP迭代和升级,勘误和修改。所以一般是需要定制化的客户有专门的对接。国外芯片自己自研的IP或者购买的IP走了审核流程的开放,也有很多芯片不开放,需要NDA后专门对接。

      其实国外做的好的也就TI,NXP,ST那几家的芯片,博通高通一样没啥资料。

      发布在 V Series
      A
      awwwwa
    • 回复: 全志T113-i 或者V85X MIPI DSI 寻求控制器寄存器资料
      /*
       * Detail information of registers
       */
      union dsi_ctl_reg_t {
      	u32 dwval;
      	struct {
      		u32 dsi_en:1;
      		u32 res0:31;
      	} bits;
      };
      
      union dsi_gint0_reg_t {
      	u32 dwval;
      	struct {
      		u32 dsi_irq_en:16;
      		u32 dsi_irq_flag:16;
      	} bits;
      };
      
      union dsi_gint1_reg_t {
      	u32 dwval;
      	struct {
      		u32 video_line_int_num:13;
      		u32 res0:19;
      	} bits;
      };
      
      union dsi_basic_ctl_reg_t {
      	u32 dwval;
      	struct {
      		u32 video_mode_burst:1;
      		u32 hsa_hse_dis:1;
      		u32 hbp_dis:1;
      		u32 trail_fill:1;
      		u32 trail_inv:4;
      		u32 res0:8;
      		u32 brdy_set:8;
      		u32 brdy_l_sel:3;
      		u32 res1:5;
      	} bits;
      };
      
      union dsi_basic_ctl0_reg_t {
      	u32 dwval;
      	struct {
      		u32 inst_st:1;
      		u32 res0:3;
      		u32 src_sel:2;
      		u32 res1:4;
      		u32 fifo_manual_reset:1;
      		u32 res2:1;
      		u32 fifo_gating:1;
      		u32 res3:3;
      		u32 ecc_en:1;
      		u32 crc_en:1;
      		u32 hs_eotp_en:1;
      		u32 res4:13;
      	} bits;
      };
      
      union dsi_basic_ctl1_reg_t {
      	u32 dwval;
      	struct {
      		u32 dsi_mode:1;
      		u32 video_frame_start:1;
      		u32 video_precision_mode_align:1;
      		u32 res0:1;
      		u32 video_start_delay:13;
      		u32 res1:15;
      	} bits;
      };
      
      union dsi_basic_size0_reg_t {
      	u32 dwval;
      	struct {
      		u32 vsa:12;
      		u32 res0:4;
      		u32 vbp:12;
      		u32 res1:4;
      	} bits;
      };
      
      union dsi_basic_size1_reg_t {
      	u32 dwval;
      	struct {
      		u32 vact:12;
      		u32 res0:4;
      		u32 vt:13;
      		u32 res1:3;
      	} bits;
      };
      
      union dsi_basic_inst0_reg_t {
      	u32 dwval;
      	struct {
      		u32 lane_den:4;
      		u32 lane_cen:1;
      		u32 res0:11;
      		u32 trans_start_condition:4;
      		u32 trans_packet:4;
      		u32 escape_enrty:4;
      		u32 instru_mode:4;
      	} bits;
      };
      
      union dsi_basic_inst1_reg_t {
      	u32 dwval;
      	struct {
      		u32 inst0_sel:4;
      		u32 inst1_sel:4;
      		u32 inst2_sel:4;
      		u32 inst3_sel:4;
      		u32 inst4_sel:4;
      		u32 inst5_sel:4;
      		u32 inst6_sel:4;
      		u32 inst7_sel:4;
      	} bits;
      };
      
      union dsi_basic_inst2_reg_t {
      	u32 dwval;
      	struct {
      		u32 loop_n0:12;
      		u32 res0:4;
      		u32 loop_n1:12;
      		u32 res1:4;
      	} bits;
      };
      
      union dsi_basic_inst3_reg_t {
      	u32 dwval;
      	struct {
      		u32 inst0_jump:4;
      		u32 inst1_jump:4;
      		u32 inst2_jump:4;
      		u32 inst3_jump:4;
      		u32 inst4_jump:4;
      		u32 inst5_jump:4;
      		u32 inst6_jump:4;
      		u32 inst7_jump:4;
      	} bits;
      };
      
      union dsi_basic_inst4_reg_t {
      	u32 dwval;
      	struct {
      		u32 jump_cfg_num:16;
      		u32 jump_cfg_point:4;
      		u32 jump_cfg_to:4;
      		u32 res0:4;
      		u32 jump_cfg_en:1;
      		u32 res1:3;
      	} bits;
      };
      
      union dsi_basic_tran0_reg_t {
      	u32 dwval;
      	struct {
      		u32 trans_start_set:13;
      		u32 res0:19;
      	} bits;
      };
      
      union dsi_basic_tran1_reg_t {
      	u32 dwval;
      	struct {
      		u32 trans_size:16;
      		u32 res0:12;
      		u32 trans_end_condition:1;
      		u32 res1:3;
      	} bits;
      };
      
      union dsi_basic_tran2_reg_t {
      	u32 dwval;
      	struct {
      		u32 trans_cycle_set:16;
      		u32 res0:16;
      	} bits;
      };
      
      union dsi_basic_tran3_reg_t {
      	u32 dwval;
      	struct {
      		u32 trans_blank_set:16;
      		u32 res0:16;
      	} bits;
      };
      
      union dsi_basic_tran4_reg_t {
      	u32 dwval;
      	struct {
      		u32 hs_zero_reduce_set:16;
      		u32 res0:16;
      	} bits;
      };
      
      union dsi_basic_tran5_reg_t {
      	u32 dwval;
      	struct {
      		u32 drq_set:10;
      		u32 res0:18;
      		u32 drq_mode:1;
      		u32 res1:3;
      	} bits;
      };
      
      union dsi_pixel_ctl0_reg_t {
      	u32 dwval;
      	struct {
      		u32 pixel_format:4;
      		u32 pixel_endian:1;
      		u32 res0:11;
      		u32 pd_plug_dis:1;
      		u32 res1:15;
      	} bits;
      };
      
      union dsi_pixel_ctl1_reg_t {
      	u32 dwval;
      	struct {
      		u32 res0;
      	} bits;
      };
      
      union dsi_pixel_ph_reg_t {
      	u32 dwval;
      	struct {
      		u32 dt:6;
      		u32 vc:2;
      		u32 wc:16;
      		u32 ecc:8;
      	} bits;
      };
      
      union dsi_pixel_pd_reg_t {
      	u32 dwval;
      	struct {
      		u32 pd_tran0:8;
      		u32 res0:8;
      		u32 pd_trann:8;
      		u32 res1:8;
      	} bits;
      };
      
      union dsi_pixel_pf0_reg_t {
      	u32 dwval;
      	struct {
      		u32 crc_force:16;
      		u32 res0:16;
      	} bits;
      };
      
      union dsi_pixel_pf1_reg_t {
      	u32 dwval;
      	struct {
      		u32 crc_init_line0:16;
      		u32 crc_init_linen:16;
      	} bits;
      };
      
      union dsi_short_pkg_reg_t {
      	u32 dwval;
      	struct {
      		u32 dt:6;
      		u32 vc:2;
      		u32 d0:8;
      		u32 d1:8;
      		u32 ecc:8;
      	} bits;
      };
      
      union dsi_blk_pkg0_reg_t {
      	u32 dwval;
      	struct {
      		u32 dt:6;
      		u32 vc:2;
      		u32 wc:16;
      		u32 ecc:8;
      	} bits;
      };
      
      union dsi_blk_pkg1_reg_t {
      	u32 dwval;
      	struct {
      		u32 pd:8;
      		u32 res0:8;
      		u32 pf:16;
      	} bits;
      };
      
      union dsi_burst_line_reg_t {
      	u32 dwval;
      	struct {
      		u32 line_num:16;
      		u32 line_syncpoint:16;
      	} bits;
      };
      
      union dsi_burst_drq_reg_t {
      	u32 dwval;
      	struct {
      		u32 drq_edge0:16;
      		u32 drq_edge1:16;
      	} bits;
      };
      
      union dsi_cmd_ctl_reg_t {
      	u32 dwval;
      	struct {
      		u32 tx_size:8;
      		u32 tx_status:1;
      		u32 tx_flag:1;
      		u32 res0:6;
      		u32 rx_size:5;
      		u32 res1:3;
      		u32 rx_status:1;
      		u32 rx_flag:1;
      		u32 rx_overflow:1;
      		u32 res2:5;
      	} bits;
      };
      
      union dsi_cmd_data_reg_t {
      	u32 dwval;
      	struct {
      		u32 byte0:8;
      		u32 byte1:8;
      		u32 byte2:8;
      		u32 byte3:8;
      	} bits;
      };
      
      union dsi_debug0_reg_t {
      	u32 dwval;
      	struct {
      		u32 video_curr_line:13;
      		u32 res0:19;
      	} bits;
      };
      
      union dsi_debug1_reg_t {
      	u32 dwval;
      	struct {
      		u32 video_curr_lp2hs:16;
      		u32 res0:16;
      	} bits;
      };
      
      union dsi_debug2_reg_t {
      	u32 dwval;
      	struct {
      		u32 trans_low_flag:1;
      		u32 trans_fast_flag:1;
      		u32 res0:2;
      		u32 curr_loop_num:16;
      		u32 curr_instru_num:3;
      		u32 res1:1;
      		u32 instru_unknown_flag:8;
      	} bits;
      };
      
      union dsi_debug3_reg_t {
      	u32 dwval;
      	struct {
      		u32 res0:16;
      		u32 curr_fifo_num:16;
      	} bits;
      };
      
      union dsi_debug4_reg_t {
      	u32 dwval;
      	struct {
      		u32 test_data:24;
      		u32 res0:4;
      		u32 dsi_fifo_bist_en:1;
      		u32 res1:3;
      	} bits;
      };
      
      union dsi_reservd_reg_t {
      	u32 dwval;
      	struct {
      		u32 res0;
      	} bits;
      };
      
      struct __de_dsi_dev_t {
      	/* 0x00 - 0x0c */
      	union dsi_ctl_reg_t dsi_gctl;
      	union dsi_gint0_reg_t dsi_gint0;
      	union dsi_gint1_reg_t dsi_gint1;
      	union dsi_basic_ctl_reg_t dsi_basic_ctl;
      	/* 0x10 - 0x1c */
      	union dsi_basic_ctl0_reg_t dsi_basic_ctl0;
      	union dsi_basic_ctl1_reg_t dsi_basic_ctl1;
      	union dsi_basic_size0_reg_t dsi_basic_size0;
      	union dsi_basic_size1_reg_t dsi_basic_size1;
      	/* 0x20 - 0x3c */
      	union dsi_basic_inst0_reg_t dsi_inst_func[8];
      	/* 0x40 - 0x5c */
      	union dsi_basic_inst1_reg_t dsi_inst_loop_sel;
      	union dsi_basic_inst2_reg_t dsi_inst_loop_num;
      	union dsi_basic_inst3_reg_t dsi_inst_jump_sel;
      	union dsi_basic_inst4_reg_t dsi_inst_jump_cfg[2];
      	union dsi_basic_inst2_reg_t dsi_inst_loop_num2;
      	union dsi_reservd_reg_t dsi_reg058[2];
      	/* 0x60 - 0x6c */
      	union dsi_basic_tran0_reg_t dsi_trans_start;
      	union dsi_reservd_reg_t dsi_reg064[3];
      	/* 0x70 - 0x7c */
      	union dsi_reservd_reg_t dsi_reg070[2];
      	union dsi_basic_tran4_reg_t dsi_trans_zero;
      	union dsi_basic_tran5_reg_t dsi_tcon_drq;
      	/* 0x80 - 0x8c */
      	union dsi_pixel_ctl0_reg_t dsi_pixel_ctl0;
      	union dsi_pixel_ctl1_reg_t dsi_pixel_ctl1;
      	union dsi_reservd_reg_t dsi_reg088[2];
      	/* 0x90 - 0x9c */
      	union dsi_pixel_ph_reg_t dsi_pixel_ph;
      	union dsi_pixel_pd_reg_t dsi_pixel_pd;
      	union dsi_pixel_pf0_reg_t dsi_pixel_pf0;
      	union dsi_pixel_pf1_reg_t dsi_pixel_pf1;
      	/* 0xa0 - 0xac */
      	union dsi_reservd_reg_t dsi_reg0a0[4];
      	/* 0xb0 - 0xbc */
      	union dsi_short_pkg_reg_t dsi_sync_hss;
      	union dsi_short_pkg_reg_t dsi_sync_hse;
      	union dsi_short_pkg_reg_t dsi_sync_vss;
      	union dsi_short_pkg_reg_t dsi_sync_vse;
      	/* 0xc0 - 0xcc */
      	union dsi_blk_pkg0_reg_t dsi_blk_hsa0;
      	union dsi_blk_pkg1_reg_t dsi_blk_hsa1;
      	union dsi_blk_pkg0_reg_t dsi_blk_hbp0;
      	union dsi_blk_pkg1_reg_t dsi_blk_hbp1;
      	/* 0xd0 - 0xdc */
      	union dsi_blk_pkg0_reg_t dsi_blk_hfp0;
      	union dsi_blk_pkg1_reg_t dsi_blk_hfp1;
      	union dsi_reservd_reg_t dsi_reg0d8[2];
      	/* 0xe0 - 0xec */
      	union dsi_blk_pkg0_reg_t dsi_blk_hblk0;
      	union dsi_blk_pkg1_reg_t dsi_blk_hblk1;
      	union dsi_blk_pkg0_reg_t dsi_blk_vblk0;
      	union dsi_blk_pkg1_reg_t dsi_blk_vblk1;
      	/* 0xf0 - 0x1fc */
      	union dsi_burst_line_reg_t dsi_burst_line;
      	union dsi_burst_drq_reg_t dsi_burst_drq;
      	union dsi_reservd_reg_t dsi_reg0f0[66];
      	/* 0x200 - 0x23c */
      	union dsi_cmd_ctl_reg_t dsi_cmd_ctl;
      	union dsi_reservd_reg_t dsi_reg204[15];
      	/* 0x240 - 0x2dc */
      	union dsi_cmd_data_reg_t dsi_cmd_rx[8];
      	union dsi_reservd_reg_t dsi_reg260[32];
      	/* 0x2e0 - 0x2ec */
      	union dsi_debug0_reg_t dsi_debug_video0;
      	union dsi_debug1_reg_t dsi_debug_video1;
      	union dsi_reservd_reg_t dsi_reg2e8[2];
      	/* 0x2f0 - 0x2fc */
      	union dsi_debug2_reg_t dsi_debug_inst;
      	union dsi_debug3_reg_t dsi_debug_fifo;
      	union dsi_debug4_reg_t dsi_debug_data;
      	union dsi_reservd_reg_t dsi_reg2fc;
      	/* 0x300 - 0x3fc */
      	union dsi_cmd_data_reg_t dsi_cmd_tx[64];
      };
      
      union dphy_ctl_reg_t {
      	u32 dwval;
      	struct {
      		u32 module_en:1;
      		u32 res0:3;
      		u32 lane_num:2;
      		u32 res1:26;
      	} bits;
      };
      
      union dphy_tx_ctl_reg_t {
      	u32 dwval;
      	struct {
      		u32 tx_d0_force:1;
      		u32 tx_d1_force:1;
      		u32 tx_d2_force:1;
      		u32 tx_d3_force:1;
      		u32 tx_clk_force:1;
      		u32 res0:3;
      		u32 lptx_endian:1;
      		u32 hstx_endian:1;
      		u32 lptx_8b9b_en:1;
      		u32 hstx_8b9b_en:1;
      		u32 force_lp11:1;
      		u32 res1:3;
      		u32 ulpstx_data0_exit:1;
      		u32 ulpstx_data1_exit:1;
      		u32 ulpstx_data2_exit:1;
      		u32 ulpstx_data3_exit:1;
      		u32 ulpstx_clk_exit:1;
      		u32 res2:3;
      		u32 hstx_data_exit:1;
      		u32 hstx_clk_exit:1;
      		u32 res3:2;
      		u32 hstx_clk_cont:1;
      		u32 ulpstx_enter:1;
      		u32 res4:2;
      	} bits;
      };
      
      union dphy_rx_ctl_reg_t {
      	u32 dwval;
      	struct {
      		u32 res0:8;
      		u32 lprx_endian:1;
      		u32 hsrx_endian:1;
      		u32 lprx_8b9b_en:1;
      		u32 hsrx_8b9b_en:1;
      		u32 hsrx_sync:1;
      		u32 res1:3;
      		u32 lprx_trnd_mask:4;
      		u32 rx_d0_force:1;
      		u32 rx_d1_force:1;
      		u32 rx_d2_force:1;
      		u32 rx_d3_force:1;
      		u32 rx_clk_force:1;
      		u32 res2:6;
      		u32 dbc_en:1;
      	} bits;
      };
      
      union dphy_tx_time0_reg_t {
      	u32 dwval;
      	struct {
      		u32 lpx_tm_set:8;
      		u32 dterm_set:8;
      		u32 hs_pre_set:8;
      		u32 hs_trail_set:8;
      	} bits;
      };
      
      union dphy_tx_time1_reg_t {
      	u32 dwval;
      	struct {
      		u32 ck_prep_set:8;
      		u32 ck_zero_set:8;
      		u32 ck_pre_set:8;
      		u32 ck_post_set:8;
      	} bits;
      };
      
      union dphy_tx_time2_reg_t {
      	u32 dwval;
      	struct {
      		u32 ck_trail_set:8;
      		u32 hs_dly_set:16;
      		u32 res0:4;
      		u32 hs_dly_mode:1;
      		u32 res1:3;
      	} bits;
      };
      
      union dphy_tx_time3_reg_t {
      	u32 dwval;
      	struct {
      		u32 lptx_ulps_exit_set:20;
      		u32 res0:12;
      	} bits;
      };
      
      union dphy_tx_time4_reg_t {
      	u32 dwval;
      	struct {
      		u32 hstx_ana0_set:8;
      		u32 hstx_ana1_set:8;
      		u32 res0:16;
      	} bits;
      };
      
      union dphy_rx_time0_reg_t {
      	u32 dwval;
      	struct {
      		u32 lprx_to_en:1;
      		u32 freq_cnt_en:1;
      		u32 res0:2;
      		u32 hsrx_clk_miss_en:1;
      		u32 hsrx_sync_err_to_en:1;
      		u32 res1:2;
      		u32 lprx_to:8;
      		u32 hsrx_clk_miss:8;
      		u32 hsrx_sync_err_to:8;
      	} bits;
      };
      
      union dphy_rx_time1_reg_t {
      	u32 dwval;
      	struct {
      		u32 lprx_ulps_wp:20;
      		u32 rx_dly:12;
      	} bits;
      };
      
      union dphy_rx_time2_reg_t {
      	u32 dwval;
      	struct {
      		u32 hsrx_ana0_set:8;
      		u32 hsrx_ana1_set:8;
      		u32 res0:16;
      	} bits;
      };
      
      union dphy_rx_time3_reg_t {
      	u32 dwval;
      	struct {
      		u32 freq_cnt:16;
      		u32 res0:8;
      		u32 lprst_dly:8;
      	} bits;
      };
      
      union dphy_ana0_reg_t {
      	u32 dwval;
      	struct {
      		u32 reg_selsck:1;
      		u32 reg_rsd:1;
      		u32 reg_sfb:2;
      		u32 reg_plr:4;
      		u32 reg_den:4;
      		u32 reg_slv:3;
      		u32 reg_sdiv2:1;
      		u32 reg_srxck:4;
      		u32 reg_srxdt:4;
      		u32 reg_dmpd:4;
      		u32 reg_dmpc:1;
      		u32 reg_pwenc:1;
      		u32 reg_pwend:1;
      		u32 reg_pws:1;
      	} bits;
      };
      
      union dphy_ana1_reg_t {
      	u32 dwval;
      	struct {
      		u32 reg_stxck:1;
      		u32 res0:3;
      		u32 reg_svdl0:4;
      		u32 reg_svdl1:4;
      		u32 reg_svdl2:4;
      		u32 reg_svdl3:4;
      		u32 reg_svdlc:4;
      		u32 reg_svtt:4;
      		u32 reg_csmps:2;
      		u32 res1:1;
      		u32 reg_vttmode:1;
      	} bits;
      };
      
      union dphy_ana2_reg_t {
      	u32 dwval;
      	struct {
      		u32 ana_cpu_en:1;
      		u32 enib:1;
      		u32 enrvs:1;
      		u32 res0:1;
      		u32 enck_cpu:1;
      		u32 entxc_cpu:1;
      		u32 enckq_cpu:1;
      		u32 res1:1;
      		u32 entx_cpu:4;
      		u32 res2:1;
      		u32 entermc_cpu:1;
      		u32 enrxc_cpu:1;
      		u32 res3:1;
      		u32 enterm_cpu:4;
      		u32 enrx_cpu:4;
      		u32 enp2s_cpu:4;
      		u32 res4:4;
      	} bits;
      };
      
      union dphy_ana3_reg_t {
      	u32 dwval;
      	struct {
      		u32 enlptx_cpu:4;
      		u32 enlprx_cpu:4;
      		u32 enlpcd_cpu:4;
      		u32 enlprxc_cpu:1;
      		u32 enlptxc_cpu:1;
      		u32 enlpcdc_cpu:1;
      		u32 res0:1;
      		u32 entest:1;
      		u32 enckdbg:1;
      		u32 enldor:1;
      		u32 res1:5;
      		u32 enldod:1;
      		u32 enldoc:1;
      		u32 endiv:1;
      		u32 envttc:1;
      		u32 envttd:4;
      	} bits;
      };
      
      union dphy_ana4_reg_t {
      	u32 dwval;
      	struct {
      		u32 reg_txpusd:2;
      		u32 reg_txpusc:2;
      		u32 reg_txdnsd:2;
      		u32 reg_txdnsc:2;
      		u32 reg_tmsd:2;
      		u32 reg_tmsc:2;
      		u32 reg_ckdv:5;
      		u32 reg_vtt_set:3;
      		u32 reg_dmplvd:4;
      		u32 reg_dmplvc:1;
      		u32 reg_ib:2;
      		u32 res4:1;
      		u32 reg_comtest:2;
      		u32 en_comtest:1;
      		u32 en_mipi:1;
      
      	} bits;
      };
      
      union dphy_int_en0_reg_t {
      	u32 dwval;
      	struct {
      		u32 sot_d0_int:1;
      		u32 sot_d1_int:1;
      		u32 sot_d2_int:1;
      		u32 sot_d3_int:1;
      		u32 sot_err_d0_int:1;
      		u32 sot_err_d1_int:1;
      		u32 sot_err_d2_int:1;
      		u32 sot_err_d3_int:1;
      		u32 sot_sync_err_d0_int:1;
      		u32 sot_sync_err_d1_int:1;
      		u32 sot_sync_err_d2_int:1;
      		u32 sot_sync_err_d3_int:1;
      		u32 rx_alg_err_d0_int:1;
      		u32 rx_alg_err_d1_int:1;
      		u32 rx_alg_err_d2_int:1;
      		u32 rx_alg_err_d3_int:1;
      		u32 res0:6;
      		u32 cd_lp0_err_clk_int:1;
      		u32 cd_lp1_err_clk_int:1;
      		u32 cd_lp0_err_d0_int:1;
      		u32 cd_lp1_err_d0_int:1;
      		u32 cd_lp0_err_d1_int:1;
      		u32 cd_lp1_err_d1_int:1;
      		u32 cd_lp0_err_d2_int:1;
      		u32 cd_lp1_err_d2_int:1;
      		u32 cd_lp0_err_d3_int:1;
      		u32 cd_lp1_err_d3_int:1;
      	} bits;
      };
      
      union dphy_int_en1_reg_t {
      	u32 dwval;
      	struct {
      		u32 ulps_d0_int:1;
      		u32 ulps_d1_int:1;
      		u32 ulps_d2_int:1;
      		u32 ulps_d3_int:1;
      		u32 ulps_wp_d0_int:1;
      		u32 ulps_wp_d1_int:1;
      		u32 ulps_wp_d2_int:1;
      		u32 ulps_wp_d3_int:1;
      		u32 ulps_clk_int:1;
      		u32 ulps_wp_clk_int:1;
      		u32 res0:2;
      		u32 lpdt_d0_int:1;
      		u32 rx_trnd_d0_int:1;
      		u32 tx_trnd_err_d0_int:1;
      		u32 undef1_d0_int:1;
      		u32 undef2_d0_int:1;
      		u32 undef3_d0_int:1;
      		u32 undef4_d0_int:1;
      		u32 undef5_d0_int:1;
      		u32 rst_d0_int:1;
      		u32 rst_d1_int:1;
      		u32 rst_d2_int:1;
      		u32 rst_d3_int:1;
      		u32 esc_cmd_err_d0_int:1;
      		u32 esc_cmd_err_d1_int:1;
      		u32 esc_cmd_err_d2_int:1;
      		u32 esc_cmd_err_d3_int:1;
      		u32 false_ctl_d0_int:1;
      		u32 false_ctl_d1_int:1;
      		u32 false_ctl_d2_int:1;
      		u32 false_ctl_d3_int:1;
      	} bits;
      };
      
      union dphy_int_en2_reg_t {
      	u32 dwval;
      	struct {
      		u32 res0;
      	} bits;
      };
      
      union dphy_int_pd0_reg_t {
      	u32 dwval;
      	struct {
      		u32 sot_d0_pd:1;
      		u32 sot_d1_pd:1;
      		u32 sot_d2_pd:1;
      		u32 sot_d3_pd:1;
      		u32 sot_err_d0_pd:1;
      		u32 sot_err_d1_pd:1;
      		u32 sot_err_d2_pd:1;
      		u32 sot_err_d3_pd:1;
      		u32 sot_sync_err_d0_pd:1;
      		u32 sot_sync_err_d1_pd:1;
      		u32 sot_sync_err_d2_pd:1;
      		u32 sot_sync_err_d3_pd:1;
      		u32 rx_alg_err_d0_pd:1;
      		u32 rx_alg_err_d1_pd:1;
      		u32 rx_alg_err_d2_pd:1;
      		u32 rx_alg_err_d3_pd:1;
      		u32 res0:6;
      		u32 cd_lp0_err_clk_pd:1;
      		u32 cd_lp1_err_clk_pd:1;
      		u32 cd_lp0_err_d1_pd:1;
      		u32 cd_lp1_err_d1_pd:1;
      		u32 cd_lp0_err_d0_pd:1;
      		u32 cd_lp1_err_d0_pd:1;
      		u32 cd_lp0_err_d2_pd:1;
      		u32 cd_lp1_err_d2_pd:1;
      		u32 cd_lp0_err_d3_pd:1;
      		u32 cd_lp1_err_d3_pd:1;
      	} bits;
      };
      
      union dphy_int_pd1_reg_t {
      	u32 dwval;
      	struct {
      		u32 ulps_d0_pd:1;
      		u32 ulps_d1_pd:1;
      		u32 ulps_d2_pd:1;
      		u32 ulps_d3_pd:1;
      		u32 ulps_wp_d0_pd:1;
      		u32 ulps_wp_d1_pd:1;
      		u32 ulps_wp_d2_pd:1;
      		u32 ulps_wp_d3_pd:1;
      		u32 ulps_clk_pd:1;
      		u32 ulps_wp_clk_pd:1;
      		u32 res0:2;
      		u32 lpdt_d0_pd:1;
      		u32 rx_trnd_d0_pd:1;
      		u32 tx_trnd_err_d0_pd:1;
      		u32 undef1_d0_pd:1;
      		u32 undef2_d0_pd:1;
      		u32 undef3_d0_pd:1;
      		u32 undef4_d0_pd:1;
      		u32 undef5_d0_pd:1;
      		u32 rst_d0_pd:1;
      		u32 rst_d1_pd:1;
      		u32 rst_d2_pd:1;
      		u32 rst_d3_pd:1;
      		u32 esc_cmd_err_d0_pd:1;
      		u32 esc_cmd_err_d1_pd:1;
      		u32 esc_cmd_err_d2_pd:1;
      		u32 esc_cmd_err_d3_pd:1;
      		u32 false_ctl_d0_pd:1;
      		u32 false_ctl_d1_pd:1;
      		u32 false_ctl_d2_pd:1;
      		u32 false_ctl_d3_pd:1;
      	} bits;
      };
      
      union dphy_int_pd2_reg_t {
      	u32 dwval;
      	struct {
      		u32 res0;
      	} bits;
      };
      
      union dphy_dbg0_reg_t {
      	u32 dwval;
      	struct {
      		u32 lptx_sta_d0:3;
      		u32 res0:1;
      		u32 lptx_sta_d1:3;
      		u32 res1:1;
      		u32 lptx_sta_d2:3;
      		u32 res2:1;
      		u32 lptx_sta_d3:3;
      		u32 res3:1;
      		u32 lptx_sta_clk:3;
      		u32 res4:9;
      		u32 direction:1;
      		u32 res5:3;
      	} bits;
      };
      
      union dphy_dbg1_reg_t {
      	u32 dwval;
      	struct {
      		u32 lptx_dbg_en:1;
      		u32 hstx_dbg_en:1;
      		u32 res0:2;
      		u32 lptx_set_d0:2;
      		u32 lptx_set_d1:2;
      		u32 lptx_set_d2:2;
      		u32 lptx_set_d3:2;
      		u32 lptx_set_ck:2;
      		u32 res1:18;
      	} bits;
      };
      
      union dphy_dbg2_reg_t {
      	u32 dwval;
      	struct {
      		u32 hstx_data;
      	} bits;
      };
      
      union dphy_dbg3_reg_t {
      	u32 dwval;
      	struct {
      		u32 lprx_sta_d0:4;
      		u32 lprx_sta_d1:4;
      		u32 lprx_sta_d2:4;
      		u32 lprx_sta_d3:4;
      		u32 lprx_sta_clk:4;
      		u32 res0:12;
      	} bits;
      };
      
      union dphy_dbg4_reg_t {
      	u32 dwval;
      	struct {
      		u32 lprx_phy_d0:2;
      		u32 lprx_phy_d1:2;
      		u32 lprx_phy_d2:2;
      		u32 lprx_phy_d3:2;
      		u32 lprx_phy_clk:2;
      		u32 res0:6;
      		u32 lpcd_phy_d0:2;
      		u32 lpcd_phy_d1:2;
      		u32 lpcd_phy_d2:2;
      		u32 lpcd_phy_d3:2;
      		u32 lpcd_phy_clk:2;
      		u32 res1:6;
      	} bits;
      };
      
      union dphy_dbg5_reg_t {
      	u32 dwval;
      	struct {
      		u32 hsrx_data;
      	} bits;
      };
      
      union dphy_reservd_reg_t {
      	u32 dwval;
      	struct {
      		u32 res0;
      	} bits;
      };
      
      
      union dphy_tx_skew_reg0_t {
      	__u32 dwavl;
      	struct {
      		__u32 reg_skewcal_sync     :  8 ;    // default: 0;
      		__u32 reg_skewcal          :  8 ;    // default: 0;
      		__u32 skewcal_trail_set    :  8 ;    // default: 0;
      		__u32 skewcal_zero_set     :  8 ;    // default: 0;
      	} bits;
      };
      
      union dphy_tx_skew_reg1_t {
      	__u32 dwval;
      	struct {
      		__u32 skewcal_init_set      : 16 ;    // default: 0;
      		__u32 skewcal_pedic_set     :  8 ;    // default: 0;
      		__u32 skewcal_sync_set      :  8 ;    // default: 0;
      	} bits;
      };
      
      union dphy_tx_skew_reg2_t {
      	__u32 dwval;
      	struct {
      		__u32 skewcal_prepare_lp00   :  8 ;    //default: 0;
      		__u32 skewcal_trail_inv      :  1 ;    //default: 0;
      		__u32 en_skewcal_perdic      :  1 ;    //default: 0;
      		__u32 en_skewcal_init        :  1 ;    //default: 0;
      		__u32 res0                   : 21 ;    //default: 0;
      	} bits;
      };
      
      union dphy_pll_reg0_t {
      	__u32 dwval;
      	struct {
      		__u32 m1                      :  4 ;    //default: 0x3;
      		__u32 m0                      :  2 ;    //default: 0;
      		__u32 tdiv                    :  1 ;    //default: 0;
      		__u32 ndet                    :  1 ;    //default: 0x1;
      		__u32 n                       :  8 ;    //default: 0x32;
      		__u32 p                       :  4 ;    //default: 0;
      		__u32 pll_en                  :  1 ;    //default: 0x1;
      		__u32 en_lvs                  :  1 ;    //default: 0x1;
      		__u32 ldo_en                  :  1 ;    //default: 0x1;
      		__u32 cp36_en                 :  1 ;    //default: 0x1;
      		__u32 res0                    :  8 ;    //default: 0;
      	} bits;
      };
      
      union dphy_pll_reg1_t {
      	__u32 dwval;
      	struct {
      		__u32 test_en                  :  1 ;    //default: 0x1;
      		__u32 atest_sel                :  2 ;    //default: 0;
      		__u32 icp_sel                  :  2 ;    //default: 0;
      		__u32 lpf_sw                   :  1 ;    //default: 0;
      		__u32 vsetd                    :  3 ;    //default: 0x2;
      		__u32 vseta                    :  3 ;    //default: 0x2;
      		__u32 lockdet_en               :  1 ;    //default: 0;
      		__u32 lockmdsel                :  1 ;    //default: 0;
      		__u32 unlock_mdsel             :  2 ;    //default: 0;
      		__u32 res0                     : 16 ;    //default: 0;
      	} bits;
      };
      
      union dphy_pll_reg2_t {
      	__u32 dwval;
      	struct {
      		__u32 frac                      : 12 ;    //default: 0x800;
      		__u32 ss_int                    :  8 ;    //default: 0x32;
      		__u32 ss_frac                   :  9 ;    //default: 0;
      		__u32 ss_en                     :  1 ;    //default: 0;
      		__u32 ff_en                     :  1 ;    //default: 0;
      		__u32 sdm_en                    :  1 ;    //default: 0x1;
      	} bits;
      };
      
      union combo_phy_reg0_t {
      	__u32 dwval;
      	struct {
      		__u32 en_cp               :  1 ;    //default: 0;
      		__u32 en_comboldo         :  1 ;    //default: 0;
      		__u32 en_lvds             :  1 ;    //default: 0;
      		__u32 en_mipi             :  1 ;    //default: 0;
      		__u32 en_test_0p8         :  1 ;    //default: 0;
      		__u32 en_test_comboldo    :  1 ;    //default: 0;
      		__u32 res0                :  26;    //default: 0;
      	} bits;
      };
      
      union combo_phy_reg1_t {
      	__u32 dwval;
      	struct {
      		__u32 reg_vref0p8         :  3 ;    //default: 0;
      		__u32 res0                :  1 ;    //default: 0;
      		__u32 reg_vref1p6         :  3 ;    //default: 0;
      		__u32 res1                :  25;    //default: 0;
      	} bits;
      };
      
      union combo_phy_reg2_t {
      	__u32 dwval;
      	struct {
      		__u32 hs_stop_dly         :  8 ;    //default: 0;
      		__u32 res0                :  24;    //default: 0;
      	} bits;
      };
      
      /* dphy register define */
      struct __de_dsi_dphy_dev_t {
      	/* 0x00 - 0x0c */
      	union dphy_ctl_reg_t dphy_gctl;
      	union dphy_tx_ctl_reg_t dphy_tx_ctl;
      	union dphy_rx_ctl_reg_t dphy_rx_ctl;
      	union dphy_reservd_reg_t dphy_reg00c;
      	/* 0x10 - 0x1c */
      	union dphy_tx_time0_reg_t dphy_tx_time0;
      	union dphy_tx_time1_reg_t dphy_tx_time1;
      	union dphy_tx_time2_reg_t dphy_tx_time2;
      	union dphy_tx_time3_reg_t dphy_tx_time3;
      	/* 0x20 - 0x2c */
      	union dphy_tx_time4_reg_t dphy_tx_time4;
      	union dphy_reservd_reg_t dphy_reg024[3];
      	/* 0x30 - 0x3c */
      	union dphy_rx_time0_reg_t dphy_rx_time0;
      	union dphy_rx_time1_reg_t dphy_rx_time1;
      	union dphy_rx_time2_reg_t dphy_rx_time2;
      	union dphy_reservd_reg_t dphy_reg03c;
      	/* 0x40 - 0x4c */
      	union dphy_rx_time3_reg_t dphy_rx_time3;
      	union dphy_reservd_reg_t dphy_reg044[2];
      	union dphy_ana0_reg_t dphy_ana0;
      	/* 0x50 - 0x5c */
      	union dphy_ana1_reg_t dphy_ana1;
      	union dphy_ana2_reg_t dphy_ana2;
      	union dphy_ana3_reg_t dphy_ana3;
      	union dphy_ana4_reg_t dphy_ana4;
      	/* 0x60 - 0x6c */
      	union dphy_int_en0_reg_t dphy_int_en0;
      	union dphy_int_en1_reg_t dphy_int_en1;
      	union dphy_int_en2_reg_t dphy_int_en2;
      	union dphy_reservd_reg_t dphy_reg06c;
      	/* 0x70 - 0x7c */
      	union dphy_int_pd0_reg_t dphy_int_pd0;
      	union dphy_int_pd1_reg_t dphy_int_pd1;
      	union dphy_int_pd2_reg_t dphy_int_pd2;
      	union dphy_reservd_reg_t dphy_reg07c;
      	/* 0x80 - 0xdc */
      	union dphy_reservd_reg_t dphy_reg080[24];
      	/* 0xe0 - 0xec */
      	union dphy_dbg0_reg_t dphy_dbg0;
      	union dphy_dbg1_reg_t dphy_dbg1;
      	union dphy_dbg2_reg_t dphy_dbg2;
      	union dphy_dbg3_reg_t dphy_dbg3;
      	/* 0xf0 - 0xfc */
      	union dphy_dbg4_reg_t dphy_dbg4;
      	union dphy_dbg5_reg_t dphy_dbg5;
      	union dphy_tx_skew_reg0_t       dphy_tx_skew_reg0;  /*0xf8 */
      	union dphy_tx_skew_reg1_t       dphy_tx_skew_reg1;  /*0xfc */
      	union dphy_tx_skew_reg2_t       dphy_tx_skew_reg2;  /*0x100 */
      	union dphy_pll_reg0_t           dphy_pll_reg0;      /*0x104 */
      	union dphy_pll_reg1_t           dphy_pll_reg1;      /*0x108 */
      	union dphy_pll_reg2_t           dphy_pll_reg2;      /*0x10c */
      	union combo_phy_reg0_t          combo_phy_reg0;     /*0x110 */
      	union combo_phy_reg1_t          combo_phy_reg1;     /*0x114 */
      	union combo_phy_reg2_t          combo_phy_reg2;     /*0x118 */
      };
      
      union dsi_ph_t {
      	struct {
      		u32 byte012:24;
      		u32 byte3:8;
      	} bytes;
      	struct {
      		u32 bit00:1;
      		u32 bit01:1;
      		u32 bit02:1;
      		u32 bit03:1;
      		u32 bit04:1;
      		u32 bit05:1;
      		u32 bit06:1;
      		u32 bit07:1;
      		u32 bit08:1;
      		u32 bit09:1;
      		u32 bit10:1;
      		u32 bit11:1;
      		u32 bit12:1;
      		u32 bit13:1;
      		u32 bit14:1;
      		u32 bit15:1;
      		u32 bit16:1;
      		u32 bit17:1;
      		u32 bit18:1;
      		u32 bit19:1;
      		u32 bit20:1;
      		u32 bit21:1;
      		u32 bit22:1;
      		u32 bit23:1;
      		u32 bit24:1;
      		u32 bit25:1;
      		u32 bit26:1;
      		u32 bit27:1;
      		u32 bit28:1;
      		u32 bit29:1;
      		u32 bit30:1;
      		u32 bit31:1;
      	} bits;
      };
      

      来源:RT-Thread 官方仓库:https://github.com/RT-Thread/rt-thread/blob/master/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/de/lowlevel_v2x/de_dsi_type.h

      发布在 V Series
      A
      awwwwa
    • 回复: D1S 如何通过nor flash启动

      @towel_roll D1-H哪吒MIPI屏幕测试固件(TFT08006).img 是使用 NAND 的,不能刷进NOR存储器里

      发布在 MR Series
      A
      awwwwa
    • 回复: d1-h拉取sdk时报错

      请安装python3

      发布在 代码下载问题专区
      A
      awwwwa
    • 回复: A133編譯kernel 遇到error trying to exec cc1: execvp : No such file or directory

      环境没有安装

      Ubuntu 22.04 / 20.04

      • 更新软件源,更新系统软件包
      sudo apt-get update
      sudo apt-get upgrade -y
      
      • 安装开发依赖
      sudo apt-get install build-essential subversion git libncurses5-dev zlib1g-dev gawk flex bison quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lsof 
      
      • 安装相关工具
      sudo apt-get install kconfig-frontends android-tools-mkbootimg python2 libpython3-dev 
      
      • 增加架构支持
      sudo dpkg --add-architecture i386
      sudo apt-get update
      
      • 安装支持包
      sudo apt install gcc-multilib 
      sudo apt install libc6:i386 libstdc++6:i386 lib32z1
      

      Ubuntu 18.04

      • 更新软件源,更新系统软件包
      sudo apt-get update
      sudo apt-get upgrade -y
      
      • 安装开发依赖
      sudo apt-get install build-essential subversion git libncurses5-dev zlib1g-dev gawk flex bison quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lsof 
      
      • 安装相关工具
      sudo apt-get install android-tools-mkbootimg libpython3-dev 
      
      • 增加架构支持
      sudo dpkg --add-architecture i386
      sudo apt-get update
      
      • 安装支持包
      sudo apt install gcc-multilib 
      sudo apt install libc6:i386 libstdc++6:i386 lib32z1
      

      Arch Linux / Manjaro

      • 更新软件源,更新系统软件包
      pacman -Syyuu
      
      • 安装开发依赖
      pacman -S --needed base-devel autoconf automake bash binutils bison bzip2 fakeroot file findutils flex gawk gcc gettext git grep groff gzip time unzip util-linux wget which zlib asciidoc help2man intltool perl-extutils-makemaker swig 
      
      • 安装相关工具
      pacman -S --needed libelf libtool libxslt m4 make ncurses openssl patch pkgconf python rsync sed texinfo
      
      • 增加架构支持
      pacman -S --needed multilib-devel
      

      CentOS / Fedora / openEuler

      sudo dnf --setopt install_weak_deps=False --skip-broken install bash-completion bzip2 gcc gcc-c++ git make ncurses-devel patch rsync tar unzip wget which diffutils python2 python3 perl-base perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin perl-Thread-Queue glibc.i686
      

      openSUSE

      sudo zypper install --no-recommends asciidoc bash bc binutils bzip2 fastjar flex gawk gcc 
      
      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: 有R128点亮百问网7寸RGB屏的DEMO吗?

      R128-S2 驱动 1024x600 RGB 显示屏 并运行 LVGL
      https://bbs.aw-ol.com/topic/4316/share/1

      发布在 A Series
      A
      awwwwa
    • 回复: 求助!T113 Tina Linux编译报错,intltool-0.51.0

      @tsy2001 选中之后会勾选依赖,但是取消的时候不会取消依赖的勾选,得去对应配置取消

      发布在 MR Series
      A
      awwwwa
    • 回复: 请教如何排查 linux kernel 启动卡主的问题

      @xsyr1024 tina其实就是openwrt,在openwrt中的KERNEL_开头的选项就是会影响到内核配置

      发布在 Linux
      A
      awwwwa
    • 回复: 请教如何排查 linux kernel 启动卡主的问题

      @xsyr1024 在kernel里关闭VIN驱动

      发布在 Linux
      A
      awwwwa
    • 回复: T113开机LOGO闪烁问题

      @lansecd 在 T113开机LOGO闪烁问题 中说:

      @awwwwa 2.1的SDK可以分享一下么

      新 SDK 平台下载 D1-H/D1s SDK
      https://bbs.aw-ol.com/topic/3947/share/1

      下载这个即可

      发布在 MR Series
      A
      awwwwa
    • 回复: T527 修改分辨率后显示异常

      正常情况 ref_fps≈fps

      ee87d7c7-28c2-4859-8fad-2402e9f31f68-image.png

      异常情况:ref_fps>>fps

      f0753a63-52a0-4d78-917c-b1d2771d0563-image.png

      需要检查屏幕时序配置是否正确

      发布在 T Series
      A
      awwwwa
    • 回复: PhoeniSuit安装下来,drvinstaller点击没反应怎么办,以管理员身份运行也没有用?

      https://r128.docs.aw-ol.com/r128/prepare_dev_env/#windows_1

      发布在 编译和烧写问题专区
      A
      awwwwa
    • 回复: A40i tf卡固化系统到emmc剩余空间指定

      @dort91011 这个是UDISK分区,是烧录软件在烧录的时候自动划分的空间。如果需要手动配置,请在sys_partition.fex里手动配置这个分区的size

      发布在 飞凌嵌入式专区
      A
      awwwwa
    • 回复: 求助,在用phoenixsuit烧固件失败之后,现在哪吒板重新接串口没有反应了怎么办?

      @polarcode 按住FEL按键重新烧录

      发布在 MR Series
      A
      awwwwa
    • 回复: 请教如何排查 linux kernel 启动卡主的问题

      RT内核没研究过,不过可以先试试普通内核能不能启动手动打入rt补丁看看

      发布在 Linux
      A
      awwwwa
    • 回复: 烧录suit工具写flash卡在7%

      卡7%是不是烧录成nand固件了,nor固件文件名会写nor

      发布在 编译和烧写问题专区
      A
      awwwwa
    • 回复: t113-i 单片1x16 ddr3 硬件设计

      @vctorspace 图1是DDR2接线,图2是DDR3接线

      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: 请教如何排查 linux kernel 启动卡主的问题

      @xsyr1024 在 请教如何排查 linux kernel 启动卡主的问题 中说:

      [ 0.969253] 000: printk: console [ttyS0] enabled
      [ 0.973945] 000: printk: bootconsole [earlycon0] disabled

      看着是earlycon0作为串口输出驱动正常,但是切换到ttyS0作为串口输出的时候ttyS0没有输出,先检查uart部分

      另外这个是LinuxRT内核吗

      发布在 Linux
      A
      awwwwa
    • 回复: T113开机LOGO闪烁问题

      @koupoo 2.1的SDK已经修复了,不需要这个补丁

      发布在 MR Series
      A
      awwwwa
    • 回复: T113-S3用TF卡启动,每次会卡在同一个地方

      在这里卡死说明Kernel没有跑起来,或者Kernel没有配置正确串口输出

      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: 烧录suit工具写flash卡在7%

      @missdangerous 固件损坏,GUID 分区表损坏

      发布在 编译和烧写问题专区
      A
      awwwwa
    • 回复: uhttpd服务启动报错

      uhttpd 需要加载luci,需要勾选luci的相关配置feed。具体可以参考openwrt官方文档

      发布在 V Series
      A
      awwwwa
    • 回复: A133怎么把触摸配置数组写入到芯片中啊(GT9271)

      适配于 A133 Android 13 方案,Linux 5.15

      ctp {
      	gt9xx {
      		compatible = "goodix,gt9xx";
      		reg = <0x5d>;
      		status = "okay";
      		irq-gpios = <&pio PD 20 GPIO_ACTIVE_LOW>;
      		irq-flags = <2>;
      		reset-gpios = <&pio PD 21 GPIO_ACTIVE_LOW>;
      		vdd_ana-supply = <&reg_cldo2>;
      
      		touchscreen-max-id = <11>;
      		touchscreen-size-x = <1280>;
      		touchscreen-size-y = <800>;
      		touchscreen-max-w = <512>;
      		touchscreen-max-p = <512>;
      		//touchscreen-key-map = <172>, <158>; /*KEY_HOMEPAGE=172, KEY_BACK=158,KEY_MENU=139*/
      		goodix,slide-wakeup = <0>;
      		goodix,type-a-report = <1>;
      		goodix,driver-send-cfg = <0>;
      		goodix,send-cfg-id = <0>;
      		goodix,resume-in-workqueue = <0>;
      		goodix,int-sync = <1>;
      		goodix,revert_x = <0>;
      		goodix,revert_y = <0>;
      		goodix,swap-x2y = <0>;
      		goodix,tp_idle_support = <1>;
      		goodix,esd-protect = <1>;
      		goodix,auto-update-cfg = <0>;
      		goodix,power-off-sleep = <1>;
      		goodix,pen-suppress-finger = <0>;
      		/* GT9271_Config_20221222_v67.cfg*/
      		goodix,cfg-group0 = [
      			B4 00 05 20 03 0A 3D 00 01 0A
      			28 0F 50 32 03 05 00 00 00 00
      			00 00 06 17 19 1F 14 8E 2E 99
      			2D 2F 35 11 00 00 00 1A 03 10
      			00 00 00 00 00 00 00 00 00 00
      			00 32 50 94 D5 02 07 00 00 04
      			8E 48 00 8A 4D 00 86 53 00 83
      			59 00 80 60 00 80 00 00 00 00
      			00 00 00 00 00 00 00 00 00 00
      			00 00 00 00 00 00 00 00 00 00
      			00 00 00 00 00 00 00 00 00 00
      			00 00 00 01 04 05 06 07 08 09
      			0C 0D 0E 0F 10 11 14 15 16 17
      			FF FF FF FF FF FF FF FF FF FF
      			FF FF 28 27 26 25 24 23 22 21
      			20 1F 1E 1C 1B 19 13 12 11 10
      			0F 0D 0C 0A 08 07 06 04 02 00
      			FF FF FF FF FF FF FF FF FF FF
      			FF FF FF FF AB 01
      		];
      	};
      
      发布在 其它全志芯片讨论区
      A
      awwwwa
    • 回复: D1s norflash修改SPI2上可以吗

      SPI2 不是启动使用的SPI,可以挂副存储器但是不能作为启动存储器

      发布在 MR Series
      A
      awwwwa
    • 回复: 关于PhoenixCardv4.2.7

      @iincity NOR固件需要线刷

      发布在 Linux
      A
      awwwwa
    • 回复: 关于PhoenixCardv4.2.7

      377391af-878f-4a41-b29a-7c50b6faad29-image.png

      NOR固件不能烧卡

      发布在 Linux
      A
      awwwwa
    • 回复: V851S SPI2 死机

      @email10000 这个是软件配置问题了,接收spi信息超时

      发布在 V Series
      A
      awwwwa
    • 回复: V853我们来了!!!

      Tina 4.0:
      tina_v851se-tinyvision_uart0.zip

      Tina 4.0 摄像头测试:
      e8ce3a5d-7cbf-40a3-b16a-1989ce206407-tina_v851se-tinyvision_uart0.zip

      Tina 5.0:
      v851se_linux_tinyvision_uart0_SDNand.zip

      Patch:
      e4350d20-eda5-4ff5-b708-5901f5469aa9-tinyvision_patch.tar.gz

      tinyvision_syterboot.zip

      tinyvision_e907_boot.zip

      71d8a58c-6fe2-4a93-96ee-b12bb883b2e1-摄像头测试固件.img

      d0ef81d9-3893-4c2c-8903-711cf397a3bb-tinyvision.tgz

      CONFIG_ARM=y
      CONFIG_ARCH_SUNXI=y
      CONFIG_MACH_SUN8IW21=y
      CONFIG_SUNXI_GPIO_V2=y
      #CONFIG_AXP_GPIO=y
      CONFIG_SYS_CONFIG_NAME="sun8iw21p1"
      CONFIG_DEFAULT_DEVICE_TREE="sun8iw21p1-soc-system"
      # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
      CONFIG_CONSOLE_MUX=y
      CONFIG_SUNXI_NECESSARY_REPLACE_FDT=y
      CONFIG_RESERVE_FDT_SIZE=0x20000
      CONFIG_PRE_CONSOLE_BUFFER=n
      # CONFIG_OF_BOARD=y
      CONFIG_OF_SEPARATE=y
      CONFIG_SYS_TEXT_BASE=0x42000000
      CONFIG_SUNXI_FDT_ADDR=0x41800000
      CONFIG_SUNXI_MALLOC_LEN=0x1400000
      # Environment
      # CONFIG_ENV_IS_IN_SUNXI_FLASH=y
      # CONFIG_SYS_MAXARGS=64
      # CONFIG_SUNXI_REDUNDAND_ENVIRONMENT=y
      # CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
      # CONFIG_SUNXI_ENV_PARTITION="env"
      CONFIG_SUNXI_ENV_BACKUP=y
      # CONFIG_SUNXI_ENV_REDUNDAND_PARTITION="env-redund"
      # CONFIG_ENV_SIZE=0x20000
      
      #system
      CONFIG_ARM_SMCCC=y
      CONFIG_SUNXI_DMA=y
      CONFIG_CLK_SUNXI=y
      #SPI
      CONFIG_SPI=y
      CONFIG_SUNXI_SPI=y
      CONFIG_SPI_USE_DMA=y
      CONFIG_SPI_FLASH=y
      CONFIG_SPI_FLASH_WINBOND=y
      CONFIG_SPI_FLASH_EON=y
      CONFIG_SPI_FLASH_GIGADEVICE=y
      CONFIG_SPI_FLASH_ISSI=y
      CONFIG_SPI_FLASH_MACRONIX=y
      CONFIG_SPI_FLASH_SPANSION=y
      CONFIG_SPI_FLASH_ATMEL=y
      CONFIG_SPI_FLASH_STMICRO=y
      CONFIG_SPI_FLASH_SST=y
      CONFIG_SPI_FLASH_PUYA=y
      CONFIG_SPI_FLASH_FM=y
      CONFIG_SPI_FLASH_XT=y
      CONFIG_SPI_FLASH_ADESTO=y
      CONFIG_SPI_FLASH_XMC=y
      CONFIG_SPI_SAMP_DL_EN=y
      
      CONFIG_SF_DEFAULT_SPEED=50000000
      # BIT(12) BIT(13) (SPI_RX_DUAL|SPI_RX_QUAD)
      CONFIG_SF_DEFAULT_MODE=0x3000
      CONFIG_SPINOR_UBOOT_OFFSET=128
      CONFIG_SPINOR_LOGICAL_OFFSET=2016
      CONFIG_SPINOR_UBOOT_SECURE_OFFSET=128
      CONFIG_SPINOR_LOGICAL_SECURE_OFFSET=2200
      
      
      #axp
      CONFIG_SYS_I2C_SUNXI=y
      CONFIG_I2C4_ENABLE=y
      CONFIG_SYS_SUNXI_I2C4_SLAVE=0x34
      CONFIG_SYS_SUNXI_I2C4_SPEED=400000
      CONFIG_SUNXI_POWER=y
      CONFIG_SUNXI_PMU=y
      CONFIG_SUNXI_BMU=y
      CONFIG_AXP2101_POWER=y
      CONFIG_AXP2101_SUNXI_I2C_SLAVE=0x34
      
      
      #key
      #CONFIG_SUNXI_PHY_KEY=y
      #CONFIG_SUNXI_LRADC_KEY=y
      
      
      #crypto driver
      CONFIG_SUNXI_CE_DRIVER=y
      CONFIG_SUNXI_CE_23=y
      
      #CONFIG_SF_DEFAULT_SPEED=50000000
      # BIT(12) BIT(13) (SPI_RX_DUAL|SPI_RX_QUAD)
      #CONFIG_SF_DEFAULT_MODE=0x3000
      
      #
      # PWM_SUNXI
      #
      CONFIG_PWM_SUNXI=y
      # CONFIG_PWM_SUNXI_NEW is not set
      
      #CONFIG_SPINOR_UBOOT_OFFSET=128
      #CONFIG_SPINOR_LOGICAL_OFFSET=2016
      
      # flash
      CONFIG_SUNXI_SDMMC=y
      CONFIG_MMC=y
      CONFIG_SUNXI_FLASH=y
      CONFIG_SUNXI_NAND=y
      CONFIG_SUNXI_UBIFS=y
      CONFIG_SUNXI_COMM_NAND_V1=y
      CONFIG_SUNXI_SPINOR=y
      
      #usb otg config
      CONFIG_SUNXI_USB=y
      CONFIG_SUNXI_EFEX=y
      CONFIG_SUNXI_BURN=y
      CONFIG_SUNXI_FASTBOOT=y
      #partition
      CONFIG_EFI_PARTITION=y
      
      #image
      CONFIG_ANDROID_BOOT_IMAGE=y
      
      #sprite
      CONFIG_SUNXI_SPRITE=y
      CONFIG_SUNXI_SECURE_STORAGE=y
      CONFIG_SUNXI_SPRITE_CARTOON=y
      
      #secure feature
      CONFIG_SUNXI_SECURE_BOOT=y
      CONFIG_SUNXI_IMAGE_VERIFIER=y
      CONFIG_SUNXI_KEYBOX=y
      CONFIG_SUNXI_DRM_SUPPORT=y
      CONFIG_SUNXI_EXTERN_SECURE_MM_LAYOUT=y
      
      
      CONFIG_SUNXI_HOMLET=y
      CONFIG_SUNXI_HDCP_HASH=y
      CONFIG_SUNXI_HDCP_IN_SECURESTORAGE=y
      
      #cmd
      CONFIG_CMD_SUNXI_TIMER=y
      CONFIG_CMD_SUNXI_SPRITE=y
      CONFIG_CMD_SUNXI_EFEX=y
      CONFIG_CMD_SUNXI_BURN=y
      CONFIG_CMD_GPT=y
      CONFIG_CMD_FAT=y
      CONFIG_CMD_FASTBOOT=y
      CONFIG_CMD_SUNXI_DMA=y
      CONFIG_CMD_SUNXI_CLK=y
      CONFIG_CMD_SUNXI_MEMTEST=y
      CONFIG_CMD_PART=y
      CONFIG_CMD_SUNXI_AUTO_FEL=n
      CONFIG_CMD_SUNXI_BOOTR=y
      #arisc
      #CONFIG_SUNXI_ARISC_EXIST=y
      
      # CONFIG_SUNXI_INITRD_ROUTINE is not set
      #dsp
      #CONFIG_XTENSA_DSP=y
      #riscv
      #CONFIG_RISCV_E907=y
      
      CONFIG_SUNXI_ARM_SOFT_FP=y
      CONFIG_USE_PRIVATE_LIBGCC=y
      #
      # BOOT GUI
      #
      CONFIG_BOOT_GUI=y
      # CONFIG_UPDATE_DISPLAY_MODE is not set
      # CONFIG_CONFIG_LCD_CHECK_SKIP_OPEN is not set
      # CONFIG_BOOT_GUI_DOUBLE_BUF is not set
      # CONFIG_BOOT_GUI_TEST is not set
      
      #
      # SUNXI LOGO DISPLAY
      #
      CONFIG_CMD_SUNXI_BMP=y
      # CONFIG_SUNXI_SPINOR_BMP is not set
      # CONFIG_ENABLE_ADVERT_PICTURE is not set
      # CONFIG_SUNXI_SPINOR_JPEG is not set
      # CONFIG_CMD_SUNXI_JPEG is not set
      CONFIG_DISP2_SUNXI=y
      # CONFIG_HDMI_DISP2_SUNXI is not set
      # CONFIG_HDMI2_DISP2_SUNXI is not set
      # CONFIG_VDPO_DISP2_SUNXI is not set
      # CONFIG_TV_DISP2_SUNXI is not set
      # CONFIG_EDP_DISP2_SUNXI is not set
      # CONFIG_EINK200_SUNXI is not set
      
      #
      # LCD panels select
      #
      # CONFIG_LCD_SUPPORT_GG1P4062UTSW is not set
      # CONFIG_LCD_SUPPORT_DX0960BE40A1 is not set
      # CONFIG_LCD_SUPPORT_TFT720X1280 is not set
      # CONFIG_LCD_SUPPORT_FD055HD003S is not set
      # CONFIG_LCD_SUPPORT_HE0801A068 is not set
      # CONFIG_LCD_SUPPORT_ILI9341 is not set
      # CONFIG_LCD_SUPPORT_LH219WQ1 is not set
      # CONFIG_LCD_SUPPORT_LS029B3SX02 is not set
      # CONFIG_LCD_SUPPORT_LT070ME05000 is not set
      # CONFIG_LCD_SUPPORT_S6D7AA0X01 is not set
      # CONFIG_LCD_SUPPORT_T27P06 is not set
      # CONFIG_LCD_SUPPORT_TFT720x1280 is not set
      # CONFIG_LCD_SUPPORT_WTQ05027D01 is not set
      # CONFIG_LCD_SUPPORT_H245QBN02 is not set
      # CONFIG_LCD_SUPPORT_ST7789V is not set
      # CONFIG_LCD_SUPPORT_ST7796S is not set
      # CONFIG_LCD_SUPPORT_ST7701S is not set
      # CONFIG_LCD_SUPPORT_T30P106 is not set
      # CONFIG_LCD_SUPPORT_TO20T20000 is not set
      # CONFIG_LCD_SUPPORT_FRD450H40014 is not set
      # CONFIG_LCD_SUPPORT_S2003T46G is not set
      # CONFIG_LCD_SUPPORT_WILLIAMLCD is not set
      # CONFIG_LCD_SUPPORT_LQ101R1SX03 is not set
      # CONFIG_LCD_SUPPORT_INET_DSI_PANEL is not set
      # CONFIG_LCD_SUPPORT_WTL096601G03 is not set
      # CONFIG_LCD_SUPPORT_BP101WX1 is not set
      # CONFIG_LCD_SUPPORT_M133X56 is not set
      # CONFIG_LCD_SUPPORT_K101IM2QA04 is not set
      # CONFIG_LCD_SUPPORT_K101IM2BYL02L is not set
      # CONFIG_LCD_SUPPORT_FX070 is not set
      # CONFIG_LCD_SUPPORT_M101B31 is not set
      # CONFIG_LCD_SUPPORT_CC08021801_310_800X1280 is not set
      # CONFIG_LCD_SUPPORT_KD101NA5 is not set
      # CONFIG_LCD_SUPPORT_KD070D57 is not set
      # CONFIG_LCD_SUPPORT_ZS080NI4003E7H3H_A is not set
      # CONFIG_LCD_SUPPORT_K080_IM2HYL802R_800X1280 is not set
      # CONFIG_LCD_SUPPORT_K101_IM2BYL02_L_800X1280 is not set
      # CONFIG_LCD_SUPPORT_JD9366AB_3 is not set
      # CONFIG_LCD_SUPPORT_TFT08006 is not set
      CONFIG_LCD_SUPPORT_ST7701S_G5=y
      CONFIG_LCD_SUPPORT_T050K589=y
      CONFIG_LCD_SUPPORT_JD9161Z_MIPI=y
      CONFIG_LCD_SUPPORT_ICN6202=y
      
      #
      # Display engine feature select
      #
      # CONFIG_DISP2_SUNXI_SUPPORT_SMBL is not set
      # CONFIG_DISP2_SUNXI_SUPPORT_ENAHNCE is not set
      # CONFIG_SUNXI_TV_FASTLOGO is not set
      # CONFIG_SUNXI_FASTLOGO_JPEG is not set
      
      发布在 V Series
      A
      awwwwa
    • 回复: A133 Linux GPU 测试例程

      @liangzhicheng 可以用glmark2测试

      发布在 Linux
      A
      awwwwa
    • 回复: V853移植rk628成功出图,但是图片颜色异常,求个排查思路

      @xjy_5 一般2M摄像头都是1920*1088的,可能就按这个来处理了

      发布在 V Series
      A
      awwwwa
    • T527 使用 DRM 驱动 edp 屏幕

      进入 menuconfig 勾选 drm 驱动

      ./build.sh menuconfig
      

      先勾选 DRM

      cb61de74-4427-4634-ad9a-7fb0355f0c2c-image.png

      再勾选 DRM 驱动

      d5bfe0b4-9c31-4685-9f5a-edf9a314ecc8-image.png

      选择驱动的phy

      cd43edeb-294c-4e54-bca2-02fcd83870d6-image.png

      选择屏幕

      3296da2b-cc7e-4440-9379-c538a52c59e1-image.png

      选择 general 屏幕面板驱动

      c6048ab0-44cc-4889-a0b4-8c6ef4d76cb3-image.png

      关闭原来的 disp2 fbdev 驱动

      f8db1009-4b34-4d8e-839d-3c7a358126d6-image.png

      配置设备树

      	edp_panel_backlight: edp_backlight {
      		compatible = "pwm-backlight";
      		status = "okay";
      		brightness-levels = <
      			  0   1   2   3   4   5   6   7
      			  8   9  10  11  12  13  14  15
      			 16  17  18  19  20  21  22  23
      			 24  25  26  27  28  29  30  31
      			 32  33  34  35  36  37  38  39
      			 40  41  42  43  44  45  46  47
      			 48  49  50  51  52  53  54  55
      			 56  57  58  59  60  61  62  63
      			 64  65  66  67  68  69  70  71
      			 72  73  74  75  76  77  78  79
      			 80  81  82  83  84  85  86  87
      			 88  89  90  91  92  93  94  95
      			 96  97  98  99 100 101 102 103
      			104 105 106 107 108 109 110 111
      			112 113 114 115 116 117 118 119
      			120 121 122 123 124 125 126 127
      			128 129 130 131 132 133 134 135
      			136 137 138 139 140 141 142 143
      			144 145 146 147 148 149 150 151
      			152 153 154 155 156 157 158 159
      			160 161 162 163 164 165 166 167
      			168 169 170 171 172 173 174 175
      			176 177 178 179 180 181 182 183
      			184 185 186 187 188 189 190 191
      			192 193 194 195 196 197 198 199
      			200 201 202 203 204 205 206 207
      			208 209 210 211 212 213 214 215
      			216 217 218 219 220 221 222 223
      			224 225 226 227 228 229 230 231
      			232 233 234 235 236 237 238 239
      			240 241 242 243 244 245 246 247
      			248 249 250 251 252 253 254 255>;
      		default-brightness-level = <200>;
      		enable-gpios = <&pio PI 5 GPIO_ACTIVE_HIGH>;
      		/* power-supply = <&reg_backlight_12v>; */
      		pwms = <&a_pwm 5 5000000 0>;
      	};
      
      	edp_panel: edp_panel {
      		compatible = "edp-general-panel";
      		status = "okay";
      		power0-supply = <&reg_dcdc4>;
      
      		backlight = <&edp_panel_backlight>;
      
      		panel-timing {
      			clock-frequency = <348577920>; /* pixel clock */
      			hactive = <2560>;
      			hback-porch = <120>;
      			hfront-porch = <88>;
      			hsync-len = <32>;
      			vactive = <1600>;
      			vback-porch = <71>;
      			vfront-porch = <28>;
      			vsync-len = <5>;
      			/* hor_sync_polarity */
      			hsync-active = <1>;
      			/* ver_sync_polarity */
      			vsync-active = <1>;
      
      			// unused now
      			/*
      			de-active = <1>;
      			pixelclk-active = <1>;
      			syncclk-active = <0>;
      			interlaced;
      			doublescan;
      			doubleclk;
      			*/
      		};
      		ports {
      			#address-cells = <1>;
      			#size-cells = <0>;
      			panel_in: port@0 {
      				#address-cells = <1>;
      				#size-cells = <0>;
      				reg = <0>;
      				edp_panel_in: endpoint@0 {
      					reg = <0>;
      					remote-endpoint = <&edp_panel_out>;
      				};
      			};
      		};
      	};
      

      和 drm_edp 的配置

      &drm_edp {
      	status = "okay";
      
      	edp_ssc_en = <0>;
      	edp_ssc_mode = <0>;
      	edp_psr_support = <0>;
      	edp_colordepth = <8>; /* 6/8/10/12/16 */
      	edp_color_fmt = <0>; /* 0:RGB  1: YUV444  2: YUV422 */
      
      	lane1_sw = <0>;
      	lane1_pre = <0>;
      	lane2_sw = <0>;
      	lane2_pre = <0>;
      	lane3_sw = <0>;
      	lane3_pre = <0>;
      	efficient_training = <0>;
      
      	sink_capacity_prefer = <1>;
      	edid_timings_prefer = <1>;
      	timings_fixed = <1>;
      
      	vcc-edp-supply = <&reg_bldo3>;
      	vdd-edp-supply = <&reg_dcdc2>;
      	panel = <&edp_panel>;
      	ports {
      		edp_out: port@1 {
      			edp_panel_out: endpoint@0 {
      				reg = <0>;
      				remote-endpoint = <&edp_panel_in>;
      			};
      		};
      	};
      };
      发布在 T Series
      A
      awwwwa
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 4 / 6