Which Khadas SBC do you use?
VIM3 Pro
Which system do you use? Android, Ubuntu, OOWOW or others?
官方下载的Ubuntu
Which version of system do you use? Khadas official images, self built images, or others?
VIM3_Ubuntu-server-focal_Linux-4.9_arm64_EMMC_V1.0.9-211217.img.xz
Please describe your issue below:
设置
echo 1 > /sys/class/mcu/usb_pcie_switch_mode
关机重启,格式化硬盘,能识别到2T硬盘并正常使用。
但此时,断电关机会检测不到硬盘,另外执行如下命令:
cat /sys/class/mcu/usb_pcie_switch_mode && ls /dev/nvme*
1
/dev/nvme-fabrics
发现模式是对的为1,但是设备节点不见了。
此时执行
reboot
发现硬盘能正常使用,再次拔掉电源重新上电,硬盘又不见。
总的来说就是,拔电源上电,2T M.2硬盘检测不到,执行reboot可以检测到。
Post a console log of your issue below:
[ 8.887208] Bluetooth: RFCOMM socket layer initialized
[ 8.887223] Bluetooth: RFCOMM ver 1.11
[ 8.887234] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 8.887235] Bluetooth: BNEP filters: protocol multicast
[ 8.887241] Bluetooth: BNEP socket layer initialized
[ 8.887243] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 8.887247] Bluetooth: HIDP socket layer initialized
[ 8.887259] l2tp_core: L2TP core driver, V2.0
[ 8.887265] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 8.887266] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[ 8.887274] l2tp_netlink: L2TP netlink interface
[ 8.887289] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 8.887298] l2tp_debugfs: L2TP debugfs support
[ 8.887300] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[ 8.887371] NET: Registered protocol family 35
[ 8.887398] Key type dns_resolver registered
[ 8.888104] Registered swp emulation handler
[ 8.888112] Registered cp15_barrier emulation handler
[ 8.888119] Registered setend emulation handler
[ 8.888530] registered taskstats version 1
[ 8.893735] edt_ft5x06 3-0038: probing for EDT FT5x06 I2C
[ 9.212534] edt_ft5x06 3-0038: touchscreen probe failed
[ 9.213055] dwc3 ff500000.dwc3: Configuration mismatch. dr_mode forced to host
[ 9.215638] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 9.215648] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 9.215841] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228fe64 hci version 0x110 quirks 0x00010010
[ 9.215865] xhci-hcd xhci-hcd.0.auto: irq 15, io mem 0xff500000
[ 9.216208] hub 1-0:1.0: USB hub found
[ 9.216222] hub 1-0:1.0: 2 ports detected
[ 9.216384] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 9.216389] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 9.216421] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 9.216702] hub 2-0:1.0: USB hub found
[ 9.216713] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 9.219646] usb usb2: Unsupported the hub
[ 9.224014] i2c i2c-4: sensor_probe: kxtj3,ffffffc09ad95400
[ 9.224168] sensors 4-000e: sensor_chip_init:kxtj3:devid=0x35,ops=0xffffff800ab48330
[ 9.224650] input: gsensor as /devices/platform/soc/ff800000.aobus/ff805000.i2c/i2c-4/4-000e/input/input4
[ 9.225051] sensors 4-000e: sensor_irq_init:use polling,delay=30 ms
[ 9.225136] sensors 4-000e: sensor_misc_device_register:miscdevice: accel
[ 9.225139] sensors 4-000e: sensor_probe:initialized ok,sensor name:kxtj3,type:2,id=0
[ 9.225168] rtc-hym8563 4-0051: no valid clock/calendar values available
[ 9.225171] rtc-hym8563 4-0051: hctosys: unable to read the hardware clock
[ 9.231163] dwc_otg ff400000.dwc2_a: dwc_otg_driver_probe(ffffffc09b199000)
[ 9.231177] dwc_otg: usb0: type: 2 speed: 0, config: 0, dma: 0, id: 0, phy: ffe09000, ctrl: 0
[ 9.231189] dwc_otg ff400000.dwc2_a: base=0xffffff8010700000
[ 9.231191] dwc_otg ff400000.dwc2_a: dwc_otg_device=0xffffffc099cb3800
[ 9.331311] dwc_otg: Core Release: 3.30a
[ 9.331314] dwc_otg: Setting default values for core params
[ 9.331320] dwc_otg: curmode: 0, host_only: 0
[ 9.331331] dwc_otg ff400000.dwc2_a: DMA config: BURST_DEFAULT
[ 9.343465] dwc_otg: Using Buffer DMA mode
[ 9.343468] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[ 9.343470] dwc_otg: Working on port type = SLAVE
[ 9.343473] dwc_otg: Dedicated Tx FIFOs mode
[ 9.344528] input: adc_keypad as /devices/platform/adc_keypad/input/input5
[ 9.344985] bl: chip type/name: (5-g12a)
[ 9.344988] bl: key_valid: 0
[ 9.344990] bl: aml_bl_config_load from dts
[ 9.344993] bl: no backlight exist
[ 9.345000] aml-bl: probe of backlight failed with error -1
[ 9.345363] meson_cdev probe
[ 9.345404] meson_cdev index: 0
[ 9.345450] thermal thermal_zone0: binding zone soc_thermal with cdev thermal-cpufreq-0 failed:-22
[ 9.348955] meson_cdev index: 1
[ 9.348990] thermal thermal_zone0: binding zone soc_thermal with cdev thermal-cpufreq-1 failed:-22
[ 9.358057] meson_cdev index: 2
[ 9.358061] cpucore_cooling_register, max_cpu_core_num:2
[ 9.358120] meson_cdev index: 3
[ 9.358122] cpucore_cooling_register, max_cpu_core_num:4
[ 9.358172] meson_cdev index: 4
[ 9.358184] meson_cdev index: 5
[ 9.358207] find tzd id: 0
[ 9.358290] find tzd id: 0
[ 9.358350] find tzd id: 0
[ 9.358375] meson_cdev probe done
[ 9.358452] gxbb_pm: enter meson_pm_probe!
[ 9.358467] gxbb_pm: meson_pm_probe done
[ 9.358830] ALSA device list:
[ 9.358832] #0: AML-AUGESOUND
[ 9.358937] meson_uart ff803000.serial: ttyS0 use xtal(24M) 24000000 change 115200 to 115200
[ 9.360900] Freeing unused kernel memory: 5568K
[ 9.544332] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 9.696541] hub 1-1:1.0: USB hub found
[ 9.696576] hub 1-1:1.0: 4 ports detected
[ 9.708019] fb: osd[0] enable: 1 (sh)
[ 10.716483] fb: osd[1] enable: 0 (sh)
[ 11.324298] vout: aml_tvout_mode_work: monitor_timeout
[ 11.812326] raid6: int64x1 gen() 1100 MB/s
[ 11.880322] raid6: int64x1 xor() 990 MB/s
[ 11.948301] raid6: int64x2 gen() 1664 MB/s
[ 12.016309] raid6: int64x2 xor() 1348 MB/s
[ 12.084315] raid6: int64x4 gen() 2256 MB/s
[ 12.152305] raid6: int64x4 xor() 1589 MB/s
[ 12.220311] raid6: int64x8 gen() 2291 MB/s
[ 12.288294] raid6: int64x8 xor() 1565 MB/s
[ 12.356315] raid6: neonx1 gen() 2665 MB/s
[ 12.424304] raid6: neonx1 xor() 1650 MB/s
[ 12.492293] raid6: neonx2 gen() 3259 MB/s
[ 12.560301] raid6: neonx2 xor() 2481 MB/s
[ 12.628307] raid6: neonx4 gen() 4040 MB/s
[ 12.696295] raid6: neonx4 xor() 3188 MB/s
[ 12.764300] raid6: neonx8 gen() 4649 MB/s
[ 12.832293] raid6: neonx8 xor() 3429 MB/s
[ 12.832295] raid6: using algorithm neonx8 gen() 4649 MB/s
[ 12.832297] raid6: .... xor() 3429 MB/s, rmw enabled
[ 12.832299] raid6: using intx1 recovery algorithm
[ 12.832648] xor: measuring software checksum speed
[ 12.872312] 8regs : 7459.000 MB/sec
[ 12.912301] 8regs_prefetch: 6276.000 MB/sec
[ 12.952291] 32regs : 8579.000 MB/sec
[ 12.992290] 32regs_prefetch: 8350.000 MB/sec
[ 12.992293] xor: using function: 32regs (8579.000 MB/sec)
[ 13.019309] Btrfs loaded, crc32c=crc32c-generic, assert=on
[ 13.019360] BTRFS: selftest: sectorsize: 4096 nodesize: 4096
[ 13.019362] BTRFS: selftest: Running btrfs free space cache tests
[ 13.019371] BTRFS: selftest: Running extent only tests
[ 13.019381] BTRFS: selftest: Running bitmap only tests
[ 13.019392] BTRFS: selftest: Running bitmap and extent tests
[ 13.019404] BTRFS: selftest: Running space stealing from bitmap to extent
[ 13.019728] BTRFS: selftest: Free space cache tests finished
[ 13.019730] BTRFS: selftest: Running extent buffer operation tests
[ 13.019731] BTRFS: selftest: Running btrfs_split_item tests
[ 13.019755] BTRFS: selftest: Running extent I/O tests
[ 13.019757] BTRFS: selftest: Running find delalloc tests
[ 13.129280] BTRFS: selftest: Running extent buffer bitmap tests
[ 13.180138] BTRFS: selftest: Extent I/O tests finished
[ 13.180140] BTRFS: selftest: Running btrfs_get_extent tests
[ 13.180237] BTRFS: selftest: Running hole first btrfs_get_extent test
[ 13.180252] BTRFS: selftest: Running outstanding_extents tests
[ 13.180283] BTRFS: selftest: Running qgroup tests
[ 13.180285] BTRFS: selftest: Qgroup basic add
[ 13.180342] BTRFS: selftest: Qgroup multiple refs test
[ 13.180387] BTRFS: selftest: Running free space tree tests
[ 13.201776] BTRFS: selftest: sectorsize: 4096 nodesize: 8192
[ 13.201778] BTRFS: selftest: Running btrfs free space cache tests
[ 13.201782] BTRFS: selftest: Running extent only tests
[ 13.201792] BTRFS: selftest: Running bitmap only tests
[ 13.201801] BTRFS: selftest: Running bitmap and extent tests
[ 13.201814] BTRFS: selftest: Running space stealing from bitmap to extent
[ 13.202132] BTRFS: selftest: Free space cache tests finished
[ 13.202134] BTRFS: selftest: Running extent buffer operation tests
[ 13.202136] BTRFS: selftest: Running btrfs_split_item tests
[ 13.202148] BTRFS: selftest: Running extent I/O tests
[ 13.202150] BTRFS: selftest: Running find delalloc tests
[ 13.311463] BTRFS: selftest: Running extent buffer bitmap tests
[ 13.362397] BTRFS: selftest: Extent I/O tests finished
[ 13.362399] BTRFS: selftest: Running btrfs_get_extent tests
[ 13.362499] BTRFS: selftest: Running hole first btrfs_get_extent test
[ 13.362515] BTRFS: selftest: Running outstanding_extents tests
[ 13.362544] BTRFS: selftest: Running qgroup tests
[ 13.362546] BTRFS: selftest: Qgroup basic add
[ 13.362578] BTRFS: selftest: Qgroup multiple refs test
[ 13.362623] BTRFS: selftest: Running free space tree tests
[ 13.384027] BTRFS: selftest: sectorsize: 4096 nodesize: 16384
[ 13.384030] BTRFS: selftest: Running btrfs free space cache tests
[ 13.384034] BTRFS: selftest: Running extent only tests
[ 13.384043] BTRFS: selftest: Running bitmap only tests
[ 13.384053] BTRFS: selftest: Running bitmap and extent tests
[ 13.384065] BTRFS: selftest: Running space stealing from bitmap to extent
[ 13.384393] BTRFS: selftest: Free space cache tests finished
[ 13.384395] BTRFS: selftest: Running extent buffer operation tests
[ 13.384397] BTRFS: selftest: Running btrfs_split_item tests
[ 13.384410] BTRFS: selftest: Running extent I/O tests
[ 13.384412] BTRFS: selftest: Running find delalloc tests
[ 13.493757] BTRFS: selftest: Running extent buffer bitmap tests
[ 13.544613] BTRFS: selftest: Extent I/O tests finished
[ 13.544616] BTRFS: selftest: Running btrfs_get_extent tests
[ 13.544713] BTRFS: selftest: Running hole first btrfs_get_extent test
[ 13.544729] BTRFS: selftest: Running outstanding_extents tests
[ 13.544758] BTRFS: selftest: Running qgroup tests
[ 13.544761] BTRFS: selftest: Qgroup basic add
[ 13.544793] BTRFS: selftest: Qgroup multiple refs test
[ 13.544838] BTRFS: selftest: Running free space tree tests
[ 13.566275] BTRFS: selftest: sectorsize: 4096 nodesize: 32768
[ 13.566278] BTRFS: selftest: Running btrfs free space cache tests
[ 13.566283] BTRFS: selftest: Running extent only tests
[ 13.566292] BTRFS: selftest: Running bitmap only tests
[ 13.566302] BTRFS: selftest: Running bitmap and extent tests
[ 13.566314] BTRFS: selftest: Running space stealing from bitmap to extent
[ 13.566634] BTRFS: selftest: Free space cache tests finished
[ 13.566636] BTRFS: selftest: Running extent buffer operation tests
[ 13.566638] BTRFS: selftest: Running btrfs_split_item tests
[ 13.566651] BTRFS: selftest: Running extent I/O tests
[ 13.566653] BTRFS: selftest: Running find delalloc tests
[ 13.675843] BTRFS: selftest: Running extent buffer bitmap tests
[ 13.726763] BTRFS: selftest: Extent I/O tests finished
[ 13.726766] BTRFS: selftest: Running btrfs_get_extent tests
[ 13.726865] BTRFS: selftest: Running hole first btrfs_get_extent test
[ 13.726882] BTRFS: selftest: Running outstanding_extents tests
[ 13.726912] BTRFS: selftest: Running qgroup tests
[ 13.726914] BTRFS: selftest: Qgroup basic add
[ 13.726947] BTRFS: selftest: Qgroup multiple refs test
[ 13.726993] BTRFS: selftest: Running free space tree tests
[ 13.748456] BTRFS: selftest: sectorsize: 4096 nodesize: 65536
[ 13.748458] BTRFS: selftest: Running btrfs free space cache tests
[ 13.748462] BTRFS: selftest: Running extent only tests
[ 13.748471] BTRFS: selftest: Running bitmap only tests
[ 13.748481] BTRFS: selftest: Running bitmap and extent tests
[ 13.748494] BTRFS: selftest: Running space stealing from bitmap to extent
[ 13.748814] BTRFS: selftest: Free space cache tests finished
[ 13.748816] BTRFS: selftest: Running extent buffer operation tests
[ 13.748818] BTRFS: selftest: Running btrfs_split_item tests
[ 13.748833] BTRFS: selftest: Running extent I/O tests
[ 13.748835] BTRFS: selftest: Running find delalloc tests
[ 13.858317] BTRFS: selftest: Running extent buffer bitmap tests
[ 13.909198] BTRFS: selftest: Extent I/O tests finished
[ 13.909200] BTRFS: selftest: Running btrfs_get_extent tests
[ 13.909301] BTRFS: selftest: Running hole first btrfs_get_extent test
[ 13.909319] BTRFS: selftest: Running outstanding_extents tests
[ 13.909350] BTRFS: selftest: Running qgroup tests
[ 13.909352] BTRFS: selftest: Qgroup basic add
[ 13.909385] BTRFS: selftest: Qgroup multiple refs test
[ 13.909435] BTRFS: selftest: Running free space tree tests
[ 19.161436] EXT4-fs (mmcblk0p6): recovery complete
[ 19.161828] EXT4-fs (mmcblk0p6): mounted filesystem with writeback data mode. Opts: data=writeback
[ 19.327286] systemd[1]: System time before build time, advancing clock.
[ 19.344575] cgroup: cgroup2: unknown option "nsdelegate"
[ 19.352743] systemd[1]: systemd 245.4-4ubuntu3.13 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)
[ 19.353414] systemd[1]: Detected architecture arm64.
[ 19.360235] systemd[1]: Set hostname to <Khadas>.
[ 19.405256] systemd-fstab-generator[2524]: Failed to create unit file /run/systemd/generator/mnt-disk.mount, as it already exists. Duplicate entry in /etc/fstab?
[ 19.431905] systemd[2520]: /usr/lib/systemd/system-generators/systemd-fstab-generator failed with exit status 1.
[ 19.572378] systemd[1]: Created slice system-modprobe.slice.
[ 19.572831] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 19.573177] systemd[1]: Created slice User and Session Slice.
[ 19.573278] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 19.573698] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 19.573798] systemd[1]: Reached target Remote File Systems.
[ 19.573819] systemd[1]: Reached target Slices.
[ 19.573841] systemd[1]: Reached target Swap.
[ 19.573860] systemd[1]: Reached target System Time Set.
[ 19.575298] systemd[1]: Listening on Syslog Socket.
[ 19.575455] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 19.575547] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 19.575853] systemd[1]: Listening on Journal Audit Socket.
[ 19.575982] systemd[1]: Listening on Journal Socket (/dev/log).
[ 19.576157] systemd[1]: Listening on Journal Socket.
[ 19.576414] systemd[1]: Listening on udev Control Socket.
[ 19.576526] systemd[1]: Listening on udev Kernel Socket.
[ 19.578174] systemd[1]: Mounting Huge Pages File System...
[ 19.579769] systemd[1]: Mounting POSIX Message Queue File System...
[ 19.581640] systemd[1]: Mounting Kernel Debug File System...
[ 19.583629] systemd[1]: Mounting Kernel Trace File System...
[ 19.586231] systemd[1]: Starting Journal Service...
[ 19.588262] systemd[1]: Started Camera ISP 3A server service.
[ 19.592678] systemd[1]: Starting Restore / save the current clock...
[ 19.594867] systemd[1]: Starting Set the console keyboard layout...
[ 19.600949] systemd[1]: Starting Create list of static device nodes for the current kernel...
[ 19.601052] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[ 19.603332] systemd[1]: Started Nameserver information manager.
[ 19.603589] systemd[1]: Reached target Network (Pre).
[ 19.606442] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 19.606545] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[ 19.612872] systemd[1]: Starting Load Kernel Modules...
[ 19.615184] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 19.617811] systemd[1]: Starting udev Coldplug all Devices...
[ 19.620613] systemd[1]: Mounted Huge Pages File System.
[ 19.621055] systemd[1]: Mounted POSIX Message Queue File System.
[ 19.621519] systemd[1]: Mounted Kernel Debug File System.
[ 19.621977] systemd[1]: Mounted Kernel Trace File System.
[ 19.623341] systemd[1]: Finished Create list of static device nodes for the current kernel.
[ 19.635633] systemd[1]: Finished Restore / save the current clock.
[ 19.659259] EXT4-fs (mmcblk0p6): re-mounted. Opts: commit=600,errors=remount-ro
[ 19.692071] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.10 (r)
[ 19.692077] ======== dhd_wlan_init_plat_data ========
[ 19.692080] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=103, oob_irq_flags=0x418
[ 19.692081] dhd_wlan_init_gpio: WL_REG_ON=-1
[ 19.692083] dhd_wifi_platform_load: Enter
[ 19.692102] Power-up adapter 'DHD generic adapter'
[ 19.692104] wifi_platform_set_power = 1
[ 19.692106] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 19.692119] aml_wifi wifi: [extern_wifi_set_enable] WIFI Disable! 482
[ 19.701271] systemd[1]: camera_isp_3a_server.service: Succeeded.
[ 19.703419] systemd[1]: Started Journal Service.
[ 19.723536] systemd-journald[2537]: Received client request to flush runtime journal.
[ 19.892141] aml_wifi wifi: [extern_wifi_set_enable] WIFI Enable! 482
[ 20.395609] amlvideo2.0 cma memory is cfc00000 , size is 1800000
[ 20.396345] wifi_platform_bus_enumerate device present 1
[ 20.396354] ======== Card detection to detect SDIO card! ========
[ 20.397285] amlvideo2.0 cma memory release succeed
[ 20.397730] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 20.398709] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 20.406557] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 20.406666] amlvideo2.1 cma memory is cfc00000 , size is 1800000
[ 20.406961] amlvideo2.1 cma memory release succeed
[ 20.411709] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 20.422806] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 20.424709] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 20.434005] meson-mmc: actual_clock :0, HHI_nand: 0x80
[ 20.434013] meson-mmc: [meson_mmc_clk_set_rate_v3] after clock: 0x1000023c
[ 20.452395] meson-mmc: actual_clock :400000, HHI_nand: 0x80
[ 20.452407] meson-mmc: [meson_mmc_clk_set_rate_v3] after clock: 0x1000023c
[ 20.460516] out of value, fixed it
[ 20.460557] id=0 set inskew=0
[ 20.460688] AED req_sel0 module:TDMOUT_B
[ 20.467332] fw_module_init@main_kernel_juno_v4l2.c:772 GENERIC(ERR) :Juno isp fw_module_init
[ 20.467541] isp_module_check@main_kernel_juno_v4l2.c:542 GENERIC(ERR) :isp efuse value: ff630038 4000
[ 20.467585] isp_platform_probe@main_kernel_juno_v4l2.c:580 GENERIC(ERR) :Juno isp irq = 60, flags = 0x404 !