NPU demo not work, Failed to open device

我使用的固件版本为最新版本,

,然后拉取了npu_demo_binaries项目,进入VIM3L/inceptions3 & ./run.sh,结果报错,应该是提示找不到NPU,但是板子是带有NPU的,固件也是最新的固件,我不知道问题出在哪儿

你这个不是最新的系统,参考下面文档在OTA升级更新下系统。

您说的这个步骤我已经做过很多遍了,还是报一样的错误

提供下如下信息:

$ uname -a
$ cat /etc/fenix-release

你的板子是VIM3L,进去VIM3L目录下运行。

不行的,我是因为VIM3L执行报错才跑到VIM3目录的,

在提供下如下信息:

$ dpkg -l | grep npu
$ lsmod
$ ls /dev/galcore
$ dmesg

,这两条命令执行都报错了

dmesg加sudo,如下:

$ sudo dmesg

4.735802] BTRFS: selftest: Running bitmap only tests
[ 4.735818] BTRFS: selftest: Running bitmap and extent tests
[ 4.735840] BTRFS: selftest: Running space stealing from bitmap to extent
[ 4.736325] BTRFS: selftest: Free space cache tests finished
[ 4.736344] BTRFS: selftest: Running extent buffer operation tests
[ 4.736347] BTRFS: selftest: Running btrfs_split_item tests
[ 4.736370] BTRFS: selftest: Running extent I/O tests
[ 4.736373] BTRFS: selftest: Running find delalloc tests
[ 4.954334] BTRFS: selftest: Running extent buffer bitmap tests
[ 5.026847] BTRFS: selftest: Extent I/O tests finished
[ 5.026852] BTRFS: selftest: Running btrfs_get_extent tests
[ 5.027026] BTRFS: selftest: Running hole first btrfs_get_extent test
[ 5.027061] BTRFS: selftest: Running outstanding_extents tests
[ 5.027113] BTRFS: selftest: Running qgroup tests
[ 5.027117] BTRFS: selftest: Qgroup basic add
[ 5.027173] BTRFS: selftest: Qgroup multiple refs test
[ 5.027267] BTRFS: selftest: Running free space tree tests
[ 5.064323] BTRFS: selftest: sectorsize: 4096 nodesize: 16384
[ 5.064342] BTRFS: selftest: Running btrfs free space cache tests
[ 5.064351] BTRFS: selftest: Running extent only tests
[ 5.064364] BTRFS: selftest: Running bitmap only tests
[ 5.064380] BTRFS: selftest: Running bitmap and extent tests
[ 5.064402] BTRFS: selftest: Running space stealing from bitmap to extent
[ 5.064888] BTRFS: selftest: Free space cache tests finished
[ 5.064891] BTRFS: selftest: Running extent buffer operation tests
[ 5.064894] BTRFS: selftest: Running btrfs_split_item tests
[ 5.064917] BTRFS: selftest: Running extent I/O tests
[ 5.064920] BTRFS: selftest: Running find delalloc tests
[ 5.282348] BTRFS: selftest: Running extent buffer bitmap tests
[ 5.354857] BTRFS: selftest: Extent I/O tests finished
[ 5.354862] BTRFS: selftest: Running btrfs_get_extent tests
[ 5.355038] BTRFS: selftest: Running hole first btrfs_get_extent test
[ 5.355073] BTRFS: selftest: Running outstanding_extents tests
[ 5.355125] BTRFS: selftest: Running qgroup tests
[ 5.355128] BTRFS: selftest: Qgroup basic add
[ 5.355185] BTRFS: selftest: Qgroup multiple refs test
[ 5.355280] BTRFS: selftest: Running free space tree tests
[ 5.392397] BTRFS: selftest: sectorsize: 4096 nodesize: 32768
[ 5.392401] BTRFS: selftest: Running btrfs free space cache tests
[ 5.392409] BTRFS: selftest: Running extent only tests
[ 5.392423] BTRFS: selftest: Running bitmap only tests
[ 5.392439] BTRFS: selftest: Running bitmap and extent tests
[ 5.392462] BTRFS: selftest: Running space stealing from bitmap to extent
[ 5.392959] BTRFS: selftest: Free space cache tests finished
[ 5.392963] BTRFS: selftest: Running extent buffer operation tests
[ 5.392966] BTRFS: selftest: Running btrfs_split_item tests
[ 5.392990] BTRFS: selftest: Running extent I/O tests
[ 5.392994] BTRFS: selftest: Running find delalloc tests
[ 5.610908] BTRFS: selftest: Running extent buffer bitmap tests
[ 5.683457] BTRFS: selftest: Extent I/O tests finished
[ 5.683461] BTRFS: selftest: Running btrfs_get_extent tests
[ 5.683634] BTRFS: selftest: Running hole first btrfs_get_extent test
[ 5.683670] BTRFS: selftest: Running outstanding_extents tests
[ 5.683723] BTRFS: selftest: Running qgroup tests
[ 5.683726] BTRFS: selftest: Qgroup basic add
[ 5.683783] BTRFS: selftest: Qgroup multiple refs test
[ 5.683879] BTRFS: selftest: Running free space tree tests
[ 5.721043] BTRFS: selftest: sectorsize: 4096 nodesize: 65536
[ 5.721047] BTRFS: selftest: Running btrfs free space cache tests
[ 5.721055] BTRFS: selftest: Running extent only tests
[ 5.721069] BTRFS: selftest: Running bitmap only tests
[ 5.721085] BTRFS: selftest: Running bitmap and extent tests
[ 5.721107] BTRFS: selftest: Running space stealing from bitmap to extent
[ 5.721594] BTRFS: selftest: Free space cache tests finished
[ 5.721597] BTRFS: selftest: Running extent buffer operation tests
[ 5.721600] BTRFS: selftest: Running btrfs_split_item tests
[ 5.721626] BTRFS: selftest: Running extent I/O tests
[ 5.721629] BTRFS: selftest: Running find delalloc tests
[ 5.939361] BTRFS: selftest: Running extent buffer bitmap tests
[ 6.012109] BTRFS: selftest: Extent I/O tests finished
[ 6.012114] BTRFS: selftest: Running btrfs_get_extent tests
[ 6.012294] BTRFS: selftest: Running hole first btrfs_get_extent test
[ 6.012356] BTRFS: selftest: Running outstanding_extents tests
[ 6.012412] BTRFS: selftest: Running qgroup tests
[ 6.012416] BTRFS: selftest: Qgroup basic add
[ 6.012474] BTRFS: selftest: Qgroup multiple refs test
[ 6.012577] BTRFS: selftest: Running free space tree tests
[ 7.900742] hdmitx: system: irq 80000002 0
[ 8.408355] hdmitx: system: plugin
[ 8.540629] hdmitx: edid: EDID Parser:
[ 8.540633] hdmitx: hdmitx: reach vesa idx MAX
[ 8.540636] hdmitx: hdmitx: reach vesa idx MAX
[ 8.540639] hdmitx: hdmitx: reach vesa idx MAX
[ 8.540647] hdmitx: hdmitx: reach vesa idx MAX
[ 8.540651] hdmitx: hdmitx: reach vesa idx MAX
[ 8.540655] hdmitx: hdmitx: reach vesa idx MAX
[ 8.540668] hdmitx: edid: get dtd0 vic: 16
[ 8.540673] hdmitx: hdmitx: get PMT vic: 16
[ 8.540676] hdmitx: edid: find IEEEOUT
[ 8.540696] hdmitx: edid: check sum valid
[ 8.540698] hdmitx: edid: check sum valid
[ 8.540703] hdmitx: edid: update rx hdr info 0 at edid parsing
[ 8.540707] hdmitx: edid: check sum valid
[ 8.540710] hdmitx: edid: check sum valid
[ 8.540714] hdmitx: edid: blk0 raw data
[ 8.540736] hdmitx: edid:
00ffffffffffff0010acd7d042374a302e1c010380331d78eaebf5a656519c26
105054a54b00714f8180a9c0d1c00101010101010101023a801871382d40582c
4500fd1e1100001e000000ff00384b4d334e4d320a2020202020000000fc0044
454c4c205032333139480a20000000fd00384c1e5311000a20202020202001c8

