Azure-Samples / ESP-Samples

Samples for ESP boards using Azure IoT
MIT License
47 stars 23 forks source link

Cannot run setup scripts on Linux #10

Closed CIPop closed 11 months ago

CIPop commented 3 years ago

To make this work on Linux/Ubuntu, the install path should be either configurable or defaulting to the home folder. Currently this is defaulting to /mnt/c/ which isn't working well on anything but WSL.

Workaround:

Edit the install and dev setup scripts and modify /mnt/c to a writable folder. Also, to understand which serial port to use, check the dmesg logs (usually similar to /dev/ttyUSB0 on Ubuntu 20 LTS).

tawalke commented 3 years ago

Hi:

This script is only for WSL.

For Linux there is a link to a script that is provided from Espressif Systems which is noted in the ReadMe.


From: Cristian Pop notifications@github.com Sent: Monday, September 21, 2020 6:38:19 PM To: Azure-Samples/ESP-Samples ESP-Samples@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

To make this work on Linux/Ubuntu, the install path should be either configurable or defaulting to the home folder. Currently this is defaulting to /mnt/c/ which isn't working well on anything but WSL.

Workaround:

Edit the install and dev setup scripts and modify /mnt/c to a writable folder. Also, to understand which serial port to use, check the dmesg logs (usually similar to /dev/ttyUSB0 on Ubuntu 20 LTS).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10&data=02%7C01%7C%7C9f03da0294054281b70108d85e7f0ab6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363247010670511&sdata=AOHFN1LudsgxSGLmXmxqHXWy5tKO%2ByvaopcsomFfuuY%3D&reserved=0, or unsubscribehttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAARRNVWNKJ76UUW3SD4I2OTSG7IVXANCNFSM4RVCGXDQ&data=02%7C01%7C%7C9f03da0294054281b70108d85e7f0ab6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363247010680505&sdata=1EwIgPPOhYzHchSJw9uROnftaWOgA7DkuulbSaciYhc%3D&reserved=0.

CIPop commented 3 years ago

I think that even for WSL, the target could be in user's home. (Not sure if this would work as-is in WSL v2.)

I like these scripts better as they follow the step-by-step guidance. For ESP8266 I didn't find any alternate solution by Espressif.


From: Tara W notifications@github.com Sent: Tuesday, September 22, 2020 5:45 AM To: Azure-Samples/ESP-Samples ESP-Samples@noreply.github.com Cc: Cristian Pop Cristian.Pop@microsoft.com; Author author@noreply.github.com Subject: Re: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

Hi:

This script is only for WSL.

For Linux there is a link to a script that is provided from Espressif Systems which is noted in the ReadMe.


From: Cristian Pop notifications@github.com Sent: Monday, September 21, 2020 6:38:19 PM To: Azure-Samples/ESP-Samples ESP-Samples@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

To make this work on Linux/Ubuntu, the install path should be either configurable or defaulting to the home folder. Currently this is defaulting to /mnt/c/ which isn't working well on anything but WSL.

Workaround:

Edit the install and dev setup scripts and modify /mnt/c to a writable folder. Also, to understand which serial port to use, check the dmesg logs (usually similar to /dev/ttyUSB0 on Ubuntu 20 LTS).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10&data=02%7C01%7C%7C9f03da0294054281b70108d85e7f0ab6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363247010670511&sdata=AOHFN1LudsgxSGLmXmxqHXWy5tKO%2ByvaopcsomFfuuY%3D&reserved=0, or unsubscribehttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAARRNVWNKJ76UUW3SD4I2OTSG7IVXANCNFSM4RVCGXDQ&data=02%7C01%7C%7C9f03da0294054281b70108d85e7f0ab6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363247010680505&sdata=1EwIgPPOhYzHchSJw9uROnftaWOgA7DkuulbSaciYhc%3D&reserved=0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10%23issuecomment-696696814&data=02%7C01%7Ccristian.pop%40microsoft.com%7C7f368815e4234ac6867108d85ef55bcf%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637363755186283142&sdata=uT1bkerZZEHC3xKZa47%2F2%2FW77PB62LwdvlPXbxbMx74%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACB4MB2QS5QGFGJZHACZDFDSHCL5ZANCNFSM4RVCGXDQ&data=02%7C01%7Ccristian.pop%40microsoft.com%7C7f368815e4234ac6867108d85ef55bcf%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637363755186293098&sdata=uX94FY7Szn4nKWOPzEGUEtBZR%2F2B9mieoAygBQE5oR4%3D&reserved=0.

tawalke commented 3 years ago

Hi:

For WSL 1 the user home is not accessible outside of WSL/Linux, but in comparison /mnt/c is accessible in both WSL/Linux and Windows.

