Boot Up From The Onboard Emmc; Boot Up From Sata Dom; Linux Software Ap And Testing On Rom-3420; Hello World!" Application And Execution - Advantech ROM-3420CD-MDA1E User Manual

Rom-3420 series risc-based rtx module with freescale i.mx6 arm cortex a9 processor
Table of Contents

Advertisement

3.7.2

Boot up from the onboard eMMC

3.7.2.1
Transfer whole system to onboard eMMC
1.
Boot up from SD card (refer to Chapter 3.6.1)
2.
Login as root and perform following commands:
        $ cd /mk_inand
        $ ./mkinand‐linux.sh /dev/mmcblk0
3.7.2.2
Set the DIP switch
1.
Open one debug console
2.
Turn off ROM-3420
3.
Set Dip switch to 1-ON/2-OFF/3-OFF
4.
Turn on ROM-3420
3.7.3

Boot up from SATA DOM

3.7.3.1
Transfer whole system to SATA DOM
1.
Turn off ROM-3420
2.
Plug SATA DOM into ROM-DB3900's SATA slot
3.
Boot up from SD card (refer to Chapter 3.6.1)
4.
Login as root and perform the following commands:(assume SATA DOM's
device name is /dev/sdf)
        $ cd /mk_inand
        $ ./mkinand‐linux.sh /dev/sdf
3.7.3.2
Set the DIP switch
1.
Open one debug console
2.
Turn off ROM-3420
3.
Set Dip switch to 1-ON/2-ON/3-ON
4.
Turn on ROM-3420
3.8

Linux Software AP and Testing on ROM-3420

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 ROM-3420 will be introduced in this section.
3.8.1

"Hello World!" Application and Execution

This section will guide you how to write a simple sample "Hello World" program.
Refer to the following steps:
1.
Open "Terminal" on Ubuntu 10.04 LTS.
$sudo su (Change to "root" authority)
2.
3.
Type user password.
4.
Change directory to BSP's scripts folder
#. setenv.sh (To configure the development environment automatically)
5.
#cd ../source
6.
#mkdir helloworld (Create your own work directory on the Desktop)
7.
#cd helloworld (Enter the work directory)
8.
#gedit helloworld.c (Create a new C source file)
9.
ROM-3420 User Manual
30

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rom-3420wd-mda1eRom-3420cq-mda1eRom-3420wq-mda1e

Table of Contents