All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] ref-manual: Explain the project is not validated against WSL but people may still use it
@ 2020-03-30  5:42 alhe
  2020-03-30  5:42 ` [PATCH 2/4] dev-manual: Document the WSLv2 install process alhe
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: alhe @ 2020-03-30  5:42 UTC (permalink / raw)
  To: docs; +Cc: richard.purdie

Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>
---
 .../ref-manual/ref-system-requirements.xml        | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/documentation/ref-manual/ref-system-requirements.xml b/documentation/ref-manual/ref-system-requirements.xml
index 9c2198a769..3bccbc630b 100644
--- a/documentation/ref-manual/ref-system-requirements.xml
+++ b/documentation/ref-manual/ref-system-requirements.xml
@@ -66,12 +66,15 @@
                         below.
                         </para></listitem>
                     <listitem><para>
-                        The Yocto Project is not compatible with the
-                        <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux</ulink>
-                        (WSL).
-                        You cannot use a
-                        <link linkend='hardware-build-system-term'>build host</link>
-                        that is running WSL.
+                        You may use Windows Subsystem For Linux v2 to set up a build
+                        host using Windows 10, but validation is not performed
+                        against build hosts using WSLv2.
+                        <note>
+                          The Yocto Project is not compatible with WSLv1, it is
+                          compatible but not officially supported nor validated
+                          with WSLv2, if you still decide to use WSL please upgrade
+                          to WSLv2.
+                        </note>
                         </para></listitem>
                     <listitem><para>
                         If you encounter problems, please go to
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/4] dev-manual: Document the WSLv2 install process
  2020-03-30  5:42 [PATCH 1/4] ref-manual: Explain the project is not validated against WSL but people may still use it alhe
@ 2020-03-30  5:42 ` alhe
  2020-03-30 10:07   ` [docs] " Peter Kjellerstedt
  2020-03-30  5:42 ` [PATCH 3/4] overview-manual: Document the basics of WSL and create a link to the build host setup process alhe
  2020-03-30  5:42 ` [PATCH 4/4] brief-yoctoprojectqs: " alhe
  2 siblings, 1 reply; 7+ messages in thread
From: alhe @ 2020-03-30  5:42 UTC (permalink / raw)
  To: docs; +Cc: richard.purdie

Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>
---
 documentation/dev-manual/dev-manual-start.xml | 145 +++++++++++++++++-
 1 file changed, 139 insertions(+), 6 deletions(-)

diff --git a/documentation/dev-manual/dev-manual-start.xml b/documentation/dev-manual/dev-manual-start.xml
index 8d2f316f52..a588a37f06 100644
--- a/documentation/dev-manual/dev-manual-start.xml
+++ b/documentation/dev-manual/dev-manual-start.xml
@@ -394,16 +394,16 @@
         This section provides procedures to set up a system to be used as your
         <ulink url='&YOCTO_DOCS_REF_URL;#hardware-build-system-term'>build host</ulink>
         for development using the Yocto Project.
-        Your build host can be a native Linux machine (recommended) or it can
+        Your build host can be a native Linux machine (recommended) it can
         be a machine (Linux, Mac, or Windows) that uses
         <ulink url='https://github.com/crops/poky-container'>CROPS</ulink>,
         which leverages
-        <ulink url='https://www.docker.com/'>Docker Containers</ulink>.
+        <ulink url='https://www.docker.com/'>Docker Containers</ulink> or it can
+        be a Windows machine capable of running Windows Subsystem For Linux v2 (WSL).
         <note>
-            You cannot use a build host that is using the
-            <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux</ulink>
-            (WSL).
-            The Yocto Project is not compatible with WSL.
+          The Yocto Project is not compatible with <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux v1</ulink>
+          , it is compatible but not officially supported nor validated with WSLv2,
+          if you still decide to use WSL please upgrade to <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>WSLv2</ulink>.
         </note>
     </para>
 
@@ -654,6 +654,139 @@
             section in the Toaster User Manual.
         </para>
     </section>
+
+    <section id='setting-up-to-use-wsl'>
+        <title>Setting Up to Use Windows Subsystem For Linux (WSLv2)</title>
+
+        <para>
+            With <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-about'>
+            Windows Subsystem for Linux (WSLv2)</ulink>, you can create a
+            Yocto Project development environment that allows you to build
+            on Windows. You can set up a Linux distribution inside Windows
+            in which you can develop using the Yocto Project.
+        </para>
+
+        <para>
+            Follow these general steps to prepare a Windows machine using WSLv2
+            as your Yocto Project build host:
+            <orderedlist>
+                <listitem><para>
+                    <emphasis>Make sure your Windows 10 machine is capable of running WSLv2:</emphasis>
+                  
+                    WSLv2 is only available for Windows 10 builds > 18917. To
+                    check which build version you are running, you may open a
+                    command prompt on Windows and execute the command "ver".
+                    <literallayout class='monospaced'>
+    C:\Users\myuser> ver
+
+    Microsoft Windows [Version 10.0.19041.153]
+                    </literallayout>
+                    If your build is capable of running WSLv2 you may continue,
+                    for more information on this subject or instructions on how
+                    to upgrade to WSLv2 visit <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>Windows 10 WSLv2</ulink>
+                    </para></listitem>
+                <listitem><para>
+                    <emphasis>Install the Linux distribution of your choice inside Windows 10:</emphasis>
+                    Once you know your version of Windows 10 supports WSLv2,
+                    you can install the distribution of your choice from the
+                    Microsoft Store.
+                    Open the Microsoft Store and search for Linux. While there
+                    are several Linux distributions available, the assumption
+                    is that your pick will be one of the distributions supported
+                    by the Yocto Project as stated on the instructions for
+                    using a native Linux host.
+                    After making your selection, simply click "Get" to download
+                    and install the distribution.
+                    </para></listitem>
+                <listitem><para>
+                    <emphasis>Check your Linux distribution is using WSLv2:</emphasis>
+                    Open a Windows PowerShell and run:
+                    <literallayout class='monospaced'>
+    C:\WINDOWS\system32> wsl -l -v
+    NAME      STATE           VERSION
+    *Ubuntu    Running         2
+                    </literallayout>
+                    Note the version column which says the WSL version being used by
+                    your distribution, on compatible systems, this can be changed back
+                    at any point in time.
+                    </para></listitem>
+                <listitem><para>
+                    <emphasis>Optionally Orient Yourself on WSL:</emphasis>
+                    If you are unfamiliar with WSL, you can learn more here -
+                    <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-about'></ulink>.
+                    </para></listitem>
+                <listitem><para>
+                    <emphasis>Launch your WSL Distibution:</emphasis>
+                    From the Windows start menu simply launch your WSL distribution
+                    just like any other application.
+                    </para></listitem>
+                <listitem><para>
+                    <emphasis>Optimize your WSLv2 storage often:</emphasis>
+                    Due to the way storage is handled on WSLv2, the storage
+                    space used by the undelying Linux distribution is not
+                    reflected immedately, and since bitbake heavily uses
+                    storage, after several builds, you may be unaware you
+                    are running out of space. WSLv2 uses a VHDX file for
+                    storage, this issue can be easily avoided by manually
+                    optimizing this file often, this can be done in the
+                    following way:
+                    <orderedlist>
+                        <listitem><para>
+                            <emphasis>Find the location of your VHDX file:</emphasis>
+                            First you need to find the distro app package directory,
+                            to achieve this open a Windows Powershell as Administrator
+                            and run:
+                            <literallayout class='monospaced'>
+    C:\WINDOWS\system32> Get-AppxPackage -Name "*Ubuntu*" | Select PackageFamilyName
+    PackageFamilyName
+    -----------------
+    CanonicalGroupLimited.UbuntuonWindows_79abcdefgh
+                            </literallayout>
+                            You should now replace the <replaceable>PackageFamilyName</replaceable>
+                            and your <replaceable>user</replaceable> on the following
+                            path to find your VHDX file: <filename>C:\Users\user\AppData\Local\Packages\PackageFamilyName\LocalState\</filename>
+                            For example:
+                            <literallayout class='monospaced'>
+    ls C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\
+    Mode                 LastWriteTime         Length Name
+    -a----         3/14/2020   9:52 PM    57418973184 ext4.vhdx                      
+                            </literallayout>
+                            Your VHDX file path is: <filename>C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ext4.vhdx</filename>
+                            </para></listitem>
+                        <listitem><para><emphasis>Optimize your VHDX file:</emphasis>
+                            Open a Windows Powershell as Administrator to optimize
+                            your VHDX file, shutting down WSL first:
+                            <literallayout class='monospaced'>
+    C:\WINDOWS\system32> wsl --shutdown
+    C:\WINDOWS\system32> optimize-vhd -Path C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ext4.vhdx -Mode full
+                            </literallayout>
+                            A progress bar should be shown while optimizing the VHDX file,
+                            and storage should now be reflected correctly on the Windows
+                            Explorer.
+                            </para></listitem>
+                    </orderedlist>
+                </para></listitem>
+            </orderedlist>
+            <note>
+              The current implementation of WSLv2 does not have out-of-the-box
+              access to external devices such as those connected through a
+              USB port, but it automatically mounts your <filename>C:</filename>
+              drive on <filename>/mnt/c/</filename> (and others), which
+              you can use to share deploy artifacts to be later flashed on
+              hardware through Windows, but your build directory should not
+              reside inside this mountpoint.
+            </note>
+            Once you have WSLv2 set up, everything is in place to
+            develop just as if you were running on a native Linux machine.
+            If you are going to use the Extensible SDK container, see the
+            "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-extensible'>Using the Extensible SDK</ulink>"
+            Chapter in the Yocto Project Application Development and the
+            Extensible Software Development Kit (eSDK) manual.
+            If you are going to use the Toaster container, see the
+            "<ulink url='&YOCTO_DOCS_TOAST_URL;#toaster-manual-setup-and-use'>Setting Up and Using Toaster</ulink>"
+            section in the Toaster User Manual.
+        </para>
+    </section>
 </section>
 
 <section id='locating-yocto-project-source-files'>
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/4] overview-manual: Document the basics of WSL and create a link to the build host setup process
  2020-03-30  5:42 [PATCH 1/4] ref-manual: Explain the project is not validated against WSL but people may still use it alhe
  2020-03-30  5:42 ` [PATCH 2/4] dev-manual: Document the WSLv2 install process alhe
