您尚未登录。

#1 全志 SOC » Tina-SDK编译失败,求助 » 2022-09-17 15:00:58

zhayujie
回复: 0

求助,Tina-sdk编译不通过
在ubuntu16.04 虚拟机中执行 :

source build/envsetup.sh
lunch
make

编译报错:

drivers/input/init-input.c: In function 'input_set_power_enable':
drivers/input/init-input.c:750:4: error: implicit declaration of function '__gpio_set_value'; did you mean 'gpio_set_value'? [-Werror=implicit-function-declaration]
    __gpio_set_value(power_io, 1);
    ^~~~~~~~~~~~~~~~
    gpio_set_value
cc1: some warnings being treated as errors
scripts/Makefile.build:286: recipe for target 'drivers/input/init-input.o' failed
make[7]: *** [drivers/input/init-input.o] Error 1
scripts/Makefile.build:556: recipe for target 'drivers/input' failed
make[6]: *** [drivers/input] Error 2
Makefile:1810: recipe for target 'drivers' failed
make[5]: *** [drivers] Error 2
make[5]: Leaving directory '/home/zyj/riscv/tina-D1-H/lichee/linux-5.4'
Makefile:28: recipe for target '/home/zyj/riscv/tina-D1-H/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/linux-5.4.61/.modules' failed
make[4]: *** [/home/zyj/riscv/tina-D1-H/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/linux-5.4.61/.modules] Error 2
make[4]: Leaving directory '/home/zyj/riscv/tina-D1-H/target/allwinner/d1-h-nezha'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/zyj/riscv/tina-D1-H/target/allwinner'
target/Makefile:21: recipe for target 'target/allwinner/compile' failed
make[2]: *** [target/allwinner/compile] Error 2
make[2]: Leaving directory '/home/zyj/riscv/tina-D1-H'
target/Makefile:16: recipe for target '/home/zyj/riscv/tina-D1-H/out/d1-h-nezha/staging_dir/target/stamp/.target_compile' failed
make[1]: *** [/home/zyj/riscv/tina-D1-H/out/d1-h-nezha/staging_dir/target/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/zyj/riscv/tina-D1-H'
/home/zyj/riscv/tina-D1-H/build/toplevel.mk:304: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (43:47 (mm:ss)) ####

#2 Re: 全志 SOC » xfel运行D1的boot0 » 2022-09-13 12:56:15

哇酷小二 说:

out/d1-nezha/image/boot0_sdcard.fex

终于搞清楚了, 这个文件就是 TF卡 8K偏移的数据。


所以, 我们把  boot0_sdcard.bin或者boot0_sdcard_sun20iw1p1.bin 烧录到TF卡需要修改源码里面那个结构体数组。


请问除了修改boot0_header里的串口数组还需要修改别的吗,我改完之后由tf卡启动boot0 还是无法初始化DDR

WeChat817e771c0df3260c66f83efb9beff698.png

#3 Re: 全志 SOC » D1开发板的裸机程序 » 2022-09-13 02:03:11

March 说:

我去试试看

请问楼主解决了吗

页脚

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

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