[ 8.540739] hdmitx: edid: blk1 raw data
[ 8.540760] hdmitx: edid:
020317b14c9005040302071601141f121365030c001000023a801871382d4058
2c4500fd1e1100001e011d8018711c1620582c2500fd1e1100009e011d007251
d01e206e285500fd1e1100001e8c0ad08a20e02d10103e9600fd1e1100001800
00000000000000000000000000000000000000000000000000000000000000ed

[ 8.540764] hdmitx: system: update physcial size: 510 290
[ 8.540772] hdmitx: system: get current mode: 1080p60hz
[ 8.540776] hdmitx: system: update rx hdr info 0
[ 8.540779] hdmitx: system: update physcial size: 510 290
[ 8.540806] hdmitx: video: already init VIC = 0 Now VIC = 16
[ 8.540811] hdmitx: hw: div40: 0
[ 8.570353] hdmitx: ddc w1b error 0x54 0x20 0x00
[ 8.570359] hdmitx: frac_rate = 1
[ 8.570365] hdmitx: config HPLL = 5940000 frac_rate = 1
[ 8.570421] hdmitx: HPLLv1: 0xdb3a04f7
[ 8.570424] hdmitx: config HPLL done
[ 8.570431] hdmitx: set_hpll_od3_clk_div[610] div = 6
[ 8.570437] hdmitx: j = 4 vid_clk_div = 1
[ 8.570443] hdmitx: set enc for VIC: 16
[ 8.692353] hdmitx: hw: config hdmitx IP vic = 16 cd:4 cs: 2
[ 8.702447] hdmitx: video: Sink is HDMI device
[ 8.702501] hdmitx: hw: set audio
[ 8.702507] hdmitx: hw: hdmitx tx_aud_src = 0
[ 8.702521] hdmitx: fs = 3, cd = 4, tmds_clk = 148352
[ 8.702524] hdmitx: hw: aud_n_para = 5824
[ 8.702534] hdmitx: hw: set channel status
[ 8.702565] hdmitx: audio: Audio Type: PCM
[ 8.702568] hdmitx: hw: set audio
[ 8.702571] hdmitx: hw: hdmitx tx_aud_src = 0
[ 8.702583] hdmitx: fs = 3, cd = 4, tmds_clk = 148352
[ 8.702586] hdmitx: hw: aud_n_para = 5824
[ 8.702595] hdmitx: hw: set channel status
[ 8.702625] hdmitx: audio: Audio Type: PCM
[ 11.230501] EXT4-fs (mmcblk0p6): mounted filesystem with writeback data mode. Opts: data=writeback
[ 11.324381] vout: aml_tvout_mode_work: monitor_timeout
[ 11.424313] cgroup: cgroup2: unknown option “nsdelegate”
[ 11.431918] systemd[1]: systemd 245.4-4ubuntu3.6 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[ 11.432509] systemd[1]: Detected architecture arm64.
[ 11.439973] systemd[1]: Set hostname to .
[ 11.770407] systemd[1]: Created slice system-modprobe.slice.
[ 11.771416] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 11.772213] systemd[1]: Created slice User and Session Slice.
[ 11.772491] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 11.773370] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 11.773569] systemd[1]: Reached target User and Group Name Lookups.
[ 11.773631] systemd[1]: Reached target Remote File Systems.
[ 11.773670] systemd[1]: Reached target Slices.
[ 11.773726] systemd[1]: Reached target Swap.
[ 11.773776] systemd[1]: Reached target System Time Set.
[ 11.774221] systemd[1]: Listening on Syslog Socket.
[ 11.774576] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 11.774781] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 11.775404] systemd[1]: Listening on Journal Audit Socket.
[ 11.775719] systemd[1]: Listening on Journal Socket (/dev/log).
[ 11.776126] systemd[1]: Listening on Journal Socket.
[ 11.776619] systemd[1]: Listening on udev Control Socket.
[ 11.776869] systemd[1]: Listening on udev Kernel Socket.
[ 11.780409] systemd[1]: Mounting Huge Pages File System…
[ 11.784085] systemd[1]: Mounting POSIX Message Queue File System…
[ 11.788039] systemd[1]: Mounting Kernel Debug File System…
[ 11.791975] systemd[1]: Mounting Kernel Trace File System…
[ 11.796933] systemd[1]: Starting Journal Service…
[ 11.801308] systemd[1]: Starting Restore / save the current clock…
[ 11.805938] systemd[1]: Starting Set the console keyboard layout…
[ 11.814153] systemd[1]: Starting Create list of static device nodes for the current kernel…
[ 11.814373] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[ 11.818453] systemd[1]: Starting Panel Setup…
[ 11.822616] systemd[1]: Started Nameserver information manager.
[ 11.826081] systemd[1]: Reached target Network (Pre).
[ 11.827624] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 11.827776] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[ 11.833273] systemd[1]: Starting Load Kernel Modules…
[ 11.837258] systemd[1]: Starting Remount Root and Kernel File Systems…
[ 11.841896] systemd[1]: Starting udev Coldplug all Devices…
[ 11.847313] systemd[1]: Starting Uncomplicated firewall…
[ 11.853787] systemd[1]: Mounted Huge Pages File System.
[ 11.854943] systemd[1]: Mounted POSIX Message Queue File System.
[ 11.855947] systemd[1]: Mounted Kernel Debug File System.
[ 11.857062] systemd[1]: Mounted Kernel Trace File System.
[ 11.860425] systemd[1]: Finished Restore / save the current clock.
[ 11.864711] systemd[1]: Finished Create list of static device nodes for the current kernel.
[ 11.919101] EXT4-fs (mmcblk0p6): re-mounted. Opts: commit=600,errors=remount-ro
[ 11.930512] systemd[1]: Finished Uncomplicated firewall.
[ 11.935413] systemd[1]: Finished Remount Root and Kernel File Systems.
[ 11.941184] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[ 11.961048] systemd[1]: Starting Platform Persistent Storage Archival…
[ 11.987178] systemd[1]: Starting Load/Save Random Seed…
[ 11.991697] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.10 ®
[ 11.991708] ======== dhd_wlan_init_plat_data ========
[ 11.991713] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=71, oob_irq_flags=0x418
[ 11.991716] dhd_wlan_init_gpio: WL_REG_ON=-1
[ 11.991720] dhd_wifi_platform_load: Enter
[ 11.991753] Power-up adapter ‘DHD generic adapter’
[ 11.991757] wifi_platform_set_power = 1
[ 11.991760] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 11.991781] aml_wifi wifi: [extern_wifi_set_enable] WIFI Disable! 482
[ 12.005175] systemd[1]: Starting Create System Users…
[ 12.025176] systemd[1]: Finished Platform Persistent Storage Archival.
[ 12.034537] systemd[1]: Finished Load/Save Random Seed.
[ 12.082656] systemd[1]: Finished Create System Users.
[ 12.083541] systemd[1]: Started Journal Service.
[ 12.121178] systemd-journald[2506]: Received client request to flush runtime journal.
[ 12.212567] aml_wifi wifi: [extern_wifi_set_enable] WIFI Enable! 482
[ 12.557785] IPVS: Creating netns size=1928 id=1
[ 12.592756] zram: Added device: zram0
[ 12.610151] zram: Added device: zram1
[ 12.618619] zram: Added device: zram2
[ 12.624178] zram: Added device: zram3
[ 12.637436] zram: Added device: zram4
[ 12.646850] zram: Added device: zram5
[ 12.708971] zram1: detected capacity change from 0 to 243949568
[ 12.736396] wifi_platform_bus_enumerate device present 1
[ 12.736404] ======== Card detection to detect SDIO card! ========
[ 12.737738] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 12.738720] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 12.746207] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 12.751719] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 12.764503] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 12.765481] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 12.776732] meson-mmc: actual_clock :0, HHI_nand: 0x80
[ 12.776740] meson-mmc: [meson_mmc_clk_set_rate_v3] after clock: 0x1000033c
[ 12.796428] meson-mmc: actual_clock :400000, HHI_nand: 0x80
[ 12.796437] meson-mmc: [meson_mmc_clk_set_rate_v3] after clock: 0x1000033c
[ 12.798346] Adding 238228k swap on /dev/zram1. Priority:5 extents:1 across:238228k SS
[ 12.805475] zram2: detected capacity change from 0 to 243949568
[ 12.818495] sdio: queuing unknown CIS tuple 0x80 (2 bytes)
[ 12.821393] sdio: queuing unknown CIS tuple 0x80 (3 bytes)
[ 12.825958] sdio: queuing unknown CIS tuple 0x80 (3 bytes)
[ 12.834453] sdio: queuing unknown CIS tuple 0x80 (7 bytes)
[ 12.843781] sdio: queuing unknown CIS tuple 0x81 (9 bytes)
[ 12.851182] sdio: queuing unknown CIS tuple 0x8e (9 bytes)
[ 12.870841] Adding 238228k swap on /dev/zram2. Priority:5 extents:1 across:238228k SS
[ 12.882622] zram3: detected capacity change from 0 to 243949568
[ 12.948693] Adding 238228k swap on /dev/zram3. Priority:5 extents:1 across:238228k SS
[ 12.954750] meson-aml-mmc ffe03000.sdio: divider requested rate 200000000 != actual rate 199999997: ret=0
[ 12.954760] meson-mmc: actual_clock :199999997, HHI_nand: 0x80
[ 12.954764] meson-mmc: [meson_mmc_clk_set_rate_v3] after clock: 0x10000245
[ 12.954770] meson-mmc: Data 1 aligned delay is 0
[ 12.954774] meson-mmc: sdio: clk 199999997 tuning start
[ 12.955857] meson-mmc: sdio: rx_tuning_result[0] = 40
[ 12.957032] meson-mmc: sdio: rx_tuning_result[1] = 40
[ 12.957127] zram4: detected capacity change from 0 to 243949568
[ 12.958065] meson-mmc: sdio: rx_tuning_result[2] = 40
[ 12.959103] meson-mmc: sdio: rx_tuning_result[3] = 40
[ 12.959138] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 12.960767] meson-mmc: [prev_map] fixed_adj_win_map:15
[ 12.960772] meson-mmc: [0]=1
[ 12.960775] meson-mmc: [1]=1
[ 12.960778] meson-mmc: [2]=1
[ 12.960781] meson-mmc: [3]=1
[ 12.960784] meson-mmc: [4]=0
[ 12.960787] meson-mmc: [_find_fixed_adj_valid_win]retry test fixed adj…
[ 12.960792] meson-mmc: step:4, delay1:0x4104104, delay2:0x4004104
[ 12.961858] meson-mmc: sdio: rx_tuning_result[0] = 40
[ 12.962934] meson-mmc: sdio: rx_tuning_result[1] = 40
[ 12.965503] meson-mmc: sdio: rx_tuning_result[2] = 40
[ 12.966539] meson-mmc: sdio: rx_tuning_result[3] = 40
[ 12.967562] meson-mmc: sdio: rx_tuning_result[4] = 40
[ 12.967570] meson-mmc: [_find_fixed_adj_valid_win]retry test fixed adj…
[ 12.967575] meson-mmc: step:8, delay1:0x8208208, delay2:0x8008208
[ 12.967607] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 12.970317] meson-mmc: sdio: rx_tuning_result[1] = 40
[ 12.971339] meson-mmc: sdio: rx_tuning_result[2] = 40
[ 12.972460] meson-mmc: sdio: rx_tuning_result[3] = 40
[ 12.973573] meson-mmc: sdio: rx_tuning_result[4] = 40
[ 12.973581] meson-mmc: [>>>>>>>>bitmap_xor_dst] fixed_adj_win_map:1
[ 12.973585] meson-mmc: [0]=1
[ 12.973588] meson-mmc: [1]=0
[ 12.973591] meson-mmc: [2]=0
[ 12.973593] meson-mmc: [3]=0
[ 12.973596] meson-mmc: [4]=0
[ 12.973600] meson-mmc: [_find_fixed_adj_valid_win] fir_adj:0
[ 12.973605] meson-mmc: [>>>>>>>>prev_map_range] fixed_adj_win_map:495
[ 12.973607] meson-mmc: [0]=1
[ 12.973610] meson-mmc: [1]=1
[ 12.973613] meson-mmc: [2]=1
[ 12.973616] meson-mmc: [3]=1
[ 12.973618] meson-mmc: [4]=0
[ 12.973622] meson-mmc: left:3, right:0, mid:4, size:4
[ 12.973626] meson-mmc: step:0, delay1:0x0, delay2:0x0
[ 12.973631] meson-mmc: sdio: sd_emmc_regs->gclock=0x10000245,sd_emmc_regs->gadjust=0x22000
[ 12.973634] meson-mmc: delay1:0x0, delay2:0x0
[ 12.979520] sdio: new ultra high speed SDR104 SDIO card at address 0001
[ 12.979528] sdio: clock 199999997, 4-bit-bus-width