@ 2020-03-30  5:42 ` alhe
  2020-03-30  5:42 ` [PATCH 4/4] brief-yoctoprojectqs: " alhe
  2 siblings, 0 replies; 7+ messages in thread
From: alhe @ 2020-03-30  5:42 UTC (permalink / raw)
  To: docs; +Cc: richard.purdie

Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>
---
 .../overview-manual-yp-intro.xml               | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/documentation/overview-manual/overview-manual-yp-intro.xml b/documentation/overview-manual/overview-manual-yp-intro.xml
index 30a8ff3320..40ce7e33bb 100644
--- a/documentation/overview-manual/overview-manual-yp-intro.xml
+++ b/documentation/overview-manual/overview-manual-yp-intro.xml
@@ -907,6 +907,24 @@
                     "<ulink url='&YOCTO_DOCS_DEV_URL;#setting-up-to-use-crops'>Setting Up to Use CROss PlatformS (CROPS)</ulink>"
                     section in the Yocto Project Development Tasks Manual.
                     </para></listitem>
+                <listitem><para>
+                    <emphasis>Windows Subsystem For Linux (WSLv2):</emphasis>
+                    You may use Windows Subsystem For Linux v2 to set up a build
+                    host using Windows 10.
+                    <note>
+                      The Yocto Project is not compatible with WSLv1, it is
+                      compatible but not officially supported nor validated
+                      with WSLv2, if you still decide to use WSL please upgrade
+                      to WSLv2.
+                    </note>
+                    The Windows Subsystem For Linux allows Windows 10 to run a real
+                    Linux kernel inside of a lightweight utility virtual
+                    machine (VM) using virtualization technology.</para>
+                    <para>For information on how to set up a Build Host with
+                    WSLv2, see the
+                    "<ulink url='&YOCTO_DOCS_DEV_URL;#setting-up-to-use-wsl'>Setting Up to Use Windows Subsystem For Linux</ulink>"
+                    section in the Yocto Project Development Tasks Manual.
+                    </para></listitem>
                 <listitem><para>
                     <emphasis>Toaster:</emphasis>
                     Regardless of what your Build Host is running, you can
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 4/4] brief-yoctoprojectqs: Document the basics of WSL and create a link to the build host setup process
  2020-03-30  5:42 [PATCH 1/4] ref-manual: Explain the project is not validated against WSL but people may still use it alhe
  2020-03-30  5:42 ` [PATCH 2/4] dev-manual: Document the WSLv2 install process alhe
  2020-03-30  5:42 ` [PATCH 3/4] overview-manual: Document the basics of WSL and create a link to the build host setup process alhe
