您尚未登录。

楼主 # 2025-06-24 15:50:57

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

rk3506G从入门到放弃

事情从某多买了一个rk3506开始,参考链接https://whycan.com/t_12088.html
修改设备树驱动屏幕参考上面链接修改就行了,关于上面的报错信息,不需要修改Build options–>Mirrors and Download locations改一下路由器的DNS或者重启一下就好了
关于wifi,修改/etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
update_config=1

network={
        ssid="wifi名字"
        psk="密码"
        key_mgmt=WPA-PSK
}
重启网络/etc/init.d/S40network restart

这时候可以ssh登录
然后你想传输一下文件或者放个qt.你会发现打包失败,就是超过了尺寸
这时候需要修改分区表删除一些分区,修改设备树的启动参数
分区表rk3506_linux6.1_sdk/device/rockchip/.chips/rk3506/parameter-128M.txt
FIRMWARE_VER:8.1
MACHINE_MODEL:RK3506
MACHINE_ID:007
MANUFACTURER: RK3506
MAGIC: 0x5041524B
ATAG: 0x00200800
MACHINE: 3506
CHECK_MASK: 0x80
PWR_HLD: 0,0,A,0,1
TYPE: GPT
GROW_ALIGN: 0
CMDLINE:mtdparts=:0x00002000@0x00002000(uboot),0x00005000@0x00004000(boot),-@0x00009000(rootfs:grow)
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
只保留了必须的分区
还能顺便看一下rk3506_linux6.1_sdk/device/rockchip/.chips/rk3506/rockchip_rk3506_g_mini_defconfig默认配置
RK_ROOTFS_UBI=y
RK_ROOTFS_INSTALL_MODULES=y
RK_WIFIBT_CHIP="AIC8800"
# RK_ROOTFS_LOG_GUARDIAN is not set
RK_UBOOT_CFG_FRAGMENTS="rk3506_tb"
RK_UBOOT_SPL=y
RK_KERNEL_CFG="rk3506_defconfig"
RK_KERNEL_CFG_FRAGMENTS="rk3506-display.config"
RK_KERNEL_DTS_NAME="rk3506g-mini-v10"
RK_BOOT_COMPRESSED=y
RK_BOOT_FIT_ITS_NAME="thunderboot.its"
RK_RECOVERY_FIT_ITS_NAME="thunderboot4recovery.its"
RK_FLASH_SIZE=2048
RK_EXTRA_PARTITION_NUM=0
# RK_EXTRA_PARTITION_1_FSTYPE="ubi"
# RK_EXTRA_PARTITION_1_SRC="rk3506_oem"
# RK_EXTRA_PARTITION_2_FSTYPE="ubi"
RK_PARAMETER="parameter-128M.txt"
RK_USE_FIT_IMG=y
修改设备树rk3506_linux6.1_sdk/kernel-6.1/arch/arm/boot/dts/rk3506g-mini-v10.dtsi
chosen {
        //bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=tty1 console=ttyFIQ0 root=ubi0:rootfs ubi.mtd=2 rootfstype=ubifs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1";
        bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0 ubi.mtd=2 root=ubi0:rootfs rw rootfstype=ubifs  rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1";
        //bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0 ubi.mtd=5 ubi.block=0,rootfs root=/dev/ubiblock0_0 rootfstype=squashfs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1";
        //bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0 ubi.mtd=5 root=ubi0:rootfs rw rootfstype=ubifs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1";
    };
那啥顺手修改一下屏幕
修改rk3506g-mini-v10-rgb.dtsi,display-timings {
            native-mode = <&rgb_timing>;
            rgb_timing: timing0 {
                clock-frequency = <51200000>;
                hactive = <1024>;
                vactive = <600>;
                hback-porch = <160>;
                hfront-porch = <160>;
                vback-porch = <23>;
                vfront-porch = <12>;
                hsync-len = <20>;
                vsync-len = <10>;
                hsync-active = <0>;
                vsync-active = <0>;
                de-active = <0>;
                pixelclk-active = <0>;
            };
        };
修改触摸
gt911: gt911@5d {
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&gt911_int_pin
                &gt911_rst_pin>;
        compatible = "goodix,gt911";
        reg = <0x5d>;
        interrupt-parent = <&gpio0>;
        interrupts = <RK_PA6 0>;
        irq-gpios = <&gpio0 RK_PA6 0>;
        reset-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>;
        max-x = <1024>;
        max-y = <600>;
    };
这时候编译完烧录会挂载文件系统失败,这时候需要修改buildroot里面文件系统的配置
/rk3506_linux6.1_sdk/buildroot/configs/rockchip_rk3506_defconfig
#include "base/base.config"
#include "chips/rk3506_arm.config"
#include "fs/vfat.config"
#include "wifibt/bt.config"
#include "wifibt/wireless.config"
#include "wifibt/bt.config"
#include "wifibt/wireless.config"
#include "bus/can.config"
#include "lvgl/lvgl_rkadk.config"
#include "lvgl/rk_demo.config"
BR2_LV_CALENDAR_WEEK_STARTS_MONDAY=y
BR2_LV_DEMO_MUSIC_AUTO_PLAY=y
BR2_LV_DEMO_MUSIC_LANDSCAPE=y
BR2_LV_DEMO_MUSIC_LARGE=y
BR2_LV_DEMO_MUSIC_ROUND=y
BR2_LV_DEMO_MUSIC_SQUARE=y
BR2_LV_DEMO_WIDGETS_SLIDESHOW=y
BR2_LV_DISP_DEF_REFR_PERIOD=5
BR2_LV_INDEV_DEF_READ_PERIOD=10
BR2_LV_THEME_DEFAULT_DARK=y
BR2_LV_USE_DEMO_BENCHMARK=y
BR2_LV_USE_DEMO_KEYPAD_AND_ENCODER=y
BR2_LV_USE_DEMO_MUSIC=y
BR2_LV_USE_DEMO_WIDGETS=y
BR2_LV_USE_GRIDNAV=y
BR2_LV_USE_IME_PINYIN=y
BR2_LV_USE_PERF_MONITOR=y
BR2_LV_USE_QRCODE=y
# BR2_PACKAGE_CHRONY is reset to default
BR2_PACKAGE_COREUTILS=y
# BR2_PACKAGE_DNSMASQ is reset to default
# BR2_PACKAGE_DROPBEAR is reset to default
BR2_PACKAGE_EVTEST=y
BR2_PACKAGE_GDB=y
BR2_PACKAGE_GDB_DEBUGGER=y
BR2_PACKAGE_GDB_SERVER=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y
BR2_PACKAGE_LIBCAP=y
BR2_PACKAGE_LIBGPIOD=y
BR2_PACKAGE_LIBGPIOD_TOOLS=y
BR2_PACKAGE_LIBRSYNC=y
BR2_PACKAGE_MHZ=y
BR2_PACKAGE_MTD=y
BR2_PACKAGE_OPENSSH=y
BR2_PACKAGE_OPENSSH_GEN_KEYS=y
BR2_PACKAGE_RECOVERY=y
BR2_PACKAGE_RECOVERY_NO_UI=y
BR2_PACKAGE_RECOVERY_USE_UPDATEENGINE=y
BR2_PACKAGE_RIPGREP=y
BR2_PACKAGE_RKADK_EXAMPLES=y
BR2_PACKAGE_ROCKCHIP_RGA=y
BR2_PACKAGE_ROCKCHIP_TEST=y
BR2_PACKAGE_RSYNC=y
BR2_PACKAGE_START_STOP_DAEMON=y
BR2_PACKAGE_TSLIB=y
BR2_ROOTFS_OVERLAY+="board/rockchip/rk3506/fast-display-overlay/"
BR2_ROOTFS_POST_BUILD_SCRIPT+="board/rockchip/rk3506/post-build-fast-display.sh"
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD=y
BR2_TARGET_ROOTFS_TAR_ZSTD=y
BR2_TARGET_ROOTFS_UBI=y
BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000
BR2_TARGET_ROOTFS_UBIFS_MAX_SIZE=1024
BR2_TARGET_ROOTFS_UBIFS_OPTS="-F -v"
BR2_TARGET_ROOTFS_UBI_OPTS="-v"
BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048
BR2_TIME_BITS_64=y
或者./build.sh buildroot-config进入配置
一定注意UBIFS_LEBSIZE=0x1f000默认是UBIFS_LEBSIZE=0x1f800需要修改,不然也会挂载失败,顺便加一下其它软件比如tslib,gdbserver等等
这样内核文件系统修改完毕下面是qt和lvgl

离线

楼主 #1 2025-06-24 16:07:54

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

关于Qt修改qt-everywhere-src-5.15.17/qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf
#
# qmake configuration for building with arm-linux-gnueabi-g++
#

MAKEFILE_GENERATOR      = UNIX
CONFIG                 += incremental
QMAKE_INCREMENTAL_STYLE = sublib

QMAKE_CFLAGS_RELEASE += -O2 -march=armv7-a -mfpu=neon -mfloat-abi=hard
QMAKE_CXXFLAGS_RELEASE += -O2 -march=armv7-a -mfpu=neon -mfloat-abi=hard

include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)

QMAKE_LFLAGS += -Wl,-rpath-link,/home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib

# modifications to g++.conf
QMAKE_CC                = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-gcc
QMAKE_CXX               = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-g++
QMAKE_LINK              = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-g++
QMAKE_LINK_SHLIB        = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-g++

# modifications to linux.conf
QMAKE_AR                = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY           = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-objcopy
QMAKE_NM                = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-nm -P
QMAKE_STRIP             = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-strip
load(qt_config)
使用如下配置
../qt-everywhere-src-5.15.17/configure \
-prefix /opt/qt5.15.17arm \
-extprefix /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/target/opt/qt5.15.17arm   \
-hostprefix /home/work/work/rk3506g/qt/hostqt5.15.17arm    \
-sysroot /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/arm-buildroot-linux-gnueabihf/sysroot  \
-I /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/libdrm  \
-L /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib \
-confirm-license -opensource \
-release -shared  \
-xplatform linux-arm-gnueabi-g++ \
-qpa linuxfb \
-make libs  \
-pch \
-qt-libjpeg \
-qt-libpng \
-qt-zlib \
-qt-freetype  \
-qt-harfbuzz  \
-qt-pcre  \
-qt-sqlite  \
-alsa \
-gui \
-widgets \
-kms \
-dbus-runtime \
-accessibility \
-nomake examples  -nomake tests  \
-no-sse2 \
-no-cups \
-no-separate-debug-info \
-no-iconv \
-no-opengl \
-no-glib \
-no-pkg-config  \
-no-compile-examples \
-no-xcb \
-no-eglfs \
-skip qtwayland \
-skip qtdoc  \
-skip qttools \
-skip qtwayland \
-skip qtwebengine \
-skip qtwebview \
-skip qtwinextras \
-skip qtx11extras \
-v \
这时候就可以make -j5 ,make install -j5
完成之后复制rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/target/opt/qt5.15.17arm到/home/work/work/rk3506g/qt/hostqt5.15.17arm
顺便写个qt.conf
[Paths]
Prefix=../qt5.15.17arm
HostPrefix = ..
Sysroot =/home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/arm-buildroot-linux-gnueabihf/sysroot


# 关键平台插件设置
[Platforms]
LinuxFB = drm
EGLFS = disable
QPA = linuxfb:drm

# DRM专用参数(RK3506优化)
[Drm]
Device = /dev/dri/card0
Atomic = 1
SwapBuffersWait = 1
ForceMultiPlane = 1
顺便删了/home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/target/opt/qt5.15.17arm文件夹下的doc,include的文件
顺便写个arm下环境变量设置的shell文件rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/target/opt/qt5.15.17arm/
qtsetdrmenv.sh使用drm
#! /bin/bash

# 导出qtdemo的安装目录
export APP_DIR=/opt/qt5.15.17arm
# 指定qt库路径
export LD_LIBRARY_PATH=/opt/qt5.15.17arm/lib:$LD_LIBRARY_PATH
# 指定qt插件路径
export QT_QPA_PLATFORM_PLUGIN_PATH=/opt/qt5.15.17arm/plugins

# 指定显示平台插件,通过QT_QPA_PLATFORM 或者-platform命令行选项指定其他设置
export QT_QPA_PLATFORM=LINUXFB
export QT_QPA_FB_DRM=1

# 鼠标设备
#export QT_QPA_FB_HIDECURSOR=1

# 键盘设备
#export QT_QPA_EVDEV_KEYBOARD_PARAMETERS

# 触摸配置
#export QT_QPA_FB_TSLIB=1
#export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/$eventx

# 字体库
#指定字体库
export QT_QPA_FONTDIR=/opt/fonts
# 屏幕旋转
#rotation=0
#export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:rotation=$rotation

#export QT_QPA_FB_FORCE_FULLSCREEN=0

qtsetfbenv.sh使用FB

#! /bin/bash

# 导出qtdemo的安装目录
export APP_DIR=/opt/qt5.15.17arm
# 指定qt库路径
export LD_LIBRARY_PATH=/opt/qt5.15.17arm/lib:$LD_LIBRARY_PATH
# 指定qt插件路径
export QT_QPA_PLATFORM_PLUGIN_PATH=/opt/qt5.15.17arm/plugins

# 指定显示平台插件,通过QT_QPA_PLATFORM 或者-platform命令行选项指定其他设置
export QT_QPA_PLATFORM=LINUXFB
export QT_QPA_FB_DRM=0

