VIMs Ubuntu 20.04 V1.0.9-211217 OTA Release

ok great, thank you!

@ms_de If you use mainline firmware. Don’t forget this

1 Like

thanx I did it, and it has installed dkms.

But I cannot see any device when giving command lspci -nn | grep 089a

I want to check if PCIE is enabled, but the app for switch USB3 - PCIE is not running on the desktop. And the command cat /sys/class/mcu/usb_pcie_switch_mode not running because folder mcu is not there.

Do you have another idea?

BTW, I see that my USB Keyboard is not detected correctly when I boot, I need to replug the USB dongle then it works…

1 Like

@ms_de You can use kbi command in uboot to switch to USB3.0

I need to have serial connection?

@ms_de Yes. If you don’t have a serial tool. you can try krescue.

ok thank you, let me try both ways.

I have checked via Serial, the PCIE is already activated. I activated again and rebooted. But the PCIE is still not recognized. very strange.

Before when I was working on the other image VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V1.0.9-211217.img then I could see the PCIE device, so the device should be not broken or so. Do you have any idea?

I have run this:

khadas@Khadas:~$ sudo lspci -vv
00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 40
Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: [disabled]
Prefetchable memory behind bridge: [disabled]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
Expansion ROM at fc700000 [virtual] [disabled] [size=64K]
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1+ D2- AuxCurrent=375mA PME(D0+,D1+,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 0000000004679508 Data: 0000
Capabilities: [70] Express (v2) Root Port (Slot-), MSI 00
DevCap: MaxPayload 256 bytes, PhantFunc 0
ExtTag- RBE+
DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 256 bytes, MaxReadReq 256 bytes
DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend-
LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <1us, L1 <2us
ClockPM- Surprise- LLActRep+ BwNot+ ASPMOptComp+
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 5GT/s (ok), Width x1 (ok)
TrErr- Train- SlotClk+ DLActive+ BWMgmt- ABWMgmt-
RootCap: CRSVisible+
RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna+ CRSVisible+
RootSta: PME ReqID 0000, PMEStatus- PMEPending-
DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, NROPrPrP+, LTR-
10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt-, EETLPPrefix-
EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
FRS-, LN System CLS Not Supported, TPHComp-, ExtTPHComp-, ARIFwd-
AtomicOpsCap: Routing- 32bit- 64bit- 128bitCAS-
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled ARIFwd-
AtomicOpsCtl: ReqEn- EgressBlck-
LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
Capabilities: [100 v2] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
HeaderLog: 00000000 00000000 00000000 00000000
RootCmd: CERptEn+ NFERptEn+ FERptEn+
RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd-
FirstFatal- NonFatalMsg- FatalMsg- IntMsg 0
ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000
Capabilities: [148 v1] L1 PM Substates
L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2- ASPM_L1.1+ L1_PM_Substates+
PortCommonModeRestoreTime=55us PortTPowerOnTime=12us
L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
T_CommonMode=55us
L1SubCtl2: T_PwrOn=10us
Kernel driver in use: pcieport

I found similar issue at this forum: Google Coral M.2 at mini PCIe not detected · Issue #334 · google-coral/edgetpu · GitHub

Maybe our issue is related to BIOS also?

I have checked this, seems that pcie driver is not loaded:
khadas@Khadas:~$ ls /dev/apex_0
ls: cannot access ‘/dev/apex_0’: No such file or directory

Just FYI I have installed OS to Emmc but same issue.

@ms_de Did you use the least release firmware ?

http://dl.khadas.com/Firmware/VIM3/Ubuntu/SD_USB/VIM3_Ubuntu-gnome-focal_Linux-5.16-rc2_arm64_SD-USB_V1.0.9-211217.img.xz

yes exactly the same firmware

we use the M.2 slot for PCIE, maybe that is the issue? The USB version of Coral is working.

@ms_de I will check it later

Hi Frank,
happy new year. Did you got time to check it out?

@hyphop
How to add more resolutions to Ubuntu focal with 4.9 kernel installed on emmc?

For me it only allows 1920x1080 and I want 1366x768 option.

I see that now, the ts050 doesn’t turn on before the plymouth boot splash,
its turned off, and when it turns on I’m presented to the tty console,

however when turning off the device, the bootsplash can be seen
is there a fix for this ?

Did you find a solution to this? I am having exactly the same issue

Did you have time to check it out? Same problem on my side. I switched to PCIe via Krescue and it can’t detect the TPU. Worked fine with the 4.9 kernel

@brunovollmer @ms_de We had check it last week. I work fine with mainline. But 4.9 kernel can’t be use

Any idea why it does not show up when I search for it? For 4.9 it shows up but then other problems stop it from working.

Could you post your steps you have taken?

Thanks

@brunovollmer Did you switch to PCIE?

https://docs.khadas.com/linux/vim3/PcieUsbPort.html

And did you follow this doc ?