@ 2020-03-30  5:42 ` alhe
  2 siblings, 0 replies; 7+ messages in thread
From: alhe @ 2020-03-30  5:42 UTC (permalink / raw)
  To: docs; +Cc: richard.purdie

Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>
---
 .../brief-yoctoprojectqs.xml                     | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/documentation/brief-yoctoprojectqs/brief-yoctoprojectqs.xml b/documentation/brief-yoctoprojectqs/brief-yoctoprojectqs.xml
index 15dd1af42d..9b976014a0 100644
--- a/documentation/brief-yoctoprojectqs/brief-yoctoprojectqs.xml
+++ b/documentation/brief-yoctoprojectqs/brief-yoctoprojectqs.xml
@@ -55,10 +55,18 @@
                         information.
                         </para></listitem>
                     <listitem><para>
-                        You cannot use a build host that is using the
-                        <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux</ulink>
-                        (WSL).
-                        The Yocto Project is not compatible with WSL.
+                        You may use Windows Subsystem For Linux v2 to set up a build
+                        host using Windows 10.
+                        <note>
+                          The Yocto Project is not compatible with WSLv1, it is
+                          compatible but not officially supported nor validated
+                          with WSLv2, if you still decide to use WSL please upgrade
+                          to WSLv2.
+                        </note>
+                        See the
+                        <ulink url='&YOCTO_DOCS_DEV_URL;#setting-up-to-use-wsl'>Setting Up to Use Windows Subsystem For Linux</ulink>"
+                        section in the Yocto Project Development Tasks Manual for more
+                        information.
                         </para></listitem>
                 </itemizedlist>
             </note>
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [docs] [PATCH 2/4] dev-manual: Document the WSLv2 install process
  2020-03-30  5:42 ` [PATCH 2/4] dev-manual: Document the WSLv2 install process alhe
@ 2020-03-30 10:07   ` Peter Kjellerstedt
  2020-03-31  0:35     ` alhe
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Kjellerstedt @ 2020-03-30 10:07 UTC (permalink / raw)
  To: docs; +Cc: richard.purdie

> -----Original Message-----
> From: docs@lists.yoctoproject.org <docs@lists.yoctoproject.org> On Behalf
> Of alhe@linux.microsoft.com
> Sent: den 30 mars 2020 07:43
> To: docs@lists.yoctoproject.org
> Cc: richard.purdie@linuxfoundation.org
> Subject: [docs] [PATCH 2/4] dev-manual: Document the WSLv2 install process
> 
> Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
> Signed-off-by: Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>
> ---
>  documentation/dev-manual/dev-manual-start.xml | 145 +++++++++++++++++-
>  1 file changed, 139 insertions(+), 6 deletions(-)
> 
> diff --git a/documentation/dev-manual/dev-manual-start.xml b/documentation/dev-manual/dev-manual-start.xml
> index 8d2f316f52..a588a37f06 100644
> --- a/documentation/dev-manual/dev-manual-start.xml
> +++ b/documentation/dev-manual/dev-manual-start.xml
> @@ -394,16 +394,16 @@
>          This section provides procedures to set up a system to be used as your
>          <ulink url='&YOCTO_DOCS_REF_URL;#hardware-build-system-term'>build host</ulink>
>          for development using the Yocto Project.
> -        Your build host can be a native Linux machine (recommended) or it can
> +        Your build host can be a native Linux machine (recommended) it can

Please restore the above as it was.

>          be a machine (Linux, Mac, or Windows) that uses
>          <ulink url='https://github.com/crops/poky-container'>CROPS</ulink>,
>          which leverages
> -        <ulink url='https://www.docker.com/'>Docker Containers</ulink>.
> +        <ulink url='https://www.docker.com/'>Docker Containers</ulink> or it can
> +        be a Windows machine capable of running Windows Subsystem For Linux v2 (WSL).
>          <note>
> -            You cannot use a build host that is using the
> -            <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux</ulink>
> -            (WSL).
> -            The Yocto Project is not compatible with WSL.
> +          The Yocto Project is not compatible with <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux v1</ulink>
> +          , it is compatible but not officially supported nor validated with WSLv2,
> +          if you still decide to use WSL please upgrade to <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>WSLv2</ulink>.

Change to:

            The Yocto Project is not compatible with
            <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux v1</ulink>.
            It is compatible, but not officially supported nor validated, with WSLv2.
            If you still decide to use WSL, please upgrade to
            <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>WSLv2</ulink>.