# 鼠标设备
#export QT_QPA_FB_HIDECURSOR=1

# 键盘设备
#export QT_QPA_EVDEV_KEYBOARD_PARAMETERS

# 触摸配置
#export QT_QPA_FB_TSLIB=1
#export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/$eventx

# 字体库
#指定字体库
export QT_QPA_FONTDIR=/opt/fonts
# 屏幕旋转
#rotation=0
#export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:rotation=$rotation

#export QT_QPA_FB_FORCE_FULLSCREEN=0
再去修改rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/target/etc/profile
添加
if [ "$USER" = "root" ]; then
    echo "Running as root"
    source /opt/qt5.15.17arm/qtsetdrmenv.sh
fi
去掉默认的rk_demo程序rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/target/etc/init.d/pre_init/S10lv_demo
#! /bin/sh

start() {
    set -a
    export LV_DRIVERS_SET_PLANE=CURSOR
    ulimit -n 1024
    set +a
#    rk_demo &
    sleep 1 # All processer help rk_demo output first UI.
}

case "$1" in
    start)
    start
    ;;
    *)
    echo "Usage: $0 {start}"
    exit 1
esac

exit $?
关于qt如何显示fps
主窗口中添加
void paintEvent(QPaintEvent *event) override {
        frameCount++;
        QGraphicsView::paintEvent(event);
    }
开个定时器进行计算
void timerOutFPSUI()
    {
        if (etimer.elapsed()  >= 500) {  // 每秒更新
            fps = (frameCount*1000)/etimer.elapsed();
            frameCount = 0;
            etimer.restart();
        }
        if(oldfps!=fps)
        {
            mlable->setText(QString(" fps:[%1] ")
                                    .arg(fps));
            mlable->adjustSize();
            oldfps=fps;
            update();
        }
    }

这样基本其它就完成了,既能fb,也能drm,DRM的cpu使用率竟然比FB下低帧率也就是20到30左右

离线

楼主 #2 2025-06-24 16:23:46

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

