武钰钢 发表于 2023-4-26 15:40:17

firefly-3399 rk3399-7D85DISPLAY_V00 mipi显示

mak menuconfig 按下图配置


编译内核报错:
CC      init/version.o
LD      init/built-in.o
drivers/built-in.o: In function `edp_psr_state':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1460: undefined reference to `rk_fb_poll_wait_frame_complete'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1460:(.text+0x5a8b4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `rk_fb_poll_wait_frame_complete'
drivers/built-in.o: In function `rk32_edp_probe':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1762: undefined reference to `rk_fb_get_prmry_screen'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1762:(.text+0x5ac74): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `rk_fb_get_prmry_screen'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1836: undefined reference to `support_uboot_display'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1836:(.text+0x5aeb0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `support_uboot_display'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1850: undefined reference to `support_uboot_display'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1850:(.text+0x5af24): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `support_uboot_display'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1854: undefined reference to `support_uboot_display'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1854:(.text+0x5af44): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `support_uboot_display'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1860: undefined reference to `rk_fb_trsm_ops_register'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:1860:(.text+0x5af78): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `rk_fb_trsm_ops_register'
drivers/built-in.o: In function `rk32_edp_init_edp':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:133: undefined reference to `rk_fb_get_prmry_screen'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_dp.c:133:(.text+0x5b128): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `rk_fb_get_prmry_screen'
drivers/built-in.o: In function `rk32_dsi_enable':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1610: undefined reference to `rk_fb_get_prmry_screen'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1610:(.text+0x5e0c0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `rk_fb_get_prmry_screen'
drivers/built-in.o: In function `rockchip_3399_grf_config':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1731: undefined reference to `rk_mipi_get_dsi_num'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1731:(.text+0x5e0e4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `rk_mipi_get_dsi_num'
drivers/built-in.o: In function `rk32_dsi_enable':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1615: undefined reference to `rk_mipi_get_dsi_num'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1615:(.text+0x5e12c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `rk_mipi_get_dsi_num'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1618: undefined reference to `rk_mipi_screen_standby'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1618:(.text+0x5e148): additional relocation overflows omitted from the output
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1625: undefined reference to `rk_mipi_get_dsi_num'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1630: undefined reference to `rk_mipi_get_dsi_num'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1634: undefined reference to `rk_mipi_get_dsi_num'
drivers/built-in.o: In function `rk32_mipi_dsi_probe':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:2001: undefined reference to `rk_fb_get_prmry_screen'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:2038: undefined reference to `rk_mipi_get_dsi_lane'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:2039: undefined reference to `rk_mipi_get_dsi_lane'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:2040: undefined reference to `rk_mipi_get_dsi_clk'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:2060: undefined reference to `rk_fb_trsm_ops_register'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:2074: undefined reference to `support_uboot_display'
drivers/built-in.o: In function `rockchip_mipi_cmd_mode_refresh':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1674: undefined reference to `rk_mipi_get_dsi_num'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1687: undefined reference to `rk_mipi_get_dsi_num'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1696: undefined reference to `rk_mipi_get_dsi_num'
drivers/built-in.o: In function `rk32_mipi_power_down_DDR':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1819: undefined reference to `rk_mipi_get_dsi_num'
drivers/built-in.o: In function `rk32_mipi_power_up_DDR':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1827: undefined reference to `rk_mipi_get_dsi_num'
drivers/built-in.o:/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1832: more undefined references to `rk_mipi_get_dsi_num' follow
drivers/built-in.o: In function `rk32_dsi_disable':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1706: undefined reference to `rk_mipi_screen_standby'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1708: undefined reference to `rk_mipi_get_dsi_num'
drivers/built-in.o: In function `rk_mipi_dsi_init':
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1011: undefined reference to `rk_fb_get_prmry_screen_pixclock'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1006: undefined reference to `rk_mipi_get_dsi_num'
/home/dogpi/rk3399_linux_release_v2.5.1_20210301/kernel/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c:1006: undefined reference to `rk_mipi_get_dsi_num'
make: *** Error 1
ERROR: Running build_extboot failed!
ERROR: exit code 2 from line 780:
    make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS


neutionwei 发表于 2023-4-27 17:08:59

默认已经打开mipi相关去掉,不需要自己再操作,你的错误是因为使用早期rk支持的mipi驱动,现在全部都是使用drm框架。
页: [1]
查看完整版本: firefly-3399 rk3399-7D85DISPLAY_V00 mipi显示