[ 12.980008] meson-mmc: [sdio_reinit] finish
[ 12.996520] bcmsdh_register: register client driver
[ 12.996796] bcmsdh_sdmmc_probe: Enter num=1
[ 12.996920] bcmsdh_sdmmc_probe: Enter num=2
[ 12.996925] bus num (host idx)=2, slot num (rca)=1
[ 12.996929] found adapter info ‘DHD generic adapter’
[ 12.996936] Wifi: bcmdhd_mem_prealloc: sectoin 3, size 139264
[ 12.996960] alloc static buf at ffffffc050b40000!
[ 12.996963] Wifi: bcmdhd_mem_prealloc: sectoin 4, size 0
[ 12.997065] sdioh_attach: set sd_f2_blocksize 256
[ 12.997139] sdioh_attach: sd clock rate = 0
[ 12.997578] dhdsdio_probe : no mutex held. set lock
[ 12.997720] F1 signature read @0x18000000=0x17294359
[ 13.002957] F1 signature OK, socitype:0x1 chip:0x4359 rev:0x9 pkg:0x2
[ 13.003827] DHD: dongle ram size is set to 917504(orig 917504) at 0x160000
[ 13.003905] Wifi: bcmdhd_mem_prealloc: sectoin 7, size 30432
[ 13.003921] dhd_conf_set_chiprev: chip=0x4359, chiprev=9
[ 13.003971] Wifi: bcmdhd_mem_prealloc: sectoin 0, size 10320
[ 13.004000] CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211
[ 13.004303] Wifi: bcmdhd_mem_prealloc: sectoin 5, size 65536
[ 13.011511] Adding 238228k swap on /dev/zram4. Priority:5 extents:1 across:238228k SS
[ 13.017909] CFG80211-ERROR) wl_init_prof : wl_init_prof: No profile
[ 13.018100] wl_escan_attach: Enter
[ 13.018107] Wifi: bcmdhd_mem_prealloc: sectoin 19, size 67488
[ 13.018124] wl_escan_init: Enter
[ 13.028524] wl_create_event_handler(): thread:wl_escan_handler:a3f started
[ 13.028528] tsk Enter, tsk = 0xffffffc050150198
[ 13.028542] Wifi: bcmdhd_mem_prealloc: sectoin 20, size 65536
[ 13.028556] Wifi: bcmdhd_mem_prealloc: sectoin 21, size 65536
[ 13.028568] Wifi: bcmdhd_mem_prealloc: sectoin 22, size 65536
[ 13.028582] Wifi: bcmdhd_mem_prealloc: sectoin 23, size 65536
[ 13.030782] dhd_attach(): thread:dhd_watchdog_thread:a40 started
[ 13.030918] dhd_attach(): thread:dhd_dpc:a41 started
[ 13.031023] dhd_attach(): thread:dhd_rxf:a42 started
[ 13.031034] dhd_deferred_work_init: work queue initialized
[ 13.031040] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 2
[ 13.031068] Wifi: bcmdhd_mem_prealloc: sectoin 1, size 10300
[ 13.031073] Wifi: bcmdhd_mem_prealloc: sectoin 2, size 65536
[ 13.031088] dhd_bus_set_default_min_res_mask: Unhandled chip id
[ 13.031477] sdioh_cis_read: func_cis_ptr[0]=0x10ac
[ 13.081610] Dongle Host Driver, version 1.579.77.41.10 ®
[ 13.082208] wl_ext_iapsta_attach_netdev: ifidx=0, bssidx=0
[ 13.082217] Register interface [wlan0] MAC: 10:2c:6b:a2:07:4c

