如何解决的 ? 能否详细说下
super0759 发布的帖子
-
npu无法awnn_det_demo 错误,能回答?
root@(none):/usr/bin/det_demo# ./awnn_det_demo testcase.txt
info: models/pdet/1.0.1_Gamma.nb, 1, 0.250000, 1
input:body_640x360.nv12, 640, 360
info: models/pdet/3.0.1_Beta.nb, 3, 0.250000, 1
input:body_384x216.nv12, 384, 216
info: models/fdet/Facedet_480_288_nv12.nb, 4, 0.600000, 1
input:face_480x270.nv12, 480, 270
count=3
=====info 05dc32ee903c08a3abd53ddd829a8dd5 640 384 10061394 0.000000
=====info 827b3a725d0fd7173338a56fd06c8db0 384 224 2829624 0.000000
=====info 3d42fcd47490a62d52ea0[48198.853183] npu[37e][37e] drv open process pid=37e, tid=37e
21760ddc7d6 480 288 3639619 0.00[48198.861633] ------lq KERNEL_CMD_INIT0000
mem_size: 16530637
Versio---lq vpmdENABLE_MULTIPLE_TASK=1 context->initialize=0
n: AWNN_LIB_1.0.4[48198.876741] npu[37e][37e] start create initialize mutex ...
[48198.884839] npu[37e][37e] linux kernel version=0x409bf
[48198.890644] npu[37e][37e] power on vip hardware0.
[48198.895936] npu[37e][37e] vipcore, device init..
[48198.901230] set_vip_power_clk ON
[48198.906894] enter aw vip mem alloc size 16530637 vip_heap
[48198.970477] aw_vip_mem_alloc vir 0xc50a6000, phy 0x48400000
[48198.976796] npu[37e][37e] gckvip_drv_init kernel logical phy address=0x48400000 virtual =0xc50a6000
[48198.987190] npu[37e][37e] VIPLite driver software version 1.13.0.0-AW-2023-08-21
[48198.995504] npu[37e][37e] vpmdENABLE_RECOVERY=0
[48199.000696] npu[37e][37e] vpmdHARDWARE_TIMEOUT=20000
[48199.006284] npu[37e][37e] vpmdENABLE_HANG_DUMP=2
[48199.011498] npu[37e][37e] vpmdENABLE_USE_AGENT_TRIGGER=0
[48199.017484] npu[37e][37e] vpmdENABLE_CAPTURE=0
[48199.022479] npu[37e][37e] vpmdENABLE_CAPTURE_IN_KERNEL=0
[48199.028463] npu[37e][37e] vpmdCREATE_NETWORK_FROM_FLASH=0
[48199.034533] npu[37e][37e] vpmdENABLE_WAIT_LINK_LOOP=0
[48199.040226] npu[37e][37e] vpmdENABLE_FLUSH_CPU_CACHE=1, LINE_SIZE=64
[48199.047428] npu[37e][37e] vpmdENABLE_VIDEO_MEMORY_CACHE=0
[48199.053501] npu[37e][37e] vpmdENABLE_LAYER_DUMP=0
[48199.058817] npu[37e][37e] vpmdENABLE_CNN_PROFILING=0
[48199.064400] npu[37e][37e] vpmdENABLE_BW_PROFILING=0
[48199.069900] npu[37e][37e] vpmdENABLE_MEMORY_PROFILING=0
[48199.075773] npu[37e][37e] vpmdENABLE_DEBUG_LOG=4
[48199.080977] npu[37e][37e] vpmdENABLE_SUPPORT_CPU_LAYER=1
[48199.086962] npu[37e][37e] vpmdENABLE_SYS_MEMORY_HEAP=1
[48199.092739] npu[37e][37e] vpmdENABLE_VIDEO_MEMORY_HEAP=1
[48199.098767] npu[37e][37e] vpmdENABLE_MMU=0
[48199.103376] npu[37e][37e] vpmdPOWER_OFF_TIMEOUT=10000
[48199.109071] npu[37e][37e] vpmdENABLE_SUSPEND_RESUME=1
[48199.114751] npu[37e][37e] vpmdENABLE_USER_CONTROL_POWER=0
[48199.120834] npu[37e][37e] vpmdENABLE_CANCELATION=1
[48199.126222] npu[37e][37e] vpmdENABLE_DEBUGFS=1
[48199.131229] npu[37e][37e] vpmdENABLE_CREATE_BUF_FD=1
[48199.136822] npu[37e][37e] vpmdENABLE_GROUP_MODE=1
[48199.142109] npu[37e][37e] vpmdENABLE_NODE=0
[48199.146864] npu[37e][37e] vpmdENABLE_CHANGE_PPU_PARAM=1
[48199.152741] npu[37e][37e] vpmdENABLE_FUNC_TRACE=0
[48199.158047] npu[37e][37e] vpmdENABLE_REDUCE_MEMORY=0
[48199.163629] npu[37e][37e] vpmdENABLE_RESERVE_PHYSICAL=0
[48199.169516] npu[37e][37e] vpmdENABLE_POWER_MANAGEMENT=1
[48199.175391] npu[37e][37e] vpmdENABLE_CLOCK_SUSPEND=1
[48199.180985] npu[37e][37e] vpmdDUMP_NBG_RESOURCE=0
[48199.186273] npu[37e][37e] vpmdENABLE_POLLING=0
[48199.191303] npu[37e][37e] hashmap 0xc0a74e74: insert index=1, handle=0x0000037e
[48199.199590] npu[37e][37e] axi sram address=0x00000000, vipsram address=0x00400000
[48199.208028] npu[37e][37e] core 0 axi sram size=0x00000000, vip sram size=0x20000
[48199.216347] npu[37e][37e] max_core_count=0, total core count=1, total device=1
[48199.224508] npu[37e][37e] device_id=0, this device core count=1, core_fscale_percent=-1053044736
[48199.234396] npu[37e][37e] core_id=0
[48199.238533] npu[37e][37e] queue create read signal=0xc13bd240
[48199.244995] npu[37e][37e] queue create write signal=0xc13bd280
[48199.251766] npu[37e][37e] device0, mt_hashmap=0xc3968074
[48199.257790] npu[384][384] multi-thread dev0 process thread start
[48199.264632] npu[37e][37e] multi-task is enabled...
[48199.270255] npu[37e][37e] power management is enabled ...
[48199.276350] npu[37e][37e] video memory heap base physical=0x48400000, user logical=0x (null), kernel logical=0xc50a6000, size=0xfc3ccd bytes
[48199.290755] npu[37e][37e] video memory heap total free: 0xfbee0d bytes, node used: 0x4ec0 bytes, node capacity: 1008
[48199.302715] npu[37e][37e] video memory heap capability=0xe7b
[48199.309110] npu[37e][37e] video memory alloc_flag=0x611, align=0x40, size=0x280
[48199.317368] npu[37e][37e] video memory heap_alloc, physical=0x48400000, virtual=0x48400000, kernel logical=0xc50a6000, user logical=0x (null), handle=0xc2646b80, size=0x280, align=0x40, allo_flag=0x611
[48199.337614] npu[37e][37e] init register capture done
[48199.343203] npu[37e][37e] ver1=0x9000, ver2=0x8303, cid=0x00ee, date=0x20210128
[48199.352017] npu[37e][37e] start prepare init commands
[48199.357722] npu[37e][37e] video memory alloc_flag=0x641, align=0x40, size=0x100
[48199.365956] npu[37e][37e] video memory heap_alloc, physical=0x48401000, virtual=0x48401000, kernel logical=0xc50a7000, user logical=0x00001000, handle=0xc2646080, size=0x100, align=0x40, allo_flag=0x641
[48199.386208] npu[37e][37e] database convert from first_free_pos=0x2 handle=0xc2646080 to id=0x15000001, pid=37e
[48199.397518] npu[37e][37e] hardware initialize core0..
[48199.403214] npu[37e][37e] MMU is disabled
[48199.408048] npu[37e][37e] submit initialize commands size=0xa0, hand=0xc2646080
[48199.416286] npu[37e][37e] dev0 wait mem_handle=0xc2646080 start
[48199.422963] npu[37e][37e] irq check try count=0, wait irq value=0x10
[48199.430127] npu[37e][37e] HASHMAP 0xc0a77418 GET BY HANDLE: handle 0xc2646080 not exist in hashmap
[48199.440216] npu[37e][37e] end profiling can't find handle=0xc2646080
[48199.447428] npu[37e][37e] dev0 wait mem_handle=0xc2646080 done
[48199.453991] npu[37e][37e] initialize commands done
[48199.459398] npu[37e][37e] hardware initialize done core_count=1
[48199.466058] npu[37e][37e] VIP Frequency:
[48199.470490] npu[37e][37e] set hardware frequency fscale=64, percent=100
[48199.527988] npu[37e][37e] core[0] Core Frequency=347992554 HZ
[48199.534648] npu[37e][37e] core[0] PPU Frequency=347996212 HZ
[48199.541328] npu[37e][37e] hardware clock suspend.
[48199.546686] npu[37e][37e] query hw0 idle, wait time=10ms, fast=1, reg=0x7fffffff, is_idle=Y
[48199.556088] npu[37e][37e] do init done initialize num=1 pid=0x37e.
[48199.563090] npu[37e][37e] --lq -> drv release process pid=37e, tid=37e
[48199.630482] npu[37e][37e] start to destroy resource, pid=37e, tid=37e
[48199.637754] npu[37e][37e] hashmap 0xc0a74e74: remove index=1, handle=0x0000037e
[48199.645978] npu[37e][37e] start to destroy vip pid=0x37e..
[48199.652217] npu[384][384] multi-task thread exit
[48199.657442] npu[37e][37e] free video memory handle=0xc2646080
[48199.657468] npu[385][385] power management thread wake up.
[48199.657474] npu[385][385] power manage thread not running, exit thread after wait signal
[48199.657478] npu[385][385] power management thread exit
[48199.657537] npu[37e][37e] free video memory handle=0xc2646b80
[48199.657550] npu[37e][37e] video memory heap destroy....
[48199.657567] npu[37e][37e] power management uninit done
[48199.703541] npu[37e][37e] gckvip_drv_exit, aw_vip_mem_free
[48199.709814] aw_vip_mem_free vir 0xc50a6000, phy 0x48400000
[48199.719837] npu[37e][37e] power off vip hardware0.
[48199.725243] npu[37e][37e] vipcore, device un-init..
[48199.730847] npu[37e][37e] destroy initialize mutex
[48199.736254] npu[37e][37e] end to destroy vip..
[0xb6f2e560]gcvip_os_init[125], fail to mmap device vipcore, video memory size: 0xfc3ccd
[0xb6f2e560]gcvip_user_init[347], fail to initialize OS, status=-2.
[0xb6f2e560]gcvip_init[4216], failed to user init
E viplite init failed!
---------lq wait 20s memsize: 16530637
[0xb6f2e560]gcvip_os_call_kernel[332], failed os is NULL, command: CMD_DESTROY
[0xb6f2e560]gcvip_user_destroy[419], fail to call kernel cmd destroy
[0xb6f2e560]gcvip_os_uninit[164], failed os is NULL in uninit
[0xb6f2e560]gcvip_destroy[4303], failed to user destroy
E viplite uninit failed! -
partno erro : can't find partition bootloader partno erro : can't find partition boot-resource Get bootloader and boot-resource partition number fail! partno erro : can't find partition bootloader partno erro : can't find partition boot-resource
partno erro : can't find partition bootloader
partno erro : can't find partition boot-resource
Get bootloader and boot-resource partition number fail!
partno erro : can't find partition bootloader
partno erro : can't find partition boot-resource -
uboot 无法启动,pack 打包, 如何自定义自己板卡,相关文件配置问题
按照提示需改,发现uboot 无法启动,请问如何配置: uboot打印如下 :
U-Boot 2018.07 (Jun 02 2024 - 21:21:38 +0800) Allwinner Technology
[00.503]CPU: Allwinner Family
[00.506]Model: sun8iw21
[00.508]DRAM: 64 MiB
[00.512]Relocation Offset is: 00ece000
[00.545]secure enable bit: 0
E/TC:0 fdt_getprop_u32:343 prop trace_level not found
[00.561]CPU=900 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=24Mhz MBus=300Mhz
[00.567]gic: sec monitor mode
sunxi flash map init
SPI ALL: ready
[00.574]line:724 init_clocks
[00.577]flash init start
[00.579]workmode = 0,storage type = 0
[00.587]sunxi-spinand-phy: spinand sample_mode:1 sample_delay:1adevice nand0 <nand>, # parts = 4
#: name size offset mask_flags
0: boot0 0x00100000 0x00000000 1
1: uboot 0x00300000 0x00100000 1
2: secure_storage 0x00100000 0x00400000 1
3: sys 0x07b00000 0x00500000 0active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000
defaults:
mtdids : nand0=nand
mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
[00.704]ubi0: attaching mtd4
[00.933]ubi0: scanning is finished
[00.943]ubi0: attached mtd4 (name "sys", size 123 MiB)
[00.948]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
[00.954]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
[00.960]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[00.966]ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0
[00.972]ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[00.978]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[00.986]ubi0: available PEBs: 0, total reserved PEBs: 492, PEBs reserved for bad PEB handling: 20
[00.994]sunxi flash init ok
[00.997]drv_disp_init
[01.004]handle_num : 4
partno erro : can't find partition bootloader
partno erro : can't find partition boot-resource
Get bootloader and boot-resource partition number fail!
request pwm success, pwm6:pwm6:0x2000c00.
[01.356]drv_disp_init finish
[01.521]Loading Environment from SUNXI_FLASH... *** Warning - bad CRC, using default environment*** Warning - no device, using default environment
Failed (-5)
[01.551]boot_gui_init:start
[01.554]set disp.dev2_output_type fail. using defval=0
[01.559][T050K589 LCD INFO] LINE:0142-->lcd_open_flow:
[01.565][T050K589 LCD INFO] LINE:0163-->lcd_power_on:
[01.583]set disp.fb0_rot_used fail. using defval=0
[01.587]set disp.fb0_rot_degree fail. using defval=0
[01.593]boot_gui_init:finish
[01.598][T050K589 LCD INFO] LINE:0441-->lcd_panel_init:
[01.615][T050K589 LCD INFO] LINE:0456-->lcd_panel_init:initialization:jd9365
partno erro : can't find partition bootloader
partno erro : can't find partition boot-resource
[01.732]Get bootloader and boot-resource partition number fail!
[01.761]update bootcmd
[01.786]change working_fdt 0x42a8de70 to 0x42a6de70
[01.798]## error: update_fdt_dram_para : FDT_ERR_NOTFOUND
[01.807][T050K589 LCD INFO] LINE:0199-->lcd_bl_open:
[01.819]LCD open finish
partno erro : can't find partition bootloader
partno erro : can't find partition boot-resource
Get bootloader and boot-resource partition number fail!
partno erro : can't find partition bootloader
partno erro : can't find partition boot-resource
Get bootloader and boot-resource partition number fail!
partno erro : can't find partition bootloader
partno erro : can't find partition boot-resource
Get bootloader and boot-resource partition number fail!
[02.004]update dts
Hit any key to stop autoboot: 0Error: "distro_bootcmd" not defined
=> print
aw-ubi-spinand.ubootblks=24
baudrate=115200
bootcmd=run distro_bootcmd
bootdelay=2
fdtcontroladdr=42a8de70
filesize=10000
force_normal_boot=1
mtdids=nand0=nand
mtdparts=mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
partition=nand0,0
partitions=mbr@ubi0_0:boot-res@ubi0_1:env@ubi0_2:boot@ubi0_3:rootfs@ubi0_4:rootfs_data@ubi0_5:UDISK@ubi0_6:
rotpk_status=0
ubi_attach_mtdnum=3Environment size: 450/131068 bytes
=> -
回复: env.cfg partitions=${partitions} 这个变量在哪儿赋值
谢谢 ,我遇到一个问题, 问了创龙的人他们说是打包的时候生成的
uboot 打印
=> print
aw-ubi-spinand.ubootblks=24
boot_fastboot=fastboot
boot_normal=sunxi_flash read 44800000 ${boot_partition};bootm 44800000
boot_partition=boot
boot_recovery=sunxi_flash read 44800000 extend;bootm 44800000
bootcmd=run setargs_nand_ubi boot_normal
bootdelay=1
bootreason=button
coherent_pool=32K
console=ttyS0,115200
earlyprintk=sunxi-uart,0x02500000
fastboot_key_value_max=0x8
fastboot_key_value_min=0x2
fdtcontroladdr=41eaee70
filesize=10000
force_normal_boot=1
init=/init
initcall_debug=0
loglevel=8
mmc_root=/dev/mmcblk0p4
mtd_name=sys
mtdids=nand0=nand
mtdparts=mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
nand_root=/dev/ubiblock0_4
nor_root=/dev/mtdblock3
partition=nand0,0
partitions=mbr@ubi0_0:boot-res@ubi0_1:env@ubi0_2:boot@ubi0_3:rootfs@ubi0_4:UDISK@ubi0_5:
rdinit=/rdinit
recovery_key_value_max=0x13
recovery_key_value_min=0x10
root_partition=rootfs
rootfstype=squashfs
rotpk_status=0
setargs_mmc=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} rootwait init=${init} partitions=${partitions} cma=${cma} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} selinux=${selinux} specialstr=${specialstr} coherent_pool=${coherent_pool} ion_carveout_list=${reserve_list}
setargs_nand=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} ubi.mtd=${mtd_name} root=${nand_root} rootfstype=${rootfstype} rootwait init=${init} rdinit=${rdinit} partitions=${partitions} cma=${cma} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} selinux=${selinux} specialstr=${specialstr} coherent_pool=${coherent_pool} ion_carveout_list=${reserve_list}
setargs_nand_ubi=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
setargs_nor=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} rootwait init=${init} rdinit=${rdinit} partitions=${partitions} cma=${cma} coherent_pool=${coherent_pool} ion_carveout_list=${reserve_list}
ubi_attach_mtdnum=3
verify=NEnvironment size: 2581/131068 bytes
=> -
env.cfg partitions=${partitions} 这个变量在哪儿赋值
setargs_nand=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} ubi.mtd=${mtd_name} root=${nand_root} rootfstype=${rootfstype} rootwait init=${init} rdinit=${rdinit} partitions=${partitions} cma=${cma} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} selinux=${selinux} specialstr=${specialstr} coherent_pool=${coherent_pool} ion_carveout_list=${reserve_list}
${partitions} 这个是 在哪儿 别替换的 ,源是在哪儿 ,如何被替换 。
-
回复: V853 BT656/BT1120输入无法产生中断
@mcy_cool 你的 是哪个芯片 ,bt656 是不需要h,v的 ,sav 会自己区别 ,拿到的就是yuv。
两路没通 ,1路 可以 。 -
yolov3的 例子 在 v851s 无法运行
1, 已经 按照文档 ,生成了 一个yolo3-tiny.nb 的 模型 。
2, yolo3代码/*------------------------------------------- Main Functions -------------------------------------------*/ int main(int argc, char **argv) { vip_status_e status = VIP_SUCCESS; vip_network_items *network_items = VIP_NULL; if (argc < 3) { printf("%s\n", usage); printf("Arguments count %d is incorrect!\n", argc); return -1; } /* Initialize vip lite */ status = vip_init(22 * 1024 * 1024); _CHECK_STATUS(status, final);
3, 运行看来 内存够,但是 报这个错误
root@TinaLinux:/mnt/UDISK# ls Samples human.nb network_binary.nb sample face.nb images overlay yolo3_tiny.nb root@TinaLinux:/mnt/UDISK# yolov3 yolo3_tiny.nb images/416.jpg [0xb6f45560]vip_init[104], [ 5017.823292] npu[3f3][3f3] vipcore, device init.. The version of Viplite is: 1.8[ 5017.830737] set_vip_power_clk ON .0-0-AW-2022-04-21 [ 5017.839122] enter aw vip mem alloc size 23068672 [ 5017.862983] aw_vip_mem_alloc vir 0xc5801000, phy 0x48800000 [ 5017.869450] npu[3f3][3f3] gckvip_drv_init kernel logical phy address=0x4880000 0 virtual =0xc5801000 Create Neural Network: 772.79ms or 772792.31us Start run graph [1] times... Run the 1 time: 20.64ms or 20636.42us vip run network execution time: Total 20.90ms or 20897.33us Average 20.90ms or 20897.33us data_format=2 buff_size=43095 data_format=2 buff_size=172380 [ 5018.989366] npu[3f3][3f3] gckvip_drv_exit, aw_vip_mem_free [ 5018.995563] aw_vip_mem_free vir 0xc5801000, phy 0x48800000 [ 5019.001841] aw_vip_mem_free dma_unmap_sg_atrs [ 5019.008456] aw_vip_mem_free ion_unmap_kernel [ 5019.015041] aw_vip_mem_free ion_free [ 5019.028767] aw_vip_mem_free ion_client_destroy [ 5019.034848] npu[3f3][3f3] vipcore, device un-init.. Segmentation fault (core dumped) root@TinaLinux:/mnt/UDISK#
-
sample_odet_demo 跑起来全是是错误 ?是配置不对吗?
请问如何配置?
root@TinaLinux:/mnt/UDISK/sample# ./sample_odet_demo WARNING: Logging before InitGoogleLogging() is written to STDERR I0101 09:43:07.865566 1003 du[ 32.217717] npu[3eb][3eb] vipcore, device init.. p2SeldomUsedFd.c:20] <[ 32.224769] set_vip_power_clk ON dup2SeldomUsedFdInit> gFdLock in[ 32.233260] enter aw vip mem alloc size 75 it main line 1879, run start! [ 32.238644] aw_vip_mem_alloc vir 0xc4bc2000, phy 0x486f2000 $$$$$$$$$------>>> ####---->> [ 32.247573] npu[3eb][3eb] gckvip_drv_init kernel logical phy address=0x486f2000 virtual =0xc4bc2000 Firmware compile time:Jan 8 202[ 32.261192] npu[3eb][3eb] vide mem node count=0, node capacity=0 3 05:18:40 [0xb6fbd560]vip_init[ 32.270258] npu[3eb][3eb] failed to new node. [104], The version of Viplite [ 32.277830] npu[3eb][3eb] failed to create mutex for video heap is: 1.8.0-0-AW-2022-04-21 [ 32.287297] npu[3eb][3eb] fail to construct video memory heap [ 32.296054] npu[3eb][3eb] fail to initialize video memory heap [ 32.302621] npu[3eb][3eb] vipocre, failed to kernel call, command[0]: CMD_INIT, status=-2 [ 32.311875] npu[3eb][3eb] vipocre, failed to ioctl, command[0]: CMD_INIT [0xb6fbd560]gcvip_os_call_kernel[344], fail to ioctl vipcore, command[0]:CMD_INIT, status=-2 [0xb6fbd560]gcvip_os_init[99], fail to call kernel for cmd init, status=-2. [0xb6fbd560]gcvip_user_init[339], fail to initialize OS, status=-2. [0xb6fbd560]gcvip_init[3479], failed to user ini[ 32.343238] VE: before freq=300000000 t Error: sample_odet_demo/yolov[ 32.348588] VE: real freq=300000000 3-tiny_nbg_viplite/main.c: odet_init at 230 load_vipp_parameters line 137, run start! load_vipp_parameters line 211, run finish! mpp_init line 219, run start! I0101 09:43:07.976418 1003 mpi_sys.c:840] <AW_MPI_SYS_SetConf> kfctmpdir is [/tmp] >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Media Process Platform<<<<<<<<<<<<<<<<<<<<<<<<<<<< modName : MPP-Platform tag : V1.0 Release branch: v5-dev commit: 4eed413532ad87725895a8cb1ba75e22fc328233 date : 20170725 author: jenkins iniparser: cannot open /etc/cedarx.conf iniparser: cannot open /vendor/etc/cedarx.conf I0101 09:43:07.990907 1003 mpi_sys.c:1280] <AW_MPI_SYS_Init> ISP init [ISP]>>>>>>>>>>>>>>>>>>>> ISP VERSION INFO <<<<<<<<<<<<<<<<<<< IPCORE: ISP600 branch: libisp-dev commit: 14df8348718d093707641fea73eba7db962885f5 date : Thu Jul 14 15:40:38 2022 +0800 author: <mayifei@allwinnertech.com> -------------------------------------------------------- I0101 09:43:07.994990 1003 mpi_sys.c:1282] <AW_MPI_SYS_Init> ISP init done INFO : cedarc <VeInitialize:1185>: *** ic_version = 0x1302000023010, I0101 09:43:08.017268 1003 hwdisplay.c:84] <hw_display_init> I0101 09:43:08.018120 1003 hwdisplay.c:993] <hwd_init> (hwd_init 993) I0101 09:43:08.019233 1003 hwdisplay.c:1048] <hwd_init> ret[0][2,0]ch[0]lyl[0] init: enable[0], screenwin[0,0, 0x0], zorder[0], alpha[mode:0, value:0] I0101 09:43:08.025741 1003 alsa_interface.c:701] <alsaOpenMixer> open mixer:hw:0 I0101 09:43:08.111365 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADC1 ADC2 swap I0101 09:43:08.111574 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADC1 volume I0101 09:43:08.111682 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADC2 volume I0101 09:43:08.111774 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADCDRC I0101 09:43:08.111853 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADCHPF I0101 09:43:08.111952 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:DAC volume I0101 09:43:08.112034 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:DACDRC I0101 09:43:08.112108 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:DACHPF I0101 09:43:08.112180 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEIN I0101 09:43:08.112252 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEINL gain volume I0101 09:43:08.112326 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEINR gain volume I0101 09:43:08.112396 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEOUT I0101 09:43:08.112669 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEOUT Output Select I0101 09:43:08.112984 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEOUT volume I0101 09:43:08.113159 1003 alsa_interface.c:756] <alsaOpenMixer> set playback vol_val to value: 27 I0101 09:43:08.113261 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC1 I0101 09:43:08.113483 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC1 Input Select I0101 09:43:08.113593 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC1 gain volume I0101 09:43:08.113707 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC2 I0101 09:43:08.113791 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC2 Input Select I0101 09:43:08.113867 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC2 gain volume I0101 09:43:08.113953 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:SPK I0101 09:43:08.114168 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:digital volume I0101 09:43:08.114277 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:rx sync mode I0101 09:43:08.114360 1003 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:tx hub mode mpp_init line 232, run finish! run_project line 1690, run start! I0101 09:43:08.118217 1003 hwdisplay.c:1248] <hwd_get_disp_type> Current the disp_type:0x1 tv_mode:0x0 config_vipp_display2_vo line 1430, run start! config_vipp_display2_vo line 1453, vipp[4] vir_chn[0] creating. [ISP]video device name is vin_video4 [ISP]open video device[4], detect isp0 success! I0101 09:43:08.125501 1003 media_debug.c:45] <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null) I0101 09:43:08.126932 1003 videoInputHw.c:1015] <videoInputHw_SetChnAttr> ViCh[4], user set disable Encpp open /dev/sunxi_soc_info failed![ISP]open isp device[0] success! [ISP_WARN]sdcard is not mounted!!! [ISP]prefer isp config: [gc2053_mipi], 1920x1088, 30, 0, 0 [ISP_WARN]cannot find gc2053_mipi_1920_1088_30_0_0 isp config, use gc2053_mipi_1920_1088_20_0_0 -> [gc2053_mipi_isp600_20220511_164617_vlc4_day] [ISP]create isp0 server thread! I0101 09:43:08.508569 1003 VideoVirVi_Component.c:1160] <VideoViComponentInit> VideoVirvi component Init! thread_id[0xb64b6d50] I0101 09:43:08.510962 1007 videoInputHw.c:4787] <VideoInputHw_CapThread> loop VideoInputHw_CapThread vipp_id = 4, buf_num=5. I0101 09:43:08.511957 1003 hwdisplay.c:1121] <hwd_layer_request_hlay> hlay:4, zorder=4, cnt:2 I0101 09:43:08.512994 1003 mpi_vo.c:1038] <AW_MPI_VO_SetVideoLayerAttr> ch[1]lyl[0]:dispRect changed, [0, 0, 320x240]->[0, 0, 720x1280] I0101 09:43:08.513868 1003 hwdisplay.c:409] <hwd_layer_set_rect> ch[1]lyl[0]: screen_win[0,0, 720x1280] config_vipp_display2_vo line 1564, create vo channel[0] success! I0101 09:43:08.518914 1003 mpi_vo.c:1086] <AW_MPI_VO_SetVideoLayerPriority> layer[4] priority changed [4]->[11] config_vipp_display2_vo line 1611, run finish! [ISP]prefer isp config: [gc2053_mipi], 1920x1088, 30, 0, 0 npu_worker_thread line 1676, run start! npu_config_and_run line 779, run start! npu_config_and_run line 802, vipp[8] vir_chn[0] creating. [ISP]video device name is vin_video8 [ISP]open video device[8], detect isp0 success! I0101 09:43:08.520969 1010 media_debug.c:45] <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null) I0101 09:43:08.521285 1010 videoInputHw.c:1015] <videoInputHw_SetChnAttr> ViCh[8], user set disable Encpp [ISP_WARN]cannot find gc2053_mipi_1920_1088_30_0_0 isp config, use gc2053_mipi_1920_1088_20_0_0 -> [gc2053_mipi_isp600_20220511_164617_vlc4_day] [ISP_ERR]isp_stat_process_buffer, line: 268,AEWB: stats error, skipping buffer. I0101 09:43:08.685088 1009 video_render_linux.cpp:224] <vr4l_init> mDisplayFormat[0x101], new CedarXNativeRenderer I0101 09:43:08.685342 1009 CedarXNativeRenderer.cpp:176] <CedarXNativeRenderer> hwc disp fmt[0x62], color space:260 I0101 09:43:08.685472 1009 hwdisplay.c:240] <hwd_layer_set_src> x: 0, y: 0, width: 0x500, height: 0x2d0 I0101 09:43:08.685569 1009 hwdisplay.c:247] <hwd_layer_set_src> width: 0x50000000000, height: 0x2d000000000 I0101 09:43:08.685656 1009 hwdisplay.c:367] <hwd_layer_set_src> set fb.format 98 76, color_space 260 end, size0[1280x720], size1[640x360] vocallback_wrapper line 277, VO callback: VO Layer[4] chn[0] event:257 vocallback_wrapper line 289, vo layer[4] report video display size[1280x720]. I0101 09:43:08.685853 1009 VideoRender_Component.c:2318] <VideoRender_ComponentThread> init video_render, param: displayRect[0,0][1280x720], bufSize[1280x720], vdecColorFormat[0x6] I0101 09:43:08.685958 1009 mpi_vo.c:508] <VideoRenderEventHandler> KeyFrameDecoded, pts[33018010]us vocallback_wrapper line 277, VO callback: VO Layer[4] chn[0] event:258 vocallback_wrapper line 294, vo layer[4] report rendering start. [ISP_WARN]gc2053_mipi get sensor_temp failed: Invalid argument (22). [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! I0101 09:43:08.739765 1010 VideoVirVi_Component.c:1160] <VideoViComponentInit> VideoVirvi component Init! thread_id[0xb62ead50] I0101 09:43:08.740067 1011 videoInputHw.c:4787] <VideoInputHw_CapThread> loop VideoInputHw_CapThread vipp_id = 8, buf_num=5. I0101 09:43:08.740425 1010 hwdisplay.c:1121] <hwd_layer_request_hlay> hlay:5, zorder=5, cnt:3 I0101 09:43:08.740640 1010 mpi_vo.c:1038] <AW_MPI_VO_SetVideoLayerAttr> ch[1]lyl[1]:dispRect changed, [0, 0, 320x240]->[0, 0, 0x0] I0101 09:43:08.740772 1010 hwdisplay.c:409] <hwd_layer_set_rect> ch[1]lyl[1]: screen_win[0,0, 0x0] open /dev/sunxi_soc_info failed!npu_config_and_run line 912, create vo channel[0] success! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! Usage: nbg_name input_data1 input_data[ 33.223857] L2 PageTable Invalid [ 33.228716] 0x48c22000 is not mapped! [ 33.232815] DE invalid address: 0x48c22000, data:0x0, id:0x4 2... [ 33.239762] [DISP] disp_mgr_set_layer_config,line:1504: [ 33.245429] NULL hdl! [ 33.251672] L2 PageTable Invalid [ 33.255289] 0x48c00000 is not mapped! [ 33.259387] DE invalid address: 0x48c00000, data:0x0, id:0x4 [ 33.268334] L2 PageTable Invalid [ 33.271946] 0x48c00000 is not mapped! [ 33.276043] DE invalid address: 0x48c00000, data:0x0, id:0x4 [ 33.285002] L2 PageTable Invalid [ 33.288621] 0x48c00000 is not mapped! [ 33.292718] DE invalid address: 0x48c00000, data:0x0, id:0x4 [ 33.301661] L2 PageTable Invalid [ 33.305271] 0x48c00000 is not mapped! [ 33.309367] DE invalid address: 0x48c00000, data:0x0, id:0x4 [ 34.309136] [DISP] de_fcm_set_para,line:491: [ 34.313740] fcm lut 0 not find, auto retry after init [ 34.319879] [DISP] de_fcm_set_para,line:491: [ 34.324471] fcm lut 0 not find, auto retry after init Segmentation fault (core dumped)
-
npu vip_init 问题
1, openwrt\package\npu\viplite-driver\include\vip_lite.h
/*! \brief Initial VIP Hardware, VIP lite software environment and power on VIP hardware.- \details when vpmdENABLE_MULTIPLE_TASK set to 0,
This function should be only called once before using VIP hardware if.
when vpmdENABLE_MULTIPLE_TASK set to 1,
vip_init can be called multiple times, but should paired with vip_destroy.
vip_init should be called in every process.
only need call vip_init once in multi-thread. - VIP lite driver would construct some global variable for this call.Also
- it will reset VIP and initialize VIP hardware to a ready state to accept jobs.
- \return <tt>\ref vip_status_e </tt>
- \ingroup group_global
- \version 1.0
*/
VIP_API
vip_status_e vip_init(
vip_uint32_t video_mem_size
);
2, platform\allwinner\eyesee-mpp\middleware\sun8iw21\sample\sample_odet_demo\sdk\include\vip_lite.h
/*! \brief Initial VIP Hardware, VIP lite software environment and power on VIP hardware.
- \details when vpmdENABLE_MULTIPLE_TASK set to 0,
This function should be only called once before using VIP hardware if.
when vpmdENABLE_MULTIPLE_TASK set to 1,
vip_init can be called multiple times, but should paired with vip_destroy.
vip_init should be called in every process.
only need call vip_init once in multi-thread. - VIP lite driver would construct some global variable for this call.Also
- it will reset VIP and initialize VIP hardware to a ready state to accept jobs.
- \return <tt>\ref vip_status_e </tt>
- \ingroup group_global
- \version 1.0
*/
VIP_API
vip_status_e vip_init(
void
);
这两个头文件 ,一个需要初始化分配内存, 一个不需要 ?
- \details when vpmdENABLE_MULTIPLE_TASK set to 0,
-
v851s使用yolo3 demo错误 ,如何优化,如何处理
这个能否优化,如何处理,看是内存不够,如何优化?
root@TinaLinux:/mnt/UDISK# ls 416.jpg overlay root@TinaLinux:/mnt/UDISK# yolov3 /etc/models/yolov3_model.nb 416.jpg [0xb6f0d560]vip_init[104], [ 415.175677] npu[3fd][3fd] vipcore, device init.. The version of Viplite is: 1.8[ 415.183082] set_vip_power_clk ON .0-0-AW-2022-04-21 [ 415.191511] enter aw vip mem alloc size 52428800 [ 415.196750] ion_alloc failed!!npu[3fd][3fd] gckvip_drv_init kernel logical phy address=0 x0 virtual =0x0 [ 415.207929] Unable to handle kernel paging request at virtual address 031f3810 [ 415.216136] pgd = c1d8c000 [ 415.219189] [031f3810] *pgd=00000000 [ 415.223248] Internal error: Oops: 805 [#1] PREEMPT ARM [ 415.228995] Modules linked in: vin_v4l2 gc2053_mipi vin_io videobuf2_v4l2 videobuf2_dma_c ontig videobuf2_memops videobuf2_core xradio_wlan xradio_core xradio_mac [ 415.245199] CPU: 0 PID: 1021 Comm: yolov3 Not tainted 4.9.191 #1 [ 415.251918] Hardware name: sun8iw21 [ 415.255819] task: c37403c0 task.stack: c1d6c000 [ 415.260896] PC is at gckvip_heap_construct+0x8c/0x11c [ 415.266548] LR is at 0x14 [ 415.269476] pc : [<c03a77f8>] lr : [<00000014>] psr: 80000013 [ 415.269476] sp : c1d6dca8 ip : 00000000 fp : 00000ab8 [ 415.282325] r10: 00000000 r9 : 02800000 r8 : 00000a00 [ 415.288171] r7 : 00000000 r6 : c0a64b44 r5 : 031f3800 r4 : 00000a00 [ 415.295470] r3 : 00000001 r2 : 031f3800 r1 : cdcdcdcd r0 : c0a64b40 [ 415.302776] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 415.310761] Control: 10c5387d Table: 41d8c059 DAC: 00000051 [ 415.317185] Process yolov3 (pid: 1021, stack limit = 0xc1d6c208) [ 415.323902] Stack: (0xc1d6dca8 to 0xc1d6e000) [ 415.328780] dca0: c0a64b40 00000000 03200000 c0a64aa0 00000000 c03a7dd0 [ 415.337936] dcc0: 00000000 00000000 00000a00 c03ace80 c0a64aa0 00000001 c2364000 c0a64aa0 [ 415.347087] dce0: 00000000 00000000 00000000 000014c8 000003fd c03a3630 00000018 c2365000 [ 415.356243] dd00: 00000000 c1d6dd98 bef718a0 00000004 00000051 bef718a0 c1d6c000 00000036 [ 415.365394] dd20: 00000000 c03a3bf8 00000000 c340c000 00000001 c1d6ddb8 0000000a c0147370 [ 415.374545] dd40: c35d4e00 00000000 c35d4e00 bef718a0 00000004 00000051 c1d6dd98 bef718a0 [ 415.383696] dd60: 00000004 00000051 bef718a0 c03ab194 c0a17160 00000000 c340c000 00000000 [ 415.392853] dd80: 00000000 b6f0c2b8 00000004 b6f0e1a0 bef71964 00000000 03200000 c1d6ded8 [ 415.402004] dda0: c0a146f0 ffffe000 c0a146f0 c1d6ddc8 c0a4965c 60000013 00000000 c36aed80 [ 415.411155] ddc0: c0a29278 ffffe000 c0a29278 c1d6dde8 c0a4965c 60000013 c1d90a80 c1d90a88 [ 415.420306] dde0: 00000000 c06848e4 00000001 c1d6dde8 00000001 c0a29278 c1d90a80 c36aed80 [ 415.429463] de00: c3719028 c03aafa4 c0a292bc 00000000 c2812c8c 00000000 00000000 c02f11c0 [ 415.438614] de20: c27f2d00 00000000 00000000 c01d34c4 c1d6ded8 00000000 00000018 ffffff9c [ 415.447770] de40: c1d6ded8 c01beefc 00000000 c1d6ded8 c1d90a80 c01c3b9c 00000001 00000001 [ 415.456921] de60: c1d6df7c 00000000 c1d6c000 00020002 c28023b8 00000001 00000041 00000006 [ 415.466072] de80: 00000000 00000000 c1d2bcc0 c037bfe8 c037f99c 00000002 00000002 c3719028 [ 415.475223] dea0: c27f2d10 c2812c38 c1d2bcc0 00000001 c037c04c 00000003 c1d6df7c 00000001 [ 415.484375] dec0: ffffff9c c0106f48 c1d6c000 00000005 00000000 c01c3c70 c27f2d10 c2812c38 [ 415.493526] dee0: 32504bcc 00000007 c370c015 82737029 00000000 c28a8220 c3719028 bef718a0 [ 415.502677] df00: c3719028 c1d90a80 00007530 c01c5b48 bef718a0 c01c6434 b6e36c4b 00000001 [ 415.511828] df20: 00024000 00025000 00100873 c019f4fc c1d90cc0 c1d90a80 00000000 c01d1878 [ 415.520980] df40: 00000003 c1d90cc0 c3401b80 c370c000 00000000 00000003 c1d90a80 c370c000 [ 415.530123] df60: ffffff9c c0106f48 c1d6c000 00000003 c1d90a80 c1d90a80 00007530 bef718a0 [ 415.539274] df80: c1d6c000 00000036 00000000 c01c65bc 00000000 b6e49fa0 b6e0f818 00000036 [ 415.548425] dfa0: c0106f48 c0106d20 00000000 b6e49fa0 00000003 00007530 bef718a0 bef71890 [ 415.557576] dfc0: 00000000 b6e49fa0 b6e0f818 00000036 bef71964 00000000 00000020 00000000 [ 415.566727] dfe0: b6e2049c bef71878 b6e0df3c b6ec0870 80000010 00000003 00000000 00000000 [ 415.575891] [<c03a77f8>] (gckvip_heap_construct) from [<c03a7dd0>] (gckvip_mem_heap_init+ 0xe0/0x118) [ 415.586114] [<c03a7dd0>] (gckvip_mem_heap_init) from [<c03a3630>] (do_init+0x4b8/0x700) [ 415.595077] [<c03a3630>] (do_init) from [<c03a3bf8>] (gckvip_kernel_call+0xa0/0x9ec) [ 415.603751] [<c03a3bf8>] (gckvip_kernel_call) from [<c03ab194>] (drv_ioctl+0x10c/0x38c) [ 415.612716] [<c03ab194>] (drv_ioctl) from [<c01c5b48>] (vfs_ioctl+0x18/0x3c) [ 415.620611] [<c01c5b48>] (vfs_ioctl) from [<c01c6434>] (do_vfs_ioctl+0x794/0x8e8) [ 415.628989] [<c01c6434>] (do_vfs_ioctl) from [<c01c65bc>] (SyS_ioctl+0x34/0x5c) [ 415.637176] [<c01c65bc>] (SyS_ioctl) from [<c0106d20>] (ret_fast_syscall+0x0/0x54) [ 415.645655] Code: e1530004 15902028 1022239e 12833001 (15821010) [ 415.652746] ---[ end trace bbd8e339bc884c65 ]---
-
回复: 大佬们你们用pegasus有没有碰到这个问题?
@super0759 是dataset.txt 里写错了
还可能遇到 一些问题
编译的时候 需要 这个
sudo apt-get install libjpeg-dev~/.bashrc 应该添加以下的
ACUITY_TOOLS_METHOD=acuity-toolkit-binary-6.6.1
export ACUITY_PATH=/home/allwinner/VeriSilicon/$ACUITY_TOOLS_METHOD/bin/
export VIV_SDK=/home/allwinner/VeriSilicon/VivanteIDE5.7.0/cmdtools/
export PATH=$PATH:/home/allwinner/VeriSilicon/$ACUITY_TOOLS_METHOD/bin/:/home/allwinner/VeriSilicon/VivanteIDE5.7.0/ide/
export pegasus=/home/allwinner/VeriSilicon/$ACUITY_TOOLS_METHOD/bin/pegasus
alias pegasus=/home/allwinner/VeriSilicon/$ACUITY_TOOLS_METHOD/bin/pegasus -
回复: 如何修改V853-vision的SDK,并烧录到V853s的板子上呢?
@yelong98 如何 变成商业 用户 , 我们 公司 之前 就是 你们的 商业 用户 ,我用之前的 商业 用户是否可以直接申请 。
-
回复: 如何修改V853-vision的SDK,并烧录到V853s的板子上呢?
@whycanservice 请问 我刚下载的 sdk ,只有这个
allwinner@allwinner-VirtualBox:~/tina-v853$ lunchYou're building on Linux
Lunch menu... pick a combo:
1 v853-vision-tina
Which would you like? [Default v853-vision]:是不是哪里不对。
-
回复: YuzuKi X 100ask V851s 体验, 含编译和烧录nand系统
请问 , 按照这个 补丁 , lunch 只有一个 选项 ,请问 ou're building on Linux
Lunch menu... pick a combo:
1 v853-vision-tina
Which would you like?: ^C请问 851的 选项如何出现 。