关于lvgl 有fb,drm ,rkadk显示接口
官网https://github.com/lvgl/lv_port_linux
读readme
支持的接口
Graphics drivers
Definition    Description
LV_USE_LINUX_FBDEV    Legacy frame buffer (/dev/fb*)
LV_USE_LINUX_DRM    DRM/KMS (/dev/dri/*)
LV_USE_SDL    SDL
LV_USE_WAYLAND    WAYLAND
LV_USE_X11    X11
LV_USE_OPENGLES    GLFW3
Device drivers
Definition    Description
LV_USE_EVDEV    libevdev input devices
clone文件
git clone https://github.com/lvgl/lv_port_linux.git
cd lv_port_linux/
git submodule update --init --recursive

复制lv_port_linux为lv_port_linuxfb
修改lv_port_linuxfb下 makefile
#
# Makefile
#

CC              = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-gcc
CXX             = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-g++
LVGL_DIR_NAME   ?= lvgl
LVGL_DIR        ?= .

WARNINGS        := -Wall -Wshadow -Wundef -Wmissing-prototypes -Wno-discarded-qualifiers -Wextra -Wno-unused-function -Wno-error=strict-prototypes -Wpointer-arith \
                   -fno-strict-aliasing -Wno-error=cpp -Wuninitialized -Wmaybe-uninitialized -Wno-unused-parameter -Wno-missing-field-initializers -Wtype-limits \
                   -Wsizeof-pointer-memaccess -Wno-format-nonliteral -Wno-cast-qual -Wunreachable-code -Wno-switch-default -Wreturn-type -Wmultichar -Wformat-security \
                   -Wno-ignored-qualifiers -Wno-error=pedantic -Wno-sign-compare -Wno-error=missing-prototypes -Wdouble-promotion -Wclobbered -Wdeprecated -Wempty-body \
                   -Wshift-negative-value -Wstack-usage=2048 -Wno-unused-value -std=gnu99
CFLAGS          ?= -O3 -g0 -I$(LVGL_DIR)/ $(WARNINGS)
LDFLAGS         ?= -lm

BIN             = lvgl9fbtest
BUILD_DIR       = ./build
BUILD_OBJ_DIR   = $(BUILD_DIR)/obj
BUILD_BIN_DIR   = $(BUILD_DIR)/bin

prefix          ?= /usr
bindir          ?= $(prefix)/bin

# Collect source files recursively
CSRCS           := $(shell find src -type f -name '*.c')
CXXSRCS         := $(shell find src -type f -name '*.cpp')

# Include LVGL sources
include $(LVGL_DIR)/lvgl/lvgl.mk

OBJEXT          ?= .o

COBJS           = $(CSRCS:.c=$(OBJEXT))
CXXOBJS         = $(CXXSRCS:.cpp=$(OBJEXT))
AOBJS           = $(ASRCS:.S=$(OBJEXT))

SRCS            = $(ASRCS) $(CSRCS) $(CXXSRCS)
OBJS            = $(AOBJS) $(COBJS) $(CXXOBJS)
TARGET          = $(addprefix $(BUILD_OBJ_DIR)/, $(patsubst ./%, %, $(OBJS)))

all: default

$(BUILD_OBJ_DIR)/%.o: %.c lv_conf.h
    @mkdir -p $(dir $@)
    @$(CC)  $(CFLAGS) -c $< -o $@
    @echo "CC  $<"

$(BUILD_OBJ_DIR)/%.o: %.cpp lv_conf.h
    @mkdir -p $(dir $@)
    @$(CXX)  $(CFLAGS) -c $< -o $@
    @echo "CXX $<"

$(BUILD_OBJ_DIR)/%.o: %.S lv_conf.h
    @mkdir -p $(dir $@)
    @$(CC)  $(CFLAGS) -c $< -o $@
    @echo "AS  $<"

default: $(TARGET)
    @mkdir -p $(dir $(BUILD_BIN_DIR)/)
    $(CXX) -o $(BUILD_BIN_DIR)/$(BIN) $(TARGET) $(LDFLAGS)

clean:
    rm -rf $(BUILD_DIR)

install:
    install -d $(DESTDIR)$(bindir)
    install $(BUILD_BIN_DIR)/$(BIN) $(DESTDIR)$(bindir)

uninstall:
    $(RM) -r $(addprefix $(DESTDIR)$(bindir)/,$(BIN))

修改lv_conf.h
/** Driver for /dev/fb */
#define LV_USE_LINUX_FBDEV      1
#if LV_USE_LINUX_FBDEV
    #define LV_LINUX_FBDEV_BSD           0
    #define LV_LINUX_FBDEV_RENDER_MODE   LV_DISPLAY_RENDER_MODE_PARTIAL
    #define LV_LINUX_FBDEV_BUFFER_COUNT  2
    #define LV_LINUX_FBDEV_BUFFER_SIZE   1080
    #define LV_LINUX_FBDEV_MMAP          1
#endif
其它驱动去掉,其它选项根据需要选择
make -j5 就可以了
widget demo下profile帧率700多,analytics帧率只有28
复制lv_port_linux为lv_port_linuxdrm
修改lv_port_linuxdrm下 makefile
#
# Makefile
#

CC              = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-gcc
CXX             = /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/bin/arm-buildroot-linux-gnueabihf-g++
LVGL_DIR_NAME   ?= lvgl
LVGL_DIR        ?= .

HEADER_PATH = -I /home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/libdrm
LIB_PATH = -L/home/work/work/rk3506g/hdrk3506mini/rk3506_linux6.1_sdk/buildroot/output/rockchip_rk3506/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
LIBS = -ldrm


WARNINGS        := -Wall -Wshadow -Wundef -Wmissing-prototypes -Wno-discarded-qualifiers -Wextra -Wno-unused-function -Wno-error=strict-prototypes -Wpointer-arith \
                   -fno-strict-aliasing -Wno-error=cpp -Wuninitialized -Wmaybe-uninitialized -Wno-unused-parameter -Wno-missing-field-initializers -Wtype-limits \
                   -Wsizeof-pointer-memaccess -Wno-format-nonliteral -Wno-cast-qual -Wunreachable-code -Wno-switch-default -Wreturn-type -Wmultichar -Wformat-security \
                   -Wno-ignored-qualifiers -Wno-error=pedantic -Wno-sign-compare -Wno-error=missing-prototypes -Wdouble-promotion -Wclobbered -Wdeprecated -Wempty-body \
                   -Wshift-negative-value -Wstack-usage=2048 -Wno-unused-value -std=gnu99
CFLAGS          ?= -O3 -g0 -I$(LVGL_DIR)/ $(WARNINGS)
LDFLAGS         ?= -lm

BIN             = lvgl9drmtest
BUILD_DIR       = ./build
BUILD_OBJ_DIR   = $(BUILD_DIR)/obj
BUILD_BIN_DIR   = $(BUILD_DIR)/bin

prefix          ?= /usr
bindir          ?= $(prefix)/bin

# Collect source files recursively
CSRCS           := $(shell find src -type f -name '*.c')
CXXSRCS         := $(shell find src -type f -name '*.cpp')

# Include LVGL sources
include $(LVGL_DIR)/lvgl/lvgl.mk

OBJEXT          ?= .o

COBJS           = $(CSRCS:.c=$(OBJEXT))
CXXOBJS         = $(CXXSRCS:.cpp=$(OBJEXT))
AOBJS           = $(ASRCS:.S=$(OBJEXT))

SRCS            = $(ASRCS) $(CSRCS) $(CXXSRCS)
OBJS            = $(AOBJS) $(COBJS) $(CXXOBJS)
TARGET          = $(addprefix $(BUILD_OBJ_DIR)/, $(patsubst ./%, %, $(OBJS)))

all: default

$(BUILD_OBJ_DIR)/%.o: %.c lv_conf.h
    @mkdir -p $(dir $@)
    @$(CC)  $(CFLAGS) -c $< -o $@  $(HEADER_PATH)
    @echo "CC  $<"

$(BUILD_OBJ_DIR)/%.o: %.cpp lv_conf.h
    @mkdir -p $(dir $@)
    @$(CXX)  $(CFLAGS) -c $< -o $@  $(HEADER_PATH)
    @echo "CXX $<"

$(BUILD_OBJ_DIR)/%.o: %.S lv_conf.h
    @mkdir -p $(dir $@)
    @$(CC)  $(CFLAGS) -c $< -o $@  $(HEADER_PATH)
    @echo "AS  $<"

default: $(TARGET)
    @mkdir -p $(dir $(BUILD_BIN_DIR)/)
    $(CXX) -o $(BUILD_BIN_DIR)/$(BIN) $(TARGET) $(LDFLAGS) $(LIB_PATH)  $(LIBS)

clean:
    rm -rf $(BUILD_DIR)

install:
    install -d $(DESTDIR)$(bindir)
    install $(BUILD_BIN_DIR)/$(BIN) $(DESTDIR)$(bindir)

uninstall:
    $(RM) -r $(addprefix $(DESTDIR)$(bindir)/,$(BIN))
修过lv_conf.h
/** Driver for /dev/dri/card */
#define LV_USE_LINUX_DRM        1

#if LV_USE_LINUX_DRM

    /* Use the MESA GBM library to allocate DMA buffers that can be
     * shared across sub-systems and libraries using the Linux DMA-BUF API.
     * The GBM library aims to provide a platform independent memory management system
     * it supports the major GPU vendors - This option requires linking with libgbm */
    #define LV_USE_LINUX_DRM_GBM_BUFFERS 0
#endif
其它按需修改
make -j5就可以了
关于rkadk参考官方例子吧,自带例子就是rkadk
其它内容以后补充吧

离线

楼主 #3 2025-06-24 16:28:47

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

关于/devfb0参考https://whycan.com/t_12106.html
去内核里面启用fb,启用
<*> DRM Support for Rockchip,
<*> Support for frame buffer devices  --->   
*Enable legacy fbdev support for your modesetting driver
重新编译内核就会出现fb0

离线

楼主 #4 2025-06-24 16:42:55

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

IMG20250624163002.jpg
IMG20250624163007.jpg
IMG20250624163014.jpg
IMG20250624163022.jpg
IMG20250624163052.jpg
IMG20250624163055.jpg
IMG20250624163206.jpg
IMG20250624163215.jpg

离线

楼主 #5 2025-06-24 16:55:24

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

内存貌似有点小
free -h
              total        used        free      shared  buff/cache   available
Mem:         104.5M       64.1M       13.1M      292.0K       27.3M       35.0M
Swap:             0           0           0
存储空间还行
df -h
Filesystem      Size  Used Avail Use% Mounted on
ubi0:rootfs     206M  122M   85M  59% /
devtmpfs         53M     0   53M   0% /dev
tmpfs            53M  124K   53M   1% /var/log
tmpfs            53M   12K   53M   1% /tmp
tmpfs            53M  156K   53M   1% /run
tmpfs            53M     0   53M   0% /dev/shm

离线

#6 2025-06-25 08:35:55

fanwei700615
会员
注册时间: 2021-08-05
已发帖子: 13
积分: 1

Re: rk3506G从入门到放弃

单核性能还是差点意思,FPS上不去

离线

#7 2025-06-25 09:41:57

fxyc87
会员
注册时间: 2023-03-15
已发帖子: 32
积分: 43

Re: rk3506G从入门到放弃

我在等着rt-thread团队的rt3506开发板

离线

楼主 #8 2025-06-25 11:12:05

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

fxyc87 说:

我在等着rt-thread团队的rt3506开发板

这要是跑rt-thread,某些方面不是吊打stm32h7,
还有这板子厂家不提供原厂的开发文档,没有文档,只有一个datasheet和sdk,下载工具,原理图,
厂家的资料网址 https://vanxoak.yuque.com/wb353n/hd-rk3506-mini/svttp0hymv51efyd#om5ff 里面说的各种文档是没有的
所以里面的mo核心如何使用还不知道,等大佬来个例程了

离线

#9 2025-06-25 12:12:57

海石生风
会员
所在地: 深圳
注册时间: 2019-07-02
已发帖子: 723
积分: 857
个人网站

Re: rk3506G从入门到放弃

CPU占用高,应该是G2D没有搞起来;Qt那个示图跑的QML吧,没有GPU跑QML神仙CPU也吃力,所以帧率低。

离线

楼主 #10 2025-06-25 14:20:38

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

海石生风 说:

CPU占用高,应该是G2D没有搞起来;Qt那个示图跑的QML吧,没有GPU跑QML神仙CPU也吃力,所以帧率低。

我去源码里面搜了一圈,没有g2d选项,去配置文件下看了一下,lvgl只有三种显示驱动的配置1:lvgl_drm.config,2:lvgl_rkadk.config,3:lvgl_sdl.config,上面视频是使用的2:lvgl_rkadk.config,启动log如下

drm encode type is LCD
rk_disp: 1024x600 (0mm X 0mm)
[RKADK_P] {RKADK_VERSION_Dump       :021} ---------------------------------------------------------
[RKADK_P] {RKADK_VERSION_Dump       :022} rkadk version: git-6cdc879 Fri Nov 22 11:39:55 2024 +0800
[RKADK_P] {RKADK_VERSION_Dump       :023} rkadk building: unknown rkadk build info
[RKADK_P] {RKADK_VERSION_Dump       :024} ---------------------------------------------------------
rockit_load start
v4l2_tx probe successv4l2_rx_probe success
[04675.640] vrgn_thread_fn(102): vrgn_thread_fn [102] dev(vrgn-15) register okrockit_load end
rockit log path (null), log_size = 0, can use export rt_log_path=, export rt_log_size= change
log_file = (nil)
(null)           12:37:55-642 {log_level_init    :190}

 please use echo name=level > /tmp/rt_log_level set log level
        name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
        log_level: 0 1 2 3 4 5 6

(null)           12:37:55-643 {log_level_init    :196} Failed to open /dev/mpi/vlog,please check insmod success or fail
rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
(null)           12:37:55-643 {read_log_level    :077} text is all=4
(null)           12:37:55-643 {read_log_level    :079} module is all, log_level is 4
(null)           12:37:55-644 {dump_version      :055} ---------------------------------------------------------
(null)           12:37:55-644 {dump_version      :056} rockit version: git-ef354cbc9 Mon Dec 2 16:29:53 2024 +0800
(null)           12:37:55-644 {dump_version      :057} rockit building: built-Chu 2024-12-03 21:05:52
(null)           12:37:55-644 {dump_version      :058} ---------------------------------------------------------
vsys dev open 4
(null)           12:37:55-644 {monitor_log_level :131} #Start monitor_log_level thread, arg:(nil)
cmpi             12:37:55-644 {sys_runtime_librar:178} Failed to open /dev/mpi/venc,please check insmod success or fail
cmpi             12:37:55-644 {sys_runtime_librar:178} Failed to open /dev/mpi/avs,please check insmod success or fail
cmpi             12:37:55-645 {sys_runtime_librar:178} Failed to open /dev/mpi/venc,please check insmod success or fail
get a hdl = 0x4ca850
get a hdl = 0x4cb718
rk_disp: ui created successfullyl.
mb               12:37:55-653 {mb_create_buffer  :484} allocated buffer(this=0xa6eef8e8, data=0x9e0cb000, size=2457600, phy=(nil), id = 27)
rk_disp: ui bufs[0] application is successful.
mb               12:37:55-656 {mb_create_buffer  :484} allocated buffer(this=0xa6eef948, data=0x9dc1b000, size=2457600, phy=(nil), id = 28)
evdev_get_tp_event: /sys/class/input/input0/name = Goodix Capacitive TouchScreen
/dev/input/event0
EV_ABS ABS_MT_POSITION_X
        Min          0
        Max       1023
EV_ABS ABS_MT_POSITION_Y
        Min          0
        Max        599
calibrate [0,1023]x[0,599] to 1024x600
evdev_calibrate = 1
rga_api version 1.10.1_[0]
load library(librga.so) in releative path

猜测librga.so可能是g2d相关,不知道是否对?



1:谁有官方文档可以分享一下?
2:请教一下如何启用g2d
3:ai回复的内容如下,是否靠谱?


Rockchip官方SDK中缺少G2D驱动的解决方案
如果Rockchip官方SDK中没有提供G2D驱动文件,您可以尝试以下方法解决:

1. 检查SDK版本和分支
建议确认您使用的是最新版本的RK3506 SDK,并检查是否有专门针对G2D的分支或补丁。Rockchip有时会将特定功能放在不同的SDK分支中。您可以联系Rockchip技术支持获取最新的G2D驱动支持情况。16

2. 从其他Rockchip平台移植G2D驱动
RK3506的G2D驱动可能与其他Rockchip平台(如RK3568)兼容。您可以尝试从RK3568 Linux SDK中移植相关驱动文件:

drivers/gpu/drm/rockchip/rockchip_drm_g2d.c
include/uapi/drm/rockchip_drm.h
相应的Kconfig和Makefile修改
需要特别注意寄存器地址和时钟配置的差异。12

3. 使用开源社区解决方案
一些开源社区如ArmSoM和Firefly可能已经为RK3506适配了G2D功能:

检查ArmSoM提供的RK3506内核源码
查找Firefly-RK3506的开源项目
参考Rockchip Linux开源社区的补丁
这些资源可能包含您需要的G2D驱动实现。15

4. 替代方案评估
如果确实无法获得G2D硬件加速支持,可以考虑以下替代方案:

使用Mesa 3D的软件渲染
采用CPU优化的图形库如Cairo
评估是否可以使用VPU进行图像处理
考虑使用OpenCL进行通用计算加速
这些方案虽然性能可能不如专用G2D硬件,但可以提供基本功能

离线

楼主 #11 2025-06-25 16:21:14

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

海石生风 说:

CPU占用高,应该是G2D没有搞起来;Qt那个示图跑的QML吧,没有GPU跑QML神仙CPU也吃力,所以帧率低。

搜索了一下,rk的G2D的加速为DRM+RGA ,其中RGA  为2D加速,启用之后拖动视频那个界面CPU使用率90以上,FPS90多,复杂界面还是掉到FPS4到10
好像这个G2D加速很弱

离线

楼主 #12 2025-06-25 16:23:39

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

根据log看lcd的帧率是60,lvgl设置很高是否有意义?
LV_DRIVERS_SET_PLANE not be set, use DRM_PLANE_TYPE_PRIMARY
Best plane: 57
disp_init res1:[1024 x 600@60fps] bit depth 32
[  379.586739] rockchip-vop ff600000.vop: [drm:vop_crtc_atomic_enable] Update mode to 1024x600p60, type: 17
DRM subsystem and buffer mapped successfully lcd_fps:60
evdev_get_tp_event: /sys/class/input/input0/name = Goodix Capacitive TouchScreen
/dev/input/event0
EV_ABS ABS_MT_POSITION_X
        Min          0
        Max       1023
EV_ABS ABS_MT_POSITION_Y
        Min          0
        Max        599
calibrate [0,1023]x[0,599] to 1024x600
evdev_calibrate = 1
rga_api version 1.10.1_[0]

离线

楼主 #13 2025-06-25 16:25:54

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

qt那俩不是QML 是QtWidgets,官方的例程

离线

楼主 #14 2025-06-25 16:36:47

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

关于QT的帧率,你不操作界面,直接降到0,你操作一下才会马上升高,应该和lvgl的处理方式不一样,这个moveblocks方块的动画可以50多帧,另外一个animatedtiles,qt图标的界面,是0到20多帧,不操作界面就是0帧。

离线

楼主 #15 2025-06-26 10:14:15

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

从原子那找到文档了,位置08、RK官方文档\cn\Linux\Graphics,文件名Rockchip_Developer_Guide_Linux_Graphics_CN.pdf,内容如下
1. Rockchip Linux Graphics介绍
1.1 概述
Rockchip Linux平台的图形处理模块,基于DRM和DMA-BUF技术,提供了符合ARM Linux标准的⾼效图
形处理环境。其主要优势在于通⽤架构,简化了定制化开发流程,并且允许⼴泛利⽤现有组件,成为众
多开源项⽬在ARM端的⾸选适配平台。 尽管如此,由于技术和架构复杂性,理解和应⽤这⼀平台可能需
要⼀定的学习过程。开发者可通过查阅 docs/cn/Common/DISPLAY/ 、 docs/cn/Linux/Graphics/ ⽂
档和Rockchip wiki来获取深⼊的信息和指南,这些资料是掌握平台核⼼技术的重要资源。
1.2 芯⽚硬件模块介绍
1.2.1 VOP (Video Output Processor)
VOP是从存储器帧缓冲区到显⽰设备的显⽰接口,是显⽰单元⽤来显⽰图像 (⽐如输⼊NV12,RGB的
Buffer,显⽰到屏幕)。
各个平台VOP的基础特性不尽相同,⽐如各个显⽰接口⽀持的最⼤分辨率,⽀不⽀持4K分辨率,AFBC
压缩格式等等,具体细节可参考
docs/cn/Common/DISPLAY/Rockchip_Developer_Guide_DRM_Display_Driver_CN.pdf 。
1.2.2 GPU (Graphics Process Unit)
GPU是⼀个基于开放标准的图形加速平台。它⽀持 2D 图形、3D 图形以及 GPU 上的通⽤计算
(GPGPU)。
基本上Rockchip Linux的GPU有提供OpenGLES,EGL,OpenCl的 API,不⽀持OPENGL。⽀持类型如下
(各个芯⽚平台⽀持的类型不尽相同,具体可以参考对应的芯⽚⼿册):
OpenGL ES 3.0
OpenGL ES 2.0
OpenGL ES 1.1
OpenCL 1.2
OpenCL 1.1
OpenCL 1.0
1.2.3 RGA (Raster Graphic Acceleration)
Rockchip RGA是⼀个独⽴的⼆维光栅图形加速单元。它加速了⼆维图形操作,例如点/线绘制、图像缩
放、旋转、位图、图像合成等。不同芯⽚平台⽀持的图像格式不尽相同,具体可以参考对应的芯⽚⼿
册。代码位于“SDK/external/linux-rga”⽬录, 更多信息可以参考
docs/cn/Common/RGA/Rockchip_Developer_Guide_RGA_CN.pdf 。

测试DRM+RGA和lvgl_rkadk都使用了RGA的2D加速,但是DRM+RGA帧率更高,RGA文档在docs/cn/Common/RGA/Rockchip_Developer_Guide_RGA_CN.pdf 。
参考文档可以进行测试,
还有这颗芯片的RGA的2D加速感觉有点弱。不知道是不是因为分辨率高的原因,1024X600是不是换成800X480会不会好很多

离线

楼主 #16 2025-06-26 10:32:48

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

这颗芯片的亮点是不是RK3506G2、RK3506B工作温度-20到80,RK3506J工作温度-40到85,然后双网口,canfd,多串口,轻量GUI
厂家介绍
内存差异:
RK3506G2集成DDR3L 128MB内存,仅需4层板即可完成整板设计,极大简化了设计并节省成本。RK3506B和RK3506J支持外部内存,最高可达1GB。

工作温度差异:
RK3506G2和RK3506B的工作温度范围为-20~80℃,而RK3506J为工业级宽温型号,工作温度范围为-40~85℃。

封装、尺寸差异:
RK3506G2、RK3506B和RK3506J的接口功能一致,但在封装和尺寸上有所不同,详见上一章配置表。

不同的应用场景

RK3506适用场景简介
工业控制:RK3506适用于工业控制、工业通信、人机交互等应用场景。其多核异构架构(3xCortex-A7+Cortex-M0)和外设接口丰富,支持Buildroot、Yocto系统,适合轻量级HMI应用。

工业通信:RK3506均支持双路百兆网口、2路CAN FD、6路UART等接口,满足工业领域的控制及通信要求。

PLC控制:RK3506支持AMP多核异构架构,可实现高实时性能,适用于PLC控制及各类闸道应用。

总结:结合RK3506性能参数与功能特性来看,RK3506主要应用于工控,或者一些AIoT应用,如家电显控,手持POS,楼宇对讲等,工控应用

复杂GUI还是很吃力

离线

#17 2025-07-09 16:57:56

miaoguoqiang
会员
注册时间: 2022-08-02
已发帖子: 2
积分: 2

Re: rk3506G从入门到放弃

学习了,lvgl_rkadk中使用的rkadk需要深入学习吗,第一次看见这个模块

离线

#18 2025-07-12 16:32:45

abnerl
会员
注册时间: 2020-06-09
已发帖子: 69
积分: 71.5

Re: rk3506G从入门到放弃

@无业人员
大佬共享一下你编译出的镜像,update.img总镜像包,我也来测试一下看看,我的LCD是5寸RGB接口,看看显示咋样,谢谢

离线

楼主 #19 2025-07-13 11:16:47

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

abnerl 说:

@无业人员
大佬共享一下你编译出的镜像,update.img总镜像包,我也来测试一下看看,我的LCD是5寸RGB接口,看看显示咋样,谢谢

k文件太大了,不能上传,我放到阿里云盘上了 https://www.alipan.com/t/5ZEbIYG0N6kMRMIdZ3Kj ,因为重新分区了,您需要全部重新烧录

离线

楼主 #20 2025-07-13 11:19:17

无业人员
会员
注册时间: 2025-01-17
已发帖子: 27
积分: 77

Re: rk3506G从入门到放弃

miaoguoqiang 说:

学习了,lvgl_rkadk中使用的rkadk需要深入学习吗,第一次看见这个模块

从原子哪里找到的RK官方文档没有这一块的内容,有DRM的内容,暂时我没找到RK官方关于这一块的内容,这个您需要自己找官方咨询吧

离线

#21 2025-07-13 14:00:35

abnerl
会员
注册时间: 2020-06-09
已发帖子: 69
积分: 71.5

Re: rk3506G从入门到放弃

@无业人员
感谢老哥,正常烧录update.img这一个文件就够了,分散烧录很多文件,还不知道咋操作,我烧录update.img这一个,lgvl那些放进SD卡,从SD卡运行应该就可以了吧

离线

#22 2025-07-13 15:33:15

abnerl
会员
注册时间: 2020-06-09
已发帖子: 69
积分: 71.5

Re: rk3506G从入门到放弃

@无业人员
老哥,已经烧录完成,LCD 型号HSD050IDW1,帮忙看看为啥不能显示
板子同样是武汉万象奥科电子RK3506 MINI板
烧录图片
FluxBB bbcode 测试

root_rk3506-buildroot:/# cat /sys/class/backlight/backlight/max_brightness
255
root_rk3506-buildroot:/# echo 251 >/sys/class/backlight/backlight/brightness

root_rk3506-buildroot:/tmp/713# ./lvgl9fbtest -W 800 -H 480
[U ser]  (176.106, +176106)       init_pointer_evdev: Using evdev automatic discovery. evdev.c:160
[U ser]  (176.107, +1)    discovery_cb: new 'KEY' device discovered evdev.c:109
[U ser]  (176.107, +0)    discovery_cb: new 'KEY' device discovered evdev.c:109
[U ser]  (176.107, +0)    discovery_cb: new 'ABS' device discovered evdev.c:109

LCD无显示画面,也不亮

rk_demo提示以下,也不亮

root_rk3506-buildroot:/tmp/713# rk_demo
drm encode type is LCD
rk_disp: 1024x600 (0mm X 0mm)
[RKADK_P] {RKADK_VERSION_Dump       :021} ---------------------------------------------------------
[RKADK_P] {RKADK_VERSION_Dump       :022} rkadk version: git-6cdc879 Fri Nov 22 11:39:55 2024 +0800
[ 1068.942793] cma: cma_alloc: linux,cma: alloc failed, req-size: 450 pages, ret: -12
[RKADK_P] {RKADK_VERSION_Dump       :023} rkadk building: unknown rkadk build info
[ 1068.942845] [drm:rockchip_gem_create_object] *ERROR* failed to allocate 1843200 byte dma buffer
[RKADK_P] {RKADK_VERSION_Dump       :024} ---------------------------------------------------------
[ 1068.947461] 8<--- cut here ---
rockit_load start
[ 1068.947509] rk_demo: unhandled page fault (11) at 0x00000000, code 0x005
v4l2_tx probe successv4l2_rx_probe success
[ 1068.947526] [00000000] *pgd=00000000
[01067.971] vrgn_thread_fn(102): vrgn_thread_fn [102] dev(vrgn-15) register okrockit_load end
[ 1068.947547] CPU: 0 PID: 2109 Comm: rk_demo Tainted: G           O       6.1.99 #1
rockit log path (null), log_size = 0, can use export rt_log_path=, export rt_log_size= change
[ 1068.947564] Hardware name: Generic DT based system
log_file = (nil)
[ 1068.947577] PC is at 0x42da0c
(null)           00:17:47-973 {log_level_init    :190}
[ 1068.947596] LR is at 0x42da0c

[ 1068.947610] pc : [<0042da0c>]    lr : [<0042da0c>]    psr: 60000010
 please use echo name=level > /tmp/rt_log_level set log level
[ 1068.947624] sp : ae955b38  ip : 00446ef8  fp : 004469cc
        name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
[ 1068.947637] r10: a6fedce0  r9 : 0042cad0  r8 : a6fee000
        log_level: 0 1 2 3 4 5 6
[ 1068.947650] r7 : 004469cc  r6 : 00000000  r5 : 0001926c  r4 : 00000000

[ 1068.947662] r3 : a6fc149c  r2 : 00000001  r1 : 00000000  r0 : 00000000
(null)           00:17:47-973 {log_level_init    :196} Failed to open /dev/mpi/vlog,please check insmod success or fail
[ 1068.947676] Flags: nZCv  IRQs on  FIQs on  Mode USER_32  ISA ARM  Segment user
rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
[ 1068.947692] Control: 50c5387d  Table: 023a406a  DAC: 00000055
(null)           00:17:47-973 {read_log_level    :077} text is all=4
(null)           00:17:47-973 {read_log_level    :079} module is all, log_level is 4
(null)           00:17:47-973 {dump_version      :055} ---------------------------------------------------------
(null)           00:17:47-973 {dump_version      :056} rockit version: git-ef354cbc9 Mon Dec 2 16:29:53 2024 +0800
(null)           00:17:47-974 {dump_version      :057} rockit building: built-Chu 2024-12-03 21:05:52
(null)           00:17:47-974 {dump_version      :058} ---------------------------------------------------------
(null)           00:17:47-974 {monitor_log_level :131} #Start monitor_log_level thread, arg:(nil)
vsys dev open 4
cmpi             00:17:47-974 {sys_runtime_librar:178} Failed to open /dev/mpi/venc,please check insmod success or fail
cmpi             00:17:47-974 {sys_runtime_librar:178} Failed to open /dev/mpi/avs,please check insmod success or fail
cmpi             00:17:47-974 {sys_runtime_librar:178} Failed to open /dev/mpi/venc,please check insmod success or fail
get a hdl = 0x485450
get a hdl = (nil)
[RKADK_E] {RKADK_MPI_VO_CreateLayDev:304} RK_MPI_VO_EnableLayer[-1] failed[ffffffff]
[RKADK_E] {RKADK_MPI_VO_Init        :1325} RKADK_MPI_Vo_CreateLayDev[-1, -1] failed[ffffffff]
[RKADK_E] {RKADK_UI_Create          :117} RKADK_MPI_Vo_Init failed, ret[ffffffff]
[RKADK_E] {RKADK_MPI_VO_DeInit      :1369} not find matched index[-1] s32ChnId[-1, 2]
[RKADK_E] {RKADK_UI_Create          :132} UI Create [layer: -1, dev: -1, chn: 2] failed!
error: RKADK_DISP_Init failed(-1)
error: rk_disp_setup failed
rk_disp_init is fail
Segmentation fault

启动日志

DDR 0ac6b06a19 typ 24/11/13-17:22:48,fwver: v1.04
tREFI:4x, sr_idle:93, pd_idle:13
PHY drv:clk:60,ca:160,DQ:80,odt:480
vrefinner:50%, vrefout:50%
dram drv:40,odt:0
sr_dq:0, sr_ca:0, sr_clk:0
rg:0x1f-0x0-0x2, 0x15-0x0-0x2,status:a007
rdtrn:0x10-0x2b-0x46(0x36)
wrtrn:0xb-0x2c-0x4d(0x42)
DDR3, 750MHz
BW=16 Col=10 Bk=8 CS0 Row=13 CS=1 Size=128MB
out
U-Boot SPL board init
U-Boot SPL 2017.09-241128-dirty #work (Jun 23 2025 - 18:55:58)
sfc cmd=03H(6BH-x4)
SPI Nand ID b 12 0
unrecognized JEDEC id bytes: ff, 0b, 12
Trying to boot from MTD1
Trying fit image at 0x2000 sector
## Verified-boot: 0
## Checking optee 0x00001000 ... sha256(690eb8a14d...) + OK
Trying kernel at 0x4000 sector from 'boot' part
## Checking fdt 0x00063000 ... sha256(9020d76452...) + OK
## Checking kernel 0x01100000 ... sha256(54259b813b...) + OK
Jumping to Kernel(0x01100000) via OP-TEE(0x00001000)
Total: 252.942/315.364 ms

I/TC:
I/TC: Status: cluster=0xc00, core=0xe100, bootcpu=0
I/TC: Next entry point address: 0x01100000
I/TC: OP-TEE version: 3.13.0-894-g0e7e5b3c7ff #chenjh (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #2 Tue Nov 12 09:21:23 CST 2024 arm, fwver: v1.25
I/TC: OP-TEE memory: TEEOS 0x5e000 TA 0x1000 SHM 0x1000
I/TC: Primary CPU initializing
E/TC:0 0 rk_otp_sbpi_read:353 otp_check_ecc fail! parity=0x20
E/TC:0 0 rk_otp_read:789 ---OTP---sbpi read otp failed! addr: 0x1ff
E/TC:0 0 call_initcalls:24 Initcall __text_start + 0x0001a280 failed
I/TC: Primary CPU switching to normal world boot
[    0.455140] Booting Linux on physical CPU 0xf00
[    0.455160] Linux version 6.1.99 (work_work6) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #1 SMP PREEMPT Mon Jun 23 16:32:25 CST 2025
[    0.455171] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
[    0.455181] CPU: div instructions available: patching division code
[    0.455187] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.455422] OF: fdt: Machine model: Rockchip RK3506 EVB1 V10 Board
[    0.457042] earlycon: uart8250 at MMIO32 0xff0a0000 (options '')
[    0.523737] printk: bootconsole [uart8250] enabled
[    0.528782] Memory policy: Data cache writealloc
[    0.533615] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo_0': base 0x00000000, size 0 MiB
[    0.544318] Reserved memory: created CMA memory pool at 0x07000000, size 16 MiB
[    0.551686] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.560325] Zone ranges:
[    0.562971]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.569373] Movable zone start for each node
[    0.573790] Early memory node ranges
[    0.577489]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.583982] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.598365] psci: probing for conduit method from DT.
[    0.603611] psci: PSCIv1.0 detected in firmware.
[    0.608396] psci: Using standard PSCI v0.2 function IDs
[    0.613805] psci: MIGRATE_INFO_TYPE not supported.
[    0.618771] psci: SMC Calling Convention v1.1
[    0.623402] percpu: Embedded 11 pages/cpu s16212 r8192 d20652 u45056
[    0.630096] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.637046] Kernel command line: earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0 ubi.mtd=2 root=ubi0:rootfs rw rootfstype=ubifs  rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1 mtdparts=spi-nand0:0x400000_0x400000(uboot),0xa00000_0x800000(boot),0xed60000_0x1200000(rootfs) user_debug=31
[    0.664534] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.672395] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.680020] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.689242] Memory: 106860K/131072K available (3256K kernel code, 329K rwdata, 1720K rodata, 168K init, 98K bss, 7828K reserved, 16384K cma-reserved)
[    0.702819] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=3, Nodes=1
[    0.709804] rcu: Preemptible hierarchical RCU implementation.
[    0.715758] rcu:     RCU event tracing is enabled.
[    0.720445] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=3.
[    0.727041] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[    0.734893] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=3
[    0.741870] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.748475] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.765819] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.772169] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.783352] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.791653] Switching to timer-based delay loop, resolution 41ns
[    0.798246] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    0.808921] CPU: Testing write buffer coherency: ok
[    0.814040] pid_max: default: 4096 minimum: 301
[    0.818858] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.826457] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.835216] /cpus/cpu_f00 missing clock-frequency property
[    0.840972] /cpus/cpu_f01 missing clock-frequency property
[    0.846680] /cpus/cpu_f02 missing clock-frequency property
[    0.852375] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.859120] Setting up static identity map for 0x108240 - 0x108294
[    0.865728] rcu: Hierarchical SRCU implementation.
[    0.870723] rcu:     Max phase no-delay instances is 1000.
[    0.876857] smp: Bringing up secondary CPUs ...
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
[    0.890062] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.898634] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.898752] smp: Brought up 1 node, 3 CPUs
[    0.914964] SMP: Total of 3 processors activated (144.00 BogoMIPS).
[    0.921473] CPU: All CPU(s) started in SVC mode.
[    0.926887] devtmpfs: initialized
[    0.937162] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.945326] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    0.955451] futex hash table entries: 16 (order: -2, 1024 bytes, linear)
[    0.962469] pinctrl core: initialized pinctrl subsystem
[    0.969048] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.975598] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.983374] Registered FIQ tty driver
[    0.987489] thermal_sys: Registered thermal governor 'step_wise'
[    0.987499] thermal_sys: Registered thermal governor 'user_space'
[    0.993804] cpuidle: using governor menu
[    1.005520] ramoops: boot-log-0      0xd000_0x00083000
[    1.010759] ramoops: console 0x20000_0x00090000
[    1.015777] printk: console [ramoops-1] enabled
[    1.020495] pstore: Registered ramoops as persistent store backend
[    1.026904] ramoops: using 0x2d000_0x83000, ecc: 0
[    1.041867] rockchip-gpio ff940000.gpio: probed /pinctrl/gpio_ff940000
[    1.049414] rockchip-gpio ff870000.gpio: probed /pinctrl/gpio_ff870000
[    1.056790] rockchip-gpio ff1c0000.gpio: probed /pinctrl/gpio_ff1c0000
[    1.064280] rockchip-gpio ff1d0000.gpio: probed /pinctrl/gpio_ff1d0000
[    1.071777] rockchip-gpio ff1e0000.gpio: probed /pinctrl/gpio_ff1e0000
[    1.078679] rockchip-pinctrl pinctrl: probed pinctrl
[    1.085638] platform ff288000.syscon:rgb: Fixed dependency cycle(s) with /vop_ff600000
[    1.093991] platform ff600000.vop: Fixed dependency cycle(s) with /syscon_ff288000/rgb
[    1.103607] platform ff288000.syscon:rgb: Fixed dependency cycle(s) with /panel
[    1.111351] platform panel: Fixed dependency cycle(s) with /syscon_ff288000/rgb
[    1.125939] fiq_debugger fiq_debugger.0: error -ENXIO: IRQ fiq not found
[    1.132947] fiq_debugger fiq_debugger.0: error -ENXIO: IRQ wakeup not found
[    1.140238] fiq_debugger_probe: could not install nmi irq handler
[[    1.146711] printk: console [ttyFIQ0] enabled
    1.146711] printk: console [ttyFIQ0] enabled
