Skip to content

Commit 78c7e0e

Browse files
jmentiStaticRocket
authored andcommitted
fix: Kernel: _Users_guide: Prefix files and folders with :file: directive
Prefix files and folders in _Users_guide with :file: directive For all kernel image names, DT files, and related paths. Signed-off-by: Judith Mendez <[email protected]>
1 parent ef6c04b commit 78c7e0e

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

source/linux/Foundational_Components/Kernel/_Fit_Image_Guide.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Describing FIT source
3333
"""""""""""""""""""""
3434

3535
FIT Image is a packed structure containing binary blobs and configurations.
36-
The Kernel FIT Image that we have has Kernel Image, DTB and the DTBOs
36+
The Kernel FIT image that we have has Kernel Image, DTB and the DTBOs.
3737

3838
.. ifconfig:: CONFIG_part_family not in ('AM335X_family', 'AM437X_family', 'AM57X_family')
3939

@@ -112,7 +112,7 @@ Change the path in data variables to point to the respective files in your
112112
local machine.
113113

114114
For e.g change "linux.bin" to
115-
"<path-to-tisdk>/board-support/prebuilt-images/Image".
115+
:file:`<path-to-tisdk>/board-support/prebuilt-images/Image`.
116116

117117
.. ifconfig:: CONFIG_part_family not in ('AM335X_family', 'AM437X_family', 'AM57X_family')
118118

@@ -158,7 +158,7 @@ Generating the fitImage
158158
For signing a secondary platform like SK boards, you'll require
159159
additional steps
160160

161-
Change the CONFIG_DEFAULT_DEVICE_TREE and binman nodes to package u-boot.dtb
161+
Change the CONFIG_DEFAULT_DEVICE_TREE and binman nodes to package :file:`u-boot.dtb`.
162162

163163
For e.g
164164

source/linux/Foundational_Components/Kernel/_Users_Guide.rst

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Using Default Configurations
150150
[comment] instructions for 32 bit processors
151151
.. ifconfig:: CONFIG_part_family in ('AM335X_family', 'AM437X_family', 'AM57X_family')
152152

153-
For this sdk, the defconfig found in arch/arm/configs is used to create the prebuilt
153+
For this sdk, the defconfig found in :file:`arch/arm/configs` is used to create the prebuilt
154154
files. We recommend users to use this kernel configuration (or at least use it
155155
as a starting point).
156156

@@ -173,7 +173,7 @@ Using Default Configurations
173173
[comment] instructions for 64 bit processors
174174
.. ifconfig:: CONFIG_part_family not in ('AM335X_family', 'AM437X_family', 'AM57X_family')
175175

176-
For this sdk, the defconfig found in arch/arm64/configs is used to create the prebuilt
176+
For this sdk, the defconfig found in :file:`arch/arm64/configs` is used to create the prebuilt
177177
files. We recommend users to use this kernel configuration (or at least use it
178178
as a starting point).
179179

@@ -258,39 +258,40 @@ Compiling the Kernel
258258
bootable kernel image as well as any dynamic kernel modules that were
259259
selected.
260260

261-
By default U-boot expects zImage to be the type of kernel image used.
261+
By default U-boot expects a compressed, self-extracting kernel image called
262+
:file:`zImage` as the type of kernel image used.
262263

263-
To just build the zImage use this command
264+
To build, use this command:
264265

265266
.. code-block:: console
266267
267268
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- zImage
268269
269270
This will result in a kernel image file being created in the
270-
arch/arm/boot/ directory called zImage.
271+
:file:`arch/arm/boot/` directory called :file:`zImage`.
271272

272273
..
273274
[comment] instructions for 64 bit processors
274275
.. ifconfig:: CONFIG_part_family not in ('AM335X_family', 'AM437X_family', 'AM57X_family')
275276

276-
By default U-boot expects to boot kernel `Image`, DTB, and DTOs found in root/boot of the
277+
By default U-boot expects to boot kernel :file:`Image`, DTB, and DTOs found in :file:`root/boot` of the
277278
SD card if using SD/MMC boot. The exception is for HS-SE (High Security - Security Enforced)
278-
devices where the FIT image (Flattened Image Tree) named `fitImage` will boot by default.
279+
devices where the FIT image (Flattened Image Tree) named :file:`fitImage` will boot by default.
279280

280-
The FIT image includes the kernel `Image`, DTB, and DTOs. Booting with the FIT image could be
281+
The FIT image includes the kernel :file:`Image`, DTB, and DTOs. Booting with the FIT image could be
281282
enabled/disabled by setting/resetting u-boot environment variable `boot_fit`. If `boot_fit` is set
282-
to `1`, then u-boot will boot the FIT image found in root/boot of the SD card.
283+
to `1`, then u-boot will boot the FIT image found in :file:`root/boot` of the SD card.
283284

284-
Once the kernel has been configured it must be compiled to generate the bootable kernel `Image`
285-
as well as any dynamic kernel modules that were selected. To rebuild kernel `Image` to boot as
285+
Once the kernel has been configured it must be compiled to generate the bootable kernel :file:`Image`
286+
as well as any dynamic kernel modules that were selected. To rebuild kernel :file:`Image` to boot as
286287
is or for FIT image boot, use this command:
287288

288289
.. code-block:: console
289290
290291
make ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILE_64" Image
291292
292293
This will result in a kernel image file being created in the
293-
arch/arm64/boot/ directory called Image.
294+
:file:`arch/arm64/boot/` directory called :file:`Image`.
294295

295296
.. _kernel_users_guide_compiling_the_device_tree_binaries:
296297

@@ -304,7 +305,7 @@ Compiling the Device Tree Binaries
304305
Starting with the 3.8 kernel each TI evm has an unique device tree
305306
binary file required by the kernel. Therefore, you will need to build
306307
and install the correct dtb for the target device. All device tree files
307-
are located at arch/arm/boot/dts/ti/omap. Below list various TI evms and the
308+
are located at :file:`arch/arm/boot/dts/ti/omap`. Below list various TI evms and the
308309
matching device tree file.
309310

310311
+-------------------------------------------+--------------------------------------+
@@ -357,10 +358,10 @@ Compiling the Device Tree Binaries
357358
358359
make DTC_FLAGS=-@ ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- <dt filename>.dtb
359360
360-
The compiled device tree file with be located in arch/arm/boot/dts/ti/omap.
361+
The compiled device tree file with be located in :file:`arch/arm/boot/dts/ti/omap`.
361362

362363
For example, the Beaglebone Black device tree file is named
363-
am335x-boneblack.dts. To build the device tree binary you would run:
364+
:file:`am335x-boneblack.dts`. To build the device tree binary you would run:
364365

365366
.. code-block:: console
366367
@@ -379,7 +380,7 @@ Compiling the Device Tree Binaries
379380
Each TI evm has an unique device tree
380381
binary file required by the kernel. Therefore, you will need to build
381382
and install the correct dtb for the target device. TI device tree files
382-
are located in arch/arm64/boot/dts/ti. Below list various TI evms and the
383+
are located in :file:`arch/arm64/boot/dts/ti`. Below list various TI evms and the
383384
matching device tree file.
384385

385386
+-------------------------------------------+--------------------------------------+
@@ -431,10 +432,10 @@ Compiling the Device Tree Binaries
431432
432433
make DTC_FLAGS=-@ ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILE_64" ti/<dt filename>.dtb
433434
434-
The compiled device tree file with be located in arch/arm64/boot/dts/ti.
435+
The compiled device tree file with be located in :file:`arch/arm64/boot/dts/ti`.
435436

436437
For example, the AM64x EVM device tree file is named
437-
k3-am642-evm.dts. To build the device tree binary you would run:
438+
:file:`k3-am642-evm.dts`. To build the device tree binary you would run:
438439

439440
.. code-block:: console
440441
@@ -454,7 +455,7 @@ Compiling the Kernel Modules
454455
.. ifconfig:: CONFIG_part_family in ('AM335X_family', 'AM437X_family', 'AM57X_family')
455456

456457
By default the majority of the Linux drivers used in the sdk are not
457-
integrated into the kernel image file (zImage). These drivers are built as
458+
integrated into the kernel image file :file:`zImage`. These drivers are built as
458459
dynamic modules. The command to build these modules is:
459460

460461
.. code-block:: console
@@ -466,7 +467,7 @@ Compiling the Kernel Modules
466467
.. ifconfig:: CONFIG_part_family not in ('AM335X_family', 'AM437X_family', 'AM57X_family')
467468

468469
By default the majority of the Linux drivers used in the sdk are not
469-
integrated into the kernel image file (Image). These drivers are built as
470+
integrated into the kernel image file :file:`Image`. These drivers are built as
470471
dynamic modules. The command to build these modules is:
471472

472473
.. code-block:: console
@@ -529,7 +530,7 @@ Installing the Kernel Image and Device Tree Binaries
529530
530531
cd <kernel sources dir>
531532
sudo cp arch/arm/boot/zImage $boot
532-
arch/arm/boot/dts/ti/omap/am335x-boneblack.dtb $boot
533+
sudo cp arch/arm/boot/dts/ti/omap/am335x-boneblack.dtb $boot
533534
534535
Where ``$boot`` is the mount point for the boot partition of the SD card.
535536

@@ -556,7 +557,7 @@ Installing the Kernel Image and Device Tree Binaries
556557
Starting with U-boot 2013.10, the kernel and device tree binaries are read from
557558
the root file system's boot directory when booting from MMC/EMMC. (NOT from the
558559
/boot/ partition on the MMC). This would mean you copy the kernel image and device
559-
tree binaries to /media/rootfs/boot instead of /media/boot.
560+
tree binaries to :file:`/media/rootfs/boot` instead of :file:`/media/boot`.
560561

561562
Installing the Kernel Modules
562563
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)