[ 13.082366] dhd_tcpack_suppress_set: TCP ACK Suppress mode 2 -> mode 0
[ 13.082378] dhd_wl_ioctl: returning as busstate=0
[ 13.082383] dhd_dbg_detach_pkt_monitor, 2204
[ 13.082388] dhd_bus_devreset: == Power OFF ==
[ 13.082890] bcmsdh_oob_intr_unregister: Enter
[ 13.082896] bcmsdh_oob_intr_unregister: irq is not registered
[ 13.082906] dhd_txglom_enable: enable 0
[ 13.082911] dhd_conf_set_txglom_params: txglom_mode=copy
[ 13.082914] dhd_conf_set_txglom_params: txglomsize=0, deferred_tx_len=0
[ 13.082918] dhd_conf_set_txglom_params: txinrx_thres=128, dhd_txminmax=-1
[ 13.082921] dhd_conf_set_txglom_params: tx_max_offset=0, txctl_tmo_fix=300
[ 13.082925] dhd_bus_devreset: WLAN OFF DONE
[ 13.082988] wifi_platform_set_power = 0
[ 13.082993] ======== PULL WL_REG_ON(-1) LOW! ========
[ 13.083015] aml_wifi wifi: [extern_wifi_set_enable] WIFI Disable! 482
[ 13.171985] amlvideo2.1 cma memory is 5a400000 , size is 1800000
[ 13.172562] amlvideo2.1 cma memory release succeed
[ 13.195163] amlvideo2.0 cma memory is 5a400000 , size is 1800000
[ 13.195590] amlvideo2.0 cma memory release succeed
[ 13.388677] Fine tdm clk setting range (0~2000000), 12287994
[ 13.389532] Fine spdif sysclk setting range(0~2000000), 22579186
[ 13.392155] mali ffe40000.bifrost: Continuing without Mali regulator control
[ 13.392258] mali ffe40000.bifrost: max pp is 2
[ 13.392262] mali ffe40000.bifrost: set min pp to default 1
[ 13.392264] mali ffe40000.bifrost: min pp is 1
[ 13.392267] mali ffe40000.bifrost: set min clk default to 0
[ 13.392270] mali ffe40000.bifrost: min clk is 0
[ 13.392286] mali ffe40000.bifrost: hiu io source 0xffffff8010b00000
[ 13.392295] mali ffe40000.bifrost: hiu io source 0xffffff8010b02000
[ 13.392298] mali ffe40000.bifrost: num of pp used most of time 1
[ 13.392301] mali ffe40000.bifrost: clock dvfs cfg table size is 6
[ 13.392362] mali ffe40000.bifrost: max clk set 4
[ 13.392365] mali ffe40000.bifrost: max clk is 4
[ 13.392368] mali ffe40000.bifrost: turbo clk set to 5
[ 13.392371] mali ffe40000.bifrost: turbo clk is 5
[ 13.392374] mali ffe40000.bifrost: default clk set to 4
[ 13.392376] mali ffe40000.bifrost: default clk is 4
[ 13.392381] mali ffe40000.bifrost: ====================0====================
clk_freq= 285714285, clk_parent=fclk_div7, voltage=1150, keep_count=5, threshod=<100 190>, clk_sample=285
[ 13.392385] mali ffe40000.bifrost: ====================1====================
clk_freq= 400000000, clk_parent=fclk_div5, voltage=1150, keep_count=5, threshod=<152 207>, clk_sample=400
[ 13.392389] mali ffe40000.bifrost: ====================2====================
clk_freq= 500000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<180 220>, clk_sample=500
[ 13.392393] mali ffe40000.bifrost: ====================3====================
clk_freq= 666666666, clk_parent=fclk_div3, voltage=1150, keep_count=5, threshod=<210 236>, clk_sample=666
[ 13.392397] mali ffe40000.bifrost: ====================4====================
clk_freq= 800000000, clk_parent=fclk_div2p5, voltage=1150, keep_count=5, threshod=<230 255>, clk_sample=800
[ 13.392401] mali ffe40000.bifrost: ====================5====================
clk_freq= 800000000, clk_parent=fclk_div2p5, voltage=1150, keep_count=5, threshod=<230 255>, clk_sample=800
[ 13.392404] mali ffe40000.bifrost: clock dvfs table size is 6
[ 13.392574] mali_plat=ffffff80022e4620
[ 13.393075] find tzd id: 0
[ 13.393114] gpu cooling register okay with err=0
[ 13.393388] find tzd id: 0
[ 13.393398] gpu core cooling register okay with err=0
[ 13.393430] shader_present=1, tiler_present=1, l2_present=1
[ 13.393516] Mali_pwr_on:gpu_irq : 200
[ 13.393788] mali ffe40000.bifrost: GPU identified as 0x3 arch 7.0.9 r0p0 status 0
[ 13.408570] out of value, fixed it
[ 13.408617] audio locker is not init
[ 13.408639] id=0 set inskew=0
[ 13.413611] mali ffe40000.bifrost: Probed as mali0
[ 13.529649] register clk_set_setting cpu[43]
[ 13.536479] Registered firmware driver success.
[ 13.537137] Try to load video/h264_enc.bin …
[ 13.541704] load firmware size : 76288, Name : video/h264_enc.bin.
[ 13.541732] the fw pack ver v0.0 is too lower.
[ 13.541736] it may work abnormally so need to be update in time.
[ 13.542287] Try to load video/video_ucode.bin …
[ 13.563003] load firmware size : 1706240, Name : video/video_ucode.bin.
[ 13.563216] the fw pack ver v0.2 is too lower.
[ 13.563220] it may work abnormally so need to be update in time.
[ 13.578485] dhdsdio_probe : the lock is released.
[ 13.594267] dhd_module_init: Exit err=0
[ 13.655661] Amlogic A/V streaming port init
[ 13.664315] get gate demux control ok ffffffc04edfdd40
[ 13.666733] get gate parser_top control ok ffffffc04edfddc0
[ 13.666819] get gate vdec control ok ffffffc04edfde40
[ 13.666858] get gate clk_81 control ok ffffffc04edfdec0
[ 13.666903] get gate clk_vdec_mux control ok ffffffc04edfdf40
[ 13.666952] get gate clk_hcodec_mux control ok ffffffc04edfdfc0
[ 13.667009] get gate clk_hevc_mux control ok ffffffc04f149400
[ 13.667082] get gate clk_hevcb_mux control ok ffffffc04f206040
[ 13.667107] get gate ahbarb0 control ok ffffffc04f2060c0
[ 13.667116] get gate asyncfifo control failed (null)
[ 13.688668] amvdec_avs module init
[ 13.694844] amvdec_h264 module init
[ 13.705726] ammvdec_h264 module init
[ 13.705842] fb: malloc_osd_memory, cma:ffffff800acef290
[ 13.705849] fb: malloc_osd_memory, 1232, base:0x0000000053c00000, size:8388608
[ 13.705853] fb: use ion buffer for fb memory, fb_index=1
[ 13.705857] fb: OSD1 as afbcd mode,afbc_type=2
[ 13.706461] decoder registered as /dev/video26
[ 13.713365] meson-fb fb: create ion_client ffffffc050a77240, handle=ffffffc04ee19d80
[ 13.715675] meson-fb fb: ion memory(1): created fb at 0x0000000074c00000, size 1 MiB
[ 13.723642] fb: 1, phy: 0x0000000074c00000, vir:0xffffff801104c000, size=1024K

