https://gitee.com/artinchip/luban-lite.git
代码是从这里拉下来的,最后提交日期: 2025/5/16 15:27:54
win10平台,
1. 双击 win_env.bat 文件。
2. 执行 scons --apply-def=9
3. 执行 scons
4. 报错 信息如下
Creating C:\Users\PC\Desktop\luban-lite\output/d13x_demo88-nand_rt-thread_helloworld/images/loader.aic ...
Traceback (most recent call last):
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 2632, in <module>
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 2196, in firmware_component_preproc
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 2128, in firmware_component_preproc_aicimage
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 1004, in aic_boot_create_image_v2
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 782, in aic_boot_gen_header_bytes_v2
ValueError: invalid literal for int() with base 16: 'CONFIG_AIC_BOOTLOADER_LOAD_BASE'
[PYI-11360:ERROR] Failed to execute script 'mk_image' due to unhandled exception!
scons: *** [output\d13x_demo88-nand_rt-thread_helloworld\images\d13x.elf] Error 1
scons: building terminated because of errors.
请问 这是个什么情况,官方的SDK都不能编译过。 这个 CONFIG_AIC_BOOTLOADER_LOAD_BASE 又是在哪定义的, menuconfig里面也找不到。
我能看出这是在打包镜像阶段出的问题,但不知道要怎么处理,也没找到文档说明打包参数该如何配置。
离线
要先编译一次bootloader
离线
scons --apply-def=选择一下2然后编译2,然后再编译3
离线
要先编译一次bootloader
感谢 已经编译通过了
离线
scons --apply-def=选择一下2然后编译2,然后再编译3
感谢 已经编译通过了
离线
scons --apply-def=选择一下2然后编译2,然后再编译3
这个作用是什么
离线
Administrator@DESKTOP-AT2NJRN E:\lckfb-hspi-d133ebs\SDK\luban-lite
$ list
scons: Reading SConscript files ...
Built-in configs:
0. d12x_demo68-nand_rt-thread_helloworld
1. d12x_demo68-nor_rt-thread_helloworld
2. d12x_hmi-nor_rt-thread_helloworld
3. d13x_demo68-nor_rt-thread_helloworld
4. d13x_demo88-nand_rt-thread_helloworld
5. d13x_demo88-nor-secure_rt-thread_helloworld
6. d13x_demo88-nor_rt-thread_helloworld
7. d13x_hspi100-nor_rt-thread_helloworld
8. d13x_kunlunpi88-nor_rt-thread_helloworld
9. d21x_d215-demo88-nand_rt-thread_helloworld
10. d21x_d215-demo88-nor_rt-thread_helloworld
11. d21x_demo100-nor_rt-thread_helloworld
12. d21x_demo128-nand_rt-thread_helloworld
13. d21x_demo88-mmc_rt-thread_helloworld
14. g73x_demo100-nor_rt-thread_helloworld
15. g73x_demo68-nor_rt-thread_helloworld
16. g73x_scan_rt-thread_helloworld
Administrator@DESKTOP-AT2NJRN E:\lckfb-hspi-d133ebs\SDK\luban-lite
$ lunch 7
然后
scons -j12
python3 E:\lckfb-hspi-d133ebs\SDK\luban-lite\tools/scripts/elf_parse.py output\d13x_hspi100-nor_rt-thread_helloworld\images\d13x.elf E:\lckfb-hspi-d133ebs\SDK\luban-lite\output/d13x_hspi100-nor_rt-thread_helloworld/images/ riscv64-unknown-elf-
E:\lckfb-hspi-d133ebs\SDK\luban-lite\tools/scripts/mk_image.exe -v -c E:\lckfb-hspi-d133ebs\SDK\luban-lite\output/d13x_hspi100-nor_rt-thread_helloworld/images/image_cfg.json -d E:\lckfb-hspi-d133ebs\SDK\luban-lite\output/d13x_hspi100-nor_rt-thread_helloworld/images/
Creating E:\lckfb-hspi-d133ebs\SDK\luban-lite\output/d13x_hspi100-nor_rt-thread_helloworld/images/d13x_os.itb ...
Creating E:\lckfb-hspi-d133ebs\SDK\luban-lite\output/d13x_hspi100-nor_rt-thread_helloworld/images/env.bin ...
Creating E:\lckfb-hspi-d133ebs\SDK\luban-lite\output/d13x_hspi100-nor_rt-thread_helloworld/images/usbupg-psram-init.aic ...
Creating E:\lckfb-hspi-d133ebs\SDK\luban-lite\output/d13x_hspi100-nor_rt-thread_helloworld/images/pbp_ext.aic ...
Creating E:\lckfb-hspi-d133ebs\SDK\luban-lite\output/d13x_hspi100-nor_rt-thread_helloworld/images/loader.aic ...
Traceback (most recent call last):
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 2632, in <module>
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 2196, in firmware_component_preproc
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 2128, in firmware_component_preproc_aicimage
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 1004, in aic_boot_create_image_v2
File "\\Exdroid019\hao.xiong\lite-usb\luban-lite\tools\scripts\mk_image.py", line 782, in aic_boot_gen_header_bytes_v2
ValueError: invalid literal for int() with base 16: 'CONFIG_AIC_BOOTLOADER_LOAD_BASE'
[PYI-16964:ERROR] Failed to execute script 'mk_image' due to unhandled exception!
scons: *** [output\d13x_hspi100-nor_rt-thread_helloworld\images\d13x.elf] Error 1
scons: building terminated because of errors.
我的是这样
离线
@aniki
bootload怎么调出来编译
离线