完整支持buildroot 2021 LTS构建D1开发板SD卡系统镜像
-
完整支持使用社区buildroot 2021自动编译构建D1 TF卡启动镜像,可以专门用来研究D1启动流程 工具链或者研究各个部分 boot0 opensbi u-boot kernel rootfs 等 对于深入理解RISC V 64有很大的帮助,目前正在整理合并源码 预计下周之前可以发布 获取最新动态请关注 https://gitee.com/weidongshan/neza-d1-buildroot.git
-
点进去看原来是韦老师
-
$ make >>> opensbi 1c8ffc826a202ae73c99236c9620442ebe54c9c5 Building PATH="/opt/D1/neza-d1-buildroot/output/host/bin:/opt/D1/neza-d1-buildroot/output/host/sbin:/usr/local/gnu-mcu-eclipse/riscv-none-gcc/7.2.0-4-20180606-1631/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" CROSS_COMPILE=/opt/D1/neza-d1-buildroot/output/host/bin/riscv64-buildroot-linux-gnu- PLATFORM=thead/c910 PLATFORM_RISCV_ISA=rv64gcxthead /usr/bin/make -j9 -C /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5 AS-DEP platform/thead/c910/firmware/fw_jump.dep /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/firmware/fw_jump.S:103:2: error: #error "Must define FW_JUMP_ADDR" 103 | #error "Must define FW_JUMP_ADDR" | ^~~~~ CLEAN (standby) AR lib/libsbi.a make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. AR lib/libsbiutils.a make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. CC platform/thead/c910/standby-normal/loadelf.o CC (standby)main.c CC platform/thead/c910/sunxi_platform.o CC platform/thead/c910/opensbi_head.o CC platform/thead/c910/sunxi_idle.o AS platform/thead/c910/sunxi_cpuidle.o /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/opensbi_head.c:32:3: error: ‘FW_TEXT_START’ undeclared here (not in a function) 32 | FW_TEXT_START | ^~~~~~~~~~~~~ CPP platform/thead/c910/firmware/fw_dynamic.elf.ld In file included from /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/include/sbi/sbi_scratch.h:13, from /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/include/sbi/sbi_platform.h:44, from /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/sunxi_platform.c:9: /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/sunxi_platform.c: In function ‘sbi_boot_other_core’: /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/sunxi_platform.c:226:23: error: ‘FW_TEXT_START’ undeclared (first use in this function) 226 | csr_write(CSR_MRVBR, FW_TEXT_START); | ^~~~~~~~~~~~~ /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/include/sbi/riscv_asm.h:108:39: note: in definition of macro ‘csr_write’ 108 | unsigned long __v = (unsigned long)(val); \ | ^~~ /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/sunxi_platform.c:226:23: note: each undeclared identifier is reported only once for each function it appears in 226 | csr_write(CSR_MRVBR, FW_TEXT_START); | ^~~~~~~~~~~~~ /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/include/sbi/riscv_asm.h:108:39: note: in definition of macro ‘csr_write’ 108 | unsigned long __v = (unsigned long)(val); \ | ^~~ Makefile:315: recipe for target '/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/opensbi_head.o' failed make[2]: *** [/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/opensbi_head.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Makefile:315: recipe for target '/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/sunxi_platform.o' failed make[2]: *** [/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/sunxi_platform.o] Error 1 AS platform/thead/c910/firmware/fw_dynamic.o AS platform/thead/c910/firmware/fw_jump.o /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/firmware/fw_jump.S:103:2: error: #error "Must define FW_JUMP_ADDR" 103 | #error "Must define FW_JUMP_ADDR" | ^~~~~ /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/sunxi_cpuidle.S: Makefile:333: recipe for target '/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/firmware/fw_jump.o' failed make[2]: *** [/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/firmware/fw_jump.o] Error 1 Assembler messages: /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/sunxi_cpuidle.S:51: Error: unrecognized opcode `dcache.call' /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/sunxi_cpuidle.S:90: Error: unknown CSR `mxstatus' Makefile:321: recipe for target '/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/sunxi_cpuidle.o' failed make[2]: *** [/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/sunxi_cpuidle.o] Error 1 CC (standby)dram/dram.c /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/standby-normal/loadelf.c: Assembler messages: /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/standby-normal/loadelf.c:210: Error: unrecognized opcode `dcache.call' Makefile:315: recipe for target '/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/standby-normal/loadelf.o' failed make[2]: *** [/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/standby-normal/loadelf.o] Error 1 CC (standby)clk/sun20iw1p1/clk-sun20iw1p1.c CC (standby)libsrc/mdelay.c CC (standby)libsrc/stack.c CC (standby)libsrc/head.c CC (standby)power/axp2101_power.c CC (standby)power/axp22_power.c CC (standby)power/axp_power.c CC (standby)driver/twi/standby_twi.c CC (standby)driver/pin/standby_pin.c CC (standby)driver/clk/standby_clk.c CC (standby)driver/uart/uart.c AS (standby)sunxi_standby.S sunxi_standby.S: Assembler messages: sunxi_standby.S:44: Error: unrecognized opcode `dcache.call' sunxi_standby.S:83: Error: unknown CSR `mxstatus' Makefile:45: recipe for target 'sunxi_standby.o' failed make[3]: *** [sunxi_standby.o] Error 1 /opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/platform/thead/c910/standby-normal/objects.mk:15: recipe for target '/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/standby-normal/standby.bin' failed make[2]: *** [/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/build/platform/thead/c910/standby-normal/standby.bin] Error 2 package/pkg-generic.mk:247: recipe for target '/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/.stamp_built' failed make[1]: *** [/opt/D1/neza-d1-buildroot/output/build/opensbi-1c8ffc826a202ae73c99236c9620442ebe54c9c5/.stamp_built] Error 2 Makefile:84: recipe for target '_all' failed make: *** [_all] Error 2
韦老师,这是什么问题呢?
-
哇,这个好,最近搞M5Pi,刚好也比较熟悉buildroot了
-
@whycan 参考 我们那个git仓库里 对buildroot opensbi 包做的修改 以及opensbi源码的修改。
-
@whycan 这条指令是平头哥扩展指令集的,一般的编译器会出问题吧,
-
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号