|
【Linux】
3399pro 编译SDK出错
发表于 2020-12-15 17:36:00
浏览:7097
|
回复:1
打印
只看该作者
[复制链接]
楼主
编译kernel出错,如下:
LD init/built-in.o
drivers/built-in.o: In function `mmc_blk_drm_part_get':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:340: undefined reference to `_mcount'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:340:(.text+0x42270): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `_mcount'
drivers/built-in.o: In function `match_mmc_card':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:420: undefined reference to `_mcount'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:420:(.text+0x422c0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `_mcount'
drivers/built-in.o: In function `match_card_by_type':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:429: undefined reference to `_mcount'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:429:(.text+0x42314): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `_mcount'
drivers/built-in.o: In function `mmc_drm_send_cmd':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:179: undefined reference to `_mcount'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:179:(.text+0x423a0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `_mcount'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:217: undefined reference to `mmc_set_data_timeout'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:217:(.text+0x42494): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `mmc_set_data_timeout'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:219: undefined reference to `mmc_wait_for_req'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:219:(.text+0x424a0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `mmc_wait_for_req'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:231: undefined reference to `ioctl_rpmb_card_status_poll'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:231:(.text+0x42518): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ioctl_rpmb_card_status_poll'
drivers/built-in.o: In function `mmc_blk_drm_cmd_seq':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:316: undefined reference to `_mcount'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:316:(.text+0x42568): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `_mcount'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:320: undefined reference to `mmc_blk_get'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:320:(.text+0x42570): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `mmc_blk_get'
drivers/built-in.o: In function `mmc_blk_drm_process':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:280: undefined reference to `mmc_get_card'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:280:(.text+0x425b0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `mmc_get_card'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:283: undefined reference to `mmc_blk_part_switch'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:283:(.text+0x425bc): additional relocation overflows omitted from the output
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:307: undefined reference to `mmc_blk_part_switch'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:292: undefined reference to `mmc_blk_reset'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:294: undefined reference to `mmc_blk_reset_success'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:310: undefined reference to `mmc_put_card'
drivers/built-in.o: In function `mmc_blk_drm_cmd_seq':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:329: undefined reference to `mmc_blk_put'
drivers/built-in.o: In function `dump_hex_buffer':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:90: undefined reference to `_mcount'
drivers/built-in.o: In function `get_cpu_serial':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:114: undefined reference to `_mcount'
drivers/built-in.o: In function `drm_set_mmc_serial':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:159: undefined reference to `_mcount'
drivers/built-in.o: In function `cpu_serial_init':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:167: undefined reference to `_mcount'
drivers/built-in.o: In function `get_vendor_id':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:172: undefined reference to `_mcount'
drivers/built-in.o:/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:397: more undefined references to `_mcount' follow
drivers/built-in.o: In function `kmalloc':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/include/linux/slab.h:476: undefined reference to `kmem_cache_alloc_trace'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/include/linux/slab.h:476: undefined reference to `kmem_cache_alloc_trace'
drivers/built-in.o: In function `mmc_blk_emmc_remove':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:543: undefined reference to `_mcount'
drivers/built-in.o: In function `drm_dev_get':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:555: undefined reference to `_mcount'
drivers/built-in.o: In function `drm_cmd_fixup':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:641: undefined reference to `_mcount'
drivers/built-in.o: In function `drm_cmd_seq':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:674: undefined reference to `_mcount'
drivers/built-in.o: In function `drm_cmd_req':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:710: undefined reference to `_mcount'
drivers/built-in.o:/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:784: more undefined references to `_mcount' follow
drivers/built-in.o: In function `kmalloc':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/include/linux/slab.h:476: undefined reference to `kmem_cache_alloc_trace'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/include/linux/slab.h:476: undefined reference to `kmem_cache_alloc_trace'
drivers/built-in.o: In function `drm_check':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:957: undefined reference to `_mcount'
drivers/built-in.o: In function `drm_make_fake_data':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/core.c:980: undefined reference to `_mcount'
drivers/built-in.o: In function `vendor_decode_v1':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/codec.c:107: undefined reference to `_mcount'
drivers/built-in.o: In function `vendor_encode_v2':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/codec.c:144: undefined reference to `_mcount'
drivers/built-in.o: In function `vendor_encode_v1':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/codec.c:72: undefined reference to `_mcount'
drivers/built-in.o:/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/codec.c:178: more undefined references to `_mcount' follow
drivers/built-in.o: In function `kmalloc':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/include/linux/slab.h:476: undefined reference to `kmem_cache_alloc_trace'
drivers/built-in.o: In function `drm_ioctl':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/mdev.c:397: undefined reference to `_mcount'
drivers/built-in.o: In function `drm_compat_ioctl':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/mdev.c:407: undefined reference to `_mcount'
drivers/built-in.o: In function `strcasestr':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/mdev.c:50: undefined reference to `_mcount'
drivers/built-in.o: In function `uec_parse_dt':
/home/hongxin/sd_3399_pro/firefly-sdk/kernel/drivers/power/usb_extcon_charge.c:89: undefined reference to `iio_channel_get'
drivers/built-in.o: In function `uec_adc_iio_read':
/home/hongxin/sd_3399_pro/firefly-sdk/kernel/drivers/power/usb_extcon_charge.c:134: undefined reference to `iio_read_channel_raw'
drivers/built-in.o: In function `of_find_spi_device_by_node':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/mdev.c:505: undefined reference to `spi_bus_type'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/mdev.c:505: undefined reference to `spi_bus_type'
drivers/built-in.o: In function `detect_spi_device':
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/mdev.c:538: undefined reference to `spi_busnum_to_master'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/mdev.c:549: undefined reference to `spi_new_device'
/home/zouxf/project/rk3399/rk_linux_sdk/kernel/drivers/char/drm/mdev.c:557: undefined reference to `spi_write_then_read'
Makefile:1022: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
====Build kernel failed!====
.mk配置如下:
# Uboot defconfig
export RK_UBOOT_DEFCONFIG=rk3399pro
# Kernel defconfig
#export RK_KERNEL_DEFCONFIG=rk3399pro_npu_pcie_defconfig
export RK_KERNEL_DEFCONFIG=rk3399pro_npu_defconfig
# Kernel dts
#export RK_KERNEL_DTS=rk3399pro-firefly-aiojd4
export RK_KERNEL_DTS=rk3399pro-evb-v13-linux
# parameter for GPT table
export RK_PARAMETER=parameter-ubuntu.txt
# packagefile for make update image
export RK_PACKAGE_FILE=rk3399-ubuntu-package-file
请问下有人遇到过这问题吗?怎么解决呢。谢谢 |
|