泰晓科技 -- 聚焦 Linux - 追本溯源,见微知著!
网站地址:https://tinylab.org

基于泰晓RISC-V实验箱的Linux公开课
请稍侯

泰晓资讯·4 月 / 第二期 / 2023

unicornx 创作于 2023/04/12

“泰晓资讯”,广泛报道 “Linux/开源” 业界资讯。欢迎广大读者投递相关资讯来源和素材,本站将进一步收集整理后发布给大家。

Linux 内核最新消息

https://lkml.org/lkml/2023/4/9/109

Linus Torvalds 刚刚在这个复活节,4 月 9 日发布了 Linux 6.3-rc6,在未来几周内将会正式推出 Linux 6.3。

Torvalds 在简短的 6.3-rc6 公告中写道:

“It’s Easter Sunday, which means that we’re all about to gorge on mämmi (Right? You do have your carton of mämmi ready to go, don’t you?).

But before the festivities can begin, we still need to take care of business: Sunday still means another release candidate. Those rascally (and biologically confused) egg-laying rabbits must not distract us from kernel development.

Things continue to look pretty regular - some subsystems may have been pointing at spring break as a possible cause of slowdown, but nothing here looks all that unusual. Not even unusually slow.”

https://www.kernel.org/ updated by 2023/04/12

分支类型版本发布时间
mainline6.3-rc62023-04-09
stable6.2.102023-04-06
longterm6.1.232023-04-06
longterm5.15.1062023-04-05
longterm5.10.1772023-04-05
longterm5.4.2402023-04-05
longterm4.19.2802023-04-05
longterm4.14.3122023-04-05
linux-nextnext-202304122023-04-12

关键词: Linux

Linux 内核的 v4L2/Media 子系统正改用 Rust 进行开发

As the latest effort in the quest of bringing Rust programming language usage to the Linux kernel, sent out on Thursday were initial patches for bringing Rust infrastructure to the Video 4 Linux 2 (V4L2) framework within the media subsystem.

社区正努力引入 Rust 作为开发 Linux 内核的第二门编程语言,上周周四有人提交了一个新的补丁,采用 Rust 开发 media 子系统中的 Video 4 Linux 2 (V4L2) 框架。

来自 Collabora 的 Daniel Almeida 提交了这个 Rust 支持补丁的早期版本。基于该补丁,我们已经足以使用 Rust 编写一个 VirtIO 相机驱动程序的原型。

目前这些初始补丁还只是为了验证基于 V4L2 用 编写驱动程序的可能性,实际的支持要进入上游主线仍然需要有更多的工作要做。V4L2

新闻出处,“Rust Support Is Being Worked On For The Linux Kernel’s V4L2/Media Subsystem”: https://www.phoronix.com/news/Rust-V4L2-Linux-Patches

关键词: Linux, Rust,V4L2

聊一聊在 Ubuntu 23.04 中采用 Rust 进行内核编程的潜力

Ubuntu 23.04 is being talked up for how it can aide developers that want to begin programming with Rust code for Linux kernel modules. It’s possible to get started with Rust kernel development on Ubuntu 23.04 thanks to its generic kernel having the necessary kernel configuration, but ultimately it’s still in an early state and there isn’t much to do with the stock kernel.

最近人们都在谈论 Ubuntu 23.04 如何帮助那些想要采用 Rust 开发 Linux 内核模块的开发人员。在 Ubuntu 23.04 上采用 Rust 进行内核开发是可能的,这要归功于它的通用内核具有必要的内核配置,但最终它仍处于早期状态,与库存内核没有太大关系。

作为采用 5.19 版本内核的 Ubuntu 22.10 和 22.0.4.2 LTS 的升级版本,Ubuntu 23.04 将于本月发布,并采用 Linux 6.2 版本的内核。从 6.1 版本开始支持采用 Rust 开发内核模块,虽然这种支持还比较初步。

因此,在 Ubuntu 23.04 中,内核中对 Rust 编程的支持已经可用,这包括必要的 Rust 配置,Canonical 已经提前针对 Ubuntu 23.04 启用了这些特性。

上周,来自 Canonical 的工程师 Andrea Righi 发布了如何使用 Rust 开发内核模块的操作指南。诚然,Linux 6.2 中采用 Rust 开发内核的能力还很初步,指南中只是演示了创建一个 Rust 模块来打印经典的“hello world” 。