[ 13.723648] fb: Frame buffer memory assigned at
[ 13.723651] fb: 1, phy: 0x0000000074c00000, vir:0xffffff801104c000, size=1024K

[ 13.723656] fb: 1, phy: 0x0000000074c00000, vir:0xffffff801104c000, size=1024K

[ 13.723660] fb: logo_index=0,fb_index=1
[ 13.723664] fb: ---------------clear fb1 memory ffffff801104c000
[ 13.723867] fb: osd[1] canvas.idx =0x43
[ 13.723871] fb: osd[1] canvas.addr=0x74c00000
[ 13.723874] fb: osd[1] canvas.width=128
[ 13.723898] fb: osd[1] canvas.height=32
[ 13.723901] fb: osd[1] frame.width=32
[ 13.723904] fb: osd[1] frame.height=32
[ 13.723908] fb: osd[1] out_addr_id =0x2
[ 13.726878] fb: malloc_osd_memory, cma:ffffff800acef290
[ 13.726888] fb: malloc_osd_memory, 1232, base:0x0000000053c00000, size:8388608
[ 13.726892] fb: use ion buffer for fb memory, fb_index=2
[ 13.726896] fb: OSD2 as afbcd mode,afbc_type=2
[ 13.734767] meson-fb fb: create ion_client ffffffc050a77240, handle=ffffffc04ee19e80
[ 13.740713] meson-fb fb: ion memory(2): created fb at 0x0000000074d00000, size 1 MiB
[ 13.745153] fb: 2, phy: 0x0000000074d00000, vir:0xffffff801114d000, size=1024K

