Nios® V Processor Software Developer Handbook

ID 743810
Date 10/12/2024
Public
Document Table of Contents

16.2.3.6. elf-insert

Description

A simple ELF 'fattening' tool used to inject additional sections into an ELF intended for the Nios® V processor. The tool's primary purpose is to insert extra information into ELF files so that other downstream tools can extract it. The main goal is to make the ELF file the single handoff file that all downstream embedded tools can use.

For example, you can use elf-insert to insert CPU name, System ID and other information into the ELF file during development. Later, implement elf-query to extract the information for design identification or process connectivity.

The first argument is the ELF filename: (elf-insert <filename>).

Valid Additional Arguments

--qsys <qsysFabricModeEnabled>
--cpu_name <cpuName>
--stderr_dev <stderrDev>
--stdin_dev <stdinDev>
--stdout_dev <stdoutDev>
--sidp <sysidBase>
--id <sysidHash>
--timestamp <sysidTime>
--sof <sofFile>
--sopcinfo <sopcinfoFile>
--jar <jarFile>
--jdi <jdiFile>
--quartus_project_dir <quartusProjectDir>
--sopc_system_name <sopcSystemName>
--profiling_enabled <profilingEnabled>
--simulation_enabled <simulationEnabled>
--thread_model <threadModel>

Advanced Options

--jvm-max-heap-size=<value>

Optional. You can use the maximum memory size for allocations when running this tool. Specify the value as <size><unit> where the unit can be m (or M) for multiples of megabytes or g (or G) for multiples of gigabytes. The default value is 512 m.