Table of contents:

Useful Info

Test Result Spreadsheets

  1. Open Embedded SDK

  2. Open Embedded LAMP

  3. Open Embedded Minimal

Test Cases

Setup Instructions

Steps

  • Folllow ARMv8 Quick Start to install Foundation ARMv8 fast model

  • Fetch Linaro Open Embedded Image

  • Run fast model:

      $ sudo ip tuntap add tap0 mode tap
      $ sudo ifconfig tap0 192.168.1.1
      $ ./Foundation_v8 --image img-foundation.axf --block-device vexpress64-openembedded_sdk-armv8_20121125-96.img --network bridged --network-bridge=tap0
  • Note: When assigning IP address to tap0, try to avoid conflict in existing network. For example, if your host PC is running in 10.0.0.x, then please assign 192.168.1.x to tap0

Validation

  • ARMv8 Fast Model can be launched successfully with Open Embedded image specified.

Boots

Steps

Validation

  • Verify that the u-boot and kernel output is showing correctly, without chars corruption.
  • Verify that you should get a xTerm window displaying boot progress.
  • Verify that you can type at the xTerm window.

Kernel Version

Steps

  • type at the console "uname -a"

Validation

  • verify that output gives kernel version.

root@genericarmv8:~# uname -a
Linux genericarmv8 3.6.0-1-linaro-vexpress64 #1~ci+121123041240 SMP Fri Nov 23 04:15:44 UTC 2012 aarch64 GNU/Linux

Toolchain Version

steps

  • type at the terminal 'cat /proc/version'

Validation

  • verify that output gives Kernel version and Toolchain version.

root@genericarmv8:~# cat /proc/version 
Linux version 3.6.0-1-linaro-vexpress64 (ubuntu@ip-10-35-74-15) (gcc version 4.7.2 20120910 (prerelease) [ARM/aarch64-4.7-branch revision 191233] (crosstool-NG linaro-1.13.1+bzr2482 - ARM aarch64 via Linaro) ) #1~ci+121123041240 SMP Fri Nov 23 04:15:44 UTC 2012

Java Version in Leg-Java-Armv8 images

Steps

  • type 'java -version' at the terminal

Validation

  • Verify the output gives Java-Version.

openjdk version "1.8.0-internal"
OpenJDK Runtime Environment (build 1.8.0-internal-ubuntu_2013_09_20_01_51-b00)
OpenJDK 64-Bit Client VM (build 25.0-b22, mixed mode)

Busybox

Steps

  • type 'busybox ls /proc' at the terminal

Validation

  • Verify that you get a result on the 'busybox ls /proc'.

Ethernet

Steps

  • type at the terminal:

      # ifconfig eth0 192.168.1.2 netmask 255.255.255.0
  • Note: Assign a different but same segment IP to eth0 to avoid conflict with tap0

Validation

  • output will show 'inet addr'

root@genericarmv8:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:02:F7:EF:5F:A4  
          inet addr:192.168.168.2  Bcast:192.168.168.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:646 (646.0 B)  TX bytes:656 (656.0 B)
          Interrupt:47 Base address:0xa000 DMA chan:ff 

MySQL in LAMP Image

Steps

  • type at the terminal

mysql -u root
  • type at the terminal

show databases;

Validation

  • Output should be:

root@genericarmv8:~# mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.40 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
+--------------------+
3 rows in set (0.00 sec)

mysql> 

PHP in LAMP Image

Steps

Validation

  • check does page displays information about PHP on genericarmv8

PHP/MySQL Test

Steps

  • Fetch the file

wget http://localhost/mysql.php

Validation

  • Output should be

root@genericarmv8:~# wget http://localhost/mysql.php
Connecting to localhost (127.0.0.1:80)
index.html           100% |*******************************|    20   0:00:00 ETA
root@genericarmv8:~# cat mysql.php
Connected with MySQL
root@genericarmv8:/tmp# 

Apache Basic Test

Steps

  • Fetch the Index file

wget http://localhost

Validation

  • Output should be

root@genericarmv8:~# wget http://localhost
Connecting to localhost (127.0.0.1:80)
index.html           100% |*******************************|    45   0:00:00 ETA
root@genericarmv8:~# ls
index.html

C Compiler in SDK Image

Steps

gcc hello.c -o hello
./hello

Validation

  • Output should be:

hello world

C++ Compiler in SDK Image

Steps

g++ hello.cc -o hello
./hello

Validation

  • Output should be:

hello world

Compilation of static binaries in SDK image

Steps

gcc -static hello.c -o hello-static
./hello-static

Validation

  • Output should be:

hello world

Device Tree in Minimal Image

Steps

  • on the serial console type " ls /proc/device-tree"

Validation

  • Output should be like this

 root@genericarmv8:~# ls /proc/device-tree
 #address-cells                 interrupt-parent
 #size-cells                    memory@80000000
 aliases                        model
 chosen                         motherboard
 compatible                     name
 cpus                           pmu
 interrupt-controller@2c001000  timer

Stat

  • "stat"is used to monitor the processes execute in user mode as well as processes kernel mode.

Steps

  • on the console type command "cat /proc/stat"

Validation

  • output should be a piece of information about the kernel activity

 root@genericarmv8:~# cat /proc/stat
 cpu  2440 0 2048 304797 0 0 0 0 0 0
 cpu0 2440 0 2048 304797 0 0 0 0 0 0
 intr 14355 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10534 0 0 0 0 0 0 2694 0 0 0 0 0 0 0 0 0   9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1118 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 ctxt 20260
 btime 1358971243
 processes 793
 procs_running 1
 procs_blocked 0
 softirq 14968 0 9774 3078 35 0 0 1 0 2 2078

Platform/QA/TestCases/OpenEmbedded (last modified 2013-09-26 11:38:19)