[    1.155595] printk: bootconsole [uart8250] disabled
[    1.155595] printk: bootconsole [uart8250] disabled
[    1.160789] Registered fiq debugger ttyFIQ0
[    1.163075] mc: Linux media interface: v0.10
[    1.163163] videodev: Linux video capture interface: v2.00
[    1.163207] pps_core: LinuxPPS API ver. 1 registered
[    1.163221] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti_linux.it>
[   E/TC:0   plat_shm_get_page_num:373 plat_shm_get_page_num: type 6 alloc is not supported
 1.163246] PTP clock support registered
[    1.164378] Advanced Linux Sound Architecture Driver Initialized.
[    1.165079] rockchip-cpuinfo cpuinfo: SoC            : 35060000
[    1.165111] rockchip-cpuinfo cpuinfo: Serial         : 0fc1125587180569
[    1.165810] clocksource: Switched to clocksource arch_sys_counter
[    1.167604] NET: Registered PF_INET protocol family
[    1.167810] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.168605] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.168651] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.168673] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.168697] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.168737] TCP: Hash tables configured (established 1024 bind 1024)
[    1.168838] UDP hash table entries: 128 (order: 0, 4096 bytes, linear)
[    1.168876] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes, linear)
[    1.169054] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.170336] Initialise system trusted keyrings
[    1.170692] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.173741] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.173878] Key type asymmetric registered
[    1.173900] Asymmetric key parser 'x509' registered
[    1.173999] io scheduler mq-deadline registered
[    1.174019] io scheduler kyber registered
[    1.174157] io scheduler bfq registered
[    1.176414] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.180343] dma-pl330 ff000000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.180377] dma-pl330 ff000000.dma-controller:       DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[    1.181847] dma-pl330 ff008000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.181879] dma-pl330 ff008000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    1.182099] rockchip-system-monitor rockchip-system-monitor: system monitor probe
[    1.183278] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.183932] ff0b0000.serial: ttyS1 at MMIO 0xff0b0000 (irq = 42, base_baud = 1500000) is a 16550A
[    1.184664] ff0c0000.serial: ttyS2 at MMIO 0xff0c0000 (irq = 43, base_baud = 1500000) is a 16550A
[    1.185395] ff0d0000.serial: ttyS3 at MMIO 0xff0d0000 (irq = 44, base_baud = 1500000) is a 16550A
[    1.186868] random: crng init done
[    1.190414] rockchip-drm display-subsystem: bound ff600000.vop (ops 0xb052a604)
[    1.190473] rockchip-rgb ff288000.syscon:rgb: [drm:rockchip_rgb_bind] *ERROR* failed to find panel or bridge: -517
[    1.206741] no ATF memory for init
[    1.207080] panel-simple panel: supply power not found, using dummy regulator
[    1.207306] panel-simple panel: Specify missing connector_type, please specify "connector-type" in dts
[    1.209392] spi-nand spi2.0: XTX SPI NAND was found.
[    1.209426] spi-nand spi2.0: 256 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.210639] 3 cmdlinepart partitions found on MTD device spi-nand0
[    1.210666] Creating 3 MTD partitions on "spi-nand0":
[    1.210680] 0x000000400000-0x000000800000 : "uboot"
[    1.212731] 0x000000800000-0x000001200000 : "boot"
[    1.214620] 0x000001200000-0x00000ff60000 : "rootfs"
[    1.217872] CAN device driver interface
[    1.218803] rk3576_canfd ff320000.can: Failed to request rxchan
[    1.219410] rk3576_canfd ff320000.can: CAN info: use_dma = 0, rx_max_data = 18, fifo_depth = 14
[    1.219559] PPP generic driver version 2.4.2
[    1.220188] i2c_dev: i2c /dev entries driver
[    1.221856] rtc-hym8563 2-0051: rtc information is valid
[    1.223640] rtc-hym8563 2-0051: registered as rtc0
[    1.223952] rtc-hym8563 2-0051: hctosys: unable to read the hardware clock
[    1.224517] Goodix-TS 2-005d: supply AVDD28 not found, using dummy regulator
[    1.224704] Goodix-TS 2-005d: supply VDDIO not found, using dummy regulator
[    1.316262] Goodix-TS 2-005d: ID , version: 0000
[    1.316404] Goodix-TS 2-005d: Direct firmware load for goodix__cfg.bin failed with error -2
[    1.317692] cpu cpu0: bin=0
[    1.317771] cpu cpu0: leakage=3
[    1.318912] cpu cpu0: avs=0
[    1.319176] cpu cpu0: l=10000 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=1
[    1.319794] Synopsys Designware Multimedia Card Interface Driver
[    1.320575] dwmmc_rockchip ff480000.mmc: No normal pinctrl state
[    1.320611] dwmmc_rockchip ff480000.mmc: No idle pinctrl state
[    1.320867] dwmmc_rockchip ff480000.mmc: IDMAC supports 32-bit address mode.
[    1.320921] dwmmc_rockchip ff480000.mmc: Using internal DMA controller.
[    1.320945] dwmmc_rockchip ff480000.mmc: Version ID is 270a
[    1.321040] dwmmc_rockchip ff480000.mmc: DW MMC controller at irq 50,32 bit host data width,256 deep fifo
[    1.321523] mmc_host mmc0: card is non-removable.
[    1.322411] Goodix-TS 2-005d: Invalid config (0, 0, 0), using defaults
[    1.322669] input: Goodix Capacitive TouchScreen as /devices/platform/ff060000.i2c/i2c-2/2-005d/input/input0
[    1.326847] NET: Registered PF_PACKET protocol family
[    1.326912] can: controller area network core
[    1.326981] NET: Registered PF_CAN protocol family
[    1.327000] can: raw protocol
[    1.327024] can: broadcast manager protocol
[    1.327045] can: netlink gateway - max_hops=1
[    1.327251] Registering SWP/SWPB emulation handler
[    1.327552] Loading compiled-in X.509 certificates
[    1.332048] rga2 ff610000.rga: probe successfully, irq = 52, hw_version:3.a.07135
[    1.332247] rga: IOMMU binding successfully, default mapping core[0x4]
[    1.332548] rga: Module initialized. v1.3.6
[    1.332548] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    1.350945] rockchip-drm display-subsystem: bound ff600000.vop (ops 0xb052a604)
[    1.351031] rockchip-drm display-subsystem: bound ff288000.syscon:rgb (ops 0xb052c1c0)
[    1.352056] [drm] Initialized rockchip 4.0.0 20140818 for display-subsystem on minor 0
[    1.352124] rockchip-drm display-subsystem: failed to parse loader memory
[    1.354330] rockchip-vop ff600000.vop: [drm:vop_crtc_atomic_enable] Update mode to 1024x600p58, type: 17
[    1.354637] rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device
[    1.355126] rockchip-drm display-subsystem: [drm] run display error_event monitor
[    1.355591] input: adc-keys as /devices/platform/adc-keys/input/input2
[    1.356513] ubi0: attaching mtd2
[    1.389514] mmc0: Problem switching card into high-speed mode!
[    1.389588] mmc_host mmc0: Bus speed (slot 0) = 25000000Hz (slot req 25000000Hz, actual 25000000HZ div = 0)
[    1.389709] mmc0: new SD card at address 21b3
[    1.390321] mmcblk0: mmc0:21b3 APPSD 1.88 GiB
[    1.392417]  mmcblk0:
[    1.920225] ubi0: scanning is finished
[    1.925692] ubi0: attached mtd2 (name "rootfs", size 237 MiB)
[    1.925735] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.925753] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.925769] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.925786] ubi0: good PEBs: 1892, bad PEBs: 7, corrupted PEBs: 0
[    1.925902] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.925920] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1925098528
[    1.925938] ubi0: available PEBs: 0, total reserved PEBs: 1892, PEBs reserved for bad PEB handling: 33
[    1.925973] ubi0: background thread "ubi_bgt0d" started, PID 74
[    1.926597] clk: Disabling unused clocks
[    1.927148] rockchip-pm rockchip-suspend: not set pwm-regulator-config
[    1.927340] rockchip-suspend not set sleep-mode-config for mem-lite
[    1.927361] rockchip-suspend not set wakeup-config for mem-lite
[    1.927379] rockchip-suspend not set sleep-mode-config for mem-ultra
[    1.927393] rockchip-suspend not set wakeup-config for mem-ultra
[    1.928034] ALSA device list:
[    1.928061]   No soundcards found.
[    1.928941] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    1.929217] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 75
[    1.940982] UBIFS (ubi0:0): recovery needed
[    1.999495] UBIFS (ubi0:0): recovery completed
[    1.999627] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    1.999656] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    1.999680] UBIFS (ubi0:0): FS size: 234143744 bytes (223 MiB, 1844 LEBs), max 8456 LEBs, journal size 9023488 bytes (8 MiB, 72 LEBs)
[    1.999708] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    1.999727] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID F351B111-2238-4C2E-B083-762F78E2F4AB, small LPT model
[    2.004414] VFS: Mounted root (ubifs filesystem) on device 0:14.
[    2.005997] devtmpfs: mounted
[    2.006223] Freeing unused kernel image (initmem) memory: 168K
[    2.006247] Kernel memory protection not selected by kernel config.
[    2.006279] Run /sbin/init as init process
drm encode type is LCD
rk_disp: 1024x600 (0mm X 0mm)
[RKADK_P] {RKADK_VERSION_Dump       :021} ---------------------------------------------------------
[RKADK_P] {RKADK_VERSION_Dump       :022} rkadk version: git-6cdc879 Fri Nov 22 11:39:55 2024 +0800
[RKADK_P] {RKADK_VERSION_Dump       :023} rkadk building: unknown rkadk build info
[RKADK_P] {RKADK_VERSION_Dump       :024} ---------------------------------------------------------
rockit_load start
v4l2_tx probe successv4l2_rx_probe success
[00001.819] vrgn_thread_fn(102): vrgn_thread_fn [102] dev(vrgn-15) register okrockit_load end
rockit log path (null), log_size = 0, can use export rt_log_path=, export rt_log_size= change
log_file = (nil)
(null)           00:00:01-830 {log_level_init    :190}

 please use echo name=level > /tmp/rt_log_level set log level
        name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
