SolidRun / lx2160a_build

Scripts to build basic images for LX2160A COM express type 7 modules
58 stars 47 forks source link

u-boot LSDK-20.12: Missing patch for DPL load location #60

Open Thermi opened 3 years ago

Thermi commented 3 years ago

We got an issue with loading DPL files in LSDK 20.12 in uboot. We suspect it's due to the location the DPL file gets loaded into. In LSDK 20.04 with the patches, that is different from LSDK 20.12 with patches. The specific patch that changes that is 0007-lx2160a-load-dpl-into-0x80001000-instead-of-0x80d000.patch.

We haven't tested yet if that helps the issue, but we're pretty certain it's that.

rabeeh commented 3 years ago

I just re-tested from a clean build; DPL is loaded correctly. Which SERDES configuration are you trying to use?

Thermi commented 3 years ago

We're trying to use SERDES config 4-5-2.

rabeeh commented 3 years ago

Did you write your own DPL / DPC? Using SD1=4 as SGMII should function without setting PLLS <-- PLLF The only issue we previously had is setting more than 6 DPNI in runtime due to some resource allocation issues.

If you were able to fix that resource issue please let me know how you have done that.

Thermi commented 3 years ago

No, we used the ones provided.

Thermi commented 3 years ago

We have working DPC and DPL files for this use case. The problem was solved by dividing up 96 of the 8 prio channels to make enough channels with 2 prios. It's the same fix as described in a commit by Ionut Carlig titled ""Changes for Serdes1 protocol 8 and 13".

The DPNIs are ordered in reverse because at least with our kernel, DPNIs with a higher ID are assigned interface names first.

dpl and dpc 4-5-2.zip