How to quickly experience OneOS

Time:2022-8-18

just wander around

I had a brief understanding of OneOS before, and I visited the OneOS area today, and found that the official is finally making efforts in publicity. Many articles are very professional, and some developers have asked questions in the area. I also found that some developers fell in the first step, how to compile, download and run OneOS. Therefore, I hope this article can answer some doubts, and it is also my own learning record.

Questions and Information

I think the reason why developers are confused is that most people know OneOS for the first time, and the code, tools and articles of OneOS are scattered in various places, including but not limited to what I know: gitee, open source China, China Mobile Internet of Things Official website, China Mobile OneOS official account.

Therefore, here is a porter to summarize the relevant information for your reference:

gitee code cloud:https://gitee.com/cmcc-oneos

Open Source China:https://www.oschina.net/group/oneos(OneOS area)

OneOS official website:https://os.iot.10086.cn/

Official Account: China Mobile OneOS

OneOS code and tools

The code of OneOS is stored in the code cloud platform. You can see that there are three warehouses in it, two of which are code warehouses and one is tool warehouse. When we need to use OneOS for experience development, we must download or clone them.

OneOS and OneOS-Lite are code repositories, but OneOS is closer to commercial use, and each round of code submission will be tested to ensure its stability. OneOS-Lite is more inclined to learning and will not have frequent tests, but the warehouse has its own documentation and simplifies the configuration of the code to ensure that beginners can get started faster.

OneOS-Cube is a development tool that runs on windows. Both OneOS and OneOS-Lite must rely on it for project configuration and generation. It is an indispensable development tool for OneOS projects.

OneOS Documentation

OneOS documents are mainly divided into two parts, one is the official website and the other is OneOS-Lite. The official website address:Documentation Center (10086.cn)

OneOS-Lite Development Documentation

Let's get started

Now that you know the code, tools, documentation. Then, the next step is the most important hands-on practice! The first step is to select the board-level project corresponding to your own hardware. Because I happened to have a stm32f469disco board here, so I entered directlyOneOS\templates\stm32f469-st-discoto the directory. In this directory, there are already keil project files by defaultproject.uvprojx, if you want to experience it directly, you can directly double-click the project, then the keil project will be started, and you can compile, solidify and run!

If you want to add or delete the configuration in it yourself, you can useOneOS-Cubetool too. input the commandmenuconfigTo configure, then use the commandscons --ide=mdk5to generatemdkthe project works and then usemdkto compile. How to useOneOS-CubeTools can also refer to the documentation.

The running effect is as follows, here to experienceshellOrder.

Experience a day trip

The above is a simple experience of OneOS, for your reference.