Changes

Jump to: navigation, search

DESK-XZ7-L/General/Booting from NFS

4,152 bytes added, 29 January
Created page with "<section begin="History" /> {| style="border-collapse:collapse; " ! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History |- ! style="bo..."
<section begin="History" />
{| style="border-collapse:collapse; "
! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History
|-
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Issue Date
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
|-
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |2024/01/25
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |DESK-XZ7-L 1.0.1 release
|}
<section end="History" />
__FORCETOC__
<section begin="Body" />


==Booting from NFS==
This configuration is very helpful during the software development (both for kernel and applications). The kernel image is downloaded via TFTP while the root file system is remotely mounted via NFS from the host. It is assumed that the development host:
* is connected with the target host board through an Ethernet LAN
* exports the directory containing the root file system for the target through the NFS server
* runs a TFTP server.
* has a proper subnet IP address

=== net_nfs configuration ===

[[DESK-XZ7-L]] Virtual Machine is properly configured for the TFTP and NFS debug.

In any case, some variables has to be configured on the target and the VM itself has to be configured for respect to the network environment.

=== Host (Virtual Machine) configuration ===

The [[DESK-XZ7-L]] Virtual Machine has the '''tftp''' and '''nfs''' services already running. Optionally, their configuration has to be changed according to the network configuration where the target is connected to.

Check and properly configure the items describe in [https://wiki.dave.eu/index.php/VirtualBox_Network_Configuration VirtualBox Network Configuration]

=== Target configuration ===

The IP address for server and target should be configured: an example (for a network subnet <code>192.168.0.x</code>)

<pre class="workstation-terminal">
u-boot=> setenv serverip 192.168.10.100
u-boot=> setenv ipaddr 192.168.10.56
u-boot=> setenv gatewayip 192.168.10.254
u-boot=> setenv netmask 255.255.255.0
u-boot=> setenv netdev eth0
</pre>

* <code>serverip</code> is the IP address of the host machine running the tftp/nfs server
* <code>ipaddr</code> is the IP address of the target
* <code>gatewayip</code> is the gateway address of the target
* <code>netmask</code> is the netmask address of the target
* <code>netdev</code> is the name of ethernet interface of the target

For using the DVDK Virtual Machine, a static IP address configuration has been selected, to the U-Boot variable <code>ip_dyn</code> has to be set to '''no''':
<pre class="workstation-terminal">
u-boot=> setenv ip_dyn no
</pre>

=== Boot via NFS with PXE protocol ===

If you want boot your tareget via nfs with PXE protocol, you need to download from [https://mirror.dave.eu/desk-xz-l/desk-xz7-l-1.0.1/ mirror] or build with [[DESK-XZ7-L/Development/Creating_and_building_the_Petalinux_project | Petalinux]], the following artifact:

* <code>zImage</code>, this file has to be installed in your host device directory for tftp server, configurated for <code>pxe</code>, for example <code>/tftpboot/bora/</code>
* <code>system.dtb</code>, this file has to be installed in your host device directory for tftp server, configurated for <code>pxe</code>, for example <code>/tftpboot/bora/</code>
* <code>rootfs.tar.gz</code>, this file has to be decompress in your host device directory <code>/home/dvdk/nfsroot</code>

For more information about boot and configuration file see [[ DESK-XZ7-AN-0003:_using_PXE_protocol_for_boot | DESK-XZ7-AN-0003]]

<section end="Body" />

[[Category:BORA]]
[[Category:BORA Xpress]]
[[Category:BORA Lite]]
dave_user
423
edits

Navigation menu