操作指南最后写道,“Ubuntu can now be used by all the developers that want to easily and quickly begin to familiarize themselves with kernel programming in Rust, without dealing with external software/packages and simply using the standard Ubuntu kernel and toolchain.”

虽然 Ubuntu 23.04 使用的 Linux 6.2 确实允许加载 Rust 内核模块,但那些想要认真研究采用 Rust 开发内核工作的人最好关注 Linux 6.3 或 Rust “-next” 分支上的代码。Linux 6.3 稳定版将在月底发布,这也是 Ubuntu 23.04 的发布时间。因此根据通常的 Ubuntu 政策,Ubuntu 23.04 中不会引入 6.3。

Linux 6.3 有更多的支持 Rust 开发的基础设施,以及其他支持 Rust 开发的子系统,但很多还在开发中,其中一些可能会登陆 Linux 6.4,所以,是的,你可以基于 Ubuntu 23.04 + Linux 6.2,用 Rust 编写一些简单的类似 “hello world” 的模块,但对于那些想要用这种内存安全编程语言为内核做更多事情的人来说,还需要继续等待新内核的支持。

新闻出处,“Ubuntu Talks Up Rust Kernel Programming Potential With Ubuntu 23.04”: https://www.phoronix.com/news/Ubuntu-23.04-Rust-Linux-Kernel

关键词: Ubuntu,Rust

LLVM 16.0.1 发布,包含许多问题修复

It’s been two weeks already since the release of LLVM 16.0 as the latest shiny feature update to this widely-used, open-source compiler stack. LLVM release manager Tom Stellard today issued LLVM 16.0.1 as the first point release with a wide collection of fixes and other maintenance work to LLVM and its contained sub-projects.

作为一款广受欢迎的开源编译器软件包,自 LLVM 16.0 发布以来已经过去了两周。LLVM 的发布经理 Tom Stellard 于上周发布了LLVM 16.0.1 作为第一个 16 系列的小版本,其中包含了很多针对 LLVM 及其包含的子项目的修复和其他维护工作。

LLVM 16.0 引入了更多对 C 和 C++ 语言的特性支持,支持更快的 LLVM LLD 链接器,支持 Zstd 压缩 debug sections,正式支持 LoongArch CPU 后端,添加支持了各种新的英特尔指令集扩展,早期的 AMD Zen 4(znver4)支持,新的 Arm 和 RISC-V 功能,以及过去半年累积的新特性。

16.0 引入了如此多的新特性,作为计划中每两周发布一个小版本的规律,16.0.1 是第一个发布的小版本,这个小版本中,针对 RISC-V 支持了 emulated TLS,针对 AVX 中 的 BF16 支持了 load/store,以及其他随机修复。LLVM 16.0.1 中最令人兴奋的改动是为 znver4 targeting 后向移植了新的 AMD Zen 4 的 scheduler model。

新闻出处,“LLVM 16.0.1 Released With Many Compiler Fixes, Backports AMD Zen 4 Scheduler Model”: https://www.phoronix.com/news/LLVM-16.0.1-Released

关键词: LLVM

采用 Rust 重写的 Coreutils 发布 v0.0.18,改进了 GNU 兼容性

One of several notable open-source projects to rewrite key Linux software components with the memory-safety-focused Rust programming language is uutils as an alternative to GNU Coreutils. Released this weekend was uutils v0.0.18 that continues to enhance compatibility with the upstream GNU Coreutils programs.

在已知的几个正在使用 Rust 编程语言重写的,关键的 Linux 软件组件中,值得注意的开源项目之一是 uutils,改项目将作为 GNU Coreutils 的替代品。上周发布了 uutils v0.0.18,新版本进一步增强了对 GNU Coreutils 的兼容性。

两年来,在 Debian Linux 上,uutils 已经能够承担起替代 Coreutils 的角色,并且变得日渐强大并且更加好用,更加适用于多样化的 Linux 环境。

在 uutils v0.0.18 版本中,有一些更新来增强针对 GNU 测试套件的兼容性覆盖率,这些调整覆盖了各种实用程序,如 chmod、cp、cut、cksum,以及其他随机改进。

新闻出处,“Rust-Written Coreutils v0.0.18 Released With Improved GNU Compatibility”: https://www.phoronix.com/news/Coreutils-uutils-0.0.18

关键词: Rust, Coreutils

联系我们

欢迎扫描二维码加微信联系我们:

tinylab wechat



Read Album:

Read Related:

Read Latest: