Skip to content

Commit 1a1517a

Browse files
committed
updated readme
1 parent b4a72fe commit 1a1517a

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

README.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Rtems Kernel Image Project v2 (rki2)
2-
------------------------------------
1+
# Rtems Kernel Image Project v2 (rki2)
32

43
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.
54

@@ -25,23 +24,24 @@ How to build
2524

2625
1. Change to the build directory for the target you are interested in building. This example shows Beaglebone Black with rtems-libbsd.
2726

28-
-------------------------------
27+
```
2928
$ cd build
3029
$ cd bbb-libbsd
31-
-------------------------------
30+
```
3231

3332
2. Double check the options in the Makefile. You usually just need to set the path to the cross compiler and RTEMS BSP.
3433

35-
-------------------------------
34+
35+
```
3636
RTEMS_TOOL_BASE ?= /home/alan/rtems/tools/5
3737
RTEMS_BSP_BASE ?= /home/alan/rtems/bsps/5
38-
-------------------------------
38+
```
3939

4040
3. Run make
4141

42-
-------------------------------
42+
```
4343
$ make
44-
-------------------------------
44+
```
4545

4646
to build the executable.
4747

@@ -56,42 +56,45 @@ Commands to try
5656
When you run the application on a target, you should get the shell prompt. Try some of these commands:
5757

5858
.List all tasks
59-
--------------
59+
60+
```
6061
# task
61-
--------------
62+
```
6263

6364
.List all semaphores
64-
-------------------
65+
66+
```
6567
# sema
66-
-------------------
68+
```
6769

6870
.Run the Dhrystone benchmark
69-
---------------------------
71+
72+
```
7073
# dhrystone
71-
---------------------------
74+
```
7275

7376
.Run the Whetstone benchmark
74-
---------------------------
77+
```
7578
# whetstone
76-
---------------------------
79+
```
7780

7881
.Create 5 tasks that run for 10 seconds
79-
---------------------------
82+
```
8083
# taskdemo
81-
---------------------------
84+
```
8285

8386
There are quite a few more commands to run, just type
8487

85-
--------------------------
88+
```
8689
# help
87-
--------------------------
90+
```
8891

8992
You can also add your own commands, and include a startup script
9093

9194
Check out what the startup script is doing by typing:
9295

93-
--------------------------
96+
```
9497
# cat shell-init
95-
--------------------------
98+
```
9699

97100
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

Comments
 (0)