Commit Graph

189 Commits

Author SHA1 Message Date
Josua Mayer 0e699d9e48 u-boot: improve compatibility with pci devices behind bridges 2024-04-14 17:15:41 +02:00
Josua Mayer 0042779f74 document building external kernel modules 2024-03-29 21:33:00 +01:00
Josua Mayer ec11295b2d linux: enable sctp module by default 2024-03-28 11:54:21 +01:00
Takarth bae3e6ec75 u-boot: add option to initialise UART 1 & 2
Add and enable a option to initalize both UART 1 & 2 of lx2160a by
configuring in u-boot since linux driver is missing support.
2024-01-04 18:18:53 +01:00
Josua Mayer de958436f7 linux: fix bug in serdes driver breaking all SFPs of Honeycomb board 2023-11-25 15:38:53 +01:00
Josua Mayer b94fc62157 runme: update fall-back device-tree name for old platforms
Always set DEFAULT_FDT_FILE to ensure that, unless specified otherwise
for a specific serdes protocol / platform name, the SolidRun default
reference platform Clearfog CX is chosen.
2023-11-25 15:17:49 +01:00
Josua Mayer 381aae1595 dpl/dpc: re-enable ptp clock in MC firmware 2023-11-25 14:49:19 +01:00
Josua Mayer 10a9131170 linux: fix another pcie 64-bit memory regions assignment typo 2023-11-19 11:23:45 +01:00
Josua Mayer 8f5425be85 linux: fix pcie 64-bit memory regions assignment typos 2023-10-27 19:08:29 +02:00
Josua Mayer 4aa488e826 runm,e: fix download location of ddr-phy-binary 2023-10-25 15:44:43 +02:00
Josua Mayer 728c868996 fix build errors for secure-boot 2023-10-25 12:58:40 +02:00
Josua Mayer 04c6e27c3b docker: upgrade python release to fix dtschema build error 2023-10-18 12:40:29 +02:00
Josua Mayer 428a104d3d rcw: add commented serdes configuration for serdes 9_4_3
We do not currently have a product for this configuration, it is merely
an example for custom carriers.
2023-09-27 12:17:28 +02:00
Josua Mayer 1fba07b9bf uboot: support cex ethernet phy address runtime patching for Linux DTB 2023-09-18 11:22:34 +02:00
Josua Mayer c9a2a04d51 linux: add preview device-tree for cex6 internal reference platform 2023-09-13 11:59:51 +02:00
Josua Mayer 63d0f788b0 runme: generate standalone kernel/-headers packages 2023-09-03 12:13:53 +02:00
Josua Mayer 45f89daa3a add support for lx2160a cex6 internal evaluation board 2023-09-03 11:49:42 +02:00
Josua Mayer e7d2de52e4 rcw: add commented examples for serdes protocols 1_13_3 2023-08-24 13:27:16 +02:00
Josua Mayer 96afe40a1a README: explain how to support a new board 2023-08-24 12:51:07 +02:00
Josua Mayer 96fe73d33c README: document build options 2023-08-24 11:52:31 +02:00
Josua Mayer a4b3d50582 runme: check DTBs against schema during build 2023-08-10 13:42:34 +02:00
Josua Mayer ebbc467ea5 linux: add support for 25gbps sfp28 direct-attach active optical cable 2023-08-10 13:42:34 +02:00
Josua Mayer 4a1e749bce add nxp mdio-proxy kernel module to support marvell phy firmware utility 2023-07-13 19:02:30 +02:00
Josua Mayer 63bbd52b74 runme: dynamically adapt image size according to generated rootfs 2023-06-14 22:09:23 +03:00
Josua Mayer cc5bb433f6 runme: rewrite ubuntu / debian rootfs generation logic
Mainly remove use of buildroot as initial rootfs for use by QEMU.
Instead the generated device kernel can be used

For initial rootfs - Ubuntu has a downloadable minimal rootfs, Debian
can boot result of debootstrap stage 1.
2023-06-14 21:57:52 +03:00
Josua Mayer baa4584100 support booting from gzip compressed kernel image
U-Boot "booti" command can decompress gzip-compressed kernel
automatically, if a memory region has been specified as decompression
workspace through kernel_comp_addr_r & kernel_comp_size variables.

Switching generated images to include Image.gz frees up some space in
the 350MB initial rootfs and helps with journal errors during fist boot.
2023-06-14 19:49:20 +03:00
Josua Mayer 850cda0935 u-boot: fix phy-mode / mac assignment for dpmacs 3-4 2023-06-04 18:19:40 +03:00
Josua Mayer a6b0a4830a u-boot: fix boot for lx2162 clearfog 2023-06-04 13:19:33 +03:00
Josua Mayer 92bef23933 u-boot: add dedicated device-tree for lx2162-clearfog
Implicitly fixes mac address assignment all interfaces.
2023-05-27 17:29:59 +03:00
Josua Mayer 143b0ba3ed rcw: fix dpmac11 tx/rx for lx2162 2023-05-27 17:26:27 +03:00
Josua Mayer 619812c109 linux: fix dpdk support
- add back support for original 10.28.100 FW supporting online dpmac
  protocol change
- ensure serdes phy is always enabled as workaround for dpdk link-up
- backport a slightly suspicious tweak for bqman from NXP LF-6.1 release
2023-05-13 18:48:48 +03:00
Josua Mayer 6650ab5314 update MC firmware to 10.37.0
NXP MC release 10.37.0 added official support for switching serdes
between 10 and 25G network speed.
This is currently only supported on LX2162 Clearfog!

Upgrade all configurations to the new MC firmware.

Tested on:
- Clearfog CX (SD=8_5_2)
- Half-Twins (SD=8S_9_2)
- LX2162 Clearfog (SD=18_9_0)
2023-04-30 15:00:28 +03:00
Josua Mayer c25c108612 update MC firmware & DPL on all configurations
MC firmware 10.36 requires adding "compatible" properties to DPL.
Update all DPLs accordingly.
2023-04-30 14:04:10 +03:00
Josua Mayer 2c639d4eee lx2162-clearfog: fix assignment of 2500 speed capability for rj45 2023-04-30 11:12:27 +03:00
Josua Mayer 5bf5e083eb lx2162-clearfog: fix upper 25G sfp connector modabs gpio 2023-04-20 17:07:31 +03:00
Josua Mayer 825e6180e9 linux: lx2160a: add quirk, mmc controller has no LEDs
In Linux we can by default see 2 LEDs - mmc:0, mmc:1 - created in
/sys/class/leds/. This is unexpected for 2 reasons:

1. LX2160A has no mention of mmc led functionality for the pads
2. LX2160A reference manual describes the relevant bit in control
   register as reserved.

Enable SDHCI_QUIRK_NO_LED for LX2160A.
2023-04-20 16:37:19 +03:00
Josua Mayer 910d43aecd lx2162-clearfog: add support for serdes config 18_9_0
This configuration enables both:
- 4x SFP (2x switching between 10/25G)
- 8x RJ45 @1Gbps each

Note that DPL and MC FW have been updated from problematic 10.32.0.
2023-04-20 14:00:49 +03:00
Josua Mayer 28b2fe14e8 half-twins: upgrade MC firmware from 10.32.0 to 10.36.0 release
10.32 has proven unreliable for dpmac 15, 16 & 18.
Upgrade to 10.36 (latest) release which is working well.
2023-04-19 14:48:11 +03:00
Josua Mayer 7d929bd639 lx2162-clearfog: add support for 25Gbps on 2x SFP+ connectors
Ensure to choose serdes 1 protocol 18 to enable support for 25Gbpps on 2
of the SFP+ connectors. The other 2 do not have a retimer and will
likely have bad signal integrity if used at 25Gbpbs.
2023-04-18 14:45:06 +03:00
Josua Mayer 7fbc7465e0 add support for dynamic serdes protocol switch between 10G & 25G
NXP has developed software support in the MC firmware, and Linux to
reconfigure serdes speed dynamically between 10G and 25G protocols
(USXGMII/CAUI).
Backport the provided patches to work with our LSDK-21.08 fork.
2023-04-18 13:49:25 +03:00
Josua Mayer 89dd96c998 mc-utils: clearfog-xz/honeycomb: fix link-up on dpmac3 (QSFP28 port 1) 2023-04-16 12:09:18 +03:00
mefer 734c7841fd Update runme.sh
Requires python version
2023-04-09 12:48:15 +03:00
Josua Mayer 7851827e78 u-boot: fix patch #42 to apply cleanly
Fixes: e89f4ca clearfog-cx/honeycomb: add support for serdes 1 protocol 20 (2x 40G)
2023-04-09 12:45:45 +03:00
Louis Jeanneau b344a4833c changed url of repo from codeaurora to github for source code cloning 2023-04-04 01:06:57 +02:00
Josua Mayer e89f4ca662 clearfog-cx/honeycomb: add support for serdes 1 protocol 20 (2x 40G) 2023-04-03 13:28:10 +03:00
Josua Mayer e28251187b linux: lx2162-clearfog: update phy addresses for new carrier 2023-03-26 11:58:29 +03:00
Josua Mayer fa9668c1d1 linux: clearfog-cx: fix support for 4x 10/25 ports on qsfp connector
After changes to serdes driver and rcw, add the missing device-tree
descriptions to allow dpmac driver to probe again.
2023-03-26 11:56:45 +03:00
Josua Mayer 7d2e9335d2 linux: extend pci address space to maximum to support large bars 2023-01-30 17:52:25 +02:00
Justin Alan Ryan 4f357bcaa1 add docker support per https://community.solid-run.com/t/building-a-docker-enabled-kernel-for-the-solidrun/379 2023-01-26 11:14:46 +02:00
Josua Mayer 429e382574 atf: fix bug where RCWSR12-14 were accidentally overridden with 0 2023-01-22 16:18:43 +02:00