【已解决】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 @   zhang1701  阅读(31)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
点击右上角即可分享
微信分享提示