RSB-4411 User Manual
56
3.
Press “POWER” key to power up the board. The bootloader prompt is displayed
on the terminal screen.
3.7
Linux Software AP and Testing on RSB-4411
This section will guide you how to develop your own application under Linux environ-
ment. First of all, an example “Hello World” will be shown. And then you will see
some pre-installed test programs on RSB-4411 will be introduced in this section.
3.7.1
“Hello World!” Application and Execution
This section will guide you how to write a sample application “Hello World”. You can
refer to following steps:
1.
Open "Terminal" on Ubuntu 12.04 LTS.
2.
$sudo
su
(Change to “root” authority)
3.
Type user password.
4.
4)Change directory to BSP's scripts folder
5.
#.
setenv.sh
(To configure the developing environment automatically)
6.
#cd
../source
7.
#mkdir
helloworld
(Create your own work directory on the Desktop)
8.
#cd
helloworld
(Enter the work directory)
9.
#gedit
helloworld.c
(Create a new C source file)
Edit
the
helloworld.c
with
the
following
source
code:
#include
<stdio.h>
void
main()
{
printf("Hello
World!\n");
}
10.
Save the file and exit.
11.
#$CC
‐
o
helloworld
helloworld.c
(To compile helloworld.c)
12.
Then you can see “helloworld” in current directory.
13.
Insert the Linux system SD card to your developing computer.
14.
#cp
helloworld
/media/rootfs/tool
(/media/rootfs is the mounted point of
your Linux system SD card)
15.
Remove this SD card and insert it to RSB-4411, then open serial console.
16.
On RSB-4411 platform, type
#root
(Login)
17.
On RSB-4411 platform, type
#cd
/tool
18.
On RSB-4411 platform, type
#./helloworld
19.
Now you should be able to see “Hello World!” shown on RSB-4411.
Summary of Contents for RSB-4411
Page 2: ...User Manual RSB 4411 3 5 SBC with NXP i MX6 Processor ARM Cortex A9 Architecture ...
Page 11: ...RSB 4411 User Manual x ...
Page 12: ...Chapter 1 1 General Introduction ...
Page 15: ...RSB 4411 User Manual 4 ...
Page 16: ...Chapter 2 2 H W Installation ...
Page 33: ...RSB 4411 User Manual 22 Figure 2 25 M 2 Connector ...
Page 37: ...RSB 4411 User Manual 26 ...
Page 82: ...71 RSB 4411 User Manual Chapter 5 Advantech Services ...