Skip to content

Commit f87bb6a

Browse files
committed
feat(debian): AM62LX: Armbian-ize Debian docs for AM62L
Up until now, Debian images have been built using `ti-bdebstrap`. The docs presently reflect this. Starting with the 11.00.15.05 Linux SDK release, Debian images are built with the Armbian Build Framework. Therefore, edit AM62L-specific docs to remove references to `ti-bdebstrap` and add information about Armbian. Note: Only AM62L-specific changes have been made, using ifconfig's and a new `Building_Debian_Image` file. This is because the other devices are still going to use Debian until the 11.1 release. Signed-off-by: Suhaas Joshi <[email protected]>
1 parent 13e36c3 commit f87bb6a

File tree

5 files changed

+94
-6
lines changed

5 files changed

+94
-6
lines changed

configs/AM62LX/AM62LX_debian_toc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ devices/AM62LX/debian/index
22

33
debian/Overview
44
devices/AM62LX/debian/Getting_Started_Guide
5-
debian/Building_Debian_Image
5+
devices/AM62LX/debian/Building_Debian_Image
66
debian/Building_Debian_Packages
77
debian/How_to_Guides/index_How_to_Guides
88
linux/How_to_Guides/Target/How_To_Enable_M2CC3301_in_linux

source/debian/Overview.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,34 @@
22
Overview
33
########
44

5+
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
6+
7+
Armbian is a highly-optimized **base operating system** (i.e. an extensive build framework) for building Debian-based images for Single-Board Computers (SBCs).
8+
9+
510
Debian, also known as Debian GNU/Linux, is a Linux distribution composed of free and open-source software, developed by the community-supported Debian Project.
611

7-
The Linux Debian distribution is enabled for TI's AM62Lx, AM62Px, AM62x and AM64x platforms. Few key highlights of this project are:
12+
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
13+
14+
The Linux Debian distribution, built using Armbian, is enabled for TI's AM62Lx platform. Few key highlights of this project are:
15+
16+
.. ifconfig:: CONFIG_part_variant not in ('AM62LX')
17+
18+
The Linux Debian distribution is enabled for TI's AM62Px, AM62x and AM64x platforms. Few key highlights of this project are:
819

920
- The Debian filesystem image requires standard packages from debian.org and TI's customizations as .deb packages. The deb packages for the components owned by TI are built using the public sources hosted on respective git repositories and the deb packages are hosted on TI's official PPA repository maintained on `Github/TexasInstruments <https://github.com/TexasInstruments/ti-debpkgs>`__.
1021

11-
- The entire Debian build process is made easy with a build script, the script "ti-bdebstrap" is hosted on `TI Debian Github <https://github.com/TexasInstruments/ti-bdebstrap>`__.
22+
.. ifconfig:: CONFIG_part_variant not in ('AM62LX')
23+
24+
- The entire Debian build process is made easy with a build script, the script "ti-bdebstrap" is hosted on `TI Debian Github <https://github.com/TexasInstruments/ti-bdebstrap>`__.
1225

1326
- This document also provides the required steps and instructions to customize the TI's components for AM62Lx, AM62Px, AM62x and AM64x SOCs and create the corresponding deb packages.
1427

1528
- The entire project is made public and we accept community contributions as pull requests to github repositories.
1629

17-
- Github actions are enabled for the buildscripts workflow. So, any change in the config files, package additions or modifications in build scripts will result in auto generation of a new debian filesystem that reflects these changes. The new builds will store the filesystem image as an artifact hosted on the same repo, allowing other users to test the change without making a new build. These images are available via github for 90 days after which they may be purged to save disk space.
30+
.. ifconfig:: CONFIG_part_variant not in ('AM62LX')
31+
32+
- Github actions are enabled for the buildscripts workflow. So, any change in the config files, package additions or modifications in build scripts will result in auto generation of a new debian filesystem that reflects these changes. The new builds will store the filesystem image as an artifact hosted on the same repo, allowing other users to test the change without making a new build. These images are available via github for 90 days after which they may be purged to save disk space.
1833

1934

