Template:Networking device compiling a single package

From Teltonika Networks Wiki
Revision as of 11:57, 3 December 2020 by Lukas.janenas (talk | contribs) (Created page with "==Compiling a single package== If you ever need to compile a single package you do not need to compile the whole firmware. As an example we will try to compile a {{{package_t...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

Compiling a single package

If you ever need to compile a single package you do not need to compile the whole firmware. As an example we will try to compile a {{{package_type}}} called {{{package_name}}}.


  • Now we need to do this steps:
    1. Open the Kconfig by executing this command in the terminal:
      make menuconfig
    2. Navigate to the menu section of {{{package_name}}} text editor. It can be found under “{{{package_path}}}”
    3. Select {{{package_name}}} package
    4. Three times press the “Exit” entry
    5. [[File:{{{package_selection_file}}}|border|class=tlt-border|700px]]
    6. Save the configuration by selecting “Yes” in the prompted window
    7. [[File:{{{menuconfig_saving_file}}}|border|class=tlt-border|700px]]

  • When the package is selected we need to compile and install him:
    1. While standing in root directory of the project execute this command in the terminal:
      make package/{{{package_name}}}/compile
    2. [[File:{{{package_compile_file}}}]]

    3. The compiled package can be found in the directory {{{compiled_package_path}}}. Upload the {{{package_name}}} install file into the router by executing this command in the terminal:
      scp {{{compiled_package_path}}}/{{{package_ipk}}} root@<device_ip_addr>:/tmp
    4. Connect to your routers command line interface by executing this command in the terminal:
      ssh root@<device_ip_addr>
    5. Change your directory to /tmp directory
    6. Install the {{{package_name}}} text editor by executing this command in the terminal:
      opkg install {{{package_ipk}}}
    7. Try out the nano text editor by executing this command:
      nano example
    [[File:{{{package_install_file}}}]]
  • Note: If the package that you want to compile isn't selected in the Kconfig, the install file of the package will not be created