-
Notifications
You must be signed in to change notification settings - Fork 86
feat(debian): AM62LX: Armbian-ize Debian docs for AM62L #317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,3 +22,6 @@ Zink | |
| [Ss]carthgap | ||
| [Tt]oolchain | ||
| balenaEtcher | ||
| Armbian | ||
| Debian | ||
| Weston | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| ====================== | ||
|
Check warning on line 1 in source/devices/AM62LX/debian/Building_Debian_Image.rst
|
||
| Building Debian Images | ||
|
Check warning on line 2 in source/devices/AM62LX/debian/Building_Debian_Image.rst
|
||
|
StaticRocket marked this conversation as resolved.
|
||
| ====================== | ||
|
|
||
| Introduction | ||
| ============ | ||
|
|
||
| Texas Instruments uses the **Armbian** build framework to generate Debian images for its platforms. *Armbian* describes itself to be a "base operating system"; that is, a build framework used to build Linux images optimized for Single-Board Computers. | ||
|
|
||
| |__SDK_DOWNLOAD_URL__| provides Debian images for AM62L, but users can also build these, especially if users require something custom (such as different kernel configurations or default desktop environments). | ||
|
|
||
| Armbian Usage | ||
|
Check warning on line 12 in source/devices/AM62LX/debian/Building_Debian_Image.rst
|
||
| ============= | ||
|
|
||
| This document provides high-level information about how to build Debian images for AM62LX, using Armbian. For a full list of options available for users to configure these images at build time, see `Armbian Documentation <https://docs.armbian.com/>`__. | ||
|
|
||
| Get Armbian | ||
| ----------- | ||
|
|
||
| For the time being, TI's fork of Armbian maintains AM62L support. Therefore, the first step is to fetch TI's fork: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| git clone https://github.com/TexasInstruments/armbian-build.git | ||
|
|
||
| Repository Structure | ||
|
Check warning on line 26 in source/devices/AM62LX/debian/Building_Debian_Image.rst
|
||
| -------------------- | ||
|
|
||
| There are 4 files and directories of relevance to this high-level overview: | ||
|
|
||
| - ``configs/``: This directory has configurations for boards, families, kernel configurations, desktop or CLI environments and so on. To find configuration files relevant to TI, see: | ||
| - ``configs/sources/families/k3.conf`` | ||
| - ``configs/kernel/linux-k3-current.conf`` | ||
| - ``configs/kernel/linux-k3-rt-current.conf`` | ||
|
|
||
| - ``compile.sh``: This is the script that the user should run for building Armbian images. | ||
|
|
||
| - ``lib/``: This directory stores the scripts that do most of the work in building Armbian images. | ||
|
|
||
| - ``extensions/``: This directory has files that define **extension hooks**. In Armbian, *extension hooks* are function signatures, which the build framework calls in the process of building an image. However, the build framework does not define these in ``lib/``. Users can define these functions and integrate custom steps in the build process. TI has ``extensions/ti-debpkgs.sh`` extension file for AM62L. To customize the build process, create a new file in this directory, and define your extension hooks there. Once the file is created, be sure to add the following line to board/family config file: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| enable_extension <extension_name> | ||
|
|
||
| - ``userpatches/``: This directory stores files that define build parameters, user patches and so on. | ||
|
|
||
| Building Images | ||
|
Check warning on line 48 in source/devices/AM62LX/debian/Building_Debian_Image.rst
|
||
| --------------- | ||
|
|
||
| Armbian supports an interactive build process. To build interactively, go to TI's Armbian fork you cloned, and use the following command: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| ./compile.sh | ||
|
|
||
| The build framework will then display dialog boxes. The user can use this to select the board, CLI or desktop environment, kernel configurations and so on. | ||
|
|
||
| To build the image non-interactively, specify all required **Build Switches** in the command: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| ./compile.sh [command] [switch...] [command...] | ||
|
|
||
| A full list of build switches is available at `Build Switches <https://docs.armbian.com/Developer-Guide_Build-Switches/>`__. | ||
|
|
||
| For example, the following command builds the image at |__SDK_DOWNLOAD_URL__|: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| ./compile.sh build BOARD=am62l-evm BRANCH=current BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=trixie SKIP_ARMBIAN_REPO=yes | ||
|
|
||
| ``output/images/`` stores the built images. These images have a ``.img`` extension. | ||
Uh oh!
There was an error while loading. Please reload this page.