I followed the instruction mentioned in the below link.
But sysfs interface is not listed.
ls /sys/class/usb_pcie_switch_mode: No such file or directory
ls /sys/class/mcu/usb_pcie_switch_mode: No such file or directory
“kbi init” command also not working in boot loader command prompt.
We have connected pcie device via M.2 connector.
The same connection is working fine on Hikey960 platform but on vim3l platform even root complex is not getting listed when lspci command is issued.
I think the issue is due to usb_pcie_switch protocol is not enabled on Android.
Let me know which kernel and android I should use to get it working.
you did not say what kind of device you are connecting, you probably need driver support, or not compatibility, not enough power, there can be many reasons
stdio_add_devices: Video device failed (ret=-22)
In: serial@3000
Out: serial@3000
Err: serial@3000
Net: eth0: ethernet@ff3f0000
Verify GPT: success!
switch to partitions #0, OK
mmc2(part 0) is current device
MMC read: dev # 2, block # 1024, count 4096 … 4096 blocks read: OK
There is no valid bmp file at the given address
Hit any key to stop autoboot: 0
=>
=>
=> kbi
Unknown command ‘kbi’ - try ‘help’
ls /sys/class/usb_pcie_switch_mode: No such file or directory
ls /sys/class/mcu/usb_pcie_switch_mode: No such file or directory
Seems you don’t use our official source code. So the MCU driver is not supported.
The guidance is only for our official source code. And I’m not sure whether this kernel supports the PCIe or not.
Any way, If the kernel supports PCIe already, you can setup the MCU registers directly via I2C command in u-boot command line to enable PCIe.
Enable PCIe:
i2c mw 0x18 0x33 0x01
Power Off:
i2c mw 0x18 0x80 0x01
Then press POWER key to bootup.
Notice: Make sure the PCIe driver is supported in kernel.
Tried the commands you mentioned.
=> i2c mw 0x18 0x33 0x01
Unknown command ‘i2c’ - try ‘help’
Can you please point me from where to pick the official android and linux kernel for vim3l platform?
Also let me know if there are prebuilt binaries I can directly flash and try once.
I’m also facing the same problem, I have cloned the below sources:
But if I grep through the source, I am unable to find any “usb_pcie_switch_mode”
Could you please point to the correct kernel checkout and source file ?