//Peter

>          </note>
>      </para>
> 
> @@ -654,6 +654,139 @@
>              section in the Toaster User Manual.
>          </para>
>      </section>
> +
> +    <section id='setting-up-to-use-wsl'>
> +        <title>Setting Up to Use Windows Subsystem For Linux (WSLv2)</title>
> +
> +        <para>
> +            With <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-about'>
> +            Windows Subsystem for Linux (WSLv2)</ulink>, you can create a
> +            Yocto Project development environment that allows you to build
> +            on Windows. You can set up a Linux distribution inside Windows
> +            in which you can develop using the Yocto Project.
> +        </para>
> +
> +        <para>
> +            Follow these general steps to prepare a Windows machine using WSLv2
> +            as your Yocto Project build host:
> +            <orderedlist>
> +                <listitem><para>
> +                    <emphasis>Make sure your Windows 10 machine is capable of running WSLv2:</emphasis>
> +
> +                    WSLv2 is only available for Windows 10 builds > 18917. To
> +                    check which build version you are running, you may open a
> +                    command prompt on Windows and execute the command "ver".
> +                    <literallayout class='monospaced'>
> +    C:\Users\myuser> ver
> +
> +    Microsoft Windows [Version 10.0.19041.153]
> +                    </literallayout>
> +                    If your build is capable of running WSLv2 you may continue,
> +                    for more information on this subject or instructions on how
> +                    to upgrade to WSLv2 visit <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>Windows 10 WSLv2</ulink>
> +                    </para></listitem>
> +                <listitem><para>
> +                    <emphasis>Install the Linux distribution of your choice inside Windows 10:</emphasis>
> +                    Once you know your version of Windows 10 supports WSLv2,
> +                    you can install the distribution of your choice from the
> +                    Microsoft Store.
> +                    Open the Microsoft Store and search for Linux. While there
> +                    are several Linux distributions available, the assumption
> +                    is that your pick will be one of the distributions supported
> +                    by the Yocto Project as stated on the instructions for
> +                    using a native Linux host.
> +                    After making your selection, simply click "Get" to download
> +                    and install the distribution.
> +                    </para></listitem>
> +                <listitem><para>
> +                    <emphasis>Check your Linux distribution is using WSLv2:</emphasis>
> +                    Open a Windows PowerShell and run:
> +                    <literallayout class='monospaced'>
> +    C:\WINDOWS\system32> wsl -l -v
> +    NAME      STATE           VERSION
> +    *Ubuntu    Running         2
> +                    </literallayout>
> +                    Note the version column which says the WSL version being used by
> +                    your distribution, on compatible systems, this can be changed back
> +                    at any point in time.
> +                    </para></listitem>
> +                <listitem><para>
> +                    <emphasis>Optionally Orient Yourself on WSL:</emphasis>
> +                    If you are unfamiliar with WSL, you can learn more here -
> +                    <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-about'></ulink>.
> +                    </para></listitem>
> +                <listitem><para>
> +                    <emphasis>Launch your WSL Distibution:</emphasis>
> +                    From the Windows start menu simply launch your WSL distribution
> +                    just like any other application.
> +                    </para></listitem>
> +                <listitem><para>
> +                    <emphasis>Optimize your WSLv2 storage often:</emphasis>
> +                    Due to the way storage is handled on WSLv2, the storage
> +                    space used by the undelying Linux distribution is not
> +                    reflected immedately, and since bitbake heavily uses
> +                    storage, after several builds, you may be unaware you
> +                    are running out of space. WSLv2 uses a VHDX file for
> +                    storage, this issue can be easily avoided by manually
> +                    optimizing this file often, this can be done in the
> +                    following way:
> +                    <orderedlist>
> +                        <listitem><para>
> +                            <emphasis>Find the location of your VHDX file:</emphasis>
> +                            First you need to find the distro app package directory,
> +                            to achieve this open a Windows Powershell as Administrator
> +                            and run:
> +                            <literallayout class='monospaced'>
> +    C:\WINDOWS\system32> Get-AppxPackage -Name "*Ubuntu*" | Select PackageFamilyName
> +    PackageFamilyName
> +    -----------------
> +    CanonicalGroupLimited.UbuntuonWindows_79abcdefgh
> +                            </literallayout>
> +                            You should now replace the <replaceable>PackageFamilyName</replaceable>
> +                            and your <replaceable>user</replaceable> on the following
> +                            path to find your VHDX file: <filename>C:\Users\user\AppData\Local\Packages\PackageFamilyName\LocalState\</filename>
> +                            For example:
> +                            <literallayout class='monospaced'>
> +    ls C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\
> +    Mode                 LastWriteTime         Length Name
> +    -a----         3/14/2020   9:52 PM    57418973184 ext4.vhdx
> +                            </literallayout>
> +                            Your VHDX file path is: <filename>C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ext4.vhdx</filename>
> +                            </para></listitem>
> +                        <listitem><para><emphasis>Optimize your VHDX file:</emphasis>
> +                            Open a Windows Powershell as Administrator to optimize
> +                            your VHDX file, shutting down WSL first:
> +                            <literallayout class='monospaced'>
> +    C:\WINDOWS\system32> wsl --shutdown
> +    C:\WINDOWS\system32> optimize-vhd -Path C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ext4.vhdx -Mode full
> +                            </literallayout>
> +                            A progress bar should be shown while optimizing the VHDX file,
> +                            and storage should now be reflected correctly on the Windows
> +                            Explorer.
> +                            </para></listitem>
> +                    </orderedlist>
> +                </para></listitem>
> +            </orderedlist>
> +            <note>
> +              The current implementation of WSLv2 does not have out-of-the-box
> +              access to external devices such as those connected through a
> +              USB port, but it automatically mounts your <filename>C:</filename>
> +              drive on <filename>/mnt/c/</filename> (and others), which
> +              you can use to share deploy artifacts to be later flashed on
> +              hardware through Windows, but your build directory should not
> +              reside inside this mountpoint.
> +            </note>
> +            Once you have WSLv2 set up, everything is in place to
> +            develop just as if you were running on a native Linux machine.
> +            If you are going to use the Extensible SDK container, see the
> +            "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-extensible'>Using the Extensible SDK</ulink>"
> +            Chapter in the Yocto Project Application Development and the
> +            Extensible Software Development Kit (eSDK) manual.
> +            If you are going to use the Toaster container, see the
> +            "<ulink url='&YOCTO_DOCS_TOAST_URL;#toaster-manual-setup-and-use'>Setting Up and Using Toaster</ulink>"
> +            section in the Toaster User Manual.
> +        </para>
> +    </section>
>  </section>
> 
>  <section id='locating-yocto-project-source-files'>
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [docs] [PATCH 2/4] dev-manual: Document the WSLv2 install process
  2020-03-30 10:07   ` [docs] " Peter Kjellerstedt
@ 2020-03-31  0:35     ` alhe
  2020-03-31  0:55       ` alhe
  0 siblings, 1 reply; 7+ messages in thread
From: alhe @ 2020-03-31  0:35 UTC (permalink / raw)
  To: docs, peter.kjellerstedt; +Cc: richard.purdie

[-- Attachment #1: Type: text/plain, Size: 12109 bytes --]

Hey Peter,

Yeah that seems reasonable, will sent a v2 in a bit.

Alejandro

On 3/30/2020 3:07 AM, Peter Kjellerstedt wrote:
>> -----Original Message-----
>> From: docs@lists.yoctoproject.org <docs@lists.yoctoproject.org> On Behalf
>> Of alhe@linux.microsoft.com
>> Sent: den 30 mars 2020 07:43
>> To: docs@lists.yoctoproject.org
>> Cc: richard.purdie@linuxfoundation.org
>> Subject: [docs] [PATCH 2/4] dev-manual: Document the WSLv2 install process
>>
>> Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
>> Signed-off-by: Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>
>> ---
>>   documentation/dev-manual/dev-manual-start.xml | 145 +++++++++++++++++-
>>   1 file changed, 139 insertions(+), 6 deletions(-)
>>
>> diff --git a/documentation/dev-manual/dev-manual-start.xml b/documentation/dev-manual/dev-manual-start.xml
>> index 8d2f316f52..a588a37f06 100644
>> --- a/documentation/dev-manual/dev-manual-start.xml
>> +++ b/documentation/dev-manual/dev-manual-start.xml
>> @@ -394,16 +394,16 @@
>>           This section provides procedures to set up a system to be used as your
>>           <ulink url='&YOCTO_DOCS_REF_URL;#hardware-build-system-term'>build host</ulink>
>>           for development using the Yocto Project.
>> -        Your build host can be a native Linux machine (recommended) or it can
>> +        Your build host can be a native Linux machine (recommended) it can
> Please restore the above as it was.
>
>>           be a machine (Linux, Mac, or Windows) that uses
>>           <ulink url='https://github.com/crops/poky-container'>CROPS</ulink>,
>>           which leverages
>> -        <ulink url='https://www.docker.com/'>Docker Containers</ulink>.
>> +        <ulink url='https://www.docker.com/'>Docker Containers</ulink> or it can
>> +        be a Windows machine capable of running Windows Subsystem For Linux v2 (WSL).
>>           <note>
>> -            You cannot use a build host that is using the
>> -            <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux</ulink>
>> -            (WSL).
>> -            The Yocto Project is not compatible with WSL.
>> +          The Yocto Project is not compatible with <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux v1</ulink>
>> +          , it is compatible but not officially supported nor validated with WSLv2,
>> +          if you still decide to use WSL please upgrade to <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>WSLv2</ulink>.
> Change to:
>
>              The Yocto Project is not compatible with
>              <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux v1</ulink>.
>              It is compatible, but not officially supported nor validated, with WSLv2.
>              If you still decide to use WSL, please upgrade to
>              <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>WSLv2</ulink>.
>
> //Peter
>
>>           </note>
>>       </para>
>>
>> @@ -654,6 +654,139 @@
>>               section in the Toaster User Manual.
>>           </para>
>>       </section>
>> +
>> +    <section id='setting-up-to-use-wsl'>
>> +        <title>Setting Up to Use Windows Subsystem For Linux (WSLv2)</title>
>> +
>> +        <para>
>> +            With <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-about'>
>> +            Windows Subsystem for Linux (WSLv2)</ulink>, you can create a
>> +            Yocto Project development environment that allows you to build
>> +            on Windows. You can set up a Linux distribution inside Windows
>> +            in which you can develop using the Yocto Project.
>> +        </para>
>> +
>> +        <para>
>> +            Follow these general steps to prepare a Windows machine using WSLv2
>> +            as your Yocto Project build host:
>> +            <orderedlist>
>> +                <listitem><para>
>> +                    <emphasis>Make sure your Windows 10 machine is capable of running WSLv2:</emphasis>
>> +
>> +                    WSLv2 is only available for Windows 10 builds > 18917. To
>> +                    check which build version you are running, you may open a
>> +                    command prompt on Windows and execute the command "ver".
>> +                    <literallayout class='monospaced'>
>> +    C:\Users\myuser> ver
>> +
>> +    Microsoft Windows [Version 10.0.19041.153]
>> +                    </literallayout>
>> +                    If your build is capable of running WSLv2 you may continue,
>> +                    for more information on this subject or instructions on how
>> +                    to upgrade to WSLv2 visit <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>Windows 10 WSLv2</ulink>
>> +                    </para></listitem>
>> +                <listitem><para>
>> +                    <emphasis>Install the Linux distribution of your choice inside Windows 10:</emphasis>
>> +                    Once you know your version of Windows 10 supports WSLv2,
>> +                    you can install the distribution of your choice from the
>> +                    Microsoft Store.
>> +                    Open the Microsoft Store and search for Linux. While there
>> +                    are several Linux distributions available, the assumption
>> +                    is that your pick will be one of the distributions supported
>> +                    by the Yocto Project as stated on the instructions for
>> +                    using a native Linux host.
>> +                    After making your selection, simply click "Get" to download
>> +                    and install the distribution.
>> +                    </para></listitem>
>> +                <listitem><para>
>> +                    <emphasis>Check your Linux distribution is using WSLv2:</emphasis>
>> +                    Open a Windows PowerShell and run:
>> +                    <literallayout class='monospaced'>
>> +    C:\WINDOWS\system32> wsl -l -v
>> +    NAME      STATE           VERSION
>> +    *Ubuntu    Running         2
>> +                    </literallayout>
>> +                    Note the version column which says the WSL version being used by
>> +                    your distribution, on compatible systems, this can be changed back
>> +                    at any point in time.
>> +                    </para></listitem>
>> +                <listitem><para>
>> +                    <emphasis>Optionally Orient Yourself on WSL:</emphasis>
>> +                    If you are unfamiliar with WSL, you can learn more here -
>> +                    <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-about'></ulink>.
>> +                    </para></listitem>
>> +                <listitem><para>
>> +                    <emphasis>Launch your WSL Distibution:</emphasis>
>> +                    From the Windows start menu simply launch your WSL distribution
>> +                    just like any other application.
>> +                    </para></listitem>
>> +                <listitem><para>
>> +                    <emphasis>Optimize your WSLv2 storage often:</emphasis>
>> +                    Due to the way storage is handled on WSLv2, the storage
>> +                    space used by the undelying Linux distribution is not
>> +                    reflected immedately, and since bitbake heavily uses
>> +                    storage, after several builds, you may be unaware you
>> +                    are running out of space. WSLv2 uses a VHDX file for
>> +                    storage, this issue can be easily avoided by manually
>> +                    optimizing this file often, this can be done in the
>> +                    following way:
>> +                    <orderedlist>
>> +                        <listitem><para>
>> +                            <emphasis>Find the location of your VHDX file:</emphasis>
>> +                            First you need to find the distro app package directory,
>> +                            to achieve this open a Windows Powershell as Administrator
>> +                            and run:
>> +                            <literallayout class='monospaced'>
>> +    C:\WINDOWS\system32> Get-AppxPackage -Name "*Ubuntu*" | Select PackageFamilyName
>> +    PackageFamilyName
>> +    -----------------
>> +    CanonicalGroupLimited.UbuntuonWindows_79abcdefgh
>> +                            </literallayout>
>> +                            You should now replace the <replaceable>PackageFamilyName</replaceable>
>> +                            and your <replaceable>user</replaceable> on the following
>> +                            path to find your VHDX file: <filename>C:\Users\user\AppData\Local\Packages\PackageFamilyName\LocalState\</filename>
>> +                            For example:
>> +                            <literallayout class='monospaced'>
>> +    ls C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\
>> +    Mode                 LastWriteTime         Length Name
>> +    -a----         3/14/2020   9:52 PM    57418973184 ext4.vhdx
>> +                            </literallayout>
>> +                            Your VHDX file path is: <filename>C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ext4.vhdx</filename>
>> +                            </para></listitem>
>> +                        <listitem><para><emphasis>Optimize your VHDX file:</emphasis>
>> +                            Open a Windows Powershell as Administrator to optimize
>> +                            your VHDX file, shutting down WSL first:
>> +                            <literallayout class='monospaced'>
>> +    C:\WINDOWS\system32> wsl --shutdown
>> +    C:\WINDOWS\system32> optimize-vhd -Path C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ext4.vhdx -Mode full
>> +                            </literallayout>
>> +                            A progress bar should be shown while optimizing the VHDX file,
>> +                            and storage should now be reflected correctly on the Windows
>> +                            Explorer.
>> +                            </para></listitem>
>> +                    </orderedlist>
>> +                </para></listitem>
>> +            </orderedlist>
>> +            <note>
>> +              The current implementation of WSLv2 does not have out-of-the-box
>> +              access to external devices such as those connected through a
>> +              USB port, but it automatically mounts your <filename>C:</filename>
>> +              drive on <filename>/mnt/c/</filename> (and others), which
>> +              you can use to share deploy artifacts to be later flashed on
>> +              hardware through Windows, but your build directory should not
>> +              reside inside this mountpoint.
>> +            </note>
>> +            Once you have WSLv2 set up, everything is in place to
>> +            develop just as if you were running on a native Linux machine.
>> +            If you are going to use the Extensible SDK container, see the
>> +            "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-extensible'>Using the Extensible SDK</ulink>"
>> +            Chapter in the Yocto Project Application Development and the
>> +            Extensible Software Development Kit (eSDK) manual.
>> +            If you are going to use the Toaster container, see the
>> +            "<ulink url='&YOCTO_DOCS_TOAST_URL;#toaster-manual-setup-and-use'>Setting Up and Using Toaster</ulink>"
>> +            section in the Toaster User Manual.
>> +        </para>
>> +    </section>
>>   </section>
>>
>>   <section id='locating-yocto-project-source-files'>
>> --
>> 2.17.1
>
> 

[-- Attachment #2: Type: text/html, Size: 14811 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [docs] [PATCH 2/4] dev-manual: Document the WSLv2 install process
  2020-03-31  0:35     ` alhe