In WSL 2 that is not the case and we decided that upon that release and update to PnP we would add to the script the option to set desired location.


From: Cristian Pop notifications@github.com Sent: Tuesday, September 22, 2020 11:40:21 AM To: Azure-Samples/ESP-Samples ESP-Samples@noreply.github.com Cc: Tara W taraew@live.com; Comment comment@noreply.github.com Subject: Re: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

I think that even for WSL, the target could be in user's home. (Not sure if this would work as-is in WSL v2.)

I like these scripts better as they follow the step-by-step guidance. For ESP8266 I didn't find any alternate solution by Espressif.


From: Tara W notifications@github.com Sent: Tuesday, September 22, 2020 5:45 AM To: Azure-Samples/ESP-Samples ESP-Samples@noreply.github.com Cc: Cristian Pop Cristian.Pop@microsoft.com; Author author@noreply.github.com Subject: Re: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

Hi:

This script is only for WSL.

For Linux there is a link to a script that is provided from Espressif Systems which is noted in the ReadMe.


From: Cristian Pop notifications@github.com Sent: Monday, September 21, 2020 6:38:19 PM To: Azure-Samples/ESP-Samples ESP-Samples@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

To make this work on Linux/Ubuntu, the install path should be either configurable or defaulting to the home folder. Currently this is defaulting to /mnt/c/ which isn't working well on anything but WSL.

Workaround:

Edit the install and dev setup scripts and modify /mnt/c to a writable folder. Also, to understand which serial port to use, check the dmesg logs (usually similar to /dev/ttyUSB0 on Ubuntu 20 LTS).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10&data=02%7C01%7C%7C9f03da0294054281b70108d85e7f0ab6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363247010670511&sdata=AOHFN1LudsgxSGLmXmxqHXWy5tKO%2ByvaopcsomFfuuY%3D&reserved=0, or unsubscribehttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAARRNVWNKJ76UUW3SD4I2OTSG7IVXANCNFSM4RVCGXDQ&data=02%7C01%7C%7C9f03da0294054281b70108d85e7f0ab6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363247010680505&sdata=1EwIgPPOhYzHchSJw9uROnftaWOgA7DkuulbSaciYhc%3D&reserved=0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10%23issuecomment-696696814&data=02%7C01%7Ccristian.pop%40microsoft.com%7C7f368815e4234ac6867108d85ef55bcf%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637363755186283142&sdata=uT1bkerZZEHC3xKZa47%2F2%2FW77PB62LwdvlPXbxbMx74%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACB4MB2QS5QGFGJZHACZDFDSHCL5ZANCNFSM4RVCGXDQ&data=02%7C01%7Ccristian.pop%40microsoft.com%7C7f368815e4234ac6867108d85ef55bcf%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637363755186293098&sdata=uX94FY7Szn4nKWOPzEGUEtBZR%2F2B9mieoAygBQE5oR4%3D&reserved=0.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10%23issuecomment-696803154&data=02%7C01%7C%7Ce3beaea4a6bf4c037df108d85f0dd0ed%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363860223621166&sdata=pRVPzxAEPOhp0Q5zbxoxqMdUzRx00KcYSxJGaVQUSV0%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAARRNVSZH3LI5LYXGD57DRTSHDAOLANCNFSM4RVCGXDQ&data=02%7C01%7C%7Ce3beaea4a6bf4c037df108d85f0dd0ed%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363860223621166&sdata=Cwwtf87wKOgq9BjU0Ed21%2FvNvcv9M%2Bj1xKoS%2FXA5qTg%3D&reserved=0.

tawalke commented 3 years ago

Setup Info for Linux from Expressif System for ESP8266 https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/linux-setup.html

Sent from my Verizon, Samsung Galaxy smartphone Get Outlook for Androidhttps://aka.ms/ghei36


From: Cristian Pop notifications@github.com Sent: Tuesday, September 22, 2020 11:40:21 AM To: Azure-Samples/ESP-Samples ESP-Samples@noreply.github.com Cc: Tara W taraew@live.com; Comment comment@noreply.github.com Subject: Re: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

I think that even for WSL, the target could be in user's home. (Not sure if this would work as-is in WSL v2.)

I like these scripts better as they follow the step-by-step guidance. For ESP8266 I didn't find any alternate solution by Espressif.


From: Tara W notifications@github.com Sent: Tuesday, September 22, 2020 5:45 AM To: Azure-Samples/ESP-Samples ESP-Samples@noreply.github.com Cc: Cristian Pop Cristian.Pop@microsoft.com; Author author@noreply.github.com Subject: Re: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

Hi:

This script is only for WSL.

For Linux there is a link to a script that is provided from Espressif Systems which is noted in the ReadMe.


