问题描述
- 希望在Linux子系统里使用NPU,询问DeepSeek如何将NPU共享到子系统,经过查询发现NPU不在设备树中。
系统与设备信息
-
设备:Fydetab Duo
-
FydeOS版本: FydeOS (Fydetab Duo),v23.0 平台 16700.56.23.13 Chromium 150.0.7871.208 fyDroid 111715.130702
-
相关命令行内容:
fydetab_duo-fydeos /sys/kernel/debug # ls -l /sys/class/drm/renderD129/device/driver
lrwxrwxrwx. 1 root root 0 Sep 10 20:40 /sys/class/drm/renderD129/device/driver -> ../../../bus/platform/drivers/panthor
fydetab_duo-fydeos /sys/kernel/debug # find /proc/device-tree -name "*npu*" 2>/dev/null
fydetab_duo-fydeos /sys/kernel/debug # dmesg | grep -i "npu\|rknpu"
[ 0.794755] input: fyde-vdtb as /devices/virtual/misc/vdtb/input0
[ 0.810860] ti,input-current-sdp, val: 3000000, tbl_id =60
[ 0.810865] ti,input-current-dcp, val: 3000000, tbl_id =60
[ 0.810871] ti,input-current-cdp, val: 3000000, tbl_id =60
[ 0.819051] INPUT_VOLTAGE: 15488mV
[ 0.819596] INPUT_CURRENT: 2500mA
[ 0.852460] input: bt-powerkey as /devices/platform/wireless-bluetooth/input/input1
[ 0.921579] vdd_npu_s0: supplied by vcc_sysin
[ 0.926054] vdd_npu_s0: 550 <--> 950 mV at 800 mV, enabled
[ 0.954390] input: rk805 pwrkey as /devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk805-pwrkey.5.auto/input/input2
[ 1.009221] input: adc-keys as /devices/platform/adc-keys/input/input3
[ 1.525706] input: SIGMACHIP USB Keyboard as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.0/0003:1C4F:007C.0001/input/input4
[ 1.576862] hid-generic 0003:1C4F:007C.0001: input,hidraw0: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input0
[ 1.585391] input: SIGMACHIP USB Keyboard System Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0002/input/input5
[ 1.585775] input: SIGMACHIP USB Keyboard Consumer Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0002/input/input6
[ 1.586011] input: SIGMACHIP USB Keyboard Mouse as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0002/input/input7
[ 1.637643] hid-generic 0003:1C4F:007C.0002: input,hiddev96,hidraw1: USB HID v1.10 Mouse [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input1
[ 1.645659] LoadPin: kernel-module pinned obj="/lib/modules/6.12.54-01180-gb4e10020ba49-dirty/kernel/drivers/input/sensors/fingerprint/microarray-fp.ko" pid=216 cmdline="modprobe -q microarray-fp"
[ 1.647338] input: Lid Switch as /devices/platform/hall-mh248/input/input8
[ 1.662705] input: madev as /devices/virtual/input/input9
[ 2.056901] bq25700-charger 6-006b: INPUT_CURRENT:60, INPUT_VOLTAGE:28, CHARGE_CURRENT:46
[ 2.381759] bq25700-charger 6-006b: INPUT_CURRENT:60, INPUT_VOLTAGE:28, CHARGE_CURRENT:46
[ 2.400413] bq25700-charger 6-006b: INPUT_CURRENT:10, INPUT_VOLTAGE:28, CHARGE_CURRENT:7
[ 2.423337] bq25700-charger 6-006b: INPUT_CURRENT:50, INPUT_VOLTAGE:255, CHARGE_CURRENT:39
[ 6.125158] Enable charge, set charge current idx:39, input_current:50, input_vol:255
[ 7.162188] input: himax-touchscreen as /devices/platform/feac0000.i2c/i2c-4/4-0048/input/input11
[ 7.165515] input: HDMI/DP-rockchip-0 HDMI/DP as /devices/platform/dp0-sound/sound/card0/input10
[ 7.176694] input: himax-stylus as /devices/platform/feac0000.i2c/i2c-4/4-0048/input/input12
[ 7.600629] input: headset-keys as /devices/platform/es8388-sound/input/input13
[ 7.829199] input: rockchip-es8388 Headset as /devices/platform/es8388-sound/sound/card2/input14
[ 8.335201] [BT_RFKILL]: rfkill_rk_set_power: set bt wake_host input!
[ 144.177660] udevd[8628]: event4: Process '/bin/rm /dev/arc_input/event4' failed with exit code 1.
[ 144.208813] udevd[8629]: event5: Process '/bin/rm /dev/arc_input/event5' failed with exit code 1.
[ 144.212121] udevd[8628]: event6: Process '/bin/rm /dev/arc_input/event6' failed with exit code 1.
[ 144.224396] udevd[8626]: event7: Process '/bin/rm /dev/arc_input/event7' failed with exit code 1.
[ 145.414982] input: SIGMACHIP USB Keyboard as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.0/0003:1C4F:007C.0003/input/input15
[ 145.466640] hid-generic 0003:1C4F:007C.0003: input,hidraw0: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input0
[ 145.475716] input: SIGMACHIP USB Keyboard System Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0004/input/input16
[ 145.476104] input: SIGMACHIP USB Keyboard Consumer Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0004/input/input17
[ 145.476490] input: SIGMACHIP USB Keyboard Mouse as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0004/input/input18
[ 145.528184] hid-generic 0003:1C4F:007C.0004: input,hiddev96,hidraw1: USB HID v1.10 Mouse [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input1
[ 146.183677] udevd[8628]: event4: Process '/bin/rm /dev/arc_input/event4' failed with exit code 1.
[ 146.210013] udevd[8626]: event5: Process '/bin/rm /dev/arc_input/event5' failed with exit code 1.
[ 146.217296] udevd[8626]: event6: Process '/bin/rm /dev/arc_input/event6' failed with exit code 1.
[ 146.228188] udevd[8626]: event7: Process '/bin/rm /dev/arc_input/event7' failed with exit code 1.
[ 439.994445] [11256] eos.inputmethod: blocked syscall 282
[ 1854.417021] input: SIGMACHIP USB Keyboard as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.0/0003:1C4F:007C.0005/input/input19
[ 1854.469660] hid-generic 0003:1C4F:007C.0005: input,hidraw0: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input0
[ 1854.478119] input: SIGMACHIP USB Keyboard System Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0006/input/input20
[ 1854.478497] input: SIGMACHIP USB Keyboard Consumer Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0006/input/input21
[ 1854.478779] input: SIGMACHIP USB Keyboard Mouse as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0006/input/input22
[ 1854.529583] hid-generic 0003:1C4F:007C.0006: input,hiddev96,hidraw1: USB HID v1.10 Mouse [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input1
[ 2791.747282] udevd[24609]: event4: Process '/bin/rm /dev/arc_input/event4' failed with exit code 1.
[ 2791.768457] udevd[24609]: event5: Process '/bin/rm /dev/arc_input/event5' failed with exit code 1.
[ 2791.772746] udevd[24610]: event6: Process '/bin/rm /dev/arc_input/event6' failed with exit code 1.
[ 2791.784324] udevd[24608]: event7: Process '/bin/rm /dev/arc_input/event7' failed with exit code 1.
[ 2792.089703] input: SIGMACHIP USB Keyboard as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.0/0003:1C4F:007C.0007/input/input23
[ 2792.140932] hid-generic 0003:1C4F:007C.0007: input,hidraw0: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input0
[ 2792.149865] input: SIGMACHIP USB Keyboard System Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0008/input/input24
[ 2792.150295] input: SIGMACHIP USB Keyboard Consumer Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0008/input/input25
[ 2792.150614] input: SIGMACHIP USB Keyboard Mouse as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0008/input/input26
[ 2792.202460] hid-generic 0003:1C4F:007C.0008: input,hiddev96,hidraw1: USB HID v1.10 Mouse [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input1
[ 2987.977427] bq25700-charger 6-006b: INPUT_CURRENT:60, INPUT_VOLTAGE:28, CHARGE_CURRENT:46
[ 2988.029969] bq25700-charger 6-006b: INPUT_CURRENT:60, INPUT_VOLTAGE:28, CHARGE_CURRENT:46
[ 2988.044517] bq25700-charger 6-006b: INPUT_CURRENT:10, INPUT_VOLTAGE:28, CHARGE_CURRENT:7
[ 2988.316553] bq25700-charger 6-006b: INPUT_CURRENT:50, INPUT_VOLTAGE:255, CHARGE_CURRENT:39
[ 6870.340962] udevd[13275]: event4: Process '/bin/rm /dev/arc_input/event4' failed with exit code 1.
[ 6870.356907] udevd[13273]: event5: Process '/bin/rm /dev/arc_input/event5' failed with exit code 1.
[ 6870.374192] udevd[13273]: event6: Process '/bin/rm /dev/arc_input/event6' failed with exit code 1.
[ 6870.380616] udevd[13273]: event7: Process '/bin/rm /dev/arc_input/event7' failed with exit code 1.
[ 6872.911415] input: SIGMACHIP USB Keyboard as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.0/0003:1C4F:007C.0009/input/input27
[ 6872.963753] hid-generic 0003:1C4F:007C.0009: input,hidraw0: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input0
[ 6872.974556] input: SIGMACHIP USB Keyboard System Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.000A/input/input28
[ 6872.974941] input: SIGMACHIP USB Keyboard Consumer Control as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.000A/input/input29
[ 6872.975168] input: SIGMACHIP USB Keyboard Mouse as /devices/platform/fc880000.usb/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.000A/input/input30
[ 6873.026795] hid-generic 0003:1C4F:007C.000A: input,hiddev96,hidraw1: USB HID v1.10 Mouse [SIGMACHIP USB Keyboard] on usb-fc880000.usb-1.1/input1
fydetab_duo-fydeos /sys/kernel/debug #