Вы находитесь на странице: 1из 26

RISC Linux Installation and

Testing

Paul Yang
Application Engineer
Applied Computing Group
Advantech Co. LTD.
Agenda
RISC Linux Overview
Different between Redhat and ARM Linux
Boot sequence
Linux File system
Linux Installation
Linux Testing
ICAVA
Live Demo
RISC Linux Overview

PCM-series
ARM Linux 2.4.19-rmk4
Glibc version on ramdisk is 2.2.3
SOM-series
ARM Linux 2.4.19-rmk4
Glibc version on ramdisk is 2.2.3
RISC Linux Overview
Whats the combination of Window CE?

Bootloader (bootldr)
Linux Kernel (kernel)
Ramdisk (ramdisk.gz)
Different between
Redhat and our ARM Linux
Feature RISC ARM Linux Redhat 9.0

Kernel ARM Linux 2.4.19-rmk4 Linux 2.4.20-8

GUI No, console mode in default X-window


But you can use ICAVA
CPU Support ARM x86, MIPS, SHx, ARM, PPC

Minimum 5MB 500MB~4GB


Required Disk
space
Real-Time Required 3rd Party Add-Ons No

Development GCC, GLIB, GDB GCC, GLIB, GDB


Tools for AP (Cross-Compile under Host)
Boot Sequence
1.HW initialization (bootloader):
Basic Hw initialization, including check CPU ID.
GPIO initialization
Memory Controller initialization
Interrupt Controller initialization
Clock Manager initialization
OS timer initialization
Power management module initialization
2.Download OS image from (bootloader):
Serial port (Xmodem)
Compact Flash Card
On Board Flash
Lan (TFTP)
3. SW initialization (kernel):
CPU initialization
Device drivers loading
Uncompress Ramdisk
Mount root system
4. SW initialization (Ramdisk):
Shell initialization (Command
interpreter)
User login
Linux File system

/bin /sbin Stores User Commands


/etc Contains Configuration
/lib Libraries + /bin /sbin
/dev Stores device files
../scr Source Code for
applications and drivers
/mnt Peripheral device
Linux Installation
Simple and easy-use installing procedure !!!

1. Going by COM1 through


Xmodem protocol

2. Directly boot from


CF/PCMCIA

3. Going by CF/PCMCIA
through DOC upgrade utility
Linux Installation1 (COM1)
Null Modem Cable
Pin 01 DCD Pin 01 DCD
Pin 02 RX Pin 02 RX
Pin 03 TX Pin 03 TX
Pin 04 DTR Pin 04 DTR
Pin05 GND Pin05 GND
Pin 06 DSR Pin 06 DSR
Pin 07 RTS Pin 07 RTS
Pin 08 CTS Pin 08 CTS
Pin 09 RI Pin 09 RI
Linux Installation1 (COM1)
Launch Hyper Terminal
Hyper Terminal Setting

Follow the settings

Select target COM on host PC


Step (1): erase old kernel and ramdisk
Step (2): transfer kernel from host to target

Step 2: Send File

Step 2

Step 1: Transfer kernel from host PC to target SDRAM


Step (3): select file path and protocol
Step (4): kernel transferring
Step (5): burn kernel into flash

Burn kernel into flash


Step (6): transfer ramdisk from host to target

Step 2: Send File

Step 1: Transfer ramdisk from host PC to target SDRAM


Step (7): select file path and protocol
Step (8): ramdisk transferring
Step (9): check ramdisk size
Step (10): burn ramdisk into flash

ramdisk exact size in byte

Burn ramdisk into flash


Linux Installation2. (PCMCIA)
1. Directly boot from CF/PCMCIA
*Put kernel and ramdisk.gz into PCMCIA
*Setup the Hyper-terminal (baudrate=115200, data bits=8, parity check=N,
stop bit=1, flowcontrol=N)
*Bootloader will load kernel and ramdisk into SDRAM
2. Going by CF/PCMCIA through DOC upgrade utility
*Put kernel and ramdisk.gz into PCMCIA
*Setup the Hyper-terminal (baudrate=38400, data bits=8, parity check=N,
stop bit=1, flowcontrol=N)
*Youll see IBOOT> prompt
*Perform pcmcia insert
*Perform docwrite 1 0xA0008000 bbbbbbbb (write kernel into DOC on
SOM)
*Perform docwrite 2 0xA1000000 dddddddd (write ramdisk.gz into DOC on
SOM)
*Setup the Hyper-terminal (baudrate=115200, data bits=8, parity check=N,
stop bit=1, flowcontrol=N)
*Bootloader will load kernel and ramdisk into SDRAM
Linux Testing
How to test???
Networks, PCMCIA/CF /SD/MMC, RS232 Full fucntion,
IrDA, USB Host, RS-485 COM Port, USB Client, TV-
in/out

Go by
corresponding
I/O device
Testing Utility package
ADAM-4250
Sample code
Linux Testing
Testing utility package :

Buzzer, Watchdog Touchscreen, USB


client, USB Host,
Network, COM port, Battery status, MMC,
IrDA, PCI bus, Suspend/Wakeup,
PCMCIA/CFetc
ICAVA
What is iCava?
A small but full-functional embedded
environment
Object-Oriented Design
Rich GUI and System APIs
What can iCava Provide?
Better Application Portability
Fast Application Development
Live-demo

Вам также может понравиться