Open main menu

DAVE Developer's Wiki β

Changes

SDV04 Embedded Linux Kit (SDVX)

2,625 bytes added, 10:03, 5 September 2018
no edit summary
</pre>
===Host setup===
As stated previously, SDVX host tools are based on a [[Managed_Virtual_Machine_(MVM)|Managed Virtual Machine]]. As indicated here, microSD card delivered along with XUELK SDVX kit includes the basic version of MVM that is the default option.
In case you choose Please follow the procedure described [[Managed_Virtual_Machine_(MVM)#Installation_and_configuration|here]] to use the Advanced version of install the MVM instead, the project-name to be used is lynx.
Either version you chooseIt is also worth remembering that access to git repositories is required to download target source code. To enable it, please follow the procedure described here refer to install the MVM[[Accessing_DAVE_Embedded_Systems_restricted_git_repositories|this page]].
It is also worth remembering that access to git repositories is {{ImportantMessage|text=The MVM provides the tools required to download target source codebuild [[Building_U-Boot_(SDVX)|U-boot]] and [[Building_Linux_kernel_(SDVX)|Linux kernel]]. To enable it, please refer It does not include the tools required to this pagerun Yocto build system instead. }}
===Target configuration for the development stage (<code>net_nfs</code>)===
During the development stage, the target is usually connected via Ethernet LAN to the host machine and is configured to:
*retrieve binary images (i.e., Linux kernel) via TFTP protocol
*mount the development root file system via NFS protocol. This root file system is physically in the file system of the host machine as depicted [[Deploying_Embedded_Linux_Systems#The_development_environment|here]].
In DAVE Embedded Systems development kits, this configuration is generally denoted as <code>net_nfs</code>. U-Boot bootloader supports this configuration. Some U-Boot environment variables are needed to set it up. They are detailed [[Booting_Linux_Kernel#Configuration_net_nfs|here]].
 
For more details about TFTP and NFS servers on host side, please refer to this [[Setting_up_tftp_and_nfs|page]].
 
===Target configuration for standalone boot===
Please refer to [[Standalone_boot_(SDVX)|this page]].
===How to update root file system on SD card===
RFS update on SD card consists on expanding the new tarball compressed file on SD card ext4 partition.
It is possible, for example, to perform this operation using one of the following processes:
* directly on the target
* using a Linux PC (or the XUELK VM)
 
The ext4 partition will depend on your target device, for sdvx-lite is the mmcblk0p2, while for the sdvx-ul the partition is mmcblk0p3. This partition needs to be:
* erased
* written with new rfs files
==== Update rfs on target====
* start SBC Lynx via nfs. See how to boot from nfs [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(SDVX)#Target_configuration_for_the_development_stage_.28net_nfs.29|here]]
* change directory to the ext4 partition into the filesystem: typically <code>/run/media/mmcblk0p2</code>
<pre>
root@sdvx-lite:~# cd /run/media/mmcblk0p2
root@sdvx-lite:/run/media/mmcblk0p2#
</pre>
* delete all previous files
<pre>
root@sdvx-lite:/run/media/mmcblk0p2# rm -r *
</pre>
* extract new rfs files from tarball archive previously copied into nfs directory (the following command assumes that sdvx-1.0.0 rfs have been already copied into VM '''/home/dvdk/sdvx/rfs-lite/sdvx/home/root''' nfs directory
<pre>
root@sdvx-lite:/run/media/mmcblk0p2# tar jxvpf /home/dvdk/sdvx/rfs-lite/sdvx/home/root/sdvx-1.1.0_lynx-image-gui-sbc-lynx.tar.bz2
</pre>
 
==== Update rfs on a Linux PC====
* insert the SD card and check its mount point
* change dir to the ext4 SD card partition
* delete previous files and extract new files from tarball archive as described [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(SDVX)#Update_rfs_on_target|here]]
===Developing the software for the target===
170
edits