@gsd_zcm @YuzukiTsuru 大佬,可以帮忙看下吗?
G
GSD_ZCM 发布的最新帖子
-
【求助!】D1/D1H OTA 升级实验 失败
我用Tian2.0版本,根据 D1-H_Tina_Linux_OTA_开发指南 这个文档编译主系统和OTA 包,但是准备在哪吒D1H的板子上执行OTA的时候,出现了这样的问题,导致无法升级系统,谷歌了好久,很少有这方面的解答?
大佬们,得如何去解决这个问题呢?root@TinaLinux:/# root@TinaLinux:/# swupdate -i /mnt/UDISK/tina-d1-h-nezha.swu -e stable,upgrade_r ec[ 76.593184] [TXRX_WRN] drop=1771, fctl=0x00d0. overy Swupdate v2019.11.0 Licensed under GPLv2. See source distribution for detailed copyright notices. Registered handlers: dummy awuboot awboot0 uboot bootloader raw rawfile rawcopy readback shellscript preinstall postinstall ubivol ubipartition ubiswap software set: stable mode: upgrade_recovery Connected to SWUpdate via /tmp/swupdateprog Warning: Bad CRC, using default environment Error: Please reboot, uboot will fix the environment [ERROR] : SWUPDATE failed [0] ERROR : Error: environment not initialized, Success Update started ! Interface: UNKNOWN [ ------------------------------------------------------------ ] 1 of 3 0% (recovery) [ERROR] : SWUPDATE failed [0] ERROR : Image recovery should be stored in volume recovery, but no volume found [ ------------------------------------------------------------ ] 1 of 3 0% (recovery) FAILURE ! Software updated failed Warning: Bad CRC, using default environment Error: Please reboot, uboot will fix the environment [ERROR] : SWUPDATE failed [0] ERROR : Error: environment not initialized, Success Connection closing.. Trying to connect to SWUpdate... root@TinaLinux:/# root@TinaLinux:/# swupdate_cmd.sh -i /mnt/UDISK/tina-d1-h-nezha.swu -e stable,u pgrade_recovery -i /mnt/UDISK/tina-d1-h-nezha.swu -e stable,u pgrade_recovery config new swupdate swu_input: ##-i /mnt/UDISK/tina-d1-h-nezha.swu -e stable,upgrade_recovery## Warning: Bad CRC, using default environment Error: Please reboot, uboot will fix the environment Error: environment not initialized ## set swupdate_param done ## swu_param: #### swu_software: #### swu_mode: #### no swupdate_cmd to run, wait for next swupdate
-
回复: 2022年7月版——在“哪吒”上跑AI 全志D1 ncnn框架移植笔记
@yanmingjian 前辈你好,我用编译器版本为240的取编译,cmake的时候出现这样的问题,Test NCNN_COMPILER_USE_VFREDSUM - Failed
-- Check for working CXX compiler: /home/zcm/linux/tool/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.4.0/bin/riscv64-unknown-linux-gnu-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test NCNN_COMPILER_SUPPORT_RVV -- Performing Test NCNN_COMPILER_SUPPORT_RVV - Success -- Performing Test NCNN_COMPILER_SUPPORT_RVV_ZFH -- Performing Test NCNN_COMPILER_SUPPORT_RVV_ZFH - Success -- Performing Test NCNN_COMPILER_USE_VFREDSUM -- Performing Test NCNN_COMPILER_USE_VFREDSUM - Failed -- Performing Test NCNN_COMPILER_USE_VFREDUSUM -- Performing Test NCNN_COMPILER_USE_VFREDUSUM - Success -- Performing Test NCNN_COMPILER_USE_RVV_PLAIN_SEG -- Performing Test NCNN_COMPILER_USE_RVV_PLAIN_SEG - Success -- Target arch: riscv
然后编译的时候,没办法正常通过,前辈知道是什么问题吗?
In file included from /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/riscv_activation.h:22, from /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/convolution_riscv.cpp:25: /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h: In function 'vfloat32m1_t sigmoid_ps(vfloat32m1_t, size_t)': /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h:362:43: error: 'vfrec7_v_f32m1' was not declared in this scope; did you mean 'vfneg_v_f32m1'? 362 | vfloat32m##LMUL##_t _reciprocal = vfrec7_v_f32m##LMUL(_v, vl); \ | ^~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h:368:1: note: in expansion of macro '_RVV_FLOAT32_SIGMOID_OP' 368 | _RVV_FLOAT32_SIGMOID_OP(1, 32) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h: In function 'vfloat32m2_t sigmoid_ps(vfloat32m2_t, size_t)': /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h:362:43: error: 'vfrec7_v_f32m2' was not declared in this scope; did you mean 'vfneg_v_f32m2'? 362 | vfloat32m##LMUL##_t _reciprocal = vfrec7_v_f32m##LMUL(_v, vl); \ | ^~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h:369:1: note: in expansion of macro '_RVV_FLOAT32_SIGMOID_OP' 369 | _RVV_FLOAT32_SIGMOID_OP(2, 16) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake) [ 21%] Building CXX object src/CMakeFiles/ncnn.dir/layer/elu.cpp.o /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h: In function 'vfloat32m4_t sigmoid_ps(vfloat32m4_t, size_t)': /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h:362:43: error: 'vfrec7_v_f32m4' was not declared in this scope; did you mean 'vfneg_v_f32m4'? 362 | vfloat32m##LMUL##_t _reciprocal = vfrec7_v_f32m##LMUL(_v, vl); \ | ^~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h:370:1: note: in expansion of macro '_RVV_FLOAT32_SIGMOID_OP' 370 | _RVV_FLOAT32_SIGMOID_OP(4, 8) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h: In function 'vfloat32m8_t sigmoid_ps(vfloat32m8_t, size_t)': /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h:362:43: error: 'vfrec7_v_f32m8' was not declared in this scope; did you mean 'vfneg_v_f32m8'? 362 | vfloat32m##LMUL##_t _reciprocal = vfrec7_v_f32m##LMUL(_v, vl); \ | ^~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun.h:371:1: note: in expansion of macro '_RVV_FLOAT32_SIGMOID_OP' 371 | _RVV_FLOAT32_SIGMOID_OP(8, 4) | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/riscv_activation.h:23, from /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/convolution_riscv.cpp:25: /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h: In function 'vfloat16m1_t sigmoid_ps(vfloat16m1_t, size_t)': /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h:362:43: error: 'vfrec7_v_f16m1' was not declared in this scope; did you mean 'vfneg_v_f16m1'? 362 | vfloat16m##LMUL##_t _reciprocal = vfrec7_v_f16m##LMUL(_v, vl); \ | ^~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h:368:1: note: in expansion of macro '_RVV_FLOAT16_SIGMOID_OP' 368 | _RVV_FLOAT16_SIGMOID_OP(1, 16) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h: In function 'vfloat16m2_t sigmoid_ps(vfloat16m2_t, size_t)': /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h:362:43: error: 'vfrec7_v_f16m2' was not declared in this scope; did you mean 'vfneg_v_f16m2'? 362 | vfloat16m##LMUL##_t _reciprocal = vfrec7_v_f16m##LMUL(_v, vl); \ | ^~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h:369:1: note: in expansion of macro '_RVV_FLOAT16_SIGMOID_OP' 369 | _RVV_FLOAT16_SIGMOID_OP(2, 8) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h: In function 'vfloat16m4_t sigmoid_ps(vfloat16m4_t, size_t)': /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h:362:43: error: 'vfrec7_v_f16m4' was not declared in this scope; did you mean 'vfneg_v_f16m4'? 362 | vfloat16m##LMUL##_t _reciprocal = vfrec7_v_f16m##LMUL(_v, vl); \ | ^~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h:370:1: note: in expansion of macro '_RVV_FLOAT16_SIGMOID_OP' 370 | _RVV_FLOAT16_SIGMOID_OP(4, 4) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h: In function 'vfloat16m8_t sigmoid_ps(vfloat16m8_t, size_t)': /home/zcm/linux/Open_lib/ncnn/src/layer/riscv/rvv_mathfun_fp16s.h:362:43: error: 'vfrec7_v_f16m8' was not declared in this scope; did you mean 'vfneg_v_f16m8'? 362 | vfloat16m##LMUL##_t _reciprocal = vfrec7_v_f16m##LMUL(_v, vl); \ | ^~~~~~~~~~~~~
-
回复: 2022年7月版——在“哪吒”上跑AI 全志D1 ncnn框架移植笔记
@yanmingjian 前辈,请问下,可以用Tina2.0的sdk的交叉编译器去编译码?会有什么问题出现呢?
-
回复: 全志D1-H,官方SDK Tina2.0 移植 ffmpeg (交叉编译成功,运行时出问题)
@whycanservice 前辈,你好,我用了你提供的ffmpeg的包然后去编译,出现这样的错误,
cp: error writing '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/sbin/sshd': No space left on device cp: error writing '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/sbin/addpart': No space left on device cp: error writing '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/sbin/delpart': No space left on device cp: error writing '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/sbin/partx': No space left on device cp: error writing '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/sbin/resize2fs': No space left on device cp: error writing '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/sbin/tcpdump': No space left on device cp: error writing '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/sbin/wpa_cli': No space left on device cp: error writing '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/sbin/wpad': No space left on device cp: cannot create directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/share': No space left on device cp: cannot create directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/res': No space left on device cp: cannot create directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/include': No space left on device cp: cannot create directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/usr/libexec': No space left on device cp: cannot create directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root/www': No space left on device rm -f /home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/rootfs.img rm -f /home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/usr.img dd if=/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/root.ext4 of=/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha/rootfs.img bs=128k conv=sync 512+0 records in 512+0 records out 67108864 bytes (67 MB, 64 MiB) copied, 0.0423801 s, 1.6 GB/s ( cd /home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha ; find -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | sort | xargs md5sum --binary > md5sums ) ( cd /home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/out/d1-h-nezha ; find -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | sort | xargs openssl dgst -sha256 > sha256sums ) make[5]: Leaving directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/target/allwinner/generic/image' make[4]: Leaving directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/target/allwinner/d1-h-nezha' make[3]: Leaving directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux/target/allwinner' make[2]: Leaving directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux' export MAKEFLAGS= ;make -w -r package/index make[2]: Entering directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux' Generating package index... Signing key has not been configured make[2]: Leaving directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux' make[1]: Lea![21f0b82a-75a6-4be7-94ff-78d57beaae7e-image.png](/assets/uploads/files/1668569215929-21f0b82a-75a6-4be7-94ff-78d57beaae7e-image.png) ving directory '/home/zcm/linux/SDK/allwinner/D1/PET_D1-H_P01_Linux'
我百度了下。说是虚拟机空间不够,但我的虚拟机下新装的,下面是我的硬盘空间使用情况。目前不知道问题出在哪里
-
回复: 全志D1-H,官方SDK Tina2.0 移植 ffmpeg (交叉编译成功,运行时出问题)
@yuzukitsuru 前辈,修改这里面的Makefile,可以加快ffmepg的编译速度,我用了你提供的压缩包,然后编译,感觉只有单线程编译,好慢。
但是还不太清楚需要修改哪里可以加快编译速度