如标题,按照说明操作,不论是scons还是Eclipse,都只能生成bin, elf, map等, 没有img
离线
为什么你提问没有把编译输出信息帖出来,是要大家帮你猜么?
抱歉,头一次提问,没有经验, 下面是信息:
Luban-Lite command for Windows
_ _ ___ ___ _ _
/ \ _ __| |_|_ _|_ __ / __| |__ (_)_ __
/ _ \ | '__| __|| || '_ \| | | '_ \| | '_ \
/ ___ \| | | |_ | || | | | |__| | | | | |_) |
/_/ \_\_| \__|___|_| |_|\___|_| |_|_| .__/
|_|
Microsoft Windows [Version 10.0.19045.3803]
(c) Microsoft Corporation。保留所有权利。
E:\luban-lite-master>scons --list-def
scons: Reading SConscript files ...
Built-in configs:
0. d13x_demo88-nand_baremetal_bootloader_defconfig - Build for d13x_demo88-nand_baremetal_bootloader
1. d13x_demo88-nand_rt-thread_helloworld_defconfig - Build for d13x_demo88-nand_rt-thread_helloworld
2. d13x_demo88-nor-xip_baremetal_bootloader_defconfig - Build for d13x_demo88-nor-xip_baremetal_bootloader
3. d13x_demo88-nor-xip_rt-thread_helloworld_defconfig - Build for d13x_demo88-nor-xip_rt-thread_helloworld
4. d13x_demo88-nor_baremetal_bootloader_defconfig - Build for d13x_demo88-nor_baremetal_bootloader
5. d13x_demo88-nor_baremetal_helloworld_defconfig - Build for d13x_demo88-nor_baremetal_helloworld
6. d13x_demo88-nor_rt-thread_helloworld_defconfig - Build for d13x_demo88-nor_rt-thread_helloworld
7. d13x_kunlunpi88-nor_baremetal_bootloader_defconfig - Build for d13x_kunlunpi88-nor_baremetal_bootloader
8. d13x_kunlunpi88-nor_rt-thread_helloworld_defconfig - Build for d13x_kunlunpi88-nor_rt-thread_helloworld
9. d21x_demo100-nand_baremetal_bootloader_defconfig - Build for d21x_demo100-nand_baremetal_bootloader
10. d21x_demo100-nand_baremetal_helloworld_defconfig - Build for d21x_demo100-nand_baremetal_helloworld
11. d21x_demo100-nand_rt-thread_helloworld_defconfig - Build for d21x_demo100-nand_rt-thread_helloworld
12. d21x_demo100-nor_baremetal_bootloader_defconfig - Build for d21x_demo100-nor_baremetal_bootloader
13. d21x_demo100-nor_rt-thread_helloworld_defconfig - Build for d21x_demo100-nor_rt-thread_helloworld
14. d21x_demo128-nand_baremetal_bootloader_defconfig - Build for d21x_demo128-nand_baremetal_bootloader
15. d21x_demo128-nand_rt-thread_helloworld_defconfig - Build for d21x_demo128-nand_rt-thread_helloworld
16. d21x_demo88-mmc_baremetal_bootloader_defconfig - Build for d21x_demo88-mmc_baremetal_bootloader
17. d21x_demo88-mmc_rt-thread_helloworld_defconfig - Build for d21x_demo88-mmc_rt-thread_helloworld
18. d21x_demo88-nand_baremetal_bootloader_defconfig - Build for d21x_demo88-nand_baremetal_bootloader
19. d21x_demo88-nand_baremetal_helloworld_defconfig - Build for d21x_demo88-nand_baremetal_helloworld
20. d21x_demo88-nand_rt-thread_helloworld_defconfig - Build for d21x_demo88-nand_rt-thread_helloworld
21. d21x_demo88-nor_baremetal_bootloader_defconfig - Build for d21x_demo88-nor_baremetal_bootloader
22. d21x_demo88-nor_rt-thread_helloworld_defconfig - Build for d21x_demo88-nor_rt-thread_helloworld
E:\luban-lite-master>scons --apply-def=4
scons: Reading SConscript files ...
Load config from target\configs\d13x_demo88-nor_baremetal_bootloader_defconfig
E:\luban-lite-master>scons
scons: Reading SConscript files ...
E:\luban-lite-master\kernel\rt-thread
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: output\d13x_demo88-nor_baremetal_bootloader
LINK output\d13x_demo88-nor_baremetal_bootloader\images\d13x.elf
-rw-r--r-- 1 1426884 Jan 3 13:38 output\d13x_demo88-nor_baremetal_bootloader\images\d13x.elf
riscv64-unknown-elf-objcopy -O binary output\d13x_demo88-nor_baremetal_bootloader\images\d13x.elf E:\luban-lite-master\output/d13x_demo88-nor_baremetal_bootloader/images/d13x.bin
riscv64-unknown-elf-size output\d13x_demo88-nor_baremetal_bootloader\images\d13x.elf
text data bss dec hex filename
109784 4640 19016 133440 20940 output\d13x_demo88-nor_baremetal_bootloader\images\d13x.elf
python3 E:\luban-lite-master\tools/scripts/linked_size.py -m E:\luban-lite-master\output/d13x_demo88-nor_baremetal_bootloader/images/d13x.map
Luban-Lite is built successfully
scons: done building targets.
E:\luban-lite-master>
离线
@m68000
你要再编对应的app 应用才打包生成img,单编译boot 没有img
离线
@m68000
你要再编对应的app 应用才打包生成img,单编译boot 没有img
OK, 我再仔细看一下文档,匠芯创的文档中写的就是编译后直接产生img,也许有的地方我没有看到
离线
@m68000
你要再编对应的app 应用才打包生成img,单编译boot 没有img
能详细的说一下吗?使用什么工具来打包生成img,也许我比较愚钝,没有看到文档中有说明.
离线
序号4是boot 你编译序号5 就是对应app,编译好自动生成img
离线
要去app文件夹里找 不在bootloader里
离线
选择带有rtt的配置就有img了
离线