Skip to content

Commit c9e11c1

Browse files
committed
docs(u-boot): Update documentation with device specific config snippet
Update Ethernet boot documentation with device specific config snippet to avoid adding the same code-block for every device. Also add config variables of the device for which documentation already exist, AM64X and AM62X. Signed-off-by: Chintan Vankar <c-vankar@ti.com>
1 parent 1645bb5 commit c9e11c1

3 files changed

Lines changed: 12 additions & 30 deletions

File tree

configs/AM62X/AM62X_linux_config.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ Replacement Variables
3131
'__FEATURINGMATRIX__' : \
3232
'__SYSFW_CORE_NAME__' : 'TIFS'
3333
'__IMAGE_TYPE__' : 'default'
34+
'__SPL_VCI_STRING_LEN__' : '19'
35+
'__SPL_VCI_STRING__' : 'AM62X U-Boot R5 SPL'
36+
'__UBOOT_VCI_STRING_LEN__' : '20'
37+
'__UBOOT_VCI_STRING__' : 'AM62X U-Boot A53 SPL'
3438

3539
Configuration Values
3640
--------------------

configs/AM64X/AM64X_linux_config.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ Replacement Variables
3333
'__PCIE_BASE_ADDRESS__' : 'f102000'
3434
'__PCIE_DEVICE_ID__' : '0xb010'
3535
'__IMAGE_TYPE__' : 'default'
36+
'__SPL_VCI_STRING_LEN__' : '19'
37+
'__SPL_VCI_STRING__' : 'AM64X U-Boot R5 SPL'
38+
'__UBOOT_VCI_STRING_LEN__' : '20'
39+
'__UBOOT_VCI_STRING__' : 'AM64X U-Boot A53 SPL'
3640

3741
Configuration Values
3842
--------------------

source/linux/Foundational_Components/U-Boot/UG-Network-K3.rst

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -50,48 +50,22 @@ binaries files to be sent over TFTP are listed in the table below.
5050
- Disable link info Bootmode pin so that ROM can identify the PHY and establishes link with the supported speed and duplex mode.
5151
- Please note that due to MDIO corruption (Errata i2329), booting over Ethernet is not recommended for production purposes.
5252

53-
.. ifconfig:: CONFIG_part_variant in ('AM64X')
54-
55-
If using ISC dhcpd an example host entry would look like this:
56-
57-
.. code-block:: text
58-
59-
subnet 10.0.0.0 netmask 255.0.0.0
60-
{
61-
range dynamic-bootp 10.0.0.2 10.0.0.16;
62-
if substring (option vendor-class-identifier, 0, 16) = "TI K3 Bootp Boot"
63-
{
64-
filename "tiboot3.bin";
65-
} elsif substring (option vendor-class-identifier, 0, 20) = "AM64X U-Boot R5 SPL"
66-
{
67-
filename "tispl.bin";
68-
} elsif substring (option vendor-class-identifier, 0, 21) = "AM64X U-Boot A53 SPL"
69-
{
70-
filename "u-boot.img";
71-
}
72-
73-
range 10.0.0.17 10.0.0.25;
74-
default-lease-time 60000;
75-
max-lease-time 720000;
76-
next-server 10.0.0.1;
77-
}
78-
79-
.. ifconfig:: CONFIG_part_variant in ('AM62X')
53+
.. ifconfig:: CONFIG_part_variant in ('AM64X','AM62X')
8054

8155
If using ISC dhcpd an example host entry would look like this:
8256

83-
.. code-block:: text
57+
.. parsed-literal::
8458
8559
subnet 10.0.0.0 netmask 255.0.0.0
8660
{
8761
range dynamic-bootp 10.0.0.2 10.0.0.16;
8862
if substring (option vendor-class-identifier, 0, 16) = "TI K3 Bootp Boot"
8963
{
9064
filename "tiboot3.bin";
91-
} elsif substring (option vendor-class-identifier, 0, 20) = "AM62X U-Boot R5 SPL"
65+
} elsif substring (option vendor-class-identifier, 0, |__SPL_VCI_STRING_LEN__|) = "|__SPL_VCI_STRING__|"
9266
{
9367
filename "tispl.bin";
94-
} elsif substring (option vendor-class-identifier, 0, 21) = "AM62X U-Boot A53 SPL"
68+
} elsif substring (option vendor-class-identifier, 0, |__UBOOT_VCI_STRING_LEN__|) = "|__UBOOT_VCI_STRING__|"
9569
{
9670
filename "u-boot.img";
9771
}

0 commit comments

Comments
 (0)