@ 2020-03-31  0:55       ` alhe
  0 siblings, 0 replies; 7+ messages in thread
From: alhe @ 2020-03-31  0:55 UTC (permalink / raw)
  To: docs, peter.kjellerstedt; +Cc: richard.purdie

[-- Attachment #1: Type: text/plain, Size: 12549 bytes --]

Hey Peter,

On 3/30/2020 5:35 PM, Alejandro Hernandez Samaniego wrote:
>
> Hey Peter,
>
> Yeah that seems reasonable, will sent a v2 in a bit.
>
> Alejandro
>
> On 3/30/2020 3:07 AM, Peter Kjellerstedt wrote:
>>> -----Original Message-----
>>> From:docs@lists.yoctoproject.org  <docs@lists.yoctoproject.org>  On Behalf
>>> Ofalhe@linux.microsoft.com
>>> Sent: den 30 mars 2020 07:43
>>> To:docs@lists.yoctoproject.org
>>> Cc:richard.purdie@linuxfoundation.org
>>> Subject: [docs] [PATCH 2/4] dev-manual: Document the WSLv2 install process
>>>
>>> Signed-off-by: Alejandro Hernandez Samaniego<alejandro@enedino.org>
>>> Signed-off-by: Alejandro Hernandez Samaniego<alhe@linux.microsoft.com>
>>> ---
>>>   documentation/dev-manual/dev-manual-start.xml | 145 +++++++++++++++++-
>>>   1 file changed, 139 insertions(+), 6 deletions(-)
>>>
>>> diff --git a/documentation/dev-manual/dev-manual-start.xml b/documentation/dev-manual/dev-manual-start.xml
>>> index 8d2f316f52..a588a37f06 100644
>>> --- a/documentation/dev-manual/dev-manual-start.xml
>>> +++ b/documentation/dev-manual/dev-manual-start.xml
>>> @@ -394,16 +394,16 @@
>>>           This section provides procedures to set up a system to be used as your
>>>           <ulink url='&YOCTO_DOCS_REF_URL;#hardware-build-system-term'>build host</ulink>
>>>           for development using the Yocto Project.
>>> -        Your build host can be a native Linux machine (recommended) or it can
>>> +        Your build host can be a native Linux machine (recommended) it can
>> Please restore the above as it was.
>>
>>>           be a machine (Linux, Mac, or Windows) that uses
>>>           <ulink url='https://github.com/crops/poky-container'>CROPS</ulink>,
>>>           which leverages
>>> -        <ulink url='https://www.docker.com/'>Docker Containers</ulink>.
>>> +        <ulink url='https://www.docker.com/'>Docker Containers</ulink> or it can

Actually restoring te above does not make sense, its missing a ",", but 
I dont think it should say "or it can" several times.


Cheers,

Alejandro

>>> +        be a Windows machine capable of running Windows Subsystem For Linux v2 (WSL).
>>>           <note>
>>> -            You cannot use a build host that is using the
>>> -            <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux</ulink>
>>> -            (WSL).
>>> -            The Yocto Project is not compatible with WSL.
>>> +          The Yocto Project is not compatible with <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux v1</ulink>
>>> +          , it is compatible but not officially supported nor validated with WSLv2,
>>> +          if you still decide to use WSL please upgrade to <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>WSLv2</ulink>.
>> Change to:
>>
>>              The Yocto Project is not compatible with
>>              <ulink url='https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux'>Windows Subsystem for Linux v1</ulink>.
>>              It is compatible, but not officially supported nor validated, with WSLv2.
>>              If you still decide to use WSL, please upgrade to
>>              <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>WSLv2</ulink>.
>>
>> //Peter
>>
>>>           </note>
>>>       </para>
>>>
>>> @@ -654,6 +654,139 @@
>>>               section in the Toaster User Manual.
>>>           </para>
>>>       </section>
>>> +
>>> +    <section id='setting-up-to-use-wsl'>
>>> +        <title>Setting Up to Use Windows Subsystem For Linux (WSLv2)</title>
>>> +
>>> +        <para>
>>> +            With <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-about'>
>>> +            Windows Subsystem for Linux (WSLv2)</ulink>, you can create a
>>> +            Yocto Project development environment that allows you to build
>>> +            on Windows. You can set up a Linux distribution inside Windows
>>> +            in which you can develop using the Yocto Project.
>>> +        </para>
>>> +
>>> +        <para>
>>> +            Follow these general steps to prepare a Windows machine using WSLv2
>>> +            as your Yocto Project build host:
>>> +            <orderedlist>
>>> +                <listitem><para>
>>> +                    <emphasis>Make sure your Windows 10 machine is capable of running WSLv2:</emphasis>
>>> +
>>> +                    WSLv2 is only available for Windows 10 builds > 18917. To
>>> +                    check which build version you are running, you may open a
>>> +                    command prompt on Windows and execute the command "ver".
>>> +                    <literallayout class='monospaced'>
>>> +    C:\Users\myuser> ver
>>> +
>>> +    Microsoft Windows [Version 10.0.19041.153]
>>> +                    </literallayout>
>>> +                    If your build is capable of running WSLv2 you may continue,
>>> +                    for more information on this subject or instructions on how
>>> +                    to upgrade to WSLv2 visit <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-install'>Windows 10 WSLv2</ulink>
>>> +                    </para></listitem>
>>> +                <listitem><para>
>>> +                    <emphasis>Install the Linux distribution of your choice inside Windows 10:</emphasis>
>>> +                    Once you know your version of Windows 10 supports WSLv2,
>>> +                    you can install the distribution of your choice from the
>>> +                    Microsoft Store.
>>> +                    Open the Microsoft Store and search for Linux. While there
>>> +                    are several Linux distributions available, the assumption
>>> +                    is that your pick will be one of the distributions supported
>>> +                    by the Yocto Project as stated on the instructions for
>>> +                    using a native Linux host.
>>> +                    After making your selection, simply click "Get" to download
>>> +                    and install the distribution.
>>> +                    </para></listitem>
>>> +                <listitem><para>
>>> +                    <emphasis>Check your Linux distribution is using WSLv2:</emphasis>
>>> +                    Open a Windows PowerShell and run:
>>> +                    <literallayout class='monospaced'>
>>> +    C:\WINDOWS\system32> wsl -l -v
>>> +    NAME      STATE           VERSION
>>> +    *Ubuntu    Running         2
>>> +                    </literallayout>
>>> +                    Note the version column which says the WSL version being used by
>>> +                    your distribution, on compatible systems, this can be changed back
>>> +                    at any point in time.
>>> +                    </para></listitem>
>>> +                <listitem><para>
>>> +                    <emphasis>Optionally Orient Yourself on WSL:</emphasis>
>>> +                    If you are unfamiliar with WSL, you can learn more here -
>>> +                    <ulink url='https://docs.microsoft.com/en-us/windows/wsl/wsl2-about'></ulink>.
>>> +                    </para></listitem>
>>> +                <listitem><para>
>>> +                    <emphasis>Launch your WSL Distibution:</emphasis>
>>> +                    From the Windows start menu simply launch your WSL distribution
>>> +                    just like any other application.
>>> +                    </para></listitem>
>>> +                <listitem><para>
>>> +                    <emphasis>Optimize your WSLv2 storage often:</emphasis>
>>> +                    Due to the way storage is handled on WSLv2, the storage
>>> +                    space used by the undelying Linux distribution is not
>>> +                    reflected immedately, and since bitbake heavily uses
>>> +                    storage, after several builds, you may be unaware you
>>> +                    are running out of space. WSLv2 uses a VHDX file for
>>> +                    storage, this issue can be easily avoided by manually
>>> +                    optimizing this file often, this can be done in the
>>> +                    following way:
>>> +                    <orderedlist>
>>> +                        <listitem><para>
>>> +                            <emphasis>Find the location of your VHDX file:</emphasis>
>>> +                            First you need to find the distro app package directory,
>>> +                            to achieve this open a Windows Powershell as Administrator
>>> +                            and run:
>>> +                            <literallayout class='monospaced'>
>>> +    C:\WINDOWS\system32> Get-AppxPackage -Name "*Ubuntu*" | Select PackageFamilyName
>>> +    PackageFamilyName
>>> +    -----------------
>>> +    CanonicalGroupLimited.UbuntuonWindows_79abcdefgh
>>> +                            </literallayout>
>>> +                            You should now replace the <replaceable>PackageFamilyName</replaceable>
>>> +                            and your <replaceable>user</replaceable> on the following
>>> +                            path to find your VHDX file: <filename>C:\Users\user\AppData\Local\Packages\PackageFamilyName\LocalState\</filename>
>>> +                            For example:
>>> +                            <literallayout class='monospaced'>
>>> +    ls C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\
>>> +    Mode                 LastWriteTime         Length Name
>>> +    -a----         3/14/2020   9:52 PM    57418973184 ext4.vhdx
>>> +                            </literallayout>
>>> +                            Your VHDX file path is: <filename>C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ext4.vhdx</filename>
>>> +                            </para></listitem>
>>> +                        <listitem><para><emphasis>Optimize your VHDX file:</emphasis>
>>> +                            Open a Windows Powershell as Administrator to optimize
>>> +                            your VHDX file, shutting down WSL first:
>>> +                            <literallayout class='monospaced'>
>>> +    C:\WINDOWS\system32> wsl --shutdown
>>> +    C:\WINDOWS\system32> optimize-vhd -Path C:\Users\myuser\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79abcdefgh\LocalState\ext4.vhdx -Mode full
>>> +                            </literallayout>
>>> +                            A progress bar should be shown while optimizing the VHDX file,
>>> +                            and storage should now be reflected correctly on the Windows
>>> +                            Explorer.
>>> +                            </para></listitem>
>>> +                    </orderedlist>
>>> +                </para></listitem>
>>> +            </orderedlist>
>>> +            <note>
>>> +              The current implementation of WSLv2 does not have out-of-the-box
>>> +              access to external devices such as those connected through a
>>> +              USB port, but it automatically mounts your <filename>C:</filename>
>>> +              drive on <filename>/mnt/c/</filename> (and others), which
>>> +              you can use to share deploy artifacts to be later flashed on
>>> +              hardware through Windows, but your build directory should not
>>> +              reside inside this mountpoint.
>>> +            </note>
>>> +            Once you have WSLv2 set up, everything is in place to
>>> +            develop just as if you were running on a native Linux machine.
>>> +            If you are going to use the Extensible SDK container, see the
>>> +            "<ulink url='&YOCTO_DOCS_SDK_URL;#sdk-extensible'>Using the Extensible SDK</ulink>"
>>> +            Chapter in the Yocto Project Application Development and the
>>> +            Extensible Software Development Kit (eSDK) manual.
>>> +            If you are going to use the Toaster container, see the
>>> +            "<ulink url='&YOCTO_DOCS_TOAST_URL;#toaster-manual-setup-and-use'>Setting Up and Using Toaster</ulink>"
>>> +            section in the Toaster User Manual.
>>> +        </para>
>>> +    </section>
>>>   </section>
>>>
>>>   <section id='locating-yocto-project-source-files'>
>>> --
>>> 2.17.1
>>
>> 

[-- Attachment #2: Type: text/html, Size: 16158 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-31  0:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30  5:42 [PATCH 1/4] ref-manual: Explain the project is not validated against WSL but people may still use it alhe
2020-03-30  5:42 ` [PATCH 2/4] dev-manual: Document the WSLv2 install process alhe
2020-03-30 10:07   ` [docs] " Peter Kjellerstedt
2020-03-31  0:35     ` alhe
2020-03-31  0:55       ` alhe
2020-03-30  5:42 ` [PATCH 3/4] overview-manual: Document the basics of WSL and create a link to the build host setup process alhe
2020-03-30  5:42 ` [PATCH 4/4] brief-yoctoprojectqs: " alhe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.