[    2.818617] rockchip-vop ff600000.vop: [drm:vop_crtc_atomic_enable] Update mode to 1024x600p58, type: 17
        log_level: 0 1 2 3 4 5 6

(null)           00:00:01-831 {log_level_init    :196} Failed to open /dev/mpi/vlog,please check insmod success or fail
rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
(null)           00:00:01-832 {read_log_level    :077} text is all=4
(null)           00:00:01-834 {read_log_level    :079} module is all, log_level is 4
(null)           00:00:01-834 {dump_version      :055} ---------------------------------------------------------
(null)           00:00:01-834 {dump_version      :056} rockit version: git-ef354cbc9 Mon Dec 2 16:29:53 2024 +0800
(null)           00:00:01-834 {dump_version      :057} rockit building: built-Chu 2024-12-03 21:05:52
(null)           00:00:01-834 {dump_version      :058} ---------------------------------------------------------
(null)           00:00:01-834 {monitor_log_level :131} #Start monitor_log_level thread, arg:(nil)
vsys dev open 4
cmpi             00:00:01-834 {sys_runtime_librar:178} Failed to open /dev/mpi/venc,please check insmod success or fail
cmpi             00:00:01-835 {sys_runtime_librar:178} Failed to open /dev/mpi/avs,please check insmod success or fail
cmpi             00:00:01-837 {sys_runtime_librar:178} Failed to open /dev/mpi/venc,please check insmod success or fail
get a hdl = 0x513450
get a hdl = 0x514318
rk_disp: ui created successfullyl.
mb               00:00:01-856 {mb_create_buffer  :484} allocated buffer(this=0xa693f8e8, data=0x9dfcb000, size=2457600, phy=(nil), id = 27)
rk_disp: ui bufs[0] application is successful.
mb               00:00:01-858 {mb_create_buffer  :484} allocated buffer(this=0xa693f948, data=0x9db1b000, size=2457600, phy=(nil), id = 28)
evdev_get_tp_event: /sys/class/input/input0/name = Goodix Capacitive TouchScreen
/dev/input/event0
EV_ABS ABS_MT_POSITION_X
        Min          0
        Max       4095
