Skip to content

Commit 6b60fdc

Browse files
authored
Merge pull request #14 from devdotnetorg/dev-0.4.1
Dev 0.4.1 => Master
2 parents 3603ba6 + 55ca84c commit 6b60fdc

File tree

126 files changed

+5389
-763
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+5389
-763
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v0.4.1 (27-05-2024)
4+
5+
- Added templates for RISC-V devices.
6+
- Updated package Libgpiod.
7+
- Bugs fixed.
8+
39
## v0.4.0 (30-05-2023)
410

511
- Added command to discover devices on the local network.

CHANGELOG_ru.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Список изменений
22

3+
## v0.4.1 (27-05-2024)
4+
5+
- Добавлены шаблоны для RISC-V устройств.
6+
- Обновлен пакет Libgpiod.
7+
- Исправлены ошибки.
8+
39
## v0.4.0 (30-05-2023)
410

511
- Добавлена команда обнаружения устройств в локальной сети.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
[![Version](https://vsmarketplacebadges.dev/version-short/devdotnetorg.vscode-extension-dotnet-fastiot.svg)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![License](https://img.shields.io/badge/License-LGPL3.0-blue.svg)](LICENSE) [![Github Issues](https://img.shields.io/github/issues/devdotnetorg/vscode-extension-dotnet-fastiot.svg)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/issues) [![GitHub last commit](https://img.shields.io/github/last-commit/devdotnetorg/vscode-extension-dotnet-fastiot/dev)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/) [![GitHub Repo stars](https://img.shields.io/github/stars/devdotnetorg/vscode-extension-dotnet-fastiot)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/) [![Installs](https://img.shields.io/visual-studio-marketplace/i/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Downloads](https://img.shields.io/visual-studio-marketplace/d/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Visual Studio Marketplace Last Updated](https://img.shields.io/visual-studio-marketplace/last-updated/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Rating](https://img.shields.io/visual-studio-marketplace/stars/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot)
1+
[![Version](https://img.shields.io/visual-studio-marketplace/v/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![License](https://img.shields.io/badge/License-LGPL3.0-blue.svg)](LICENSE) [![Github Issues](https://img.shields.io/github/issues/devdotnetorg/vscode-extension-dotnet-fastiot.svg)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/issues) [![GitHub last commit](https://img.shields.io/github/last-commit/devdotnetorg/vscode-extension-dotnet-fastiot/dev)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/) [![GitHub Repo stars](https://img.shields.io/github/stars/devdotnetorg/vscode-extension-dotnet-fastiot)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/) [![Installs](https://img.shields.io/visual-studio-marketplace/i/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Downloads](https://img.shields.io/visual-studio-marketplace/d/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Visual Studio Marketplace Last Updated](https://img.shields.io/visual-studio-marketplace/last-updated/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Rating](https://img.shields.io/visual-studio-marketplace/stars/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot)
22

33
# .NET FastIoT VS Code Extension
44

55
[.NET FastIoT Extension](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot ".NET FastIoT Extension") in Visual Studio Code Marketplace.
66

77
[README](README.md "README") in English | [README](README_ru.md "README") на русском языке | DevDotNet.ORG (Russian) - [latest news](https://devdotnet.org/tag/fastiot/ "devdotnet.org/tag/fastiot") | Habr.com (Russian) - [Easy development of IoT applications in C # for Raspberry Pi and other SBCs, on Linux](https://habr.com/ru/company/timeweb/blog/597601/ "Easy development of IoT applications in C # for Raspberry Pi and other SBCs, on Linux").
88

9-
This extension allows you configures an ARMv7 or ARMv8 Linux embedded device to run .NET applications, and configures `*.csproj` projects for remote debugging via an ssh-tunnel. This has been tested on Windows (64 bits).
9+
This extension allows you configures an ARMv7, ARMv8 or RISC-V, Linux embedded device to run .NET applications, and configures `*.csproj` projects for remote debugging via an ssh-tunnel. This has been tested on Windows (64 bits).
1010

1111
Devices supported: Raspberry Pi, Banana Pi, Orange Pi, Radxa, Tinkerboard, Odroid, Khadas VIM, NanoPi, Pine.
1212

@@ -42,8 +42,9 @@ Recommended additional extensions that improve the development process and inter
4242

4343
## System requirements for the device
4444

45-
- **Processor.** ARMv7 or ARMv8;
45+
- **Processor.** ARMv7, ARMv8 or RISC-V;
4646
- **OS version.** Linux distribution based on Ubuntu 20.04 LTS or later (Focal Fossa), or Debian 10.11 or later (Buster). It is recommended to use the distribution kit [Armbian](https://www.armbian.com/ "Armbian - Linux for ARM development boards").
47+
- **Software.** OpenSSH SSH server.
4748

4849
## Getting started
4950

README_ru.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
[![Version](https://vsmarketplacebadges.dev/version-short/devdotnetorg.vscode-extension-dotnet-fastiot.svg)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![License](https://img.shields.io/badge/License-LGPL3.0-blue.svg)](LICENSE) [![Github Issues](https://img.shields.io/github/issues/devdotnetorg/vscode-extension-dotnet-fastiot.svg)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/issues) [![GitHub last commit](https://img.shields.io/github/last-commit/devdotnetorg/vscode-extension-dotnet-fastiot/dev)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/) [![GitHub Repo stars](https://img.shields.io/github/stars/devdotnetorg/vscode-extension-dotnet-fastiot)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/) [![Installs](https://img.shields.io/visual-studio-marketplace/i/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Downloads](https://img.shields.io/visual-studio-marketplace/d/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Visual Studio Marketplace Last Updated](https://img.shields.io/visual-studio-marketplace/last-updated/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Rating](https://img.shields.io/visual-studio-marketplace/stars/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot)
1+
[![Version](https://img.shields.io/visual-studio-marketplace/v/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![License](https://img.shields.io/badge/License-LGPL3.0-blue.svg)](LICENSE) [![Github Issues](https://img.shields.io/github/issues/devdotnetorg/vscode-extension-dotnet-fastiot.svg)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/issues) [![GitHub last commit](https://img.shields.io/github/last-commit/devdotnetorg/vscode-extension-dotnet-fastiot/dev)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/) [![GitHub Repo stars](https://img.shields.io/github/stars/devdotnetorg/vscode-extension-dotnet-fastiot)](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/) [![Installs](https://img.shields.io/visual-studio-marketplace/i/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Downloads](https://img.shields.io/visual-studio-marketplace/d/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Visual Studio Marketplace Last Updated](https://img.shields.io/visual-studio-marketplace/last-updated/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot) [![Rating](https://img.shields.io/visual-studio-marketplace/stars/devdotnetorg.vscode-extension-dotnet-fastiot)](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot)
22

33
# .NET FastIoT VS Code Extension
44

55
Расширение [.NET FastIoT](https://marketplace.visualstudio.com/items?itemName=devdotnetorg.vscode-extension-dotnet-fastiot ".NET FastIoT Extension") в Visual Studio Code Marketplace.
66

77
[README](README.md "README") in English | [README](README_ru.md "README") на русском языке | DevDotNet.ORG (Russian) - [последние новости](https://devdotnet.org/tag/fastiot/ "devdotnet.org/tag/fastiot") | Habr.com (Russian) - [Простая разработка IoT приложений на C# для Raspberry Pi и других одноплатников, на Linux](https://habr.com/ru/company/timeweb/blog/597601/ "Простая разработка IoT приложений на C# для Raspberry Pi и других одноплатников, на Linux").
88

9-
Расширение настраивает встраиваемое устройство на архитектуре ARMv7 или ARMv8, работающее под Linux, для запуска .NET приложений, и конфигурирует проекты `*.csproj` для удаленной отладки по ssh-туннелю. Работает только на Windows (64 бит).
9+
Расширение настраивает встраиваемое устройство на архитектуре ARMv7, ARMv8 или RISC-V, работающее под Linux, для запуска .NET приложений, и конфигурирует проекты `*.csproj` для удаленной отладки по ssh-туннелю. Работает только на Windows (64 бит).
1010

1111
Поддерживаются устройства: Raspberry Pi, Banana Pi, Orange Pi, Radxa, Tinkerboard, Odroid, Khadas VIM, NanoPi, Pine.
1212

@@ -42,8 +42,9 @@
4242

4343
## Системные требования для устройства
4444

45-
- **Процессор.** ARMv7 или ARMv8;
46-
- **Версия ОС.** Linux дистрибутив построенный на основе Ubuntu версии не ниже 20.04 LTS (Focal Fossa), или на основе Debian версии не ниже 10.11 (Buster). Рекомендуется использовать дистрибутив [Armbian](https://www.armbian.com/ "Armbian – Linux for ARM development boards").
45+
- **Процессор.** ARMv7, ARMv8 или RISC-V;
46+
- **Версия ОС.** Linux дистрибутив построенный на основе Ubuntu версии не ниже 20.04 LTS (Focal Fossa), или на основе Debian версии не ниже 10.11 (Buster). Рекомендуется использовать дистрибутив [Armbian](https://www.armbian.com/ "Armbian – Linux for ARM development boards");
47+
- **ПО.** SSH-сервер OpenSSH.
4748

4849
## Быстрый старт
4950

bashscript/installpackagedotnetsdk.sh

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,61 @@ if [ -z $INSTALLPATH ]; then
2020
INSTALLPATH=/usr/share/dotnet
2121
fi
2222

23+
# **************** definition of variables ****************
24+
declare ARCH_OS=$(uname -m) #aarch64, armv7l, x86_64 or riscv64
25+
declare ID_OS=("$(cat /etc/*release | grep '^ID=' | sed 's/.*=\s*//')") # ubuntu, debian, alpine
26+
declare VERSION_OS=("$(cat /etc/*release | grep '^VERSION_ID=' | sed 's/.*=\s*//')")
27+
VERSION_OS=("$(echo ${VERSION_OS} | sed 's/\"//g')")
28+
# get only type XX.YY
29+
VERSION_OS=("$(cut -d '.' -f 1 <<< "$VERSION_OS")"."$(cut -d '.' -f 2 <<< "$VERSION_OS")")
30+
31+
# requirements check
32+
if [ $ARCH_OS != "aarch64" ] && [ $ARCH_OS != "armv7l" ] \
33+
&& [ $ARCH_OS != "x86_64" ]&& [ $ARCH_OS != "riscv64" ]; then
34+
echo "ERROR. Current OS architecture ${ARCH_OS} is not supported."
35+
exit 1;
36+
fi
37+
38+
if [ $ID_OS != "ubuntu" ] && [ $ID_OS != "debian" ] && [ $ID_OS != "alpine" ]; then
39+
echo "ERROR. Current OS ${ID_OS} not supported."
40+
exit 1;
41+
fi
42+
2343
export DEBIAN_FRONTEND="noninteractive"
2444

2545
sudo apt-get update
2646
sudo apt-get install -y wget
2747

28-
#install
29-
wget https://dot.net/v1/dotnet-install.sh
30-
sudo chmod +x dotnet-install.sh
31-
export DOTNET_CLI_TELEMETRY_OPTOUT=true
32-
sudo ./dotnet-install.sh --channel $NETSDK_CHANNEL --install-dir $INSTALLPATH
48+
#for aarch64, armv7l, x86_64
49+
if [ $ARCH_OS == "aarch64" ] && [ $ARCH_OS == "armv7l" ] \
50+
&& [ $ARCH_OS == "x86_64" ]; then
51+
#install
52+
wget https://dot.net/v1/dotnet-install.sh
53+
sudo chmod +x dotnet-install.sh
54+
export DOTNET_CLI_TELEMETRY_OPTOUT=true
55+
sudo ./dotnet-install.sh --channel $NETSDK_CHANNEL --install-dir $INSTALLPATH
56+
rm dotnet-install.sh
57+
fi
58+
59+
#for riscv64
60+
if [ $ARCH_OS == "riscv64" ]; then
61+
if [ $NETSDK_CHANNEL != "8.0" ]; then
62+
echo "ERROR. You can only install dotnet sdk 8.0 for riscv64."
63+
exit 1;
64+
fi
65+
sudo apt-get install -y tar
66+
wget -O dotnet-sdk-riscv64.tar.gz "https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.100/dotnet-sdk-8.0.100-linux-riscv64.tar.gz"
67+
sudo mkdir -p $INSTALLPATH
68+
sudo tar -xf dotnet-sdk-riscv64.tar.gz -C "$INSTALLPATH" --checkpoint=.100
69+
echo ""
70+
rm dotnet-sdk-riscv64.tar.gz
71+
fi
72+
3373
if [ -h /usr/bin/dotnet ]; then
3474
sudo rm /usr/bin/dotnet
3575
fi
3676
sudo ln -s $INSTALLPATH/dotnet /usr/bin/dotnet
3777

38-
rm dotnet-install.sh
39-
4078
#Disabled telemetry in .NET
4179
#Telemetry is collected when using any of the .NET CLI commands, such as:
4280
# dotnet build
Lines changed: 10 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,27 @@
11
#!/bin/bash
22
# Run:
33
# chmod +x installpackagelibgpiod.sh
4-
# ./installpackagelibgpiod.sh 1.6.3 /usr/share/libgpiod
5-
6-
# '1.6.3', 'checkinrepository','installfromrepository'
4+
# ./installpackagelibgpiod.sh options
75

86
set -e #Exit immediately if a comman returns a non-zero status
97

108
echo "Run: installpackagelibgpiod.sh"
119
#
12-
LIBGPIOD_VERSION="$1"
13-
INSTALLPATH="$2"
14-
15-
#
16-
#Check the version of Libgpiod in the repository
17-
if [ $LIBGPIOD_VERSION == "checkinrepository" ]; then
18-
echo "Check the version of Libgpiod in the repository"
19-
sudo apt-get update
20-
sudo apt list libgpiod-dev
21-
echo "Successfully"
22-
exit 0
23-
fi
24-
25-
#Install Libgpiod from repository
26-
if [ $LIBGPIOD_VERSION == "installfromrepository" ]; then
27-
echo "Install Libgpiod from repository"
28-
sudo apt-get update
29-
sudo apt-get install -y libgpiod-dev gpiod
30-
gpiodetect --version
31-
echo "Successfully"
32-
exit 0
33-
fi
34-
35-
#Install Libgpiod from source
36-
if [ -z $LIBGPIOD_VERSION ]; then
37-
echo "Error: library version not specified"
38-
exit 1;
39-
fi
40-
41-
if [ -z $INSTALLPATH ]; then
42-
INSTALLPATH=/usr/share/libgpiod
43-
fi
10+
OP1="$1"
11+
OP2="$2"
12+
OP3="$3"
13+
OP4="$4"
14+
OP5="$5"
15+
OP6="$6"
16+
OP7="$7"
4417

4518
export DEBIAN_FRONTEND="noninteractive"
4619

4720
sudo apt-get update
4821
sudo apt-get install -y curl
49-
5022
#install
51-
curl -SL --output setup-libgpiod.sh https://raw.githubusercontent.com/devdotnetorg/docker-libgpiod/master/setup-libgpiod.sh
23+
curl -SL --output setup-libgpiod.sh https://raw.githubusercontent.com/devdotnetorg/docker-libgpiod/fastiot/setup-libgpiod.sh
5224
chmod +x setup-libgpiod.sh
53-
sudo ./setup-libgpiod.sh $LIBGPIOD_VERSION $INSTALLPATH
54-
55-
gpiodetect --version
25+
sudo ./setup-libgpiod.sh $OP1 $OP2 $OP3 $OP4 $OP5 $OP6 $OP7
5626

5727
echo "Successfully"

0 commit comments

Comments
 (0)