您尚未登录。

楼主 # 2025-06-05 15:40:09

xing
会员
注册时间: 2024-05-27
已发帖子: 18
积分: 53

官方SDK编译不通过

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里面也找不到。
我能看出这是在打包镜像阶段出的问题,但不知道要怎么处理,也没找到文档说明打包参数该如何配置。

离线

#1 2025-06-09 08:16:11

varden
会员
注册时间: 2024-03-08
已发帖子: 5
积分: 15

Re: 官方SDK编译不通过

要先编译一次bootloader

离线

#2 2025-06-09 09:31:35

ArtInChip
会员
注册时间: 2023-11-11
已发帖子: 243
积分: 249

Re: 官方SDK编译不通过

scons --apply-def=选择一下2然后编译2,然后再编译3

离线

楼主 #3 2025-06-11 09:20:37

xing
会员
注册时间: 2024-05-27
已发帖子: 18
积分: 53

Re: 官方SDK编译不通过

varden wrote:

要先编译一次bootloader

感谢 已经编译通过了

离线

楼主 #4 2025-06-11 09:20:44

xing
会员
注册时间: 2024-05-27
已发帖子: 18
积分: 53

Re: 官方SDK编译不通过

ArtInChip wrote:

scons --apply-def=选择一下2然后编译2,然后再编译3

感谢 已经编译通过了

离线

#5 2025-06-16 16:28:43

aniki
会员
注册时间: 2024-12-26
已发帖子: 25
积分: 25

Re: 官方SDK编译不通过

ArtInChip wrote:

scons --apply-def=选择一下2然后编译2,然后再编译3

这个作用是什么

离线

#6 2025-06-16 17:02:50

aniki
会员
注册时间: 2024-12-26
已发帖子: 25
积分: 25

Re: 官方SDK编译不通过

Administrator@DESKTOP-AT2NJRN E:\lckfb-hspi-d133ebs\SDK\luban-lite
$ list
scons: Reading SConscript files ...
Built-in configs:

  1. d12x_demo68-nand_rt-thread_helloworld

  2. d12x_demo68-nor_rt-thread_helloworld

  3. d12x_hmi-nor_rt-thread_helloworld

  4. d13x_demo68-nor_rt-thread_helloworld

  5. d13x_demo88-nand_rt-thread_helloworld

  6. d13x_demo88-nor-secure_rt-thread_helloworld

  7. d13x_demo88-nor_rt-thread_helloworld

  8. d13x_hspi100-nor_rt-thread_helloworld

  9. d13x_kunlunpi88-nor_rt-thread_helloworld

  10. d21x_d215-demo88-nand_rt-thread_helloworld

  11. d21x_d215-demo88-nor_rt-thread_helloworld

  12. d21x_demo100-nor_rt-thread_helloworld

  13. d21x_demo128-nand_rt-thread_helloworld

  14. d21x_demo88-mmc_rt-thread_helloworld

  15. g73x_demo100-nor_rt-thread_helloworld

  16. g73x_demo68-nor_rt-thread_helloworld

  17. 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.

我的是这样

离线

#7 2025-06-16 17:03:13

aniki
会员
注册时间: 2024-12-26
已发帖子: 25
积分: 25

Re: 官方SDK编译不通过

@aniki
bootload怎么调出来编译

离线

#8 2025-10-22 11:17:29

cdroid
会员
注册时间: 2023-09-15
已发帖子: 13
积分: 13

Re: 官方SDK编译不通过

aniki wrote:

@aniki
bootload怎么调出来编译

mb

离线

#9 2025-11-03 12:30:59

shangaimin
会员
注册时间: 2025-11-03
已发帖子: 4
积分: 4

Re: 官方SDK编译不通过

@xing
手动逐行

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn


东莞哇酷科技有限公司开发