EV_ABS ABS_MT_POSITION_Y
        Min          0
        Max       4095
calibrate [0,4095]x[0,4095] to 1024x600
evdev_calibrate = 1
check_scr 1024x600
font_init s 20 m 30 l 92
load library(librga.so) in releative path
rga_api version 1.10.1_[0]
Start mounting all internal partitions in /etc/fstab
Log saved to /var/log/mount-all.log
Note: Create /.skip_fsck to skip fsck
 - The check might take a while if didn't shutdown properly!
realpath: '': No such file or directory
Seeding 256 bits and crediting
Saving 256 bits of creditable seed for next boot
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
[    4.674645] Bluetooth: Core ver 2.22
[    4.674784] NET: Registered PF_BLUETOOTH protocol family
[    4.674810] Bluetooth: HCI device and connection manager initialized
[    4.674837] Bluetooth: HCI socket layer initialized
[    4.674857] Bluetooth: L2CAP socket layer initialized
[    4.674891] Bluetooth: SCO socket layer initialized
[    4.732268] [BT_RFKILL]: Enter rfkill_rk_init
[    4.732359] [WLAN_RFKILL]: Enter rfkill_wlan_init
[    4.733145] [BT_RFKILL]: bluetooth_platdata_parse_dt: uart_rts_gpios is no-in-use.
[    4.733205] [BT_RFKILL]: bluetooth_platdata_parse_dt: clk_get failed!!!.
[    4.733462] [BT_RFKILL]: bt_default device registered.
[    4.733646] input: bt-powerkey as /devices/platform/wireless-bluetooth/input/input3
[    4.788322] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.807853] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.809740] cfg80211: Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[    4.811864] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.811913] cfg80211: failed to load regulatory.db
[    5.428323] rk_gmac-dwmac ff4c8000.ethernet: IRQ eth_lpi not found
[    5.428642] rk_gmac-dwmac ff4c8000.ethernet: supply phy not found, using dummy regulator
[    5.428995] rk_gmac-dwmac ff4c8000.ethernet: clock input or output? (input).
[    5.429027] rk_gmac-dwmac ff4c8000.ethernet: Can not read property: tx_delay.
[    5.429041] rk_gmac-dwmac ff4c8000.ethernet: set tx_delay to 0xffffffff
[    5.429056] rk_gmac-dwmac ff4c8000.ethernet: Can not read property: rx_delay.
[    5.429069] rk_gmac-dwmac ff4c8000.ethernet: set rx_delay to 0xffffffff
[    5.429091] rk_gmac-dwmac ff4c8000.ethernet: integrated PHY? (no).
[    5.429113] rk_gmac-dwmac ff4c8000.ethernet: cannot get clock mac_clk_rx
[    5.429220] rk_gmac-dwmac ff4c8000.ethernet: cannot get clock mac_clk_tx
[    5.429278] rk_gmac-dwmac ff4c8000.ethernet: cannot get clock clk_mac_ref
[    5.429317] rk_gmac-dwmac ff4c8000.ethernet: cannot get clock clk_mac_speed
[    5.429336] rk_gmac-dwmac ff4c8000.ethernet: clock input from PHY
[    5.429600] rk_gmac-dwmac ff4c8000.ethernet: init for RMII
[    5.429925] rk_gmac-dwmac ff4c8000.ethernet: User ID: 0x40, Synopsys ID: 0x51
[    5.429969] rk_gmac-dwmac ff4c8000.ethernet:         DWMAC4/5
[    5.429987] rk_gmac-dwmac ff4c8000.ethernet: DMA HW capability register supported
[    5.430001] rk_gmac-dwmac ff4c8000.ethernet: RX Checksum Offload Engine supported
[    5.430014] rk_gmac-dwmac ff4c8000.ethernet: TX Checksum insertion supported
[    5.430027] rk_gmac-dwmac ff4c8000.ethernet: Wake-Up On Lan supported
[    5.430266] rk_gmac-dwmac ff4c8000.ethernet: TSO supported
[    5.430300] rk_gmac-dwmac ff4c8000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    5.430319] rk_gmac-dwmac ff4c8000.ethernet: rk_get_eth_addr: rk_vendor_read eth mac address failed (-1)
[    5.430340] rk_gmac-dwmac ff4c8000.ethernet: rk_get_eth_addr: generate random eth mac address: 22:cb:d7:f9:da:7b
[    5.430356] rk_gmac-dwmac ff4c8000.ethernet: rk_get_eth_addr: rk_vendor_write eth mac address failed (-1)
[    5.430372] rk_gmac-dwmac ff4c8000.ethernet: rk_get_eth_addr: id: 0 rk_vendor_read eth mac address failed (-1)
[    5.430388] rk_gmac-dwmac ff4c8000.ethernet: rk_get_eth_addr: mac address: 22:cb:d7:f9:da:7b
[    5.430405] rk_gmac-dwmac ff4c8000.ethernet: device MAC address 22:cb:d7:f9:da:7b
[    5.430424] rk_gmac-dwmac ff4c8000.ethernet: Enabled RFS Flow TC (entries=10)
[    5.430441] rk_gmac-dwmac ff4c8000.ethernet: TSO feature enabled
[    5.430456] rk_gmac-dwmac ff4c8000.ethernet: Using 40/40 bits DMA host/device width
[    5.690781] rockchip-usb2phy ff2b0000.usb2-phy: error -ENXIO: IRQ index 0 not found
[    5.747520] usbcore: registered new interface driver usbfs
[    5.747745] usbcore: registered new interface driver hub
[    5.747894] usbcore: registered new device driver usb
[    5.792734] dwc2 ff740000.usb: supply vusb_d not found, using dummy regulator
[    5.792967] dwc2 ff740000.usb: supply vusb_a not found, using dummy regulator
[    5.796741] dwc2 ff740000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    5.797769] dwc2 ff780000.usb: supply vusb_d not found, using dummy regulator
[    5.798130] dwc2 ff780000.usb: supply vusb_a not found, using dummy regulator
[    5.813221] dwc2 ff780000.usb: DWC OTG Controller
[    5.813355] dwc2 ff780000.usb: new USB bus registered, assigned bus number 1
[    5.813436] dwc2 ff780000.usb: irq 60, io mem 0xff780000
[    5.814969] hub 1-0:1.0: USB hub found
[    5.815075] hub 1-0:1.0: 1 port detected
[    5.862824] SCSI subsystem initialized
[    5.873066] usbcore: registered new interface driver usb-storage
[    6.102548] usb 1-1: new high-speed USB device number 2 using dwc2
[    6.128670] usbcore: registered new interface driver bfusb
[    6.188254] usbcore: registered new interface driver btusb
[    6.217665] Bluetooth: HCI UART driver ver 2.3
[    6.217738] Bluetooth: HCI UART protocol H4 registered
Populating /dev using udev: [    6.268733] udevd[294]: starting version 3.2.14
[    6.300505] hub 1-1:1.0: USB hub found
[    6.300668] hub 1-1:1.0: 4 ports detected
[    6.342604] udevd[295]: starting eudev-3.2.14
[    6.585921] usb 1-1.1: new high-speed USB device number 3 using dwc2
[    6.748457] mtdblock: MTD device 'uboot' is NAND, please consider using UBI block devices instead.
[    6.757045] mtdblock: MTD device 'boot' is NAND, please consider using UBI block devices instead.
[    6.764561] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[    6.872522] usb 1-1.1: device descriptor read/64, error -71
[    7.251394] FAT-fs (mmcblk0): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
done
Starting irqbalance: OK
Starting system message bus: done
Starting bluetoothd: OK
Starting network: [    8.231962] Bluetooth: MGMT ver 1.22
OK
Starting dhcpcd...
dhcpcd-10.0.8 starting
dev: loaded udev
DUID 00:01:00:01:c7:92:bc:96:4c:a3:8f:84:59:3d
[    9.016236] rk3576_canfd ff320000.can can0: bit-timing not yet defined
no interfaces have a carrier
[    9.017555] rk_gmac-dwmac ff4c8000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[    9.020620] rk_gmac-dwmac ff4c8000.ethernet eth0: PHY [stmmac-0:01] driver [YT8512B Ethernet] (irq=POLL)
[    9.021262] dwmac4: Master AXI performs any burst length
[    9.021326] rk_gmac-dwmac ff4c8000.ethernet eth0: No Safety Features support found
[    9.021359] rk_gmac-dwmac ff4c8000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[    9.021808] rk_gmac-dwmac ff4c8000.ethernet eth0: registered PTP clock
[    9.023409] rk_gmac-dwmac ff4c8000.ethernet eth0: configuring for phy/rmii link mode
Starting sshd: OK
starting usbdevice service, log saved to /var/log/usbdevice.log
sh: /oem/RkLunch.sh: No such file or directory
fstrim: Starting fstrim process (599)...
Starting input-event-daemon: done
sh: /oem/usr/user_init.sh: No such file or directory
Running as root
root_rk3506-buildroot:/# [   10.399193] Bluetooth: hci0: command 0x2036 tx timeout
[   10.399205] Bluetooth: hci0: Opcode 0x2036 failed: -110

