Boot From Sata; Debug Message; Linux Software Ap And Testing On Rom-5420; Hello World!" Application And Execution - Advantech ROM-5420 User Manual

Risc-based smarc module with freescale i.mx6 arm cortex a9 processor
Table of Contents

Advertisement

2.
Insert this Linux system SD card to ROM-DB7500 and connect serial console.
3.
On ROM-5420 platform, type #root (Login)
4.
On ROM-5420 platform, type #cd /mk_inand
5.
On ROM-5420 platform, type #./mkinand-linux.sh /dev/mmcblk0
6.
On ROM-5420 platform, type "y "(Start to copy files, wait until it shows [Done])
7.
Power off and remove this SD card.
Then you can boot from onboard flash without SD card.
3.6.3

Boot from SATA

If you already have a Linux system SD card, you can refer to the following steps to
copy the content to SATA drive, you can refer following steps to boot form SATA
devices. The script "mksd-linux.sh" will be helpful to install system image to SATA
device.
1.
Refer to Chapter 3.5.1 to make a Linux system SD card
2.
Insert this Linux system SD card to ROM-DB7500 and open serial console.
3.
On ROM-5420 platform, type #root (Login)
4.
On ROM-5420 platform, type #cd /mk_inand
5.
On ROM-5420 platform, type #./mksd-linux.sh /dev/sda (Check the SATA
location like: /dev/sda)
6.
On ROM-5420 platform, type "y "(Start to copy files, waiting a few minutes until it
shows [Done])
7.
Power off and remove this SD card.
Now you can boot from SATA without SD card.
3.7

Debug Message

ROM-5420 can connect to a host PC (Linux or Windows) by using console cable and
debug port adapter. In order to communicate with host PC, serial communication pro-
gram such as HyperTerminal, Tera Term or PuTTY is required. Below are the detailed
instructions for how to set up serial console, a "HyperTerminal" on a Windows host:
1.
Connect ROM-5420 to your Windows PC by using serial cable, debug port
adapter and console cable.
2.
Open HyperTerminal on your Windows PC, and select the settings as shown in
Figure 3.6.
3.
Press "POWER" key to power up the board. The bootloader prompt is displayed
on the terminal screen.
3.8

Linux Software AP and Testing on ROM-5420

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-5420 will be introduced in this section.
3.8.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 10.04 LTS.
2.
$sudo su (Change to "root" authority)
3.
Type user password.
4.
4)Change directory to BSP's scripts folder
ROM-5420 User Manual
30

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rom-5420cd-mda1e

Table of Contents