2035
Debian vs Yocto
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
======================
2+
Building Debian Images
3+
======================
4+
5+
Introduction
6+
============
7+
8+
Debian images for AM62L are built using the **Armbian** build framework. *Armbian* describes itself to be a "base operating system", i.e. a build framework used to build Linux images optimized for Single-Board Computers.
9+
10+
The Debian images are provided at |__SDK_DOWNLOAD_URL__|, but can also be built by users, especially if something custom (such as a particular desktop environment, or different kernel configs) is required.
11+
12+
Armbian Usage
13+
=============
14+
15+
This document provides high-level information on how to build Armbian images for AM62LX. For a full list of options on how these images may be configured, please see the.
16+
17+
Get Armbian
18+
-----------
19+
20+
For the time being, AM62L support is maintained in TI's fork of Armbian. Therefore, the first step would be to fetch TI's fork:
21+
22+
.. code-block:: console
23+
24+
git clone https://github.com/TexasInstruments/armbian-build.git
25+
26+
Repository Structure
27+
--------------------
28+
29+
There are 4 files/directories of relevance to this high-level overview:
30+
31+
- ``configs/``: This directory contains configurations for boards, families, kernel configs, desktop/CLI environments etc. To find config files relevant to TI, see:
32+
- ``configs/sources/families/k3.conf``
33+
- ``configs/kernel/linux-k3-current.conf``
34+
- ``configs/kernel/linux-k3-rt-current.conf``
35+
36+
- ``compile.sh``: This is the script that should be invoked for building Armbian images.
37+
38+
- ``lib/``: This directory stores the scripts that do most of the work in building Armbian images. Most likely, this directory would not have to be touched if you just want to create a custom AM62L image.
39+
40+
- ``extensions``: This directory contains files in which **extension hooks** can be defined. In Armbian, *extension hooks* are functions that are not called in the process of building an image, but are un-defined in ``lib/``. TI has defined the ``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:
41+
42+
.. code-block:: console
43+
44+
enable_extension <extension_name>
45+
46+
- ``userpatches/``: This directory can be used to store files that define build parameters, user patches etc.
47+
48+
Building Images
49+
---------------
50+
51+
Armbian supports an interactive building process. To build, go to the cloned Armbian repository, and use the following command:
52+
53+
.. code-block:: console
54+
55+
./compile.sh
56+
57+
The build framework will then display dialog boxes to allow the user to select the board, CLI/desktop environment, kernel configs etc.
58+
59+
To build the image non-interactively, specify all required **Build Switches** in the command:
60+
61+
.. code-block:: console
62+
63+
./compile.sh [command] [switch...] [command...]
64+
65+
For example, the following command builds the image at |__SDK_DOWNLOAD_URL__|:
66+
67+
.. code-block:: console
68+
69+
./compile.sh build BOARD=sk-am62b BRANCH=current BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=trixie SKIP_ARMBIAN_REPO=yes
70+
71+
The built image will then be stored at ``output/images/`` with a ``.img`` extension.
72+
73+

source/devices/AM62LX/debian/Getting_Started_Guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Getting Started with Debian
55
***************************
66

7-
The SD card Image tisdk-debian-trixie-<machine>-<version>.wic.xz provided on the |__SDK_DOWNLOAD_URL__| is all you need to get started and explore Debian on TI microprocessors.
7+
The SD card Image ti_debian_trixie_<machine>-<armbian-version>.img provided on the |__SDK_DOWNLOAD_URL__| is all you need to get started and explore Debian on TI microprocessors.
88

99
The Debian Image provided has all the basic packages required to boot with weston as default window manager. The user can install any new package using inbuilt 'apt' utility
1010
and customize the filesystem as required.

source/devices/AM62LX/debian/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Debian Developer's Guide
1616

1717
/debian/Overview
1818
Getting_Started_Guide
19-
/debian/Building_Debian_Image
19+
Building_Debian_Image
2020
/debian/Building_Debian_Packages
2121
/debian/How_to_Guides/index_How_to_Guides
2222
/debian/Demo_User_Guides/index_Demos

0 commit comments

Comments
 (0)