Handling start for Wi-Fi/BT chip:
Aic     AIC8800 usb     a69c:88dc       aic8800_fdrv.ko # AIC8800DC
Starting Wi-Fi/BT...
Installing aic_load_fw.ko ...
[   11.016050] aic_load_fw: loading out-of-tree module taints kernel.
[   11.018153] aic_bluetooth_mod_init
[   11.018197] RELEASE DATE:2024_1024_9a3636f0
[   11.018216] AICWFDBG(LOGINFO)        aicwf_prealloc_init enter
[   11.039977] AICWFDBG(LOGINFO)        pre alloc rxbuff list len: 1000
[   11.040283] usbcore: registered new interface driver aic_load_fw
Wi-Fi/BT module: aic8800_fdrv.ko
Installing aic8800_fdrv.ko ...
[   11.140309] AICWFDBG(LOGINFO)        rwnx v6.4.3.0 - 1a4b0054d2M (master)
[   11.140364] AICWFDBG(LOGINFO)        RELEASE DATE:2024_1024_9a3636f0
[   11.140600] AICWFDBG(LOGINFO)        aicwf_usb_chipmatch USE AIC8800DC
[   11.140635] AICWFDBG(LOGINFO)        aicwf_parse_usb endpoints = 4
[   11.140651] AICWFDBG(LOGINFO)        Aic high speed USB device detected
[   11.140664] AICWFDBG(LOGINFO)        aicwf_usb_alloc_rx_urb AICWF_USB_RX_URBS:20
[   11.140688] AICWFDBG(LOGINFO)        aicwf_usb_alloc_tx_urb AICWF_USB_TX_URBS:200
[   11.140842] AICWFDBG(LOGINFO)        aicwf_usb_alloc_msg_rx_urb AICWF_USB_MSG_RX_URBS:100
[   11.141184] AICWFDBG(LOGINFO)        usb_busrx_thread the cpu is:1
[   11.141272] AICWFDBG(LOGINFO)        aicwf_bus_init waiting for rx/tx thread init finish
[   11.141300] AICWFDBG(LOGINFO)        usb_busrx_thread set_cpu_ret is:0
[   11.141306] AICWFDBG(LOGINFO)        usb_bustx_thread the cpu is:2
[   11.141326] AICWFDBG(LOGINFO)        usb_busrx_thread change cpu to:1
[   11.141351] AICWFDBG(LOGINFO)        usb_busrx_thread the policy of current thread is:1
[   11.141368] AICWFDBG(LOGINFO)        usb_busrx_thread the rt_priority of current thread is:1
[   11.141398] AICWFDBG(LOGINFO)        usb_busrx_thread the current pid is:798
[   11.141434] AICWFDBG(LOGINFO)        usb_bustx_thread set_cpu_ret is:0
[   11.141454] AICWFDBG(LOGINFO)        usb_bustx_thread change cpu to:1
[   11.141477] AICWFDBG(LOGINFO)        usb_bustx_thread the policy of current thread is:1
[   11.141493] AICWFDBG(LOGINFO)        usb_bustx_thread the rt_priority of current thread is:1
[   11.141506] AICWFDBG(LOGINFO)        usb_bustx_thread the current pid is:799
[   11.246062] AICWFDBG(LOGINFO)        usb_msg_busrx_thread the policy of current thread is:1
[   11.246162] AICWFDBG(LOGINFO)        usb_msg_busrx_thread the rt_priority of current thread is:1
[   11.246185] AICWFDBG(LOGINFO)        usb_msg_busrx_thread the current pid is:808
[   11.246744] AICWFDBG(LOGINFO)        rwnx_platform_init rwnx_cfg80211_init enter
[   11.246789] AICWFDBG(LOGINFO)        rwnx_cfg80211_init sizeof(struct rwnx_hw):14216
[   11.247194] AICWFDBG(LOGINFO)        rwnx_cfg80211_init: FILTER_TCP_ACK
[   11.247231] ========== tcp ack debug tcp_ack_init
[   11.247248] AICWFDBG(LOGINFO)        aicwf_prealloc_txq_alloc size is diff will to be kzalloc
[   11.247285] AICWFDBG(LOGINFO)        aicwf_prealloc_txq_alloc txq kzalloc successful
[   11.247879] AICWFDBG(LOGINFO)        usb config read 11d
[   11.248257] AICWFDBG(LOGINFO)        chip_id=c7, chip_sub_id=2
[   11.248468] AICWFDBG(LOGINFO)        set_bbpll_config Crystal not provided by CPU
[   11.248715] [0x40500010]=6
[   11.254648] AICWFDBG(LOGINFO)        testmode=0
[   11.254693] AICWFDBG(LOGINFO)        ### Upload fmacfw_patch_8800dc_h_u02.bin firmware, _ = 180000
[   11.254713] AICWFDBG(LOGINFO)        ### Load file fmacfw_patch_8800dc_h_u02.bin
[   11.254729] AICWFDBG(LOGINFO)        rwnx_load_firmware :firmware path = /vendor/etc/firmware/fmacfw_patch_8800dc_h_u02.bin
[   11.264249] AICWFDBG(LOGINFO)        file md5:ccbfecba23e5820c49a31209a397bf8c
[   11.264372] AICWFDBG(LOGINFO)        size=26116, dst[0]=47564150
[   11.279223] AICWFDBG(LOGINFO)        wifisetting_cfg_addr=11019c, ldpc_cfg_addr=120980, agc_cfg_addr=120180, txgain_cfg_addr=120000
[   11.281636] AICWFDBG(LOGINFO)        ### Upload fmacfw_patch_tbl_8800dc_h_u02.bin
[   11.281677] AICWFDBG(LOGINFO)        ### Load file fmacfw_patch_tbl_8800dc_h_u02.bin
[   11.281692] AICWFDBG(LOGINFO)        rwnx_load_firmware :firmware path = /vendor/etc/firmware/fmacfw_patch_tbl_8800dc_h_u02.bin
[   11.283830] AICWFDBG(LOGINFO)        file md5:091e89204f53e834530463a0e86107a9
[   11.283969] AICWFDBG(LOGINFO)        tbl size = 744
[   11.283987] AICWFDBG(LOGINFO)        FMACFW_PATCH_TBL_8800DC_U02_DESCRIBE_BASE = 187c00
[   11.284385] AICWFDBG(LOGINFO)        di Oct 24 2024 11:07:11 - ge76abec
[   11.284403] AICWFDBG(LOGERROR)       patch_tbl:  110890  180d39
[   11.284723] AICWFDBG(LOGERROR)       patch_tbl:  1108f4  183029
[   11.284954] AICWFDBG(LOGERROR)       patch_tbl:  11087c  180d99
[   11.285232] AICWFDBG(LOGERROR)       patch_tbl:  1107e4  181629
[   11.285446] AICWFDBG(LOGERROR)       patch_tbl:  110578  184201
[   11.285707] AICWFDBG(LOGERROR)       patch_tbl:  110840  1818a9
[   11.286011] AICWFDBG(LOGERROR)       patch_tbl:  1104fc  181a3d
[   11.286361] AICWFDBG(LOGERROR)       patch_tbl:  1106e4  185b05
[   11.286769] AICWFDBG(LOGERROR)       patch_tbl:  11063c  18557d
[   11.286975] AICWFDBG(LOGERROR)       patch_tbl:  110640  185725
[   11.287230] AICWFDBG(LOGERROR)       patch_tbl:  1105f8  1858f1
[   11.287470] AICWFDBG(LOGERROR)       patch_tbl:  110860  183b65
[   11.287873] AICWFDBG(LOGERROR)       patch_tbl:  110494  181a71
[   11.288098] AICWFDBG(LOGERROR)       patch_tbl:  110740  181ac1
[   11.288510] AICWFDBG(LOGERROR)       patch_tbl:  1107c0  181b51
[   11.288715] AICWFDBG(LOGERROR)       patch_tbl:  110528  185d95
[   11.288976] AICWFDBG(LOGERROR)       patch_tbl:  110530  185af1
[   11.289282] AICWFDBG(LOGERROR)       patch_tbl:  11055c  181b9d
[   11.289631] AICWFDBG(LOGERROR)       patch_tbl:  1107a0  182091
[   11.290015] AICWFDBG(LOGERROR)       patch_tbl:  110654  183bc1
[   11.290224] AICWFDBG(LOGERROR)       patch_tbl:  110818  18364d
[   11.290487] AICWFDBG(LOGERROR)       patch_tbl:  110824  183695
[   11.290775] AICWFDBG(LOGERROR)       patch_tbl:  1108cc  18248d
[   11.290991] AICWFDBG(LOGERROR)       patch_tbl:  1108d0  182095
[   11.291215] AICWFDBG(LOGERROR)       patch_tbl:  110630  182609
[   11.291508] AICWFDBG(LOGERROR)       patch_tbl:  110758  184265
[   11.291797] AICWFDBG(LOGERROR)       patch_tbl:  1106e0  1842a9
[   11.292154] AICWFDBG(LOGERROR)       patch_tbl:  110864  18455d
[   11.292575] AICWFDBG(LOGERROR)       patch_tbl:  110520  18459d
[   11.292900] AICWFDBG(LOGERROR)       patch_tbl:  1106d0  1846e5
[   11.293497] AICWFDBG(LOGERROR)       patch_tbl:  1108fc  184739
[   11.294036] AICWFDBG(LOGERROR)       patch_tbl:  110574  1846b1
[   11.294393] AICWFDBG(LOGERROR)       patch_tbl:  1106bc  184845
[   11.294589] AICWFDBG(LOGERROR)       patch_tbl:  110558  184a1d
[   11.294889] AICWFDBG(LOGERROR)       patch_tbl:  110590  181bcd
[   11.295211] AICWFDBG(LOGERROR)       patch_tbl:  1104f4  18279d
[   11.295463] AICWFDBG(LOGERROR)       patch_tbl:  110500  182049
[   11.295743] AICWFDBG(LOGERROR)       patch_tbl:  1106dc  184bcd
[   11.296211] AICWFDBG(LOGERROR)       patch_tbl:  110518  184c15
[   11.296552] AICWFDBG(LOGERROR)       patch_tbl:  110568  184cb1
[   11.297139] AICWFDBG(LOGERROR)       patch_tbl:  110648  184cdd
[   11.297932] AICWFDBG(LOGERROR)       patch_tbl:  110660  184ee1
[   11.298524] AICWFDBG(LOGERROR)       patch_tbl:  110688  18517d
[   11.299074] AICWFDBG(LOGERROR)       patch_tbl:  11049c  18280d
[   11.299730] AICWFDBG(LOGERROR)       patch_tbl:  11073c  182821
[   11.300143] AICWFDBG(LOGERROR)       patch_tbl:  11041c  185b65
[   11.300340] AICWFDBG(LOGERROR)       patch_tbl:  1103f0  185d05
[   11.300597] AICWFDBG(LOGERROR)       patch_tbl:  110464  185f01
[   11.300903] AICWFDBG(LOGERROR)       patch_tbl:  110440  185f69
[   11.301077] AICWFDBG(LOGERROR)       patch_tbl:  1100c4  184845
[   11.301374] AICWFDBG(LOGERROR)       patch_tbl:  110054  184ee1
[   11.301604] AICWFDBG(LOGERROR)       patch_tbl:  110f34  18380d
[   11.301985] AICWFDBG(LOGERROR)       patch_tbl:  110f04  183f65
[   11.302212] AICWFDBG(LOGERROR)       patch_tbl:  110de4  183f85
[   11.302504] AICWFDBG(LOGERROR)       patch_tbl:  110e04  184165
[   11.302925] AICWFDBG(LOGERROR)       patch_tbl:  110e6c  1840f9
[   11.303382] AICWFDBG(LOGERROR)       patch_tbl:  110ab0  1841c9
[   11.303602] AICWFDBG(LOGERROR)       patch_tbl:  110dcc  184089
[   11.303833] AICWFDBG(LOGERROR)       patch_tbl:  1100e0  1840a5
[   11.304111] AICWFDBG(LOGERROR)       patch_tbl:  110dd4  184339
[   11.304335] AICWFDBG(LOGERROR)       patch_tbl:  110e5c  183ed5
[   11.304596] AICWFDBG(LOGERROR)       patch_tbl:  110b00  1832fd
[   11.304988] AICWFDBG(LOGERROR)       patch_tbl:  110ae8  181fb1
[   11.305260] AICWFDBG(LOGERROR)       patch_tbl:  110aa0  184605
[   11.305594] AICWFDBG(LOGERROR)       patch_tbl:  110e64  184679
[   11.305913] AICWFDBG(LOGERROR)       patch_tbl:  110f80  184b69
[   11.306236] AICWFDBG(LOGERROR)       patch_tbl:  11148c  184ab1
[   11.306517] AICWFDBG(LOGERROR)       patch_tbl:  110b84  184cdd
[   11.306721] AICWFDBG(LOGERROR)       patch_tbl:  110d6c  185545
[   11.306983] AICWFDBG(LOGERROR)       patch_tbl:  110d14  182079
[   11.307223] AICWFDBG(LOGERROR)       patch_tbl:  40030084  187c80
[   11.307463] AICWFDBG(LOGERROR)       patch_tbl:  40030000  2a6b8
[   11.307758] AICWFDBG(LOGERROR)       patch_tbl:  40030004  4d9d0
[   11.307967] AICWFDBG(LOGERROR)       patch_tbl:  187c80  47706008
[   11.308220] AICWFDBG(LOGERROR)       patch_tbl:  187c84  d0332b00
[   11.308509] AICWFDBG(LOGERROR)       patch_tbl:  40030080  3
[   11.308743] AICWFDBG(LOGERROR)       patch_tbl:  4010001c  0
[   11.309845] AICWFDBG(LOGINFO)        rd ext_flags: 0x0
[   11.309896] AICWFDBG(LOGINFO)        dpd calib & write
[   11.310294] AICWFDBG(LOGERROR)       misc_ram_addr=120ebc
[   11.311351] AICWFDBG(LOGINFO)        ### Upload fmacfw_calib_8800dc_h_u02.bin firmware, _ = 130000
[   11.311445] AICWFDBG(LOGINFO)        ### Load file fmacfw_calib_8800dc_h_u02.bin
[   11.311463] AICWFDBG(LOGINFO)        rwnx_load_firmware :firmware path = /vendor/etc/firmware/fmacfw_calib_8800dc_h_u02.bin
[   11.319347] AICWFDBG(LOGINFO)        file md5:0cc56598f0b98b69ea8e0dfc0143398d
[   11.319405] AICWFDBG(LOGINFO)        size=32684, dst[0]=130000
[   11.337809] AICWFDBG(LOGINFO)        Start app: 00130009, 4
[   11.610973] AICWFDBG(LOGINFO)        userconfig file path:aic_userconfig_8800dc.txt
[   11.611015] AICWFDBG(LOGINFO)        ### Load file aic_userconfig_8800dc.txt
[   11.611032] AICWFDBG(LOGINFO)        rwnx_load_firmware :firmware path = /vendor/etc/firmware/aic_userconfig_8800dc.txt
[   11.612341] AICWFDBG(LOGINFO)        file md5:b220499c52c07a31d070467b87eb39f5
[   11.612446] AICWFDBG(LOGINFO)        ### Load file done: aic_userconfig_8800dc.txt, size=1097
[   11.613087] AICWFDBG(LOGINFO)        rwnx_plat_userconfig_parsing: AIC USERCONFIG 2022/0803/1707
[   11.613109] AICWFDBG(LOGINFO)        rwnx_plat_userconfig_parsing: txpwr_lvl
[   11.613122] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=enable value=1
[   11.613138] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_1m_2g4 value=20
[   11.613155] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_2m_2g4 value=20
[   11.613171] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_5m5_2g4 value=20
[   11.613187] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_11m_2g4 value=20
[   11.613202] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_6m_2g4 value=20
[   11.613216] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_9m_2g4 value=20
[   11.613230] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_12m_2g4 value=20
[   11.613245] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_18m_2g4 value=20
[   11.613261] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_24m_2g4 value=18
[   11.613282] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_36m_2g4 value=18
[   11.613316] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_48m_2g4 value=16
[   11.613332] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11b_11ag_54m_2g4 value=16
[   11.613347] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs0_2g4 value=20
[   11.613361] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs1_2g4 value=20
[   11.613375] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs2_2g4 value=20
[   11.613399] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs3_2g4 value=20
[   11.613423] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs4_2g4 value=18
[   11.613506] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs5_2g4 value=18
[   11.613525] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs6_2g4 value=16
[   11.613541] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs7_2g4 value=16
[   11.613556] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs8_2g4 value=16
[   11.613573] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11n_11ac_mcs9_2g4 value=16
Successfully init Wi-Fi for AIC8800!
[   11.613588] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs0_2g4 value=20
[   11.613603] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs1_2g4 value=20
[   11.613618] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs2_2g4 value=20
[   11.613633] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs3_2g4 value=20
[   11.613648] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs4_2g4 value=18
[   11.613664] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs5_2g4 value=18
[   11.613678] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs6_2g4 value=16
[   11.613695] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs7_2g4 value=16
[   11.613711] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs8_2g4 value=16
[   11.613727] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs9_2g4 value=16
[   11.613743] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs10_2g4 value=15
[   11.613758] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=lvl_11ax_mcs11_2g4 value=15
[   11.613774] AICWFDBG(LOGINFO)        rwnx_plat_userconfig_parsing: txpwr_loss
[   11.613787] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=loss_enable value=0
[   11.613806] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=loss_value value=2
[   11.613867] AICWFDBG(LOGINFO)        rwnx_plat_userconfig_parsing: txpwr_ofst
[   11.613897] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=ofst_enable value=0
[   11.613918] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=ofst_chan_1_4 value=0
BT is already inited...
[   11.613937] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=ofst_chan_5_9 value=0
Done
[   11.613954] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=ofst_chan_10_13 value=0
[   11.613972] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=ofst_chan_36_64 value=0
[   11.613988] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=ofst_chan_100_120 value=0
[   11.614007] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=ofst_chan_122_140 value=0
[   11.614025] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=ofst_chan_142_165 value=0
[   11.614043] AICWFDBG(LOGINFO)        rwnx_plat_userconfig_parsing: xtal cap
[   11.614056] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=xtal_enable value=0
[   11.614075] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=xtal_cap value=24
[   11.614094] AICWFDBG(LOGINFO)        rwnx_plat_nvram_set_value:command=xtal_cap_fine value=31
[   11.614129] AICWFDBG(LOGINFO)        userconfig download complete
[   11.614129]
[   11.614149] AICWFDBG(LOGINFO)        Read FW mem: 00150000
[   11.617841] AICWFDBG(LOGINFO)        cfm: [00150000] = 0eb01220
[   11.617965] AICWFDBG(LOGINFO)        Start app: 00150000, 5
[   11.626550] AICWFDBG(LOGINFO)        is 5g support = 0, vendor_info = 0x00
[   11.626848] AICWFDBG(LOGINFO)        Firmware Version: zh Aug 08 2023 20:31:22 - g41bc49e
[   11.626883] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:enable:1
[   11.626898] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_1m_2g4:20
[   11.626911] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_2m_2g4:20
[   11.626982] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_5m5_2g4:20
[   11.627005] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_11m_2g4:20
[   11.627019] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_6m_2g4:20
[   11.627033] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_9m_2g4:20
[   11.627047] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_12m_2g4:20
[   11.627060] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_18m_2g4:20
[   11.627116] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_24m_2g4:18
[   11.627142] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_36m_2g4:18
[   11.627155] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_48m_2g4:16
[   11.627169] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11b_11ag_54m_2g4:16
[   11.627181] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs0_2g4:20
[   11.627194] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs1_2g4:20
[   11.627207] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs2_2g4:20
[   11.627219] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs3_2g4:20
[   11.627232] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs4_2g4:18
[   11.627245] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs5_2g4:18
Successfully initialized wpa_supplicant
[   11.627260] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs6_2g4:16
[   11.627274] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs7_2g4:16
[   11.627287] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs8_2g4:16
[   11.627299] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11n_11ac_mcs9_2g4:16
[   11.627312] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs0_2g4:20
[   11.627325] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs1_2g4:20
[   11.627337] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs2_2g4:20
[   11.627351] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs3_2g4:20
[   11.627364] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs4_2g4:18
[   11.627377] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs5_2g4:18
[   11.627389] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs6_2g4:16
[   11.627403] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs7_2g4:16
[   11.627416] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs8_2g4:16
[   11.627429] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs9_2g4:16
[   11.627442] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs10_2g4:15
[   11.627454] AICWFDBG(LOGINFO)        get_userconfig_txpwr_lvl_v2_in_fdrv:lvl_11ax_mcs11_2g4:15
[   11.627468] AICWFDBG(LOGINFO)        get_userconfig_txpwr_loss:loss_enable:0
[   11.627482] AICWFDBG(LOGINFO)        get_userconfig_txpwr_loss:loss_value:2
[   11.627495] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:enable:1
[   11.627508] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_1m_2g4:20
[   11.627521] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_2m_2g4:20
[   11.627534] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_5m5_2g4:20
[   11.627547] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_11m_2g4:20
[   11.627559] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_6m_2g4:20
[   11.627572] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_9m_2g4:20
[   11.627585] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_12m_2g4:20
[   11.627598] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_18m_2g4:20
[   11.627610] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_24m_2g4:18
[   11.627623] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_36m_2g4:18
[   11.627636] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_48m_2g4:16
[   11.627648] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11b_11ag_54m_2g4:16
[   11.627661] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs0_2g4:20
[   11.627674] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs1_2g4:20
[   11.627687] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs2_2g4:20
[   11.627700] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs3_2g4:20
[   11.627713] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs4_2g4:18
[   11.627726] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs5_2g4:18
[   11.627738] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs6_2g4:16
[   11.627751] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs7_2g4:16
[   11.627764] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs8_2g4:16
[   11.627778] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11n_11ac_mcs9_2g4:16
[   11.627790] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs0_2g4:20
[   11.627803] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs1_2g4:20
[   11.627816] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs2_2g4:20
[   11.627829] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs3_2g4:20
[   11.627842] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs4_2g4:18
[   11.627854] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs5_2g4:18
[   11.627867] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs6_2g4:16
[   11.627879] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs7_2g4:16
[   11.627892] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs8_2g4:16
[   11.627906] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs9_2g4:16
[   11.627919] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs10_2g4:15
[   11.627932] AICWFDBG(LOGINFO)        rwnx_send_txpwr_lvl_req:lvl_11ax_mcs11_2g4:15
[   11.628236] AICWFDBG(LOGINFO)        get_userconfig_txpwr_ofst_in_fdrv:enable      :0
[   11.628274] AICWFDBG(LOGINFO)        get_userconfig_txpwr_ofst_in_fdrv:chan_1_4    :0
[   11.628289] AICWFDBG(LOGINFO)        get_userconfig_txpwr_ofst_in_fdrv:chan_5_9    :0
[   11.628302] AICWFDBG(LOGINFO)        get_userconfig_txpwr_ofst_in_fdrv:chan_10_13  :0
[   11.628315] AICWFDBG(LOGINFO)        get_userconfig_txpwr_ofst_in_fdrv:chan_36_64  :0
[   11.628328] AICWFDBG(LOGINFO)        get_userconfig_txpwr_ofst_in_fdrv:chan_100_120:0
[   11.628341] AICWFDBG(LOGINFO)        get_userconfig_txpwr_ofst_in_fdrv:chan_122_140:0
[   11.628353] AICWFDBG(LOGINFO)        get_userconfig_txpwr_ofst_in_fdrv:chan_142_165:0
[   11.628366] AICWFDBG(LOGINFO)        rwnx_send_txpwr_ofst_req:Do not use txpwr_ofst
[   11.629996] AICWFDBG(LOGINFO)        get_userconfig_xtal_cap:enable       :0
[   11.630152] AICWFDBG(LOGINFO)        get_userconfig_xtal_cap:xtal_cap     :24
[   11.630290] AICWFDBG(LOGINFO)        get_userconfig_xtal_cap:xtal_cap_fine:31
[   11.834237] AICWFDBG(LOGINFO)        get macaddr:4c,3d
[   11.835947] AICWFDBG(LOGINFO)        HT supp 1, VHT supp 1, HE supp 1
[   11.837757] rwnx_reg_notifier Enter
[   11.838921] AICWFDBG(LOGINFO)        getRegdomainFromRwnxDB set ccode:00
[   11.839069] AICWFDBG(LOGINFO)        rwnx_get_countrycode_channels support channel:1 2 3 4 5 6 7 8 9 10 11 12 13 14
[   11.839279] ieee80211 phy0:
[   11.839279] *******************************************************
nl80211: kernel reports: Registration to specific type not supported
[   11.839279] ** CAUTION: USING PERMISSIVE CUSTOM REGULATORY RULES **
[   11.839279] *******************************************************
[   11.841785] AICWFDBG(LOGINFO)        rwnx_interface_add: wlan%d, 2, 10
[   11.842320] AICWFDBG(LOGINFO)        interface add:4c a3 8f 84 59 3d
[   11.842627] AICWFDBG(LOGINFO)        aicwf_set_wireless_ext Enter
[   11.902518] file system registered
[   11.923051] AICWFDBG(LOGINFO)        New interface create wlan0
[   11.923274] AICWFDBG(LOGINFO)        rwnx_platform_init rwnx_cfg80211_init exit
[   11.923996] usbcore: registered new interface driver aic8800_fdrv
[   12.760779] read descriptors
[   12.760828] read strings
[   12.905900] dwc2 ff740000.usb: bound driver configfs-gadget.rockchip
[   13.038399] AICWFDBG(LOGINFO)        rwnx_virtual_interface_add: 10, p2p-dev-wlan0
[   13.038446] AICWFDBG(LOGINFO)        rwnx_virtual_interface_add, ifname=p2p-dev-wlan0, wdev=9104096f, vif_idx=1
[   13.038504] AICWFDBG(LOGERROR)       p2p dev addr=4c a3 8f 84 59 3c
[   13.124097] AICWFDBG(LOGINFO)        P2P interface started