[ 13.745158] fb: Frame buffer memory assigned at
[ 13.745162] fb: 2, phy: 0x0000000074d00000, vir:0xffffff801114d000, size=1024K

[ 13.745166] fb: 2, phy: 0x0000000074d00000, vir:0xffffff801114d000, size=1024K

[ 13.745170] fb: logo_index=0,fb_index=2
[ 13.745174] fb: ---------------clear fb2 memory ffffff801114d000
[ 13.745355] fb: osd[2] canvas.idx =0x41
[ 13.745359] fb: osd[2] canvas.addr=0x74d00000
[ 13.745362] fb: osd[2] canvas.width=128
[ 13.745365] fb: osd[2] canvas.height=32
[ 13.745367] fb: osd[2] frame.width=32
[ 13.745370] fb: osd[2] frame.height=32
[ 13.745373] fb: osd[2] out_addr_id =0x3
[ 13.755627] amvdec_h265 module init
[ 13.760492] fb: vpu clkc clock is 199 MHZ
[ 13.760508] vpu: switch_vpu_mem_pd: unsupport vpu mod: 18
[ 13.760512] vpu: switch_vpu_mem_pd: unsupport vpu mod: 22
[ 13.760515] vpu: switch_vpu_mem_pd: unsupport vpu mod: 53
[ 13.760523] fb: malloc_osd_memory, cma:ffffff800acef290
[ 13.760528] fb: malloc_osd_memory, 1232, base:0x0000000053c00000, size:8388608
[ 13.760532] fb: use ion buffer for fb memory, fb_index=3
[ 13.760536] fb: OSD3 as afbcd mode,afbc_type=2
[ 13.768114] meson-fb fb: create ion_client ffffffc050a77240, handle=ffffffc04ee19c80
[ 13.770666] meson-fb fb: ion memory(3): created fb at 0x0000000074e00000, size 8 MiB
[ 13.786211] fb: 3, phy: 0x0000000074e00000, vir:0xffffff801128b000, size=8192K

