Skip to content

Commit

Permalink
fix: AM335x/AM437x/AM57x: Update Directory Structure and ARM architec…
Browse files Browse the repository at this point in the history
…tural references

Signed-off-by: Telukula Jeevan Kumar Sahu <j-sahu@ti.com>
  • Loading branch information
jeevantelukula committed Jan 3, 2025
1 parent 3105fdb commit 71c67c3
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 25 deletions.
38 changes: 31 additions & 7 deletions source/linux/Foundational_Components/Kernel/_Users_Guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,19 @@ But developers may want to deploy and test new Kernel and DTB without going
through the standard build system. For the specific purpose, board specific
fitImage.its will be present in the prebuilt-images directory.

Pre-requisites ( Already part of SDK installations ):
.. ifconfig:: CONFIG_part_family in ('General_family', 'AM335X_family', 'AM437X_family')

Pre-requisites ( Already part of SDK installations ):

- Uboot build directory for ARMV7
- Linux Image and DTB

.. ifconfig:: CONFIG_part_family not in ('General_family', 'AM335X_family', 'AM437X_family')

- Uboot build directory for ARMV8
- Linux Image and DTB
Pre-requisites ( Already part of SDK installations ):

- Uboot build directory for ARMV8
- Linux Image and DTB

.. note::

Expand Down Expand Up @@ -626,9 +635,17 @@ Generating the fitImage
This step will embed the public key in the u-boot.dtb file that was already
built during the initial u-boot build.

.. code-block:: console
.. ifconfig:: CONFIG_part_family in ('General_family', 'AM335X_family', 'AM437X_family')

mkimage -r -f fitImage.its -k $UBOOT_PATH/arch/arm/mach-k3/keys -K $UBOOT_PATH/build/$ARMV8/dts/dt.dtb fitImage
.. code-block:: console
mkimage -r -f fitImage.its -k $UBOOT_PATH/board/ti/keys -K $UBOOT_PATH/build/$ARMV7/dts/dt.dtb fitImage
.. ifconfig:: CONFIG_part_family not in ('General_family', 'AM335X_family', 'AM437X_family')

.. code-block:: console
mkimage -r -f fitImage.its -k $UBOOT_PATH/arch/arm/mach-k3/keys -K $UBOOT_PATH/build/$ARMV8/dts/dt.dtb fitImage
.. note::

Expand All @@ -639,8 +656,15 @@ built during the initial u-boot build.
Build uboot again
^^^^^^^^^^^^^^^^^

The updated u-boot.dtb needs to be packed in u-boot.img for authentication
so rebuild uboot ARMV8 without changing any parameters.
.. ifconfig:: CONFIG_part_family in ('General_family', 'AM335X_family', 'AM437X_family')

The updated u-boot.dtb needs to be packed in u-boot.img for authentication
so rebuild uboot ARMV7 without changing any parameters.

.. ifconfig:: CONFIG_part_family not in ('General_family', 'AM335X_family', 'AM437X_family')

The updated u-boot.dtb needs to be packed in u-boot.img for authentication
so rebuild uboot ARMV8 without changing any parameters.

Refer to :ref:`top-level-makefile`

Expand Down
66 changes: 48 additions & 18 deletions source/linux/Overview/_Processor_SDK_Linux_Directory_Structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,41 @@ directories and files

.. ifconfig:: CONFIG_sdk in ('SITARA')

.. code-block:: console
.. ifconfig:: CONFIG_part_variant in ('AM335X', 'AM437X', 'AM57X')

./
├── bin/
├── board-support/
├── example-applications/
├── filesystem/
├── k3r5-devkit/
├── licenses/
├── linux-devkit/
├── Makefile
├── makerules/
├── manifest/
├── Rules.make
└── setup.sh*
.. code-block:: console
./
├── bin/
├── board-support/
├── example-applications/
├── external-toolchain-dir/
├── filesystem/
├── licenses/
├── linux-devkit/
├── Makefile
├── makerules/
├── manifest/
├── Rules.make
└── setup.sh*
.. ifconfig:: CONFIG_part_variant not in ('AM335X', 'AM437X', 'AM57X')

.. code-block:: console
./
├── bin/
├── board-support/
├── example-applications/
├── filesystem/
├── k3r5-devkit/
├── licenses/
├── linux-devkit/
├── Makefile
├── makerules/
├── manifest/
├── Rules.make
└── setup.sh*
.. ifconfig:: CONFIG_sdk in ('JACINTO','j7_foundational')

Expand Down Expand Up @@ -61,10 +81,20 @@ Processor SDK devices.
- **filesystem** - Contains the reference file systems. These include
the smaller base file system as well as the full-featured SDK file
system.
- **linux-devkit** - Contains the tools and libraries to speed
development for the target device for the ARMV8 architechture
- **k3r5-devkit** - Contains the tools and libraries to speed
development for the target device for the ARMV7 architechture
.. ifconfig:: CONFIG_part_variant in ('AM335X', 'AM437X', 'AM57X')

- **linux-devkit** - Contains the tools and libraries to speed
development for the target device for the ARMV7 architechture
- **external-toolchain-dir** - Contains the external ARM GNU toolchain
to speed development for the target device for the ARMV7 architechture

.. ifconfig:: CONFIG_part_variant not in ('AM335X', 'AM437X', 'AM57X')

- **linux-devkit** - Contains the tools and libraries to speed
development for the target device for the ARMV8 architechture
- **k3r5-devkit** - Contains the tools and libraries to speed
development for the target device for the ARMV7 architechture

- **Makefile** - Provides build targets for many of the SDK components
from the top-level of the SDK.
- **makerules** - Make rules for all the topLevel Makefile build targets
Expand Down

0 comments on commit 71c67c3

Please sign in to comment.