Open main menu

DAVE Developer's Wiki β

Changes

DESK-XZ7-L/General/Booting from NFS

100 bytes added, 29 January
no edit summary
! 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/2529
| 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
|}
==Booting from NFS==
This configuration is very helpful during the software development (both for kernel and applications). The kernel image is downloaded via <code>TFTP </code> while the root file system is remotely mounted via <code>NFS </code> from the host. It is assumed that the development host:* is connected with the target host board through an Ethernet 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
[[DESK-XZ7-L]] Virtual Machine is properly configured for the TFTP and NFS debug.
In any case, some variables has have to be configured on the target and the VM itself has to be configured for with 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 to which 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 the server and target should be configured: as an example (for a network subnet <code>192.168.0.x</code>)
<pre class="workstation-terminal">
* <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 the ethernet interface of the target
For using the DVDK Virtual Machine, a static IP address configuration has been selected, to so the U-Boot variable <code>ip_dyn</code> has to be set to '''no''':
<pre class="workstation-terminal">
u-boot=> setenv ip_dyn no
=== Boot via NFS with PXE protocol ===
If you want saves Booting via <code>pxe</code> protocol is a very simple and efficient way to save a lot of time to update your kernel image or rootfs, you need to use boot via pxe protocol. In this case you need to download , the following artifacts will be downloaded from our [https://mirror.dave.eu/desk-xz-l/desk-xz7-l-1.0.1/ mirror] server or build built 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 decompressed in your host device directory <code>/home/dvdk/nfsroot</code>
For more information about boot and configuration file files see [[ DESK-XZ7-AN-0003:_using_PXE_protocol_for_boot | DESK-XZ7-AN-0003: using PXE protocol for boot]]
=== Boot via NFS with Petalinux ===
In the case of NFS Boot, RootFS the root file system is mounted through the <code>NFS </code> but the bootloader, while (FSBL, bitstream, U-Boot ) and kernel can be downloaded using various methods, for example with JTAG, micro SD or tftp server.
In order to To boot your target via <code>NFS</code>, you need to update your configuration file with the following command:
<pre>
<section end="Body" />
[[Category:BORA]] [[Category:BORA Xpress]] [[Category:BORA Lite]]
8,226
edits