【已解决】VM+ubuntu+共享windows目录的源码,编译huawei EC6109 SDK 报错,不知道啥原因

环境:
ubuntu 14,内核3.13.0-24-generic
源代码:https://kgithub.com/tegzwn/HiSTBLinuxV100R005C00SPC050

报错:
1、
master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/boot/fastboot/include/configs/export.sh
make -C /mnt/hgfs/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/boot/fastboot ARCH=arm CROSS_COMPILE=arm-histbv310-linux- LIBSPRODUCT=/mnt/hgfs/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/boot/product/libproduct.a CONFIG_COMPRESS_BOOT= O= CONFIG_MERGE_IMAGE= hi3798mx_config
make[2]: Entering directory /mnt/hgfs/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/boot/fastboot' Configuring for hi3798mx board... **ln: failed to create symbolic link ‘asm’: Operation not supported** make[2]: *** [hi3798mx_config] Error 1 make[2]: Leaving directory /mnt/hgfs/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/boot/fastboot'
make[1]: *** [product] Error 2
make[1]: Leaving directory `/mnt/hgfs/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/boot'
make: *** [hiboot] Error 2

解决办法:不要尝试从虚拟机linux编译windows目录下的源码,一堆莫名奇妙的问题。直接将sdk拷贝到vm分区中编译,问题不再出现。
另外虚拟机性能不够,建议用使用编译命令 make build -j2 | tee build.log,即2个线程编译。

2、报错
ubuntu /bin/sh line1 mkibootargs command not found
make build -j | tee build.log
drivers/Kconfig:59: can't open file "drivers/spi/Kconfig
解决办法:该源码缺少文件。从HiSTBLinuxV100R005C00SPC060中合并缺少的文件即可。

posted @ 2024-10-20 13:17  zhang1701  阅读(67)  评论(0)    收藏  举报