Skip to content

Commit 532ecf2

Browse files
committed
feat: Enhance build instructions for BeagleBadge
Enhance and fix all build instructions for BeagleBadge across U-Boot, Linux kernel, TF-A, and Arago dist build guides. Signed-off-by: Judith Mendez <jm@ti.com>
1 parent 27b0d0f commit 532ecf2

4 files changed

Lines changed: 36 additions & 13 deletions

File tree

source/boards/beagle/BeagleBadge/linux/Getting_Started.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,20 @@ Low level sources
2020

2121
.. list-table::
2222
:header-rows: 1
23-
:widths: 15, 15, 15
23+
:widths: 15, 15, 15, 15
2424

2525
* - Component
2626
- Branch
2727
- Source File
28+
- Build Instructions
2829
* - U-Boot
2930
- `ti-u-boot-2025.01 <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/log/?h=ti-u-boot-2025.01>`__
3031
- :file:`configs/am62lx_beaglebadge_defconfig`
32+
- :ref:`U-Boot Build Guide <u-boot-build-guide-setup-k3>`
3133
* - Linux Kernel
3234
- `ti-linux-6.12.y <https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/log/?h=ti-linux-6.12.y>`__
3335
- :file:`arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts`
36+
- :ref:`Linux Kernel Build Guide <preparing-to-build>`
3437

3538
########################
3639
Building for BeagleBadge
@@ -44,18 +47,20 @@ Building for BeagleBadge
4447
$ cd build
4548
$ . conf/setenv
4649
$ export MACHINE=beaglebadge-ti
47-
$ ARAGO_SYSVINIT=1 bitbake -k tisdk-tiny-image
50+
$ bitbake -k tisdk-default-image
4851
4952
For more information on building Arago for BeagleBadge, go :ref:`here <building-the-sdk-with-yocto>`.
5053

5154
.. note::
5255

53-
Yocto: Due to the 256MB size of LPDDR on BeagleBadge, there may be limited free memory (about 17-20MB)
54-
for developing applications with the **default**, TI-provided Arago distribution image. Switching to
55-
sysVinit for init system instead of systemd can help reduce the memory footprint further. Please go
56-
`here <https://www.linuxjournal.com/content/embracing-future-transition-sysvinit-systemd-linux>`__
56+
Yocto: Due to the 256MB size of LPDDR on BeagleBadge, there may be limited free memory availiable for
57+
developing applications with the **default**, TI-provided Arago distribution image. Switching to sysVinit
58+
for init system instead of systemd and building TI **tiny** image can help reduce the memory footprint.
59+
Please go `here <https://www.linuxjournal.com/content/embracing-future-transition-sysvinit-systemd-linux>`__
5760
for a comparison of both init systems.
5861

62+
$ ARAGO_SYSVINIT=1 bitbake -k tisdk-tiny-image
63+
5964
To build Armbian for BeagleBadge, refer to **Debian SDK user manual** found `here <https://www.ti.com/tool/download/AM62L-LINUX-SDK>`__.
6065

6166
###################

source/linux/Foundational_Components/Kernel/_Users_Guide.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ Compiling the Device Tree Binaries
370370
+===========================================+======================================+
371371
| AM62Lx EVM | k3-am62l3-evm.dts |
372372
+-------------------------------------------+--------------------------------------+
373+
| BeagleBadge | k3-am62l3-badge.dts |
374+
+-------------------------------------------+--------------------------------------+
373375
| AM62Px SK | k3-am62p5-sk.dts |
374376
+-------------------------------------------+--------------------------------------+
375377
| AM62Ax SK | k3-am62a7-sk.dts |

source/linux/Foundational_Components/U-Boot/BG-Build-K3.rst

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,10 @@ All of these binaries are available in the SDK at :file:`<path to tisdk>/board-s
423423
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
424424

425425
.. csv-table::
426-
:header: "Board","SD / eMMC / UART / OSPI / USB DFU / USB MSC"
426+
:header: "Board","SD / UART / OSPI / USB DFU","USB MSC"
427427

428-
"AM62LX EVM", ``am62lx_evm_defconfig``
428+
"AM62LX EVM", ``am62lx_evm_defconfig``, ``am62lx_evm_defconfig``
429+
"BeagleBadge", ``am62lx_badge_defconfig``, ""
429430

430431
.. note::
431432

@@ -438,6 +439,15 @@ All of these binaries are available in the SDK at :file:`<path to tisdk>/board-s
438439
$ export TFA_DIR=<path-to-arm-trusted-firmware>
439440
$ export OPTEE_DIR=<path-to-ti-optee-os>
440441
442+
# Build for AM62LX EVM:
443+
$ export UBOOT_CONFIG=am62lx_evm_defconfig
444+
$ export TFA_BOARD=am62lx
445+
446+
# Build for BeagleBadge:
447+
$ export UBOOT_CONFIG=am62lx_badge_defconfig
448+
$ export TFA_BOARD=am62l3_badge # on ti-tfa-2.14.y
449+
$ export TFA_BOARD=am62lx_badge # on ti-master
450+
441451
.. note::
442452

443453
The instructions below assume all binaries are built manually.
@@ -451,10 +461,10 @@ All of these binaries are available in the SDK at :file:`<path to tisdk>/board-s
451461
.. code-block:: console
452462
453463
$ cd $UBOOT_DIR
454-
$ make CROSS_COMPILE="$CROSS_COMPILE_64" am62lx_evm_defconfig
464+
$ make CROSS_COMPILE="$CROSS_COMPILE_64" $UBOOT_CONFIG
455465
$ make CROSS_COMPILE="$CROSS_COMPILE_64" \
456-
BL1=$TFA_DIR/build/k3low/am62lx/release/bl1.bin \
457-
BL31=$TFA_DIR/build/k3low/am62lx/release/bl31.bin \
466+
BL1=$TFA_DIR/build/k3low/$TFA_BOARD/release/bl1.bin \
467+
BL31=$TFA_DIR/build/k3low/$TFA_BOARD/release/bl31.bin \
458468
BINMAN_INDIRS=$TI_LINUX_FW_DIR \
459469
TEE=$OPTEE_DIR/out/arm-plat-k3/core/tee-pager_v2.bin
460470

source/linux/Foundational_Components_ATF.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,19 @@ Where <hash> is the commit shown in :ref:`release-specific-build-information`.
115115

116116
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
117117

118+
.. code-block:: console
119+
120+
$ export TFA_BOARD=am62lx # for AM62L EVM
121+
$ export TFA_BOARD=am62l3_badge # for BeagleBadge on ti-tfa-2.14.y
122+
$ export TFA_BOARD=am62lx_badge # for BeagleBadge on ti-master
123+
$ export TFA_DIR=<path-to-arm-trusted-firmware>
124+
118125
*Without OP-TEE enabled:*
119126

120127
.. code-block:: console
121128
122-
$ export TFA_DIR=<path-to-arm-trusted-firmware>
123129
$ cd $TFA_DIR
124-
$ make ARCH=aarch64 CROSS_COMPILE="$CROSS_COMPILE_64" PLAT=k3low TARGET_BOARD=am62lx
130+
$ make ARCH=aarch64 CROSS_COMPILE="$CROSS_COMPILE_64" PLAT=k3low TARGET_BOARD=$TFA_BOARD
125131
126132
.. ifconfig:: CONFIG_part_variant in ('J721S2')
127133

0 commit comments

Comments
 (0)