Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the features of Linux Lab v0.5

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "what are the characteristics of Linux Lab v0.5". In daily operation, I believe many people have doubts about the characteristics of Linux Lab v0.5. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "what are the characteristics of Linux Lab v0.5?" Next, please follow the editor to study!

Linux Lab is a set of real-time labs for Linux kernel learning, development, and testing, which can be built and used very quickly, powerful and easy to use!

It can be used to efficiently learn processor architecture, Linux kernel, embedded Linux system, C language programming, Linux assembly, Shell programming and so on.

Version update

Linux Lab released the first candidate version of v0.5: v0.5-rc1 at the end of June. After three months of development and iteration, after the continuous release of rc2 and rc3, this release v0.5 official version, simultaneously released the supporting Lab management tool Cloud Lab v0.3 and the first Linux Lab video open course. More usage will be gradually released in the way of video explanation and demonstration. The main purpose of this time is to upgrade the development environment to Ubuntu 20.04 and add Godson processor support.

A total of 204 changes are made:

/ / linux lab $git log-- pretty=oneline v0.4..v0.5 | wc-l144 / / cloud lab $git log-- pretty=oneline v0.2..HEAD | wc-l 60

This time, 4 students launched PR and were Merge, and nearly 10 students submitted or verified Bug. Thank you for your contributions:

$git log-- format= "% aN" v0.4..v0.5-- reverse | sort-u fanjun kongSignaltaotierenWuZhangjin

The main updates are as follows:

V0.5

Bug repair and function improve the directory architecture, add src and build directories, and transfer some directories to src directory to repair clone function to avoid an endless cycle

Document update introduces how to import kernel source code in the way of compressed package introduces matters needing attention in the use of boards of the same name introduces how to develop C language through Linux Lab to improve debugging related documents

V0.5-rc3

Bug repair and functional improvement repair Uboot compilation failure caused by compiler configuration problems in arm/vexpress-a9 the system of aarch74/virt in the new image has a Qemu problem, replace it with the precompiled version in the BSP package to increase the Buffer of Godson Qemu to pass kernel parameters (Binary is not updated for the time being) system/tools/trace.sh: update support for the new kernel tools/root/dir2*.sh: allow find to belong to root files Ensure that the rootfs package is complete and set the default compilers for x86_64/pc and arm/vexpress-a9 to gcc-8 and gcc-9, respectively, to ensure that the new kernel is compiled correctly

The document update further improves the requirements for ordinary users in the document, avoids many problems caused by using root, and improves the usage of the root file system from the Docker Debian image.

V0.5-rc2

Qemu further improves the Qemu compilation experience by adding a submodules image to Gitee. There is no longer a sense of frustration in fixing a Loongson qemu compilation error in the new image. Thank you, Godson @ Zhang, for your feedback and suggestions for modification.

New Arch/Manjaro docker installation documents are added in the documentation. Thank @ taotieren for sending PR to repair the case-sensitive file system image production steps of MacOS, @ Jia Xianhua for reporting Bug and giving steps for the revised plan to add "new branch for Linux development", @ Chen Jiannan feedback for explicitly indicating the work path, ensuring non-built-in login method ok, and @ old Confucius only seedling for sending PR.

Other problems improve two kernel module compilation problems, thanks to @ Jiangzuo, a wolf reported that Bug fixed a kernel configuration file path problem after the kernel was downloaded for the first time by x86y64, and thank @ bright for reporting Bug

V0.5-rc1

Comprehensive improvement and combination of early support for Godson processors currently supports four development boards: mipsel/ls1b, mipsel/ls2k, mipsel/ls232, mipsel/ls3a7a, of which ls1b already supports mainline v5.2 LS2k and ls3a7a is expected to get full support in v5.8/v5.9

Most of the preparatory work has been developed and merged into the current version, and some compatibility and adaptation work is still going on.

Environmental preparation

On non-Ubuntu platforms, please install docker by yourself in advance. For more information, please see Docker for Mac and Docker for Windows.

If it is an older version of Windows, you can use Docker Toolbox, or you can install Ubuntu yourself through Virtualbox or Vmware.

For domestic students, be sure to use the domestic Docker image service, otherwise you will not be able to download the image normally. It is recommended to refer to the Ali Cloud image configuration document.

The following link is the host environment in which you have successfully run Linux Lab. You are welcome to refer to it and register after installation.

List of operating systems and Docker versions that have successfully run Linux

Extreme speed experience

This version relies on the latest Cloud Lab and docker images:

$git clone https://gitee.com/tinylab/cloud-lab.git $cd cloud-lab $tools/docker/pull linux-lab # make sure to update the docker image $tools/docker/run linux-lab

For those that have been downloaded, please update to the latest version and restart Linux Lab:

$cd cloud-lab & & git pull $tools/docker/update linux-lab$ tools/docker/rerun linux-lab

After entering, open the console and type the following command to start a board (automatically download the precompiled version):

$make boot

One-click compilation and startup (automatically download source code, check out version, patch, configure, compile):

$make boot BUILD=kernel

Arm/vexpress-a9 is used by default. If you want to use the board of Godson, you can simply switch:

$make BOARD=mipsel/ls1b $make boot

Key characteristics

Linux Lab has the following features:

Supports three major operating systems (Windows, MacOS, Linux), which can be easily used under these three operating systems.

Support 7 + large processor architecture (X86, ARM, MIPS, PPC, CSKY,RISC-V, LOONGSON), of which LOONGSON and CSKY are domestic processors.

Support 16 + development boards (i386/pc, x86_64/pc, arm/versatilepb, arm/vexpress-a9, ppc/g3beige, mips/malta, aarch74/virt, aarch74/raspi3, riscv32/virt, riscv64/virt, csky/virt, loongson/ls1b, loongson/ls2k, loongson/ls232, loongson/ls3a7a).

Five login methods (docker, ssh, vnc,webssh, webvnc) are supported, which can be accessed locally or remotely.

Integrated with 5 major components (Qemu, U-boot, Buildroot, Linux, Toolchain), all have pre-compiled versions.

Built-in 5 major platforms, 32-bit and 64-bit a total of 10 Hello World assembly language routines, see examples/assembly.

Can learn processor instruction set, Qemu, Shell, assembly, C, Linux kernel, embedded Linux.

Debugging and Testing are supported.

Both sides of host & guest are exempt from root.

At this point, the study on "what are the features of Linux Lab v0.5" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report