Eurotech Adbc7520 Owner's manual

  • Hello! I am an AI chatbot trained to assist you with the Eurotech Adbc7520 Owner's manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
Wind River Linux BSP for Adbc7520
QorIQ-module
SOFTWARE MANUAL
First edition March 2014 Z31090A0-MN002-00_SWMan_En_1
[Insert the picture here]
© 2014 Eurotech
Revision history
Revision
Description
Date
1
First release
5 March 2014
Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL Table of contents
5
Z31090A0-MN002-00_SWMan_En_1
Table of contents
Revision history ........................................................................................................................................................... 3
Table of contents .......................................................................................................................................................... 5
1. Outline ........................................................................................................................................................................ 7
2. Installing the BSP ...................................................................................................................................................... 8
3. Preparation to start Wind River Linux on Adbc7520 ............................................................................................. 9
3.1. Creating a Wind River Linux image file ................................................................................................................ 9
3.2. Preparing boot file .............................................................................................................................................. 18
3.3. Connecting console ............................................................................................................................................ 18
3.4. Connecting network ............................................................................................................................................ 18
3.5. Setting of U-Boot ................................................................................................................................................ 19
3.5.1. Setting for booting from SD card ................................................................................................................ 20
3.5.2. Setting for booting from USB memory ....................................................................................................... 22
3.5.3. Setting for starting from network ................................................................................................................ 23
4. Booting the Wind River Linux for Adbc7520 ........................................................................................................ 24
5. RTC ........................................................................................................................................................................... 26
5.1. Setting of time and date ...................................................................................................................................... 26
5.2. Acquiring time and date ...................................................................................................................................... 26
6. SD card ..................................................................................................................................................................... 27
7. USB device............................................................................................................................................................... 28
8. SPI-Flash .................................................................................................................................................................. 29
8.1. SPI-Flash erase .................................................................................................................................................. 29
8.2. SPI-Flash mount ................................................................................................................................................. 29
9. EEPROM ................................................................................................................................................................... 30
10. Serial port............................................................................................................................................................... 31
11. PCI Express ........................................................................................................................................................... 32
12. Ethernet .................................................................................................................................................................. 33
12.1. Network setting ................................................................................................................................................. 33
Notes ............................................................................................................................................................................ 35
Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL Outline
7
Z31090A0-MN002-00_SWMan_En_1
1. Outline
This manual describes the BSP (Board Support Package) for executing Wind River Linux (hereinafter referred to
as WRLinux) on the Adbc7520 COM Express CPU board based on Freescale QorIQ (P1021) processor.
The BSP is necessary to execute WRLinux on the Adbc7520 and acts as the interface to hardware among the
WRLinux components.
This BSP includes, in addition to WRLinux kernel image, device tree and root file system, layers and other
components necessary to create projects for Adbc7520 on a development environment “Wind River Workbench”.
It is possible to structure WRLinux to make it suitable for Adbc7520 by preparing both this BSP and development
environment provided by WindRiver.
The BSP does not include the development environment. In order to carry out development using the BSP, you
need to purchase the Workbench for WRLinux from Wind River. Please note that this BSP is compliant with GPL,
and may be redistributed freely.
This BSP supports WRLinux4.3 and SMP.
This manual describes an example of using Ubuntu 10.4 on a host Linux system.
Installing the BSP Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL
Z31090A0-MN002-00_SWMan_En_1
2. Installing the BSP
This chapter describes how to install the BSP into the host Linux system.
The BSP is designed on the condition of being used in the Workbench, the development environment for
WRLinux running on Linux.
When using the Workbench, the layer (src/adbc7520.tar.bz2) on the accompanying CD is only used.
Copy the layer file to any directory on a PC with the Workbench installed. 1.
Ex) $ mkdir ~/WindRiver/advanet/layer
$ cp " mount destination of the accompanying CD "/src/adbc7520.tar.bz2
~/WindRiver/advanet/layer
Decompress the copied adbc7520.tar.bz2. 2.
Ex) $ tar jxvf adbc7520.tar.bz2
Now the installation has been completed.
Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL Preparation to start Wind River Linux on Adbc7520
9
Z31090A0-MN002-00_SWMan_En_1
3. Preparation to start Wind River Linux on Adbc7520
This section describes how to create a WRLinux image file required for executing WRLinux on the Adbc7520.
The default WRLinux image is contained in /bin in the accompanying CD.
3.1. Creating a Wind River Linux image file
Here is the procedure of creating with Workbench.
Start Workbench. 1.
Click [File] [New] [Project…] in the Workbench menu bar. 2.
Select [Wind River Linux] [Wind River Linux Platform Project], and click the [Next] button. 3.
Preparation to start Wind River Linux on Adbc7520 Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL
Z31090A0-MN002-00_SWMan_En_1
Specify the project name and click the [Next] button. 4.
Click the [<<Advanced], and then click the [Add] button in the dialog box shown below. 5.
Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL Preparation to start Wind River Linux on Adbc7520
11
Z31090A0-MN002-00_SWMan_En_1
Select the directory where adbc7520.tar.bz2 layer was decompressed in (2. Installing the BSP, page 8), and 6.
click the [OK] button.
Preparation to start Wind River Linux on Adbc7520 Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL
Z31090A0-MN002-00_SWMan_En_1
Click the [Reload] button to read the layer. 7.
Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL Preparation to start Wind River Linux on Adbc7520
13
Z31090A0-MN002-00_SWMan_En_1
Specify “adbc75xx” in [Board:], “glibc_small” in [RootFS:], and “standard“ in [Kernel:]. 8.
Preparation to start Wind River Linux on Adbc7520 Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL
Z31090A0-MN002-00_SWMan_En_1
ROOTFS:debug and ROOTFS:demo configured by default are unneeded applications. Delete them. And 9.
then click [Template… ].
Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL Preparation to start Wind River Linux on Adbc7520
15
Z31090A0-MN002-00_SWMan_En_1
Select a template. In this example, the test application template used for testing by Eurotech is selected. 10.
Check feature/test_tools, and click [OK].
Preparation to start Wind River Linux on Adbc7520 Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL
Z31090A0-MN002-00_SWMan_En_1
Make sure that feature/test_tools is selected, and click the [Next] button. 11.
Click the [Finish] button to complete the project creation. 12.
Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL Preparation to start Wind River Linux on Adbc7520
17
Z31090A0-MN002-00_SWMan_En_1
Select the created project in Project Explorer, and right-click to select [Build Project]. 13.
Once WRLinux is built, the execution images are created in the locations below. 14.
o Kernel image
" Workspace in the workbench "/adbc7520_prj/build/linux-adbc75xx-standard-build/
arch/powerpc/boot/uImage
o Device tree
" Workspace in the workbench "/adbc7520_prj/build/linux-adbc75xx-standard-build/
arch/powerpc/boot/adbc7520.dtb
o Root file system
" Workspace in the workbench "/adbc7520_prj/export/
adbc75xx-standard-glibc_small-dist.tar.bz2
Preparation to start Wind River Linux on Adbc7520 Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL
Z31090A0-MN002-00_SWMan_En_1
3.2. Preparing boot file
The eMMC Flash memory of the Adbc7520 has U-Boot in it. WRLinux boots up by loading WRLinux kernel
image and device tree using the U-Boot commands.
<<Note>>
Set SW1 to OFF to start the U-Boot from the eMMC Flash memory.
3.3. Connecting console
The RS-232C serial console is used as a console in the WRLinux of the BSP. Connect the COM0 serial port of
the Adbc7520 and a PC in which character terminal (dumb terminal) or terminal software such as hyper terminal
operates with a RS-232C cross cable.
Communication conditions of the serial port are as follows:
baud rate : 115200
character length : 8bit
parity bit : nil
stop bit : 1
flow control : nil
3.4. Connecting network
You can boot up WRLinux via a network by connecting a Ethernet hub or router connected to a host computer
and ETHERNET1 of the Adbc7520 with an Ethernet cable.
Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL Preparation to start Wind River Linux on Adbc7520
19
Z31090A0-MN002-00_SWMan_En_1
3.5. Setting of U-Boot
Connect the console and power on the Adbc7520 to start U-Boot as follows.
U-Boot 2009.11 (Oct 05 2011 - 14:16:38)
CPU0: P1020E, Version: 1.1, (0x80ec0011)
Core: E500, Version: 5.1, (0x80212051)
Clock Configuration:
CPU0:800 MHz, CPU1:800 MHz,
CCB:400 MHz,
DDR:333.333 MHz (666.667 MT/s data rate) (Asynchronous), LBC:25 MHz
L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Board: Adbc7520
I2C: ready
SPI: ready
DRAM: 512 MB
L2: 256 KB enabled
MMC: FSL_ESDHC: 0
eTSEC2 is in sgmii mode.
eTSEC3 is in sgmii mode.
PCIE1 connected to Slot as Root Complex (base addr ffe0a000)
Scanning PCI bus 01
PCIE1 on bus 00 - 01
PCIE2 connected to Slot as Root Complex (base addr ffe09000)
PCIE2 on bus 02 - 02
In: serial
Out: serial
Err: serial
Net: eTSEC1, eTSEC2, eTSEC3
Hit any key to stop autoboot: 1
With the default settings, WRLinux boots from the SD card in 1 second.
You can change the setting by command prompt after cancelling the autoboot by key input from the serial
console within 1 second from U-Boot start.
WRLinux kernel image and device tree can be loaded in the following ways.
From SD card (EXT3 format) [Default setting]
From USB memory (EXT3 format)
From a host Linux system via network (TFTP)
The root file system must be stored in the devices mentioned above.
Mount the root file system stored in SD card (EXT3 format).
Mount the root file system stored in USB memory (EXT3 format).
Mount the root file system stored in a host Linux system via network by NFS.
Preparation to start Wind River Linux on Adbc7520 Wind River Linux BSP for Adbc7520 SOFTWARE MANUAL
Z31090A0-MN002-00_SWMan_En_1
3.5.1. Setting for booting from SD card
Create a bootable SD card on a host Linux system in the following way.
Set an SD card in the host Linux system, and create a partition table in the SD card using the fdisk 1.
command.
An example is shown below.
o In the following explanations, the SD card inserted in the host Linux system is named /dev/sdb for
convenience. The device name depends on the host Linux environment. Please change it according to
your environment.
1) Execute the fdisk command.
$ sudo fdisk /dev/sdb
2) SD cards on the market are usually formatted with FAT16 or FAT32. Delete the existing partition table.
Command (m for help): d If there are 2 or more partitions, delete them all.
3) Create a partition table.
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-3871, default 1):
Using default value 1
Last cylinder or +size or +size{K,M,G} (1-3871, default 3871):
Using default value 3871
4) Write the partition table settings.
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Format the partition table created in 1 to EXT3. 2.
$ sudo mkfs.ext3 /dev/sdb1 -L rootfs
Mount the partition table formatted in 2. 3.
$ sudo mount /dev/sdb1 /mnt/tmp/
Change directory to the partition table mounted in 3. 4.
$ cd /mnt/tmp/
Decompress the root file system. 5.
$ sudo tar jxvf ~/adbc7520_prj/export/adbc75xx-standard-glibc_small-dist.tar.bz2
Copy the kernel image. 6.
$ sudo cp ~/adbc7520_prj/build/linux-adbc75xx-standard-build/
arch/powerpc/boot/uImage boot/
Copy the device tree. 7.
$ sudo cp ~/adbc7520_prj/build/linux-adbc75xx-standard-build/
arch/powerpc/boot/adbc7520.dtb boot/
Flush buffers to unmount partitions. 8.
$ cd /
$ sync; sudo umount /mnt/tmp/
/