# TelAF DiagGen tool V2

Source: [https://docs.qualcomm.com/doc/80-41102-1/topic/telaf_diaggen_tool_v2.html](https://docs.qualcomm.com/doc/80-41102-1/topic/telaf_diaggen_tool_v2.html)

The OEM defined yaml files should be put under
                ~/telaf/apps/tools/tafDiagGen/V2/yaml\_config/customer. By
            default, the configurations at
                ~/telaf/apps/tools/tafDiagGen/V2/yaml\_config/default/ will be
            used.

After putting everything needed in the configuration files, run the tool to generate the
            source files for TelAF diag services.

Currently, the compilation can either be done together with the TelAF image compilation or
            separately.

## Combine the compilation into the TelAF compilation

By default, the YAML configuration is present, which is run by the V2 tool. The V2
                tool needs `python3`, but no specific version is needed.

## Generate the configuration files separately

1. Set the compilation environment by going to
                        ~/telaf/apps/tools/tafDiagGen and
                    running:

        export TELAF_ROOT=~/telaf
        export DGTOOL_TARGET=sa525mCopy to clipboard
2. Run the following command in the root directory to install all
                    dependencies.

        make -f dgtool.mk  dgtool-V2-setupCopy to clipboard
3. Build with the
                        configurations.

        make -f dgtool.mk  dgtool-V2-buildCopy to clipboard

    All
                        generated files are at
                            ~/telaf/apps/tools/tafDiagGen/V2/build.
4. (Optional) Clean the
                    build.

        make -f dgtool.mk  dgtool-V2-cleanCopy to clipboard
5. Install the parsed configurations to the TelAF diag
                    service.

        make -f dgtool.mk  dgtool-V2-installCopy to clipboard

After running the installation command, the TelAF diag service is set up with the new
                configurations. Rebuild the service and deploy it to make it take effect.

**Parent Topic:** [Configurations](https://docs.qualcomm.com/doc/80-41102-1/topic/configurations-diag.html)

Last Published: May 12, 2026

[Previous Topic
TelAF DiagGen tool V1](https://docs.qualcomm.com/bundle/publicresource/80-41102-1/topics/telaf_diaggen_tool_v1.md) [Next Topic
Set up diagnostic testing environment](https://docs.qualcomm.com/bundle/publicresource/80-41102-1/topics/set_up_diagnostic_testing_environment.md)