1. Introduction
With the approach of the open-source release of RT-Smart’s source code, its true appearance is gradually surfacing. This article mainly showcases the performance of RT-Smart on the Raspberry Pi 4. Later, as RT-Smart’s source code is released, we will introduce the compilation environment and related topics step by step. This article focuses on the experience, and those with a Raspberry Pi 4 can also download the relevant images for testing and experience.
2. Environment Setup
We need to prepare both hardware and software, and the process is relatively easy.
2.1 Hardware Preparation
1. Raspberry Pi 4B
2. SD Card (32GB or below)
3. USB to TTL Serial Cable
4. Ethernet Cable
5. TYPE-C (Power Supply)
6. Card Reader
The Ethernet cable is used for data transmission and convenient debugging. If there is no network condition, then you can only unplug and plug the SD card each time, which can also allow for development work, but the efficiency is relatively low.
Connecting the Serial Cable
Once the above tools are prepared, you can connect the serial cable to the development board. The connection diagram is as follows:
2.2 Software Preparation
1. Download the boot files for the Raspberry Pi SD card
Due to the loading requirement of the Raspberry Pi, some boot files need to be placed on the SD card. You can download them at the following address:
Link: https://pan.baidu.com/s/1gvJInzKzPB8PNeoYrIvYCw
Extraction Code: bnd7
Once the download is complete, decompress the files and place them on the SD card.
The bin folder contains the compiled executable files, and kernel7.img is the kernel for RT-Smart on Raspberry Pi 4. Place this file on an empty SD card, plug in the power, and open the serial debugging assistant to see that the program is running normally.
heap: 0xc00c9a12 - 0xc40c9a12
\ | /
- RT - Thread Smart Operating System
/ | \ 5.0.0 build Nov 5 2020
2006 - 2020 Copyright by rt-thread team
lwIP-2.0.2 initialized!
version is B1
Support link mode Spend 1000M
bcmgenet: PHY startup ok!
[I/sal.skt] Socket Abstraction Layer initialize success.
[I/SDIO] SD card capacity 31465472 KB.
found part[0], begin: 4194304, size: 256.0MB
found part[1], begin: 272629760, size: 29.772GB
file system initialization done!
hello rt-thread!
msh />
3. Performance Demonstration
To better showcase the performance of RT-Smart on the Raspberry Pi 4, I have prepared a video for demonstration and explanation.
The following video is sourced from Embedded IoT
First, connect the Raspberry Pi to the Ethernet cable, and after powering on, you can ping the external network.
This video demonstrates five applications: hello
, ping
, pong
, webclient
, vi
.
hello
is an executable program.
ping
and pong
are two applications that communicate with each other.
vi
is the vi editor application.
webclient
can retrieve files from an HTTP server.
The simplest way to set up an HTTP server is to use Python2:
python -m SimpleHTTPServer
4. Future Work
Through the basic demonstration of RT-Smart, we can see its performance on the Raspberry Pi 4. The source code for RT-Smart will soon be released, and at that time, it will be proposed on more platforms and in more use cases. More environment setup, migration tutorials, and enhancements of applications will also be shared gradually.
1.Interpretation of Yao Qizhi’s latest speech on the development of artificial intelligence!
2.Discussing the design ideas of the RT-Thread kernel object manager~
3.[C Advanced] Three precompiled options that are “most common” yet “least used”
4.Establishment of the Alumni Association of the School of Aerospace Engineering at Beihang University!
5.How to write code that makes the CPU run faster?
6.What happens from process creation to entering the main function?
Disclaimer: This article is a network reprint, and the copyright belongs to the original author. If there are copyright issues regarding the works, please contact us, and we will confirm the copyright based on the copyright certification materials you provide and pay remuneration or delete content.