离线

#23 2025-07-13 15:41:00

abnerl
会员
注册时间: 2020-06-09
已发帖子: 69
积分: 71.5

Re: rk3506G从入门到放弃

更新一下rk_demo报错可能是因为默认启动了一个,手工结束后,单独运行不报错,LCD还是没有显示,默认分辨率是1024x600,但是按理说应该亮一下

root@rk3506-buildroot:/tmp/713# rk_demo
drm encode type is LCD
rk_disp: 1024x600 (0mm X 0mm)
[RKADK_P] {RKADK_VERSION_Dump       :021} --------------------------------------------------------
[RKADK_P] {RKADK_VERSION_Dump       :022} rkadk version: git-6cdc879 Fri Nov 22 11:39:55 2024 +0800
[RKADK_P] {RKADK_VERSION_Dump       :023} rkadk building: unknown rkadk build info
[RKADK_P] {RKADK_VERSION_Dump       :024} ---------------------------------------------------------
rockit_load start
v4l2_tx probe successv4l2_rx_probe success
[01097.922] vrgn_thread_fn(102): vrgn_thread_fn [102] dev(vrgn-15) register okrockit_load end
rockit log path (null), log_size = 0, can use export rt_log_path=, export rt_log_size= change
[ 1098.897773] rockchip-vop ff600000.vop: [drm:vop_crtc_atomic_enable] Update mode to 1024x600p58, type: 17
log_file = (nil)
(null)           00:18:17-923 {log_level_init    :190}

 please use echo name=level > /tmp/rt_log_level set log level
        name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
        log_level: 0 1 2 3 4 5 6

(null)           00:18:17-923 {log_level_init    :196} Failed to open /dev/mpi/vlog,please check insmod success or fail
rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
(null)           00:18:17-923 {read_log_level    :077} text is all=4
(null)           00:18:17-924 {read_log_level    :079} module is all, log_level is 4
(null)           00:18:17-924 {dump_version      :055} ---------------------------------------------------------
(null)           00:18:17-924 {dump_version      :056} rockit version: git-ef354cbc9 Mon Dec 2 16:29:53 2024 +0800
(null)           00:18:17-924 {dump_version      :057} rockit building: built-Chu 2024-12-03 21:05:52
(null)           00:18:17-924 {dump_version      :058} ---------------------------------------------------------
(null)           00:18:17-924 {monitor_log_level :131} #Start monitor_log_level thread, arg:(nil)
vsys dev open 4
cmpi             00:18:17-924 {sys_runtime_librar:178} Failed to open /dev/mpi/venc,please check insmod success or fail
cmpi             00:18:17-924 {sys_runtime_librar:178} Failed to open /dev/mpi/avs,please check insmod success or fail
cmpi             00:18:17-925 {sys_runtime_librar:178} Failed to open /dev/mpi/venc,please check insmod success or fail
get a hdl = 0x4dc450
get a hdl = 0x4dd318
rk_disp: ui created successfullyl.
mb               00:18:17-933 {mb_create_buffer  :484} allocated buffer(this=0xa697f8e8, data=0x9e0cb000, size=2457600, phy=(nil), id = 27)
rk_disp: ui bufs[0] application is successful.
mb               00:18:17-937 {mb_create_buffer  :484} allocated buffer(this=0xa697f948, data=0x9dc1b000, size=2457600, phy=(nil), id = 28)
evdev_get_tp_event: /sys/class/input/input0/name = Goodix Capacitive TouchScreen
/dev/input/event0
EV_ABS ABS_MT_POSITION_X
        Min          0
        Max       4095
EV_ABS ABS_MT_POSITION_Y
        Min          0
        Max       4095
calibrate [0,4095]x[0,4095] to 1024x600
evdev_calibrate = 1
check_scr 1024x600
font_init s 20 m 30 l 92
load library(librga.so) in releative path
rga_api version 1.10.1_[0]

离线

#24 2025-07-14 09:08:06

abnerl
会员
注册时间: 2020-06-09
已发帖子: 69
积分: 71.5

Re: rk3506G从入门到放弃

经过对比发现,3056板子的LCD 40PIN信号,跟一般LCD完全不同,所以点不亮的原因在这里了,一般LCD前4pin是背光,电源,3506板子前2pin是电源,3pin开始是信号了,需要转接板才行

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn