|
| 1 | +.. _getting_started: |
| 2 | + |
| 3 | +Getting Started |
| 4 | +=============== |
| 5 | + |
| 6 | +Description |
| 7 | +----------- |
| 8 | + |
| 9 | +The Linux kernel in this repository is the `Linux kernel from Xilinx |
| 10 | +<https://github.com/Xilinx/linux-xlnx>`__ together with drivers & patches |
| 11 | +applied from Analog Devices. |
| 12 | + |
| 13 | +Details about the drivers that are of interest and supported by this repository |
| 14 | +can be found on the :dokuwiki:`Analog Devices wiki |
| 15 | +<resources/tools-software/linux-drivers-all>`. This readme focuses on details |
| 16 | +specific to how this code is structured/organized, how it was derived, etc. |
| 17 | + |
| 18 | +The current main is based on `xilinx v2024.1 |
| 19 | +<https://github.com/Xilinx/linux-xlnx/tree/xilinx-v2024.1>`__. For details |
| 20 | +about the merge see commit :git-linux:`d31fa3135dbef8bf186a7c42fd87b3eedd8446e9 |
| 21 | +<commit/d31fa3135dbef8bf186a7c42fd87b3eedd8446e9>` (Merge tag ``xilinx-v2024.1`` |
| 22 | +of https://github.com/Xilinx/linux-xlnx.git). In this Xilinx release, the |
| 23 | +current version of upstream Linux is `Linux 6.6 |
| 24 | +<https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tag/?h=v6.6>`__. |
| 25 | + |
| 26 | +For legacy reasons, the :git-linux:`xcomm_zynq:` is still available and should |
| 27 | +be in-sync with current master. That branch used to be the old master branch. |
| 28 | + |
| 29 | +How to build |
| 30 | +------------ |
| 31 | + |
| 32 | +For build instructions :dokuwiki:`check the wiki |
| 33 | +<resources/tools-software/linux-drivers-all#building_the_adi_linux_kernel>`. |
| 34 | + |
| 35 | +Release branches |
| 36 | +---------------- |
| 37 | + |
| 38 | +All release branches have the ``[YEAR]_R[NUM]`` format. There are some special |
| 39 | +release branches sometimes (like ``2014_R2_altera``, because it wasn't always |
| 40 | +possible to match the Linux repo between Xilinx & Intel/Altera. |
| 41 | + |
| 42 | +Each release is matched with a release from the :git-hdl:`HDL repo <>`. The |
| 43 | +branching name/model for the HDL repo differs a bit from the one in this repo, |
| 44 | +but the matching should be obvious. Therefore, each kernel in the release |
| 45 | +branches is be built using the toolchains from a specific version of Vivado & |
| 46 | +Quartus. A matching of these can be found :dokuwiki:`on the wiki |
| 47 | +<resources/fpga/docs/releases>`. Release branches can be built using other GCC |
| 48 | +toolchains, but in the official SD-card images provided, they will use the |
| 49 | +toolchains from Vivado/Quartus. |
| 50 | + |
| 51 | +Rebased branches |
| 52 | +---------------- |
| 53 | + |
| 54 | +Starting with :git-linux:`adi-4.9.0:` there are rebased branches. They're |
| 55 | +typically rebased branches from Xilinx with the ADI patches on top so that it's |
| 56 | +easier to identify patches that are not yet upstreamed. |
| 57 | + |
| 58 | +For :git-linux:`adi-4.9.0:` the base was branch `xlnx_rebase_v4.9 |
| 59 | +<https://github.com/Xilinx/linux-xlnx/tree/xlnx_rebase_v4.9>`__ at commit |
| 60 | +:git-linux:`d45e196f59364e9f5eafe46027a7d2af349083974 |
| 61 | +<commit/d45e196f59364e9f5eafe46027a7d2af349083974>` in the ADI repo and commit |
| 62 | +`45e196f59364e9f5eafe46027a7d2af349083974 |
| 63 | +<https://github.com/Xilinx/linux-xlnx/commit/45e196f59364e9f5eafe46027a7d2af349083974>`__ |
| 64 | +in the Xilinx repo. All ADI patches & drivers up to a specific point in time |
| 65 | +were cherry-picked to that branch from master. Note that since the |
| 66 | +``adi-4.9.0`` branch is the first rebased branch, it's not particularly the |
| 67 | +best rebase that could have been done, but it should provide some patches that |
| 68 | +are somewhat reasonable to take and apply on top of an upstream 4.9 kernel |
| 69 | +after some polishing. |
| 70 | + |
| 71 | +The latest rebased branch depends on the current linux version supported in |
| 72 | +master. At the time of writing it is 5.10 so that :git-linux:`adi-5.10.0:` is |
| 73 | +the latest. Also note that a diff between the latest rebased branch and master |
| 74 | +(``git diff master adi-5.10.0``) must be NULL. |
| 75 | + |
| 76 | +Raspberry Pi branches |
| 77 | +--------------------- |
| 78 | + |
| 79 | +These provide a kernel that is good to run on a Raspberry Pi board. All the |
| 80 | +drivers present in the master branch should be automatically cherry-picked into |
| 81 | +the latest rpi branch. |
| 82 | + |
| 83 | +As in the rebased branches, the latest rpi branch should be in accordance with |
| 84 | +the current kernel version supported in master. At the time of writing, the |
| 85 | +kernel version in master is 5.10 so that the correspondent latest rpi branch is |
| 86 | +:git-linux:`rpi-5.10.y:`. |
| 87 | + |
| 88 | +Intel/Altera branches |
| 89 | +--------------------- |
| 90 | + |
| 91 | +Because the kernel versions that Intel/Altera were usually not in sync with |
| 92 | +Xilinx's, ``altera-*`` branches were created: |
| 93 | + |
| 94 | +- :git-linux:`altera_4.0:` |
| 95 | +- :git-linux:`altera_4.4:` |
| 96 | +- :git-linux:`altera_4.6:` |
| 97 | +- :git-linux:`altera_4.9:` |
| 98 | + |
| 99 | +These branches are derived from the `Intel/Altera linux kernel repo |
| 100 | +<https://github.com/altera-opensource/linux-socfpga>`__, together with some |
| 101 | +merged versions of old master branches. |
| 102 | + |
| 103 | +The hope is that with the upcoming Linux 4.19, these branches would stop |
| 104 | +existing, since Intel/Altera seems to keep in sync their kernel version with |
| 105 | +more recent non-LTS kernels. Typically the releases/references that are |
| 106 | +provided for these boards should already be in the mainline kernel, so these |
| 107 | +branches should no longer be needed. |
0 commit comments