[ 13.786216] fb: Frame buffer memory assigned at
[ 13.786220] fb: 3, phy: 0x0000000074e00000, vir:0xffffff801128b000, size=8192K

[ 13.786224] fb: 3, phy: 0x0000000074e00000, vir:0xffffff801128b000, size=8192K

[ 13.786228] fb: logo_index=0,fb_index=3
[ 13.786232] fb: ---------------clear fb3 memory ffffff801128b000
[ 13.787680] fb: osd[3] canvas.idx =0x42
[ 13.787684] fb: osd[3] canvas.addr=0x74e00000
[ 13.787687] fb: osd[3] canvas.width=128
[ 13.787691] fb: osd[3] canvas.height=32
[ 13.787694] fb: osd[3] frame.width=32
[ 13.787697] fb: osd[3] frame.height=32
[ 13.787700] fb: osd[3] out_addr_id =0x4
[ 13.796001] ammvdec_mpeg12 module init
[ 13.816793] ammvdec_mpeg4_driver_init_module
[ 13.840733] amvdec_vc1 module init
[ 13.854960] amvdec_vp9 module init
[ 13.879155] amvenc_avc_probe – reserved memory config fail.
[ 13.879164] amvenc_avc - cma memory pool size: 60 MB
[ 13.879191] encode_wq_init.
[ 13.879198] encode start monitor.
[ 13.898617] encode workqueue monitor start.
[ 13.902481] vpu_init
[ 13.902748] vpu_probe
[ 13.902754] HevcEnc reserved memory config fail.
[ 13.902795] HevcEnc - cma memory pool size: 64 MB
[ 13.902824] HevcEnc - wave420l_irq: 52
[ 13.902904] vpu base address get from platform driver physical base addr=0xff610000, virtual base=0xffffff8011b64000
[ 13.903135] success to probe vpu device with video memory from cma
[ 13.959973] npu_version: 3
[ 13.959995] Unable to handle kernel NULL pointer dereference at virtual address 00000020
[ 13.962618] pgd = ffffffc03cc18000
[ 13.966166] [0000000000000020] *pgd=0000000000000000
[ 13.968479] ionvid: dbg: ionvideo open
[ 13.968657] ionvid: dbg: vidioc_close!!!
[ 13.968668] ionvid: dbg: vidioc_close
[ 13.971105] , *pud=0000000000000000
[ 13.971112] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[ 13.976826] Modules linked in: galcore(+) vpu encoder amvdec_avs2 amvdec_vp9 amvdec_vc1 amvdec_real amvdec_mmpeg4 amvdec_mpeg4 amvdec_mmpeg12 amvdec_mpeg12 amvdec_mmjpeg amvdec_mjpeg amvdec_h265 amvdec_h264mvc amvdec_mh264 amvdec_h264

dmesg信息太多了,我把像报错信息的发给你,

你把内核信息输出到文件里面。

$ sudo dmesg > kernel.log

然后把kernel.log文件发上来。因为论坛不支持上传文件,你可以把文件上传到别的地方,然后把下载链接贴出来。

1 Like

链接:https://pan.baidu.com/s/1c2AxCLTFs4K6LIxJH1pVHA
提取码:y6ie

好的,我们会看下这个问题。后续会在这里反馈结果。

这里有一个临时解决方案你需要更新一下内核,按如下步骤操作:

$ wget https://dl.khadas.com/test/linux-image-amlogic-4.9_1.0.6_arm64.deb
$ sudo dpkg -i linux-image-amlogic-4.9_1.0.6_arm64.deb
$ sync
$ sudo reboot

重启之后再次确认下如下信息:

khadas@Khadas:~$ sudo dmesg | grep Gal
[   15.676490] Galcore version 6.4.4.3.310723AAA

如果能看到Galcore version 6.4.4.3.310723AAA说明更新正常。可以再次测试下NPU demo。