Skip to content

Commit cc72dfa

Browse files
committed
fix: Fixup Linux kernel paths for arm architecture
In 6.12 Linux kernel version, DT path is now in arch/arm/boot/dtb/ti/omap so update kernel build user guide with new DT path. Also update expected path where zImage and DT file are loaded from for SD card boot, which should be from "boot" partition. Signed-off-by: Judith Mendez <[email protected]>
1 parent 436d3bb commit cc72dfa

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

source/linux/Foundational_Components/Kernel/_Users_Guide.rst

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,15 @@ a command of the form:
144144
Using Default Configurations
145145
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146146

147-
For this sdk, the defconfig found in arch/arm64/configs is used to create the prebuilt
148-
files. We recommend users to use this kernel configuration (or at least use it
149-
as a starting point).
147+
150148

151149
..
152150
[comment] instructions for 32 bit processors
153151
.. ifconfig:: CONFIG_part_family in ('AM335X_family', 'AM437X_family', 'AM57X_family')
154152

155-
platformName is am335x-evm for AM335x, am437x-evm for AM437x, am57xx-evm for
156-
AM57xx, k2hk-evm for K2H/K2K, k2e-evm for K2E, k2l-evm for K2L, k2g-evm for
157-
K2G, and omapl138-lcdk for OMAP-L138.
153+
For this sdk, the defconfig found in arch/arm/configs is used to create the prebuilt
154+
files. We recommend users to use this kernel configuration (or at least use it
155+
as a starting point).
158156

159157
For example, to apply the default AM335x kernel configuration, use:
160158

@@ -175,6 +173,10 @@ as a starting point).
175173
[comment] instructions for 64 bit processors
176174
.. ifconfig:: CONFIG_part_family not in ('AM335X_family', 'AM437X_family', 'AM57X_family')
177175

176+
For this sdk, the defconfig found in arch/arm64/configs is used to create the prebuilt
177+
files. We recommend users to use this kernel configuration (or at least use it
178+
as a starting point).
179+
178180
For example, to apply the recommended kernel configuration for K3 devices, use:
179181

180182
For Linux,
@@ -302,7 +304,7 @@ Compiling the Device Tree Binaries
302304
Starting with the 3.8 kernel each TI evm has an unique device tree
303305
binary file required by the kernel. Therefore, you will need to build
304306
and install the correct dtb for the target device. All device tree files
305-
are located at arch/arm/boot/dts/. Below list various TI evms and the
307+
are located at arch/arm/boot/dts/ti/omap. Below list various TI evms and the
306308
matching device tree file.
307309

308310
+-------------------------------------------+--------------------------------------+
@@ -355,7 +357,7 @@ Compiling the Device Tree Binaries
355357
356358
make DTC_FLAGS=-@ ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- <dt filename>.dtb
357359
358-
The compiled device tree file with be located in arch/arm/boot/dts.
360+
The compiled device tree file with be located in arch/arm/boot/dts/ti/omap.
359361

360362
For example, the Beaglebone Black device tree file is named
361363
am335x-boneblack.dts. To build the device tree binary you would run:
@@ -730,18 +732,20 @@ Installing the Kernel Image and Device Tree Binaries
730732
.. code-block:: console
731733
732734
cd <kernel sources dir>
733-
sudo cp arch/arm/boot/zImage <rootfs path>/boot
734-
sudo cp arch/arm/boot/dts/<dt file>.dtb <rootfs path>/boot/dtb
735+
sudo cp arch/arm/boot/zImage $boot
736+
sudo cp arch/arm/boot/dts/ti/omap/<dt file>.dtb $boot
735737
736738
For example, if you wanted to copy the kernel image and BeagleBone
737-
Black device tree file to the rootfs partition of a SD card you would
739+
Black device tree file to the SD card partition, you would
738740
enter the below commands:
739741

740742
.. code-block:: console
741743
742744
cd <kernel sources dir>
743-
sudo cp arch/arm/boot/zImage /media/rootfs/boot
744-
arch/arm/boot/dts/am335x-boneblack.dtb /media/rootfs/boot
745+
sudo cp arch/arm/boot/zImage $boot
746+
arch/arm/boot/dts/ti/omap/am335x-boneblack.dtb $boot
747+
748+
Where ``$boot`` is the mount point for the boot partition of the SD card.
745749

746750
..
747751
[comment] instructions for 64 bit processors

0 commit comments

Comments
 (0)