This document is copyright of VVDN, All Rights Reserved. No part of this document, in whole or in part,
may be used, reproduced, stored in a retrieval system or transmitted, in any form, or by any means,
electronic or otherwise, including photocopying, reprinting, or recording, for any purpose, without the
express written permission of VVDN.
Legal Disclaimer
The information contained in this document is subject to change without notice. The information in this
document is provided for informational purposes only. VVDN Technologies specifically disclaims all
warranties, express or limited, including, but not limited, to the implied warranties of merchantability and
fitness for a particular purpose, except as provided for in a separate software license agreement.
The Open Server
The Open server provides an established framework to demonstrate the accelrated communication
process.It provide the solution for communication with higher network connectivity and powerful security
using encryption methodology.It offering powerful unified communication using scale-out and storage
option. The storage appliance is designed to provide features that include data compression, deduplication and encryption.
VVDN Technologies
VVDN Technologies Pvt Ltd is responsible for the design and development of all products . VVDN
provide end-to-end product design capability to its customer. Founded in 2007, VVDN is a technology
innovation and development company providing a broad spectrum of services and technology expertise to
our core domains. VVDN provides “Concept to Customer” services at any point in the development
cycle, as well as full turnkey solutions.
Correspondence
VVDN Technologies,
B-22, infocity sector- 34,
Gurgaon- 122001,
Haryana, India.
CONFIGURING THE NETWORK INTERFACE .................................................................................................................. 82.2
2.2.1 Finding and Changing the MAC Address ................................................................................................ 8
SETTING UP TFTP .............................................................................................................................................. 102.3
UPGRADING IMAGE ON BMC ............................................................................................................................... 13
3.2
STEPS TO FLASH THE IMAGE ON BMC ..................................................................................................................... 133.3
BMCGUIDESCRIPTION FOR DUAL T4SERVER: ....................................................................................................... 143.4
4.4.1 Switch setting for server1 and server2 for EEPROM Flash ................................................................... 23
5 CONFIGURATION AND COMPILATION ........................................................................................................ 24
COMPILE U-BOOT FOR SD CARD ............................................................................................................................ 245.1
BUILD LINUX KERNEL AND DEVICE TREE ................................................................................................................... 245.2
BUILD ROOT FILE SYSTEM .................................................................................................................................... 26
5.3
SWITCH SETTING ON T4240MFCS BOARD FOR SERVER1 AND SERVER2 FOR SDCARD ...................................................... 265.4
PROGRAM SDCARD ........................................................................................................................................... 276.1
STARTUP U-BOOT FROM SD CARD ......................................................................................................................... 276.2
7 STARTING LINUX FROM SD CARD ............................................................................................................... 36
STEPS FOR ETHERNET PORT SETTING ....................................................................................................................... 367.1
UPGRADE U-BOOT ON SD CARD ............................................................................................................................ 367.2
UPGRADE UIMAGE AND T4240MFCS.DTB ON SD CARD ............................................................................................. 377.3
Figure 10 Fan Monitoring ............................................................................................................................................ 19
Figure 11 Temperature Monitoring ............................................................................................................................. 20
Figure 12 Voltage Monitoring ...................................................................................................................................... 20
Figure 13 Power on/off and reset ................................................................................................................................ 21
Figure 14 Disc Status .................................................................................................................................................... 21
Figure 15 Configuration for NVME .............................................................................................................................. 25
Figure 16 Configuration For RapidIO Support ............................................................................................................. 25
Figure 17 Table for SD card partition ........................................................................................................................... 36
CONFIDENTIAL 5
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
1 Introduction
This document will describe in detail the procedures for SDK compilation, booting a Linux kernel and
mounting a root file system on the Dual T4240MFCS.The Communication Server product will be built
with Dual T4240 which is a communication processor from Freescale. The T4240 QorIQ multicore
processor combines 12 dual-threaded e6500 Power Architecture® processor cores for a total of 24 threads
with high-performance datapath acceleration logic and network and peripheral bus interfaces required for
networking, telecom/datacom, data center, wireless infrastructure, and mil/aerospace applications.
A Dual T4240 based Communication server with Scale-out option, offering a powerful unified
communication solution with up to 80G of external network connectivity, SRIO inter-chip and external
connectivity. External SRIO interface helps to (scale-out) expand system with similar system through
Internal SRIO switch.
2 Overview
The following files will be released with t4240mfcs.
1. U-boot, linux kernel and root files for T4240mfcs included in the below mentioned binaries:
QorIQ-SDK-V1.6-SOURCE-20140619-yocto.iso – ISO to build the SDK.
u-boot-with-spl-pbl.bin - U-boot Binary file that could be used to upgrade the U-boot with SD card.
u-boot.bin – U-boot binary file that could be used to upgrade the U-boot for NOR Flash.
fsl_fman_ucode_t4240_r2.0_106_4_10.bin – fman ucode binary to configure the fman interface.
fsl-image-core-t4240mfcs-20150304072707.rootfs.tar.gz - root file system for t4240 mfcs.
uImage - Linux kernel for t4240mfcs.
t4240mfcs.dtb – linux device tree blob (binaries) for t4240mfcs.
Prerequisites 2.1
2.1.1 Host requirement
To properly boot a board host machine must meet the following requirements:
1. Make sure that SDK1.6 is compiled as per the changes required in MFCS project.
2. Modern (latest) GNU/Linux Distribution.
a. Ubuntu (Most recent release or LTS)
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
3. An internet connection on the Development Host.
4. Root or sudo permission on the Development Host.
5. A copy of the Linux Kernel (uImage) and Root File System (rootfs.tar.gz) for the Target Board
that is compiled using SDK 1.6. These are found in the output directory of SDK build, or in the
directory build_t4240mfcs_release/tmp/deploy/images/t4240mfcs on the command line.
6. An available serial port on your Development Host.
2.1.2 Target requirements
To boot the t4240mfcs board we need the following items:
Once we have all the above mentioned components proceed with the following steps:
1. Connect the serial console port of the board to the serial port of host using the custom console
cables on both server1 and server2.
2. SD cards for booting the images.
3. Connect the power supply to the board.
2.1.2.1 Preparing the Target
1. Start minicom on your host machine in configuration mode. As root:
# sudo minicom -s -w
2. A menu of configuration should appear. Select the Serial port setup option, and press Enter.
3. Verify that the listed serial port is the same one that is connected to the target board. If it is not, press
A, and enter the correct device. This is /dev/ttyS0 on most Linux distributions.
4. Set the Bps/Par/Bits option by pressing the letter E and using the next menu to set the appropriate
values. You press the key that corresponds to the value 115200, and then press Enter.
5. Set Hardware flow control to No using the F key.
6. Set Software flow control to No using the G key.
7. Press Enter to return to the main configuration menu, and then press Esc to exit this menu.
8. Reset the board, and wait for a moment. If you do not see output from the board, press Enter several
times until you see the prompt. If you do not see any output from the board, and have verified that
the serial terminal connection is setup correctly, contact your board vendor.
7
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
Configuring the Network Interface 2.2
2.2.1 Finding and Changing the MAC Address
The MAC address on the T4240MFCS is set by the ethaddr environment variable in U-Boot.
If ethaddr is not set, it can be set using the setenv command.
Example
setenv ethaddr 00:11:22:33:44:55
The MAC Address can be found using the printenv command in U-Boot.
sh: UHCI: unknown operand
sh: UHCI: unknown operand
Starting T4 initialization...
Power sequencing...
T4-power-sequence t4-power-sequence.0: ############# ALL POWERS FOR T4
ARE UP ##############
power sequence successful
Releasing Clock Generator Reset...
Starting clock generation for T4 processor...
12
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
Clock generator is configured Starting T4 reset sequences ...
Upgrading image on BMC 3.2
To get the images from server it is necessary to configure the server. This configuration
involves
Create the tftp server.
Network configuration.
Steps to flash the image on BMC 3.3
1. Boot the BMC and let the kernel up.
2. Set the ip of the BMC by using ifconfig. For e.g.
ifconfig eth0 down
ifconfig eth0 192.168.0.45 up
3. Check whether the host is connected or not using ping command. To use tftp, host (e.g.
laptop) and BMC should be in same domain. (NOTE: Both server and BMC in same i.e.
192.168.0.x domain)
Ping 192.168.0.81
4. If connection is done goto tmp directory. This can be done by
cd /tmp
5. Get the image from host by executing tftp command
tftp -gr <image name> <host_ip>
The image should present in /tftpboot directory in host system.
6. Flash the image to onboard flash memory with the help of following command
flashcp -v <image_name> /dev/mtd0
Flashing will take some time for erasing, writing and verifying data.
7. Once the flash is done reboot the BMC.
13
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
BMC GUI Description for Dual T4 Server: 3.4
1. Connect BMC console.
2. Let BMC and kernel up. Default ip is 192.168.0.45. We can change the default ip by ifconfig
eth0 <ip> up.
ifconfig eth0 down
ifconfig eth0 192.168.0.45 up
3. Now the server starts and opens the URL with the local host ip.
4. And the login page appears on the browser.
5. Enter the user name and password.
Username : admin
Password : admin
Figure 1 Login screen
14
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
6. On successful login system page will appear on the screen.
Figure 2 System Page 1
Figure 3 System Page 2
15
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
7. System page displays details of server and BMC like serial number, CPU location, BMC FW
build time, CPU FW build time, software version of BMC & CPU etc, it displays status of
voltage, temperature and power supply unit status.
8. Network Configuration for 1G and 10G ports: Displays the Mac address. IP, Subnet Mask,
Gateway of the particular port. There is option to choose static and dynamic. If static, the
MAC, IP, Subnet mask and gateway will be default. If dynamic, one can change it and click
on apply to apply the changes.
Figure 4 Network Configuration
9. Debug console on BMC: Display the location led status (ON/OFF/Blink). Displays the
console logs of BMC and Server. The server and BMC logs can be saved as text file. To
save the logs click on ON button one prompt will be displayed just click on save.
16
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
Figure 5 Debug Screen with prompt box to save the logs
Figure 6 Debug Screen
17
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
Figure 7 T4 Server: Product Details
10. Firmware Upgrade: For upgrading BMC and RCW select the file and the loading symbol it
will show. Upgrading will take some time.
Figure 8 Board Details
18
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
Figure 9 Firmware Upgrade
11. Fan, Voltage and temperature Monitoring for checking the BMC status Fan page has details of RPM
& also status of RPM is within the specified range. Temperature page displays the server
temperature, inlet temperature& outlet temperature and also displays the status as OK if it is within
the range & fault if it exceeds range. Voltage will display all the current values.
Figure 10 Fan Monitoring
19
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
Figure 11 Temperature Monitoring
Figure 12 Voltage Monitoring
20
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
12. Power Control Mode: For power enabling or reset on server there is server power control showing
on the GUI screen and for BMC reset there is a reset control button on BMC Power Control.
Figure 13 Power on/off and reset
13. Disc Management utility: For showing the disc utility on server.
Figure 14 Disc Status
21
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
Range Start
Range End
Definition
Size(KB)
EC000000
EC01FFFF
RCW
112
EFF40000
EFFFFFFF
U-Boot
768
EFF00000
EFF1FFFF
FMAN
3167
EC020000
EC7FFFFF
uImage
5093
ED300000
EFDFFFFF
Rootfs
32368
EC800000
ED2FFFFF
DTB
629
DIP Switch
7 8 9
10
11
12
SW7
Off
Off
Off
Off
Off
Off
SW8
Off
Off
Off
On
Off
On
4 MFCS Booting Options
Multifunction Communication server booting options
NOR Flash
EEPROM Flash
SD Card
NOR FLASH 4.1
MEMORY MAP for T4240 MFCS NOR Flash:
The addresses below are effective addresses as mapped by u-boot.
Board can be boot from NOR Flash. Selections can be done by jumper settings. Commands for
programming images in NOR flash:
Switch setting for server1 and server2 for NOR Flash 4.2
For server 1:
22
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
DIP Switch
7 8 9
10
11
12
SW5
Off
Off
Off
Off
Off
Off
SW6
Off
Off
Off
On
Off
On
DIP Switch
7 8 9
10
11
12
SW7
Off
Off
Off
Off
Off
Off
SW8
Off
On
On
Off
On
Off
DIP Switch
7 8 9
10
11
12
SW5
Off
Off
Off
Off
Off
Off
SW6
Off
On
On
Off
On
Off
For server 2:
NOR FLASH 4.3
When SD Card is used as a booting device NOR Flash can be tested at u-boot prompt with following
commands. NOR Flash is the primary booting option which contains RCW,U-boot,U-boot env, fman
code etc
To read nor flash
cp {source address} {target address} {count}
To write nor flash
mw {source address} {target address or data to be written} {count}
To erase NOR Flash
Erase {start address} {end address}
EEPROM FLASH 4.4
4.4.1 Switch setting for server1 and server2 for EEPROM Flash
For server 1:
For server 2:
23
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
5 Configuration and compilation
Compile u-boot for SD card 5.1
1. Goto SDK 1.6 and run the command on the following path:
The system auto boots and shows the following Linux login
screens.
t4240mfcs login: root
root@t4240mfcs:~#
U-boot Prompt Commands: 6.3
Following commands are used to check the interfaces or load the addresses on the u-boot prompt. If we
want to set the environment variables we can use different commands like editenv, setenv etc.
For booting the kernel from memory we can use bootm, boot etc.
=> help
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
echo - echo args to console
editenv - edit environment variable
exit - exit script
ext2load- load binary file from a Ext2 filesystem
fdt - flattened device tree utility commands
func - execute func
i2c - I2C sub-system
interrupts- enable or disable interrupts
Irqinfo - print information about IRQs
itest - return true/false on integer compare
loadb - load binary file over serial line (kermit mode)
loady - load binary file over serial line (ymodem mode)
mac - display and program the system ID and MAC addresses in EEPROM
md - memory display
mii - MII utility commands
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - mmcinfo <dev num>-- display MMC info
mtest - simple RAM read/write test
mw - memory write (fill)
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
pci - list and access PCI Configuration Space
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
31
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
source - run script from memory
test - minimal test like /bin/sh
tftpboot- boot image via netw
usbboot - boot from USB device
I2C Interface 6.4
1.Chip Probe
i2c dev 0
Setting bus to 0
i2c probe
Valid chip addresses:
i2c dev 1
Setting bus to 1
For USB Interface Testing you can use following u-boot commands. These commands will give you
detailed information of the USB controller and devices connected to the USB.
The objective of bring up of USB interface
1. Successful Scanning, reading and writing all USB Devices of T4240
U-boot commands
=> usb reset
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1: USB EHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
=> usb tree
USB device tree:
1 Hub (480 Mb/s, 0mA)
| u-boot EHCI Host Controller
|
+-2 Mass Storage (480 Mb/s, 200mA)
SanDisk Cruzer Blade 200421032111ADD2A0C5
3 Hub (480 Mb/s, 0mA)
u-boot EHCI Host Controller
=> usb info
1: Hub, USB Revision 2.0
- u-boot EHCI Host Controller
- Class: Hub
- PacketSize: 64 Configurations: 1
- Vendor: 0x0000 Product 0x0000 Version 1.0
Configuration: 1
- Interfaces: 1 Self Powered 0mA
33
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
Interface: 0
- Alternate Setting 0, Endpoints: 1
- Class Hub
- Endpoint 1 In Interrupt MaxPacket 2048 Interval 255ms
SD Card Interface 6.7
U-boot provides the standard command "mmc" to check, read, erase and write SD Card.
=>help mmc
mmc - MMC sub system
Usage:
mmc read <device num> addr blk# cnt
mmc write <device num> addr blk# cnt
mmc rescan <device num>
mmc list - lists available devices
PCIe Interface 6.8
PCIe Interface Testing can be done from u-boot level. PCI commands will show you the device ids of the
devices connected to pci bus.
The objective of bring up of PCIe interface
1. Successful Scanning, reading and writing all PCI Devices connected to pci bus of T4240.
Following are the u-boot commands
pci [bus] [long] - short or long list of PCI devices on bus 'bus'
pci header b.d.f - show header of PCI device 'bus.device.function'
pci display[.b, .w, .l] b.d.f [address] [# of objects]
From the linux terminal we can scan pci devices and read write memory
and I/O Space allocated
to it using SYSFS and lspci.
=> lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller
(rev 0b)
00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC
(rev 04)
00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root
Port 1 (rev e4)
00:1c.2 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root
Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root
Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root
Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1
(rev 04)
00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA
Controller 1 [AHCI mode] (rev 04)
35
CONFIDENTIAL
VVDN_T4MFCS_Scaleout_User_Manual Rev. A0-03
7 Starting Linux from SD Card
The Linux kernel and file system can be copied to the SD card for production deployment. As such the
SD card included in the t4240mfcs kit will contain the different images for linux kernel, root filesystem
and the device tree binaries in the /dev/sdb partition as mentioned in the figure.
Figure 17 Table for SD card partition
Steps for Ethernet port setting 7.1
a. Connect Ethernet cable between server1/server2, where need to upgrade images and Linux PC
b. Ethernet port setting required at server1/server2 for upgrading the images in SD card, Catch
kernel prompt and run following command
sudo ifconfig fm1-mac1 192.168.1.10 up
c. Ethernet port setting at Linux PC side
sudo ifconfig eth0 192.168.1.20 up
Upgrade u-boot on SD card 7.2
a. Go to the directory where “ u-boot-with-spl-pbl.bin” file is present in Linux PC
b. Copy image into SD card by using scp
scp u-boot-with-spl-pbl.bin root@192.168.1.10:
Now Copy this binary into /dev/mmcblk0 partition of SD card