Skip to content

Commit

Permalink
Rust project promote the wasm32-wasip2 target to Tier 2
Browse files Browse the repository at this point in the history
  • Loading branch information
songdongsheng committed Nov 20, 2024
1 parent 6d5199b commit 9a63f52
Show file tree
Hide file tree
Showing 4 changed files with 337 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,38 @@ Ubuntu 12.04 | 2012-04 | 2.15 | 4.6.3 | 3.
Ubuntu 14.04 | 2014-04 | 2.19 | 4.9.3 | 3.13
SLE 12 | 2014-10 | 2.19 -> 2.22 | 4.8.3 -> 13.2 | [3.12 -> 4.12](https://www.suse.com/lifecycle/)
Debian 8 | 2015-04 | 2.19 | 4.9.2 | 3.16
Ubuntu 16.04 | 2016-04 | 2.23 | 4.9.3 | 4.4
Ubuntu 16.04 | 2016-04 | 2.23 | 5.4.0 | 4.4
Debian 9 | 2017-06 | 2.24 | 6.3 | 4.9
Amazon Linux 2 LTS | 2018-06 | 2.26 | 7.3 | 4.14
SLE 15 | 2018-07 | 2.26 -> 2.31 | 7.3 -> 13.2 | [4.12 -> 5.14](https://www.suse.com/lifecycle/)
**Ubuntu 18.04** | 2018-04 | **2.27** | 8.4 | 4.15
RHEL 8 | 2019-05 | 2.28 | 8.5 | 4.18
SLE 15 | 2018-07 | 2.26 | 7.3 | [4.12](https://www.suse.com/lifecycle/)
Ubuntu 18.04 | 2018-04 | 2.27 | 8.4 | 4.15
**RHEL 8** | 2019-05 | **2.28** | 8.5 | 4.18
Debian 10 | 2019-07 | 2.28 | 8.3 | 4.19
openEuler 20.03 | 2020-03 | 2.28 | 7.3 | 4.19
Ubuntu 20.04 | 2020-04 | 2.31 | 10.3 | 5.4
Ubuntu 20.04 | 2020-04 | 2.31 | 10.5 | 5.4
SLE 15 SP3 | 2021-06 | 2.31 | 10.2 | 5.3
**Debian 11** | 2021-08 | **2.31** | 10.2 | 5.10
SLE 15 SP4 | 2022-06 | 2.31 | 11.2 | [5.14](https://www.suse.com/lifecycle/#suse-linux-enterprise-server-15)
openEuler 22.03 | 2022-03 | 2.34 | 10.3 | 5.10
**RHEL 9** | 2022-05 | **2.34** | 11.4 | 5.14
RHEL 9 | 2022-05 | 2.34 | 11.4 | 5.14
Amazon Linux 2023 | 2023-03 | 2.34 | 11.4 | 6.1
CBL-Mariner 2.0 | 2022-05 | 2.35 | 11.2 | 5.15
Ubuntu 22.04 | 2022-04 | 2.35 | 12.1 | 5.15
Ubuntu 22.04 | 2022-04 | 2.35 | 12.3 | 5.15
Debian 12 | 2023-06 | [2.36](https://tracker.debian.org/pkg/glibc) | [12.2](https://packages.debian.org/bookworm/libgcc-s1) | [6.1](https://tracker.debian.org/pkg/linux)
openEuler 24.04 | 2024-06 | 2.38 | 12.3 | 6.6
openEuler 24.03 | 2024-06 | 2.38 | 12.3 | 6.6
SLE 15 SP6 | 2024-06 | 2.38 | 13.3 | 6.4
**Ubuntu 24.04** | 2024-04 | **2.39** | 14.0 | 6.8
Ubuntu 24.04 | 2024-04 | 2.39 | 14.0 | 6.8
Fedora 40 | 2024-04 | 2.39 | 14.1 | 6.9
[CentOS Stream 10](https://mirror.stream.centos.org/10-stream/BaseOS/x86_64/os/Packages/) | 2024-08 | 2.39 | 14.2 | 6.11
Ubuntu 24.10 | 2024-10 | 2.40 | 14.2 | 6.11
Debian 13 | ***2025-06*** | [2.40 ?](https://tracker.debian.org/pkg/glibc) | [14.2 ?](https://packages.debian.org/trixie/libgcc-s1) | [6.12 ?](https://tracker.debian.org/pkg/linux)
RHEL 10 | ***2025-08*** | [2.40 ?](https://composes.stream.centos.org/stream-10/production/latest-CentOS-Stream/compose/BaseOS/x86_64/os/Packages/) | [14.2 ?](https://composes.stream.centos.org/stream-10/production/latest-CentOS-Stream/compose/BaseOS/x86_64/os/Packages/) | [6.12 ?](https://composes.stream.centos.org/stream-10/production/latest-CentOS-Stream/compose/BaseOS/x86_64/os/Packages/)
[SUSE Adaptable Linux Platform (ALP)](https://download.opensuse.org/repositories/SUSE:/ALP/) | ***2025-??*** | 2.39 ? | 14.0 ? | 6.8 ?
[**openSUSE Tumbleweed**](https://download.opensuse.org/tumbleweed/repo/oss/x86_64/) | ***Rolling*** | 2.39 ? | 14.1 ? | 6.9 ?
[SUSE Adaptable Linux Platform (ALP)](https://download.opensuse.org/repositories/SUSE:/ALP:/) | ***2025-??*** | 2.40 ? | 14.2 ? | 6.10 ?
[**openSUSE Tumbleweed**](https://download.opensuse.org/tumbleweed/repo/oss/x86_64/) | ***Rolling*** | 2.40 ? | 14.2 ? | 6.11 ?
Alpine 3.18 | [2023-05](https://alpinelinux.org/releases/) | musl [1.2.4](https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.18-stable/main/musl/APKBUILD) | [libgcc 12.2](https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.18-stable/main/gcc/APKBUILD) | [6.1](https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.18-stable/main/linux-lts/APKBUILD)
Alpine 3.19 | [2023-12](https://alpinelinux.org/releases/) | musl [1.2.4](https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.19-stable/main/musl/APKBUILD) | [libgcc 13.2](https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.19-stable/main/gcc/APKBUILD) | [6.6](https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.19-stable/main/linux-lts/APKBUILD)
Alpine 3.20 | [2024-05](https://alpinelinux.org/releases/) | musl [1.2.5](https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.20-stable/main/musl/APKBUILD) | [libgcc 13.2](https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.20-stable/main/gcc/APKBUILD) | [6.6](https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.20-stable/main/linux-lts/APKBUILD)
Alpine edge | [***2024-11***](https://alpinelinux.org/releases/) | musl [1.2.5](https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/musl/APKBUILD) | [libgcc 13.2](https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/gcc/APKBUILD) | [6.6](https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/linux-lts/APKBUILD)
Alpine edge | [2024-11](https://alpinelinux.org/releases/) | musl [1.2.5](https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/musl/APKBUILD) | [libgcc 14.2](https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/gcc/APKBUILD) | [6.6](https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/linux-lts/APKBUILD)

## libgcc versions

Expand Down
58 changes: 52 additions & 6 deletions source/_posts/2022/Q4/2022-11-06-compiling-kernel-for-wsl2.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ sudo podman run --rm -it --pull always -h debian-stable \
echo "precedence ::ffff:0:0/96 100" >> /etc/gai.conf; \
apt-get update && apt-get dist-upgrade -y && \
apt-get install -y whiptail && \
apt-get install -y bc bison build-essential curl dwarves file flex \
git less libelf-dev libncurses-dev libssl-dev procps \
apt-get install -y bc bison build-essential cpio curl dwarves file flex \
git kmod less libelf-dev libncurses-dev libssl-dev procps \
python3 python3-pip python3-psutil python3-virtualenv \
vim-tiny zstd
```
Expand Down Expand Up @@ -96,6 +96,9 @@ CONFIG_KVM_AMD=y
CONFIG_TLS=y
CONFIG_IP_SCTP=y
CONFIG_BRIDGE=y
CONFIG_BRIDGE_NETFILTER=y
CONFIG_CRYPTO_ZSTD=y
CONFIG_KERNEL_ZSTD=y
CONFIG_MODULE_COMPRESS_ZSTD=y
Expand All @@ -120,6 +123,11 @@ CONFIG_HFSPLUS_FS=y
CONFIG_UFS_FS=y
CONFIG_UFS_FS_WRITE=y
CONFIG_OVERLAY_FS=y
CONFIG_OVERLAY_FS_INDEX=y
CONFIG_OVERLAY_FS_METACOPY=y
CONFIG_OVERLAY_FS_XINO_AUTO=y
# File systems/Network File Systems
CONFIG_CIFS=y
CONFIG_NFS_DISABLE_UDP_SUPPORT=y
Expand All @@ -134,6 +142,27 @@ CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA2=y
EOF
```

PS: podman requires the following kernel modules

```bash
# lsmod | grep -E '^xt_|^ip' | LC_ALL=en_US.UTF-8 sort
ip6_tables 32768 2 ip6table_filter,ip6table_nat
ip6table_filter 12288 0
ip6table_nat 12288 0
ip_tables 32768 2 iptable_filter,iptable_nat
iptable_filter 12288 1
iptable_nat 12288 1
xt_addrtype 12288 2
xt_comment 12288 3
xt_conntrack 12288 1
xt_mark 12288 1
xt_MASQUERADE 16384 4
xt_tcpudp 16384 0
wireguard 118784 0
ip6_udp_tunnel 16384 1 wireguard
udp_tunnel 32768 1 wireguard
```

```bash
scripts/config --file arch/x86/configs/config-wsl --disable SYSTEM_REVOCATION_KEYS; \
scripts/config --file arch/x86/configs/config-wsl --disable SYSTEM_TRUSTED_KEYRING
Expand All @@ -158,11 +187,14 @@ sys 17m11.616s
# du -ms .
6024 .

time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 install

# cp arch/x86/boot/bzImage /mnt/c/Users/<seuUser>/vmlinuz-6.6.36.3-WSL2
# cp arch/x86/configs/config-wsl /mnt/c/Users/<seuUser>/vmlinuz-6.6.36.3-WSL2.config
# vi /mnt/c/Users/<seuUser>/.wslconfig

time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 modules
time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 modules_install
time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 tarxz-pkg
```

Expand All @@ -183,12 +215,26 @@ sys 12m48.108s
# du -ks arch/x86/boot/bzImage
13992 arch/x86/boot/bzImage

# cp arch/x86/boot/bzImage /mnt/c/Users/<seuUser>/vmlinuz-6.9.10-WSL2
# cp arch/x86/configs/config-wsl /mnt/c/Users/<seuUser>/vmlinuz-6.9.10-WSL2.config
time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 install

# cp arch/x86/boot/bzImage /mnt/c/Users/<seuUser>/vmlinux-6.11.9-microsoft-standard-WSL2
# cp arch/x86/configs/config-wsl /mnt/c/Users/<seuUser>/vmlinux-6.11.9-microsoft-standard-WSL2.config
# vi /mnt/c/Users/<seuUser>/.wslconfig

time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 modules
time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 tarxz-pkg
# time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 modules
real 24m17.114s
user 177m49.046s
sys 21m29.028s

time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 modules_install

# time make KCONFIG_CONFIG=arch/x86/configs/config-wsl -j8 tarxz-pkg
real 7m53.369s
user 8m46.499s
sys 0m30.752s

# du -ms linux-6.11.9-microsoft-standard-WSL2-x86.tar.xz
708 linux-6.11.9-microsoft-standard-WSL2-x86.tar.xz
```
## Update %UserProfile%\.wslconfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ $ ssh <user>@example.com
Enter the password we provided when generating the **OpenPGP** key, and we are logged in to the remote **OpenSSH** server.
```bash
Using username "root".
Authenticating with public key "(none)" from agent
```
Careful people will notice that the successful login message contains a strange public key identifier **"(none)"**. This is because gpg does not generate a comment for the public key. For more information, see [T2760 - Populate comment field when exporting authentication key for SSH](https://dev.gnupg.org/T2760).
## Mapping of OpenPGP Keys and SSH Fingerprints
Sometimes we have many keys available for SSH login, and we may not be able to find the **OpenPGP key** corresponding to the **SSH fingerprint**. In this case, the following script is very useful:
Expand Down
Loading

0 comments on commit 9a63f52

Please sign in to comment.