Skip to content

Commit 9d31bbf

Browse files
chintanv133StaticRocket
authored andcommitted
feat(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 <[email protected]>
1 parent 8956c45 commit 9d31bbf

File tree

3 files changed

+27
-45
lines changed

3 files changed

+27
-45
lines changed

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: 19 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -50,56 +50,30 @@ 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

81-
If using ISC dhcpd an example host entry would look like this:
55+
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
{
87-
range dynamic-bootp 10.0.0.2 10.0.0.16;
88-
if substring (option vendor-class-identifier, 0, 16) = "TI K3 Bootp Boot"
89-
{
90-
filename "tiboot3.bin";
91-
} elsif substring (option vendor-class-identifier, 0, 20) = "AM62X U-Boot R5 SPL"
92-
{
93-
filename "tispl.bin";
94-
} elsif substring (option vendor-class-identifier, 0, 21) = "AM62X U-Boot A53 SPL"
95-
{
96-
filename "u-boot.img";
97-
}
98-
99-
range 10.0.0.17 10.0.0.25;
100-
default-lease-time 60000;
101-
max-lease-time 720000;
102-
next-server 10.0.0.1;
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, |__SPL_VCI_STRING_LEN__|) = "|__SPL_VCI_STRING__|"
66+
{
67+
filename "tispl.bin";
68+
} elsif substring (option vendor-class-identifier, 0, |__UBOOT_VCI_STRING_LEN__|) = "|__UBOOT_VCI_STRING__|"
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;
10377
}
10478
10579
A walk through of these steps to setup isc-dhcp-server on Ubuntu can be found at `here

0 commit comments

Comments
 (0)