You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-22Lines changed: 25 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
-
Rtems Kernel Image Project v2 (rki2)
2
-
------------------------------------
1
+
# Rtems Kernel Image Project v2 (rki2)
3
2
4
3
This project provides a starting point or example of how to configure an RTEMS application for your project. There are many ways to configure an RTEMS application, this project is just something I have done to help me run on various targets. It is put together from different examples I have found, most of which have been contributed by RTEMS developers.
5
4
@@ -25,23 +24,24 @@ How to build
25
24
26
25
1. Change to the build directory for the target you are interested in building. This example shows Beaglebone Black with rtems-libbsd.
27
26
28
-
-------------------------------
27
+
```
29
28
$ cd build
30
29
$ cd bbb-libbsd
31
-
-------------------------------
30
+
```
32
31
33
32
2. Double check the options in the Makefile. You usually just need to set the path to the cross compiler and RTEMS BSP.
34
33
35
-
-------------------------------
34
+
35
+
```
36
36
RTEMS_TOOL_BASE ?= /home/alan/rtems/tools/5
37
37
RTEMS_BSP_BASE ?= /home/alan/rtems/bsps/5
38
-
-------------------------------
38
+
```
39
39
40
40
3. Run make
41
41
42
-
-------------------------------
42
+
```
43
43
$ make
44
-
-------------------------------
44
+
```
45
45
46
46
to build the executable.
47
47
@@ -56,42 +56,45 @@ Commands to try
56
56
When you run the application on a target, you should get the shell prompt. Try some of these commands:
57
57
58
58
.List all tasks
59
-
--------------
59
+
60
+
```
60
61
# task
61
-
--------------
62
+
```
62
63
63
64
.List all semaphores
64
-
-------------------
65
+
66
+
```
65
67
# sema
66
-
-------------------
68
+
```
67
69
68
70
.Run the Dhrystone benchmark
69
-
---------------------------
71
+
72
+
```
70
73
# dhrystone
71
-
---------------------------
74
+
```
72
75
73
76
.Run the Whetstone benchmark
74
-
---------------------------
77
+
```
75
78
# whetstone
76
-
---------------------------
79
+
```
77
80
78
81
.Create 5 tasks that run for 10 seconds
79
-
---------------------------
82
+
```
80
83
# taskdemo
81
-
---------------------------
84
+
```
82
85
83
86
There are quite a few more commands to run, just type
84
87
85
-
--------------------------
88
+
```
86
89
# help
87
-
--------------------------
90
+
```
88
91
89
92
You can also add your own commands, and include a startup script
90
93
91
94
Check out what the startup script is doing by typing:
92
95
93
-
--------------------------
96
+
```
94
97
# cat shell-init
95
-
--------------------------
98
+
```
96
99
97
100
In the case of the Raspberry Pi BSP, it formats a 64 Megabyte RAM disk with the RTEMS file system, then mounts the disk on /ram.
0 commit comments