Yocto Development Environment: Difference between revisions

From Variscite Wiki
No edit summary
 
(47 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{PageHeader|VAR-SOM-MX6 - Setting Development Environment}} {{DocImage|category1=VAR-SOM-MX6|category2=Yocto}} __toc__
{{PageHeader|Setting A Development Environment}} {{DocImage|category1=Yocto|category2=VAR-SOM-MX6}}[[Category:DART-6UL]][[Category:VAR-SOM-MX7]][[Category:DART-MX8M]][[Category:DART-MX8M-MINI]][[Category:VAR-SOM-MX8X]][[Category:VAR-SOM-MX8]][[Category:VAR-SOM-MX8M-NANO]][[Category:DART-MX8M-PLUS]] __toc__
= Introduction =  
 
= Installing Ubuntu 14.04 in VMWare Player =
= Supported Linux Distributions =
There are many examples on the WEB. we Recommend:
 
* [http://wiki.opencog.org/w/Setting_up_Ubuntu_in_VMWare_for_Noobs Setting up Ubuntu in VMWare]
The full list of the Linux distributions that are suitable for the latest Yocto Project development is referenced  [https://docs.yoctoproject.org/ref-manual/system-requirements.html#supported-linux-distributions here].
 
'''We recommend using Ubuntu 64-bit on a powerful physical PC (though using a virtual machine is also possible).'''<br>
 
Please see the table below for a list of Ubuntu versions recommended for each release of the Yocto project:<br>
{| class="wikitable" style="text-align: center;"
|-
! scope="col"|
! scope="col"| Ubuntu 14.04
! scope="col"| Ubuntu 16.04
! scope="col"| Ubuntu 18.04
! scope="col"| Ubuntu 20.04
! scope="col"| Ubuntu 22.04
|-
! scope="row"| Yocto Krogoth (or earlier)
| x
|
|
|
|
|-
! scope="row"| Yocto Morty
| x
| x
|
|
|
|-
! scope="row"| Yocto Pyro
|
| x
|
|
|
|-
! scope="row"| Yocto Rocko
|
| x
|
|
|
|-
! scope="row"| Yocto Sumo
|
| x
|
|
|
|-
! scope="row"| Yocto Thud
|
| x
|
|
|
|-
! scope="row"| Yocto Warrior
|
| x
|
|
|
|-
! scope="row"| Yocto Zeus
|
|
| x
|
|
|-
! scope="row"| Yocto Dunfell
|
|
| x
| x
|
|-
! scope="row"| Yocto Gatesgarth
|
|
| x
| x
|
|-
! scope="row"| Yocto Hardknott
|
|
| x
| x
|
|-
! scope="row"| Yocto Kirkstone
|
|
| x
| x
| x
|-
! scope="row"| Yocto Langdale
|
|
| x
| x
| x
|-
! scope="row"| Yocto Mickledore
|
|
|
| x
| x
|-
! scope="row"| Yocto Scarthgap
|
|
|
|
| x
|-
|}
 
= Installing Ubuntu 14.04 64-bit in VMWare Player (for Yocto Morty and below) =
There are many tutorials on the web. For example:
* [https://www.youtube.com/watch?v=Lv6V6ESOyUk VMware Player | How to install Ubuntu 14.04 LTS ]
* [https://www.youtube.com/watch?v=Lv6V6ESOyUk VMware Player | How to install Ubuntu 14.04 LTS ]
== Installation recommendations ==
 
* Set the number of CPU's to maximum possible
= Installing Ubuntu 16.04 64-bit in VMWare Player (for Yocto Morty through Warrior) =
* Set the memory size to at least 4GB.
There are many tutorials on the web. For example:
* [https://www.shaileshjha.com/how-to-install-ubuntu-16-04-1-lts-and-vmware-tools-in-vmware-workstation-12-pro/ Setting up Ubuntu in VMWare]
* [https://www.youtube.com/watch?v=wHxvu_t-wAc VMware Player | How to install Ubuntu 16.04 LTS ]
 
= VMware player recommended settings =
* Set the number of CPUs to the maximum possible.
* Set the memory size to at least 8GB.
* Set the disk size to be at least 200GB. 300GB is better.
* Set the disk size to be at least 200GB. 300GB is better.
* Use Bridge for networking.
* Use Bridge for networking.
* Install the VMWare tools.
* Install the VMWare tools.
* If you have an extra hard drive use it as a physical partition and set you home directory to it.
* If you have an extra hard drive you can use it as a physical partition and set you home directory to it.
* Update Ubuntu right after first login.
* Update Ubuntu right after the first login.
 
= Installing additional packages for Ubuntu 14.04 =
First time you login into Ubuntu Install additional pacakages
<pre>
Yocto essentials pacakages:
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm
 
Yocto Documentation:
$ sudo apt-get install make xsltproc docbook-utils fop dblatex xmlto
 
ADT Installer Extras:
$ sudo apt-get install autoconf automake libtool libglib2.0-dev libarchive-dev


Additional :
= Using a docker container =
$ sudo apt-get install bison flex patch libncurses-dev
Variscite provides Docker containers that can be used for a development environment as an alternative to using a virtual machine or a dedicated computer.
$ sudo apt-get install gettext texinfo curl subversion
$ sudo apt-get install minicom wireshark
$ sudo apt-get install ssh vde2 nfs-kernel-server debootstrap uml-utilities
$ sudo apt-get install bridge-utils dnsmasq xinetd tftpd tftp
$ sudo apt-get install u-boot-tools
</pre>


= Pre Built Ubuntu 14.04 VMWare virtual machine =
To learn more, please see Variscite's [[Docker_Build_Environment | Docker Build Environment]] guide.
We created a Virtual machine with all packages installed. We also installed Yocto Fido R2 on it.
Please download it from the FTP site and add it to your VMWare.
Features:
* Username: variscite
* Password: variscite
* Yocto Fido installed. skip to the section: [[VAR-SOM-MX6 Yocto Fido R2 Build Yocto_release#Setup_and_build_Yocto_QT5.2FX|Build Yocto release]]
* NFS server configured. ~/rootfs is the file system
* TFTP server configured. Use /tftpboot
* Minicom installed and configured. /dev/ttyUSB0 is the device.

Latest revision as of 09:30, 23 October 2024

Setting A Development Environment

Supported Linux Distributions

The full list of the Linux distributions that are suitable for the latest Yocto Project development is referenced here.

We recommend using Ubuntu 64-bit on a powerful physical PC (though using a virtual machine is also possible).

Please see the table below for a list of Ubuntu versions recommended for each release of the Yocto project:

Ubuntu 14.04 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04 Ubuntu 22.04
Yocto Krogoth (or earlier) x
Yocto Morty x x
Yocto Pyro x
Yocto Rocko x
Yocto Sumo x
Yocto Thud x
Yocto Warrior x
Yocto Zeus x
Yocto Dunfell x x
Yocto Gatesgarth x x
Yocto Hardknott x x
Yocto Kirkstone x x x
Yocto Langdale x x x
Yocto Mickledore x x
Yocto Scarthgap x

Installing Ubuntu 14.04 64-bit in VMWare Player (for Yocto Morty and below)

There are many tutorials on the web. For example:

Installing Ubuntu 16.04 64-bit in VMWare Player (for Yocto Morty through Warrior)

There are many tutorials on the web. For example:

VMware player recommended settings

  • Set the number of CPUs to the maximum possible.
  • Set the memory size to at least 8GB.
  • Set the disk size to be at least 200GB. 300GB is better.
  • Use Bridge for networking.
  • Install the VMWare tools.
  • If you have an extra hard drive you can use it as a physical partition and set you home directory to it.
  • Update Ubuntu right after the first login.

Using a docker container

Variscite provides Docker containers that can be used for a development environment as an alternative to using a virtual machine or a dedicated computer.

To learn more, please see Variscite's Docker Build Environment guide.