Jump to content

Template:Networking device compiling a single package: Difference between revisions

No edit summary
No edit summary
 
(5 intermediate revisions by one other user not shown)
Line 18: Line 18:
</li>
</li>
----
----
<li>When the package is selected we need to compile and install him:
<li>When the package is selected we need to compile and install it:
<ol>
<ol>
<li>While standing in root directory of the project execute this command in the terminal:
<li>While standing in root directory of the project execute this command in the terminal:
{{{package_compile_command}}}</li>
{{{package_compile_command}}}</li>
[[File:{{{package_compile_file}}}]]
[[File:{{{package_compile_file}}}|border|class=tlt-border|900px]]
<li>The compiled package can be found in the directory <b>{{{compiled_package_path}}}</b>. Upload the <b>{{{package_name}}}</b> install file into the router by executing this command in the terminal:
<li>The compiled package can be found in the directory <b>{{{compiled_package_path}}}</b>. Upload the <b>{{{package_name}}}</b> install file into the router by executing this command in the terminal:
<pre>scp {{{compiled_package_path}}}/{{{package_ipk}}} root@<device_ip_addr>:/tmp</pre></li>
{{{package_transfer_command}}}</li>
<li>Connect to your routers command line interface by executing this command in the terminal:
<li>Connect to your routers command line interface by executing this command in the terminal:
<pre>ssh root@<device_ip_addr></pre></li>
<pre>ssh root@<device_ip_addr></pre></li>
<li>Change your directory to <b>/tmp</b> directory</li>
<li>Change your directory to <b>/tmp</b> directory</li>
<li>Install the <b>{{{package_name}}}</b> text editor by executing this command in the terminal:
<li>Install the <b>{{{package_name}}}</b> text editor by executing this command in the terminal:
<pre>opkg install {{{package_ipk}}}</pre></li>
{{{package_install_command}}}</li>
<li>Try out the nano text editor by executing this command:
<li>Try out the nano text editor by executing this command:
<pre>nano example</pre></li>
{{{package_testing_command}}}</li>
</ol>[[File:{{{package_install_file}}}]]
</ol>[[File:{{{package_install_file}}}|border|class=tlt-border|900px]]
</li>
</li>
<b>Note:</b> If the package that you want to compile isn't selected in the <b>Kconfig</b>, the install file of the package will not be created
<b>Note:</b> If the package that you want to compile isn't selected in the <b>Kconfig</b>, the install file of the package will not be created