From: Cristian Pop notifications@github.com Sent: Monday, September 21, 2020 6:38:19 PM To: Azure-Samples/ESP-Samples ESP-Samples@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

To make this work on Linux/Ubuntu, the install path should be either configurable or defaulting to the home folder. Currently this is defaulting to /mnt/c/ which isn't working well on anything but WSL.

Workaround:

Edit the install and dev setup scripts and modify /mnt/c to a writable folder. Also, to understand which serial port to use, check the dmesg logs (usually similar to /dev/ttyUSB0 on Ubuntu 20 LTS).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10&data=02%7C01%7C%7C9f03da0294054281b70108d85e7f0ab6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363247010670511&sdata=AOHFN1LudsgxSGLmXmxqHXWy5tKO%2ByvaopcsomFfuuY%3D&reserved=0, or unsubscribehttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAARRNVWNKJ76UUW3SD4I2OTSG7IVXANCNFSM4RVCGXDQ&data=02%7C01%7C%7C9f03da0294054281b70108d85e7f0ab6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363247010680505&sdata=1EwIgPPOhYzHchSJw9uROnftaWOgA7DkuulbSaciYhc%3D&reserved=0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10%23issuecomment-696696814&data=02%7C01%7Ccristian.pop%40microsoft.com%7C7f368815e4234ac6867108d85ef55bcf%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637363755186283142&sdata=uT1bkerZZEHC3xKZa47%2F2%2FW77PB62LwdvlPXbxbMx74%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACB4MB2QS5QGFGJZHACZDFDSHCL5ZANCNFSM4RVCGXDQ&data=02%7C01%7Ccristian.pop%40microsoft.com%7C7f368815e4234ac6867108d85ef55bcf%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637363755186293098&sdata=uX94FY7Szn4nKWOPzEGUEtBZR%2F2B9mieoAygBQE5oR4%3D&reserved=0.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10%23issuecomment-696803154&data=02%7C01%7C%7Ce3beaea4a6bf4c037df108d85f0dd0ed%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363860223621166&sdata=pRVPzxAEPOhp0Q5zbxoxqMdUzRx00KcYSxJGaVQUSV0%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAARRNVSZH3LI5LYXGD57DRTSHDAOLANCNFSM4RVCGXDQ&data=02%7C01%7C%7Ce3beaea4a6bf4c037df108d85f0dd0ed%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363860223621166&sdata=Cwwtf87wKOgq9BjU0Ed21%2FvNvcv9M%2Bj1xKoS%2FXA5qTg%3D&reserved=0.

CIPop commented 3 years ago

Setup Info for Linux from Expressif System for ESP8266 https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/linux-setup.html

True but the script is doing all that automatically (and I've tested it to work). It's a lot more convenient. Please take issue this as a feature request if it wasn't originally meant to work on Linux.

tawalke commented 3 years ago

Hi Cristian:

Which script are you noting? The script for ESP8266 for Linux or for WSL?

The WSL we have covered, but Espressif Systems provides the setup script and info for ESP8266. Here is the install script link from GitHub: https://github.com/espressif/ESP8266_RTOS_SDK/blob/master/install.sh


From: Cristian Pop notifications@github.com Sent: Tuesday, September 22, 2020, 2:41 PM To: Azure-Samples/ESP-Samples Cc: Tara W; Comment Subject: Re: [Azure-Samples/ESP-Samples] Cannot run setup scripts on Linux (#10)

Setup Info for Linux from Expressif System for ESP8266 https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/linux-setup.htmlhttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.espressif.com%2Fprojects%2Fesp8266-rtos-sdk%2Fen%2Flatest%2Fget-started%2Flinux-setup.html&data=02%7C01%7C%7C72bade7dbf0346b758c908d85f271d3e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363968886186779&sdata=M67LqjtcT2U2s8RwieNXSH28hBwAWVU2tR4pxuB5bY0%3D&reserved=0

True but the script is doing all that automatically (and I've tested it to work). It's a lot more convenient. Please take issue this as a feature request if it wasn't originally meant to work on Linux.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure-Samples%2FESP-Samples%2Fissues%2F10%23issuecomment-696907495&data=02%7C01%7C%7C72bade7dbf0346b758c908d85f271d3e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363968886196779&sdata=4l1L90fIuByXMFeC7HDm3QN6surFTopHU1Qj4sWBZM4%3D&reserved=0, or unsubscribehttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAARRNVS3NZXSIZGANTL4HSLSHDVVNANCNFSM4RVCGXDQ&data=02%7C01%7C%7C72bade7dbf0346b758c908d85f271d3e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637363968886196779&sdata=YOp9pTCImZ58JddS9KFx8WCFJ7K8zxrk4hNFZ4Q9cdY%3D&reserved=0.