P2020RDB BSP UserManual
P2020RDB BSP UserManual
P2020RDB Board
User's Guide
Rev. 2.0
11/2009
i
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
How to Reach Us:
Home Page:
www.freescale.com
E-mail:
[email protected]
USA/Europe or Locations Not Listed:
Freescale Semiconductor
Technical Information Center, CH370
1300 N. Alma School Road Chandler, Arizona 85224
+1-800-521-6274 or +1-480-768-2130
[email protected]
Europe, Middle East, and Africa:
Freescale Halbleiter Deutschland GmbH
Technical Information Center
Information in this document is provided solely to enable system
Schatzbogen 7 and software implementers to use Freescale Semiconductor
81829 Muenchen, Germany products. There are no express or implied copyright licenses
+44 1296 380 456 (English) granted hereunder to design or fabricate any integrated circuits
+46 8 52200080 (English) or integrated circuits based on the information in this document.
Freescale Semiconductor reserves the right to make changes
+49 89 92103 559 (German) without further notice to any products herein. Freescale
+33 1 69 35 48 48 (French) Semiconductor makes no warranty, representation or guarantee
[email protected] regarding the suitability of its products for any particular
Japan: purpose, nor does Freescale Semiconductor assume any
liability arising out of the application or use of any product or
Freescale Semiconductor Japan Ltd. circuit, and specifically disclaims any and all liability, including
Headquarters without limitation consequential or incidental damages. “Typical”
ARCO Tower 15F parameters that may be provided in Freescale Semiconductor
1-8-1, Shimo-Meguro, Meguro-ku, data sheets and/or specifications can and do vary in different
applications and actual performance may vary over time. All
Tokyo 153-0064, Japan operating parameters, including “Typicals”, must be validated for
0120 191014 or +81 3 5437 9125 each customer application by customer’s technical experts.
[email protected] Freescale Semiconductor does not convey any license under its
Asia/Pacific: patent rights nor the rights of others. Freescale Semiconductor
products are not designed, intended, or authorized for use as
Freescale Semiconductor Hong Kong Ltd. components in systems intended for surgical implant into the
Technical Information Center 2 Dai King Street Tai body, or other applications intended to support or sustain life, or
Po Industrial Estate Tai Po, N.T., Hong Kong +800 for any other application in which the failure of the Freescale
2666 8080 Semiconductor product could create a situation where personal
injury or death may occur. Should Buyer purchase or use
[email protected] Freescale Semiconductor products for any such unintended or
For Literature Requests Only: unauthorized application, Buyer shall indemnify and hold
Freescale Semiconductor Literature Distribution Freescale Semiconductor and its officers, employees,
Center subsidiaries, affiliates, and distributors harmless against all
claims, costs, damages, and expenses, and reasonable
P.O. Box 5405 attorney fees arising out of, directly or indirectly, any claim of
Denver, Colorado 80217 personal injury or death associated with such unintended or
1-800-441-2447 or 303-675-2140 unauthorized use, even if such claim alleges that Freescale
Fax: 303-675-2150 Semiconductor was negligent regarding the design or
manufacture of the part.
[email protected] Learn More: For more information about Freescale products,
please visit www.freescale.com.
Freescale™ and the Freescale logo are trademarks of
Freescale Semiconductor, Inc. All other product or service
names are the property of their respective owners.
© Freescale Semiconductor, Inc. 2009. All rights reserved.
ii
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Contents
ABOUT THIS MANUAL .............................................................................................................V
Audience...................................................................................................................................... v
Organization ................................................................................................................................ v
Conventions ................................................................................................................................ vi
Definitions, Acronyms, and Abbreviations ............................................................................... vii
1 INTRODUCTION ................................................................................................................. 1
1.1 LTIB Overview................................................................................................................ 1
1.2 BSP Overview ................................................................................................................. 3
2 LTIB BASICS ........................................................................................................................ 4
2.1 Installing the BSP ............................................................................................................ 4
2.2 Running LTIB.................................................................................................................. 4
3 DIFFERENT BUILD CONFIGURATIONS ...................................................................... 6
3.1 Bootloaders ...................................................................................................................... 6
3.1.1 Building NOR boot.................................................................................................. 6
3.1.2 Building NAND boot............................................................................................... 7
3.1.3 Building RAM boot ................................................................................................. 8
3.1.4 Building eSDHC boot.............................................................................................. 9
3.1.5 Building SPI boot .................................................................................................. 10
3.2 Root filesystems ............................................................................................................ 10
3.2.1 Root Filesystems based on the packages............................................................... 12
3.2.2 Various types of Deployable Root filesystem Builds............................................ 13
3.3 Kernel ............................................................................................................................ 16
4 TARGET CONFIGURATION .......................................................................................... 17
4.1 Supported Target Revisions........................................................................................... 17
4.2 Target System Memory Map......................................................................................... 17
4.3 Target Set-up ................................................................................................................. 19
4.3.1 Switch Settings on P2020RDB.............................................................................. 20
5 TARGET DEPLOYMENT................................................................................................. 22
5.1 Host Set-up .................................................................................................................... 22
5.2 Vitesse Switch Firmware............................................................................................... 24
5.2.1 Flashing Vitesse Switch Firmware on NOR Flash Using Code Warrior .............. 24
5.2.2 Flashing Vitesse Switch Firmware on NOR Flash using u-boot.......................... 24
5.3 Bootloaders .................................................................................................................... 25
5.3.1 Flashing NOR boot using Code Warrior ............................................................... 25
5.3.2 Reflashing NOR boot on the board with already working u-boot......................... 25
5.3.3 Booting P2020RDB with NOR boot ..................................................................... 25
5.3.4 Booting P2020RDB with Alternate bank of NOR Flash....................................... 25
iii
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.3.5 Flashing NAND boot using Code Warrior ............................................................ 26
5.3.6 Using already working u-boot on the board .......................................................... 26
5.3.7 Booting P2020RDB with NAND flash ................................................................. 26
5.3.8 Using RAM boot ................................................................................................... 27
5.3.9 Using SDHC boot.................................................................................................. 27
5.3.10 Using eSPI boot ..................................................................................................... 27
5.4 Configuring U-Boot Environment................................................................................ 28
5.4.1 Default u-boot environment................................................................................... 28
5.4.2 Configuring U-Boot for TFTP............................................................................... 29
5.4.3 Configuring U-Boot for Ramdisk Deployment using TFTP ................................. 29
5.4.4 Configuring U-Boot for JFFS2 deployment from NOR Flash .............................. 29
5.4.5 Configuring U-Boot for JFFS2 deployment from NAND Flash ........................... 30
5.4.6 Configuring U-Boot for NFS deployment............................................................. 30
5.5 Development Deployment............................................................................................. 31
5.5.1 Ramdisk deployment from TFTP .......................................................................... 31
5.5.2 JFFS2 deployment from NOR Flash ..................................................................... 32
5.5.3 JFFS2 deployment from NAND Flash .................................................................. 33
5.5.4 NFS deployment .................................................................................................... 34
5.6 Production Deployment (USB Disk Deployment) ........................................................ 35
5.6.1 Default deployment (USB disk boot) .................................................................... 35
5.6.2 Ramdisk deployment using FAT16 partition on USB stick. ................................. 35
5.6.3 Ramdisk deployment using ext2 partition on USB stick....................................... 35
5.6.4 Empty USB disk deployment ................................................................................ 37
6 APPENDIX........................................................................................................................... 38
6.1 Boot Logs ...................................................................................................................... 38
6.1.1 Nor boot log........................................................................................................... 38
6.1.2 Nand boot log ........................................................................................................ 39
6.1.3 Ram boot log ......................................................................................................... 40
6.1.4 TFTP boot log........................................................................................................ 41
6.1.5 NOR JFFS2 boot log ............................................................................................. 51
6.1.6 NFS boot log.......................................................................................................... 62
6.2 Code warrior .................................................................................................................. 69
6.2.1 Flashing NOR flash using CW IDE ...................................................................... 69
6.2.2 Flashing NAND flash using CW IDE ................................................................... 76
iv
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
About This Manual
This User Manual provides information on the basic features supported by the BSP and provides you with
instructions about how to accomplish these tasks:
Audience
This document is addressed to developers who want to take advantage of the Freescale Linux Target
Image Builder (LTIB) for the P2020RDB Board Support Package (BSP).
Organization
This document is organized into 6 Sections.
Section 1 Provides an introduction to the P2020RDB BSP.
Section 2 Provides basic information on LTIB.
Section 3 Provides important Build Configurations in P2020RDB BSP.
Section 4 Provides important target set-up information.
Section 5 Provides host and target-specific build and deployment information.
Section 6 Some useful Appendices.
v
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Conventions
This document uses the following notational conventions:
Courier mono-spaced type indicates commands, command parameters, code examples,
expressions, data types, and directives.
Italic type indicates replaceable command parameters.
All source code examples are in C.
vi
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Definitions, Acronyms, and Abbreviations
The following list defines the abbreviations used in this document.
AppTRK Application Target Resident Kernel
AMP Asynchronous Symmetric Multi- Processing
BSP Board Support Package
CCS Command Control Server
CW CodeWarrior
DDR Dual Data Rate
eTSEC Enhanced Three-Speed Ethernet Controller
LTIB Linux Target Image Builder
NFS Network File System
PCIE PCI Express
PCI Peripheral Component Interconnect
PPC PowerPC
SEC Security Engine
SMP Symmetric Multi- Processing
TFTP Trivial File Transfer Protocol
UART Universal Asynchronous Receiver Transmitter
USB Universal Serial Bus
vii
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
1 Introduction
This BSP operates with LTIB running on a host development system with the following:
- Ethernet card
- Serial port
- 4 GB of free disk space required
- NFS Server
- TFTP Server
- rsync
- perl
NOTE: Be aware that some host side packages may not function properly on every
Linux distribution. The following are platforms where LTIB was tested.
- Redhat: 7.3, 8.0, 9.0
- Fedora Core: 1, 2, 3, 6
- Debian: 3.1r0 (stable), unstable
- SuSE: 8.2, 9.2, 10.0
1
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
The released BSP contains 3 DVD-ROM files:
1. DVD #1 - P2020RDB_20091118_LRFS_Ghost_Image.iso: contains a file named
P2020RDB_20091118_LRFS.GHO. It's a ghost image of the USB disk including
Linux kernel and LTIB based RFS.
Refer to the README document inside the iso for USB Ghost image details.
2
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
1.2 BSP Overview
This P2020RDB BSP is designed for use with LTIB. Once the BSP is installed and running with
its basic configuration, you can use LTIB to customize your project.
The BSP components provide the tools, device drivers, and additional features needed for your
embedded Linux project.
3
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
2 LTIB Basics
2.1 Installing the BSP
Please follow the steps below to install LTIB on your host machine.
You will be prompted to input the desired LTIB install path. Be sure the user has the correct
permissions for the install path.
There are no uninstall scripts. To uninstall LTIB you need to remove the /opt/freescale/pkgs,
/opt/freescale/ltib and <install_path>/ltib-p2020rdb-<date> directories manually.
To run LTIB, change to the directory into which you installed it and run ./ltib.
cd <install_path>/ltib-p2020rdb-<date>
./ltib
At the first time LTIB runs on your machine a number of host packages are built and installed
that support LTIB. This may take long depending on your system configuration.
Important Note: Please be sure to set the “Target System Configuration” options for your
network environment the first time you build.
This will re-prompt you for the platform/board configuration. In the board configuration screens,
change settings and select packages as appropriate. When you exit the configuration screen your
target image will be adjusted accordingly.
Once you build your project you will get following directory/image files:
• rootfs/ – directory, the root file system that will be deployed on your board.
• rootfs/boot/uImage – SMP kernel image that can be loaded with U-Boot
• rootfs.ext2.gz.uboot – ramdisk image that can be loaded with U-Boot
4
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
• rootfs.ext2.gz – gzipped ramdisk image
• rootfs/boot/u-boot.bin – U-Boot binary image that can be programmed into P2020RDB
board Flash
• rootfs/boot/p2020rdb.dtb – device tree binary (dtb) for SMP kernel boot.
• rootfs/boot/vsc2bin – Vitesse Switch Firmware binary.
If you want to fully re-configure and re-compile all the packages, you can do the following. This
is generally not necessary.
1. Clean up all the configure files and objects thoroughly:
./ltib –m distclean
2. You will be prompted to confirm your choice. Type yes to perform a distclean
3. Run litb
./ltib
5
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
3 Different Build Configurations
P2020RDB BSP supports various types of booting options from boot loader, linux and
root file system perspective. To make use of the different options, this section explains
the build procedures of different configurations.
The target deployment of the different binaries is explained in Section 5.3
3.1 Bootloaders
3.1.1 Building NOR boot
By default the ltib builds the NOR bootloader binary.
6
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
3.1.2 Building NAND boot
To build the binary from P2020RDB LTIB BSP,
Run command
=> ./ltib --configure
7
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
3.1.3 Building RAM boot
To build the binary from P2020RDB LTIB BSP,
Run command
=> ./ltib --configure
8
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
3.1.4 Building eSDHC boot
To build the binary from P2020RDB LTIB BSP,
Run command
=> ./ltib --configure
9
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
3.1.5 Building SPI boot
To build the binary from P2020RDB LTIB BSP,
Run command
=> ./ltib --configure
11
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
3.2.1 Root Filesystems based on the packages
To generate the Developer rootfile system the following defconfig can also be
used:
./ltib –preconfig config/platforms/p2020rdb/p2020rdb_dev_preconfig
12
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
3.2.2 Various types of Deployable Root filesystem Builds
13
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Notes:
`1. The value of ‘jffs2 erase block size in KB’ field should be must be appropriately
selected while building the JFFS2 images (16K for NAND flash, 64K for SPI flash,
128K for NOR flash)
2. The value 2048K should be filled up in ‘tmpfs size’ field instead of ‘512k’ by default .
14
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Please modify the items according to your network configuration. If there is any problem,
please ask your IT for help.
The generated rootfs folder in top level directory can be used as NFS. Just link it with the
appropriate NFS root path.
15
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
3.3 Kernel
P2020 is a dual core SOC, hence can support SMP and AMP kernel
configurations as per the use case requirement. Also there is a provision to run a
uni-processor Linux image on P2020 RDB, with only one core running.
The u-boot on P2002RDB BSP supports the booting of all above mentioned
kernel configurations.
Refer to P2020RDB_SMP.html and P2020RDB_AMP.html in
help/documents/html/drivers/ folder for more details.
16
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
4 Target Configuration
4.1 Supported Target Revisions
The target system is the P2020RDB board. This BSP is tested on the following board revision:
- SOC
P2020 SOC Rev 1.0 (PVR = 0x80211040, SVR = 0x80E20010)
P2020E SOC Rev 1.0 (PVR = 0x80211040, SVR = 0x80EA0010)
- Board
P2020RDB RevC
17
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
• MTD partition map created on NOR Flash.
Range Start Range End Size Definition Attributes
0xef00_0000 0xef03_ffff 256K Vitesse 7385 Switch Read only
Firmware
0xef04_0000 0xef07_ffff 256K Dtb Read only
0xef08_0000 0xef3f_ffff 3.5M uImage Read only
0xef40_0000 0xefef_ffff 11M JFFS2 image R/W
0xeff0_0000 0xefff_ffff 1M u-boot(at eff80000) Read only
and it’s env (at eff60000)
Note: The above mentioned MTD partition maps are created by kernel on the respective
Flash devices based on the information in device tree file (dtb). This map can be changed
by modifying the dts file and recompiling it. Refer to user manuals in
help/documents/html/drivers folder for more details.
18
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
4.3 Target Set-up
1. Connect the P2020RDB board to the network via the eTSEC 1 port on the board
2. Verify all the switches and jumpers are setup correctly default value, the default
frequency is 1.0GHz/500MHz/667MHz (Core/CCB/DDR) with boot from NOR Flash.
For this setting make sure SW4[1:6] are “000011”
3. Connect the board to power supply.
4. Power on the board.
19
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
4.3.1 Switch Settings on P2020RDB
Core1 Core2 Platform DDR
Switch settings Frequency Frequency Clock Frequency Boot
SW4[1:6] (MHz) (MHz) (MHz) (MHz) Location
000000 800 800 400 400 NOR
000001 800 800 400 667 NOR
000010 1000 1000 500 500 NOR
000011 1000 1000 500 667 NOR
000100 1200 1200 600 600 NOR
000101 1200 1200 600 667 NOR
000110 1200 1200 600 667 SD/MMC
000111 1200 1200 600 667 NAND
001000 1200 1200 600 667 PCIe2
001001 1200 1200 600 667 SPI
001010 1200 1200 600 800 NOR
001011 1200 1200 600 800 SD/MMC
001100 1200 1200 600 800 NAND
After being set, software must issue a reset command (asserting HRESET_REQ_B) in order for
the new switch settings to take effect. Once the I2C registers are written and enabled, they
override the board switches until either the I2C bits are disabled or until a power cycle occurs.
Host setup is critical for your BSP to function. The host must be running tftp and nfs in
order for deployment to work. The following instructions are generic. Your system may
be different and the commands should be adjusted accordingly.
1. Turn off firewall for tftp to work. iptables -F or type "setup" at the command
line.
2. Install tftp-server.
3. Install nfs-server.
4. Create the tftboot directory.
mkdir /tftpboot
5. Link rootfs to an exportable directory once you have built your project.
ln –s <install_path>/ltib/rootfs /tftpboot/ltib
6. Copy over kernel, bootloader, and flash filesystem images for your
deployment to the /tftpboot directory:
cp <install_path>/ltib/rootfs/boot/* /tftpboot
22
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
cp <install_path>/ltib/rootfs.ext2.gz.uboot /tftpboot
or
cp /mnt/cdrom/Images/* /tftpboot
7. Edit /etc/exports and add the following line:
/tftpboot/ltib/ <target board IP>(rw,no_root_squash, async)
23
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.2 Vitesse Switch Firmware
To enable eTSEC1 ports a special firmware has to be downloaded to the IRAM of the
switch. The firmware binary is images/vsc2bin. In case of P2020RDB, u-boot copies the
firmware from first sector of NOR flash onto the IRAM of the switch. Hence before the
board is booted, user must make sure that the NOR flash contains the switch firmware at
it’s first sector(offset 0).
5.2.1 Flashing Vitesse Switch Firmware on NOR Flash Using Code Warrior
- Follow the Section 6.2.1 (Flashing NOR Flash using CW IDE) to program
vsc2bin at address 0xff000000 till 0xff01ffff
- Reset the board, and check for the the four leds glowing for eTSEC1
Switch ports. (See above figure )
Reset the board, and check for the the four leds glowing for eTSEC
switch ports. (See above figure )
24
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.3 Bootloaders
5.3.1 Flashing NOR boot using Code Warrior
Follow the Section 6.2.1 (Flashing NOR Flash using CW IDE) to
program u-boot.bin at address 0xfff80000 till 0xffffffff (last 4 sectors)
You may want to erase last 5 sectors (0xfff60000 to 0xffffffff) to erase the
u-boot environment also.
The u-boot.bin has to be flashed at address 0xfff80000 till 0xffffffff.
Click on Verify to confirm whether Flash programming was successful.
Now the P2020RDB is ready for NOR boot.
5.3.2 Reflashing NOR boot on the board with already working u-boot
An alternative way is to use the U-Boot commands for programming with
the precondition that there is already a working U-Boot programmed in the NOR
Flash.
This option is useful for u-boot testing, keeping the working u-boot at default
location and the one under testing at alternate location.
25
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
As per u-boot memory map for P2020RDB,
Default NOR Flash boot location is at 0xeff80000
Alternate NOR Flash boot location is at 0xef780000.
• To flash the NOR bootloader binary at alternate bank using CW the address
offset must be 0xFF780000.
• To flash the NOR boot loader binary at alternate bank using already
working u-boot.
o tftp 1000000 u-boot.bin;
o protect off all;
o erase ef780000 ef7fffff;
o cp.b 1000000 ef780000 80000;
• To boot from alternate NOR Flash bank, change the SW4[8] to 1, and reset the
board.
26
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.3.8 Using RAM boot
To use RAM boot the board must already have a working u-boot on the board.
This bootloader can be useful in development/testing phases of u-boot.
27
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.4 Configuring U-Boot Environment
5.4.1 Default u-boot environment
=> print
bootcmd=setenv bootargs root=/dev/$bdev rw rootdelay=30 console=$consoledev,$baudrate
$othbootargs;usb start;ext2load
usb 0:1 $loadaddr /boot/$bootfile;ext2load usb 0:1 $fdtaddr /boot/$fdtfile;bootm
$loadaddr - $fdtaddr
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs; tftp
$ramdiskaddr $ramdiskfile;t
ftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath
ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostna
me:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp
$fdtaddr $fdtfile;bootm $load
addr - $fdtaddr
bootdelay=10
baudrate=115200
loads_echo=1
rootpath=/opt/nfsroot
hostname=P2020RDB
bootfile=uImage
loadaddr=1000000
netdev=eth0
uboot=u-boot.bin
loadaddr=1000000
bootfile=uImage
tftpflash=tftpboot $loadaddr $uboot; protect off 0xeff80000 +$filesize; erase 0xeff80000
+$filesize; cp.b $loadaddr 0
xeff80000 $filesize; protect on 0xeff80000 +$filesize; cmp.b $loadaddr 0xeff80000
$filesize
consoledev=ttyS0
ramdiskaddr=2000000
ramdiskfile=rootfs.ext2.gz.uboot
fdtaddr=c00000
fdtfile=p2020rdb.dtb
bdev=sda1
jffs2nor=mtdblock3
norbootaddr=ef080000
norfdtaddr=ef040000
jffs2nand=mtdblock9
nandbootaddr=200000
nandfdtaddr=100000
nandimgsize=400000
nandfdtsize=100000
usb_phy_type=ulpi
vscfw_addr=ef000000
othbootargs=ramdisk_size=700000 cache-sram-size=0x10000
usbfatboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;
usb start;fatload usb 0:2 $lo
adaddr $bootfile;fatload usb 0:2 $fdtaddr $fdtfile;fatload usb 0:2 $ramdiskaddr
$ramdiskfile;bootm $loadaddr $ramdisk
addr $fdtaddr
usbext2boot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;
usb start;ext2load usb 0:4 $
loadaddr $bootfile;ext2load usb 0:4 $fdtaddr $fdtfile;ext2load usb 0:4 $ramdiskaddr
$ramdiskfile;bootm $loadaddr $ram
diskaddr $fdtaddr
norboot=setenv bootargs root=/dev/$jffs2nor rw console=$consoledev,$baudrate
rootfstype=jffs2 $othbootargs;bootm $nor
bootaddr - $norfdtaddr
nandboot=setenv bootargs root=/dev/$jffs2nand rw rootfstype=jffs2
console=$consoledev,$baudrate $othbootargs;nand rea
d 2000000 $nandbootaddr $nandimgsize;nand read 3000000 $nandfdtaddr $nandfdtsize;bootm
2000000 - 3000000;
ethact=eTSEC1
28
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.4.2 Configuring U-Boot for TFTP
The following environment settings are required to configure the u-boot for tftp.
The following environment settings are required to configure the u-boot for ramdisk deployment
using tftp.
The images generated by LTIB allows to perform JFFS2 deployment from NOR flash.
As such no modification in the environment is required for this deployment method because the
uboot command “norboot” takes care of all the environment settings required.
As a pre-requisite to use this option, uImage dtb and JFFS2 filesystem images must be present at
the following NOR Flash locations.
1. ef080000: The starting address for kernel in flash.
2. ef400000: The starting address for JFFS2 filesystem in flash.
3. ef040000: the starting address for dtb files in flash.
Now the U-Boot is ready for performing flash deployment.
29
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.4.5 Configuring U-Boot for JFFS2 deployment from NAND Flash
The images generated by LTIB allow you to perform JFFS2 deployment from flash.
As such no modification in the environment is required for this deployment method because the
uboot command “nandboot” takes care of all the environment settings required.
As a pre-requisite to use this option, uImage dtb and JFFS2 filesystem images must be present at
the following NAND Flash locations.
1. 0x00100000: The starting address for dtb in NAND flash.
2. 0x00200000: The starting address for kernel image in NAND flash.
3. 0x00a00000: the starting address for JFFS2 image in NAND flash.
Now the U-Boot is ready for performing flash deployment.
The NFS file system generated by LTIB allow you perform NFS deployment. Before performing
NFS deployment, it is needed to configure U-Boot parameters.
At u-boot prompt, set u-boot environment like:
30
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.5 Development Deployment
5.5.1 Ramdisk deployment from TFTP
31
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.5.2 JFFS2 deployment from NOR Flash
The kernel and ramdisk should be programmed into the flash of the board for flash deployment.
32
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.5.3 JFFS2 deployment from NAND Flash
The kernel and ramdisk should be programmed into the NAND flash for this deployment.
=>run nandboot
33
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.5.4 NFS deployment
34
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.6 Production Deployment (USB Disk Deployment)
The Linux kernel and filesystem can be put to the USB disk for production deployment (usbdisk
deployment).
As such the USB sticks included in the P2020RDB kit will contain the following images as per
the partitions mentioned.
Note : In the bootcmd parameter “'fatload usb 0:2 1000000…”, “0” refers to the number of USB
port that the usb disk is connected to the P2020RDB board, “2” refers to the partition number of
the USB disk. Change these parameters according to the USB disk partition.
35
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Note : In the bootcmd parameter “'ext2load usb 0:4 1000000…”, “0” refers to the number of USB
port that the usb disk is connected to the P2020RDB board, “4” refers to the partition number of
the USB disk. Change these parameters according to the USB disk partition.
36
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
5.6.4 Empty USB disk deployment
If the user has an empty USB Disk, there are two methods to deploy filesystem to the USB Disk.
1. Boot up the system with NFS deployment flash described by chapter 5.5.4
2. On the target board , fdisk the USB disk as following partition table:
Device Boot Start End Blocks Id System
/dev/sda1 1 117 939771 83 5 Linux
NOTE: In the bootcmd parameter “'ext2load usb 0:1 1000000…”, “0” refers to the number
of USB port that the usb disk is connected to the P2020RDB board, “1” refers to the partition
number of the USB disk. Change these parameters according to the USB disk partition.
37
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
6 Appendix
6.1 Boot Logs
6.1.1 Nor boot log
U-Boot 2009.11-rc1 (Nov 05 2009 - 12:45:41)
In: serial
Out: serial
Err: serial
Net: uploading VSC7385 microcode from ef000000
eTSEC1: No support for PHY id ffffffff; assuming generic
eTSEC1, eTSEC2, eTSEC3
Hit any key to stop autoboot: 0
=>
38
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
6.1.2 Nand boot log
NAND boot... skipping
transfering control
In: serial
Out: serial
Err: serial
Net: uploading VSC7385 microcode from ef000000
eTSEC1: No support for PHY id ffffffff; assuming generic
eTSEC1, eTSEC2, eTSEC3
Hit any key to stop autoboot: 0
=>
=>
39
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
6.1.3 Ram boot log
=> tftp 11000000 P2020_Beta/rc4/u-boot-ram.bin
Speed: 1000, full duplex
Using eTSEC1 device
TFTP from server 10.232.20.140; our IP address is 10.232.133.185; sending through gateway
10.232.135.254
Filename 'P2020_Beta/rc4/u-boot-ram.bin'.
Load address: 0x11000000
Loading: T ####################################
done
Bytes transferred = 524288 (80000 hex)
=>
=> go 1107f000
¢H¨H¨Õ½½Ñ 2009.11-rc1 (Nov 06 2009 - 13:10:28)
In: serial
Out: serial
Err: serial
Net: uploading VSC7385 microcode from ef000000
eTSEC1: No support for PHY id ffffffff; assuming generic
eTSEC1, eTSEC2, eTSEC3
Hit any key to stop autoboot: 0
=>
40
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
6.1.4 TFTP boot log
=> setenv boot_r 'tftp 1000000 P2020_Beta/rc4/uImage_smp;tftp 2000000
P2020_Beta/rc4/rootfs_dev.ext2.gz.uboot;tftp c0
0000 P2020_Beta/rc4/p2020rdb.dtb;bootm 1000000 2000000 c00000'
=> sav
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... 9....8....7....6....5....4....3....2....1....done
Protected 1 sectors
=>
=> run boot_r
Speed: 1000, full duplex
Using eTSEC1 device
TFTP from server 10.232.20.140; our IP address is 10.232.133.185
Filename 'P2020_Beta/rc4/uImage_smp'.
Load address: 0x1000000
Loading: ## Warning: gatewayip needed but not set
T #################################################################
#################################################################
#################################################################
#########################
done
Bytes transferred = 3226169 (313a39 hex)
Speed: 1000, full duplex
Using eTSEC1 device
TFTP from server 10.232.20.140; our IP address is 10.232.133.185
Filename 'P2020_Beta/rc4/rootfs_dev.ext2.gz.uboot'.
Load address: 0x2000000
Loading: ## Warning: gatewayip needed but not set
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
41
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################################################
91 MB received
#################################################################
#################################################################
#################################################################
#################################################################
42
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
43
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################################################
183 MB received
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#######
done
Bytes transferred = 198240888 (bd0ea78 hex)
Speed: 1000, full duplex
Using eTSEC1 device
TFTP from server 10.232.20.140; our IP address is 10.232.133.185
Filename 'P2020_Beta/rc4/p2020rdb.dtb'.
Load address: 0xc00000
Loading: ## Warning: gatewayip needed but not set
#
done
Bytes transferred = 11360 (2c60 hex)
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.32-rc3
Created: 2009-11-06 6:07:17 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 3226105 Bytes = 3.1 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
Image Name: uboot ext2 ramdisk rootfs
Created: 2009-11-06 8:58:28 UTC
Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
Data Size: 198240824 Bytes = 189.1 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 00c00000
Booting using the fdt blob at 0xc00000
Uncompressing Kernel Image ... OK
Loading Ramdisk to 242f1000, end 2ffffa38 ... OK
Using P2020 RDB machine description
Memory CAM mapping: 256/256/256 Mb, residual: 256Mb
44
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Linux version 2.6.32-rc3 ([email protected]) (gcc version 4.3.2 (GCC) ) #1
SMP Fri Nov 6 11:37:04 IST 20
09
Found initrd at 0xe42f1000:0xeffffa38
CPU maps initialized for 1 thread per core
bootconsole [udbg0] enabled
setup_arch: bootmem
mpc85xx_rdb_setup_arch()
Found FSL PCI host bridge at 0x00000000ffe09000. Firmware bus number: 0->255
PCI host bridge /pcie@ffe09000 ranges:
MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000
IO 0x00000000ffc30000..0x00000000ffc3ffff -> 0x0000000000000000
/pcie@ffe09000: PCICSRBAR @ 0xfff00000
Found FSL PCI host bridge at 0x00000000ffe0a000. Firmware bus number: 0->255
PCI host bridge /pcie@ffe0a000 ranges:
MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000
IO 0x00000000ffc20000..0x00000000ffc2ffff -> 0x0000000000000000
/pcie@ffe0a000: PCICSRBAR @ 0xfff00000
MPC85xx RDB board from Freescale Semiconductor
arch: exit
Zone PFN ranges:
DMA 0x00000000 -> 0x00030000
Normal 0x00030000 -> 0x00030000
HighMem 0x00030000 -> 0x00040000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00040000
MMU: Allocated 136 bytes of context maps for 31 contexts
PERCPU: Embedded 7 pages/cpu @c1409000 s8184 r8192 d12296 u65536
pcpu-alloc: s8184 r8192 d12296 u65536 alloc=16*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: root=/dev/ram rw console=ttyS0,115200 ramdisk_size=700000 cache-
sram-size=0x10000
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 838736k/1048576k available (6212k kernel code, 209368k reserved, 256k data, 147k
bss, 236k init)
Kernel virtual memory layout:
* 0xfffe0000..0xfffff000 : fixmap
* 0xff800000..0xffc00000 : highmem PTEs
* 0xff7d8000..0xff800000 : early ioremap
* 0xf1000000..0xff7d8000 : vmalloc & ioremap
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:512
mpic: Setting up MPIC " OpenPIC " version 1.2 at ffe40000, max 2 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource: timebase mult[4000000] shift[22] registered
Console: colour dummy device 80x25
Mount-cache hash table entries: 512
mpic: requesting IPIs ...
Processor 1 found.
Brought up 2 CPUs
xor: measuring software checksum speed
8regs : 1165.000 MB/sec
8regs_prefetch: 1011.000 MB/sec
32regs : 1253.000 MB/sec
32regs_prefetch: 1075.000 MB/sec
xor: using function: 32regs (1253.000 MB/sec)
NET: Registered protocol family 16
45
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
pci 0001:02:00.0: PME# disabled
pci 0000:00:00.0: PCI bridge, secondary bus 0000:01
pci 0000:00:00.0: IO window: 0x00-0xffff
pci 0000:00:00.0: MEM window: 0xa0000000-0xbfffffff
pci 0000:00:00.0: PREFETCH window: disabled
pci 0000:00:00.0: enabling device (0106 -> 0107)
pci 0001:02:00.0: PCI bridge, secondary bus 0001:03
pci 0001:02:00.0: IO window: 0x00-0xffff
pci 0001:02:00.0: MEM window: 0xc0000000-0xdfffffff
pci 0001:02:00.0: PREFETCH window: disabled
pci 0001:02:00.0: enabling device (0106 -> 0107)
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1 153 MB/s
raid6: int32x2 247 MB/s
raid6: int32x4 354 MB/s
raid6: int32x8 287 MB/s
raid6: using algorithm int32x4 (354 MB/s)
Freescale Elo / Elo Plus DMA driver
Switching to clocksource timebase
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 193594k freed
fsl-elo-dma ffe0c300.dma: Probe the Freescale DMA driver for fsl,eloplus-dma controller
at 0xffe0c300...
fsl-elo-dma ffe0c300.dma: #0 (fsl,eloplus-dma-channel), irq 76
fsl-elo-dma ffe0c300.dma: #1 (fsl,eloplus-dma-channel), irq 77
fsl-elo-dma ffe0c300.dma: #2 (fsl,eloplus-dma-channel), irq 78
fsl-elo-dma ffe0c300.dma: #3 (fsl,eloplus-dma-channel), irq 79
fsl-l2ctlr ffe20000.l2-cache-controller: [base:0xfff00000, size:0x10000] configured and
loaded
fsl-elo-dma ffe21300.dma: Probe the Freescale DMA driver for fsl,eloplus-dma controller
at 0xffe21300...
fsl-elo-dma ffe21300.dma: #0 (fsl,eloplus-dma-channel), irq 20
fsl-elo-dma ffe21300.dma: #1 (fsl,eloplus-dma-channel), irq 21
fsl-elo-dma ffe21300.dma: #2 (fsl,eloplus-dma-channel), irq 22
fsl-elo-dma ffe21300.dma: #3 (fsl,eloplus-dma-channel), irq 23
audit: initializing netlink socket (disabled)
type=2000 audit(0.996:1): initialized
highmem bounce pool size: 64 pages
Installing knfsd (copyright (C) 1996 [email protected]).
Slow work thread pool: Starting up
Slow work thread pool: Ready
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
JFFS2: default compression mode: priority
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1505
alg: No test for stdrng (krng)
async_tx: api initialized (async)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Generic non-volatile memory driver v1.1
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
46
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
serial8250.0: ttyS0 at MMIO 0xffe04500 (irq = 42) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
serial8250.0: ttyS1 at MMIO 0xffe04600 (irq = 42) is a 16550A
brd: module loaded
loop: module loaded
nbd: registered device at major 43
st: Version 20081215, fixed bufsize 32768, s/g segs 256
ef000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
ef000000.nor: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Creating 5 MTD partitions on "ef000000.nor":
0x000000000000-0x000000040000 : "NOR (RO) Vitesse-7385 Firmware"
ftl_cs: FTL header not found.
0x000000040000-0x000000080000 : "NOR (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000080000-0x000000400000 : "NOR (RO) Linux Kernel Image"
ftl_cs: FTL header not found.
0x000000400000-0x000000f00000 : "NOR (RW) JFFS2 Root File System"
ftl_cs: FTL header not found.
0x000000f00000-0x000001000000 : "NOR (RO) U-Boot Image"
ftl_cs: FTL header not found.
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
RedBoot partition parsing not available
Creating 6 MTD partitions on "ffa00000.flash":
0x000000000000-0x000000100000 : "NAND (RO) U-Boot Image"
ftl_cs: FTL header not found.
0x000000100000-0x000000200000 : "NAND (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000200000-0x000000600000 : "NAND (RO) Linux Kernel Image"
ftl_cs: FTL header not found.
0x000000600000-0x000000a00000 : "NAND (RO) Compressed RFS Image"
ftl_cs: FTL header not found.
0x000000a00000-0x000001100000 : "NAND (RW) JFFS2 Root File System"
ftl_cs: FTL header not found.
0x000001100000-0x000002000000 : "NAND (RW) Writable User area"
ftl_cs: FTL header not found.
eLBC NAND device at 0xffa00000, bank 1
fsl_m25p80 spi28672.0: s25sl128b (0 Kbytes)
Creating 5 MTD partitions on "SPIFLASH0":
0x000000000000-0x000000080000 : "SPI (RO) U-Boot Image"
ftl_cs: FTL header not found.
0x000000080000-0x000000100000 : "SPI (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000100000-0x000000500000 : "SPI (RO) Linux Kernel Image"
ftl_cs: FTL header not found.
0x000000500000-0x000000900000 : "SPI (RO) Compressed RFS Image"
ftl_cs: FTL header not found.
0x000000900000-0x000001000000 : "SPI (RW) JFFS2 RFS"
ftl_cs: FTL header not found.
ffe07000.spi: Freescale eSPI Controller driver at 0xf111e000 (irq = 59)
e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2
e1000e: Copyright (c) 1999-2008 Intel Corporation.
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth0: Gianfar Ethernet Controller Version 1.4-skbr1.1.4, 00:04:9f:ef:01:01
eth0: Running with NAPI enabled
eth0: :RX BD ring size for Q[0]: 128
eth0:TX BD ring size for Q[0]: 128
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth1: Gianfar Ethernet Controller Version 1.4-skbr1.1.4, 00:04:9f:ef:01:02
eth1: Running with NAPI enabled
eth1: :RX BD ring size for Q[0]: 128
eth1:TX BD ring size for Q[0]: 128
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
47
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
eth2: Gianfar Ethernet Controller Version 1.4-skbr1.1.4, 00:04:9f:ef:01:03
eth2: Running with NAPI enabled
eth2: :RX BD ring size for Q[0]: 128
eth2:TX BD ring size for Q[0]: 128
Freescale PowerQUICC MII Bus: probed
Freescale PowerQUICC MII Bus: probed
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 28, io base 0xffe22000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
rtc-ds1307 0-0068: rtc core: registered ds1339 as rtc0
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: SDHCI controller on ffe2e000.sdhci [ffe2e000.sdhci] using PIO
talitos ffe30000.crypto: hwrng
talitos ffe30000.crypto: max_xor_srcs 6
alg: No test for authenc(hmac(sha1),cbc(aes)) (authenc-hmac-sha1-cbc-aes-talitos)
talitos ffe30000.crypto: authenc-hmac-sha1-cbc-aes-talitos
alg: No test for authenc(hmac(sha1),cbc(des3_ede)) (authenc-hmac-sha1-cbc-3des-talitos)
talitos ffe30000.crypto: authenc-hmac-sha1-cbc-3des-talitos
alg: No test for authenc(hmac(sha256),cbc(aes)) (authenc-hmac-sha256-cbc-aes-talitos)
talitos ffe30000.crypto: authenc-hmac-sha256-cbc-aes-talitos
alg: No test for authenc(hmac(sha256),cbc(des3_ede)) (authenc-hmac-sha256-cbc-3des-
talitos)
talitos ffe30000.crypto: authenc-hmac-sha256-cbc-3des-talitos
alg: No test for authenc(hmac(md5),cbc(aes)) (authenc-hmac-md5-cbc-aes-talitos)
talitos ffe30000.crypto: authenc-hmac-md5-cbc-aes-talitos
alg: No test for authenc(hmac(md5),cbc(des3_ede)) (authenc-hmac-md5-cbc-3des-talitos)
talitos ffe30000.crypto: authenc-hmac-md5-cbc-3des-talitos
talitos ffe30000.crypto: cbc-aes-talitos
talitos ffe30000.crypto: cbc-3des-talitos
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
rtc-ds1307 0-0068: setting system clock to 2009-05-28 18:35:26 UTC (1243535726)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
mmc0: new SD card at address e664
mmcblk0: mmc0:e664 SD02G 1.84 GiB
mmcblk0: p1
usb 1-1: new high speed USB device using fsl-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access CBM Flash Disk 5.00 PQ: 0 ANSI: 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 7805952 512-byte logical blocks: (3.99 GB/3.72 GiB)
48
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing unused kernel memory: 236k init
Mounting /proc and /sys
Starting the hotplug events dispatcher udevd
Synthesizing initial hotplug events
Setting the hostname to P2020RDB
Mounting filesystems
mount: sysfs already mounted or /sys busy
mount: according to mtab, /sys is already mounted on /sys
Starting syslogd and klogd
Running sysctl
Setting up networking on loopback device:
txbd[0]: addr, vaddr = 0xfff00000,0xf1040000
rxbd[0]: addr,vaddr=0xfff00400,0xf1040400
ADDRCONF(NETDEV_UP): eth0: link is not ready
Adding static route for default gateway to 192.168.0.1:
Setting nameserver to 192.168.0.txbd[0]: addr, vaddr = 0xfff00c00,0xf1040c00
1 in /etc/resolvrxbd[0]: addr,vaddr=0xfff01000,0xf1041000
.conf:
SettingADDRCONF(NETDEV_UP): eth1: link is not ready
up networking on eth1:
Adding static route for default gateway to 192.168.1.1:
Setting nameserver to 192.168.1.txbd[0]: addr, vaddr = 0xfff01800,0xf1041800
1 in /etc/resolvrxbd[0]: addr,vaddr=0xfff01c00,0xf1041c00
.conf:
SettingADDRCONF(NETDEV_UP): eth2: link is not ready
up networking on eth2:
Adding static route for default gateway to 192.168.2.1:
Starting inetd:
Starting the port mapper:
Generating keys for the dropbear ssh server:
Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Public key portion is:
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAAAgwCexQsqZjuwSR0dG5TJ9eyaEZ9zjhXBme16SFjAqdYhZR/ac5o/rz10gMmbh
bvnUsrfXx6NkPPsoUlJP
MBt4i7rrWi2+kF/oChlzJPOtQa4VrMT3TpXzQYNjUEMiXNRaUCWx+PNSGREXpdYEMpFIr4Y0izbyVOoE6VGf8lih8
fD5chh root@P2020RDB
Fingerprint: md5 32:69:56:60:fa:19:f2:c3:9b:6c:c9:0a:14:29:92:d0
Starting the dropbear ssh server:
Starting the boa webserver:
Please set the system time using
date <mmddhhmnyyyy>
/sbin/hwclock -w
PHY: 0:01 - Link is Up - 1000/Full
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
49
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Welcome to the LTIB Embedded Linux Environment
processor : 1
cpu : e500v2
clock : 1000.000000MHz
revision : 4.0 (pvr 8021 1040)
bogomips : 125.00
50
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
6.1.5 NOR JFFS2 boot log
U-Boot 2009.11-rc1-dirty (Nov 10 2009 - 12:24:33)
In: serial
Out: serial
Err: serial
Net: uploading VSC7385 microcode from ef000000
eTSEC1: No support for PHY id ffffffff; assuming generic
eTSEC1, eTSEC2, eTSEC3
Hit any key to stop autoboot: 0
=>
=> print
bootcmd=setenv bootargs root=/dev/$bdev rw rootdelay=30 console=$consoledev,$baudrate
$othbootargs;usb start;ext2load
usb 0:1 $loadaddr /boot/$bootfile;ext2load usb 0:1 $fdtaddr /boot/$fdtfile;bootm
$loadaddr - $fdtaddr
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs; tftp
$ramdiskaddr $ramdiskfile;t
ftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath
ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostna
me:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp
$fdtaddr $fdtfile;bootm $load
addr - $fdtaddr
bootdelay=10
baudrate=115200
loads_echo=1
rootpath=/opt/nfsroot
hostname=P2020RDB
bootfile=uImage
loadaddr=1000000
netdev=eth0
uboot=u-boot.bin
loadaddr=1000000
bootfile=uImage
tftpflash=tftpboot $loadaddr $uboot; protect off 0xeff80000 +$filesize; erase 0xeff80000
+$filesize; cp.b $loadaddr 0
51
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
xeff80000 $filesize; protect on 0xeff80000 +$filesize; cmp.b $loadaddr 0xeff80000
$filesize
consoledev=ttyS0
ramdiskaddr=2000000
ramdiskfile=rootfs.ext2.gz.uboot
fdtaddr=c00000
fdtfile=p2020rdb.dtb
bdev=sda1
jffs2nor=mtdblock3
norbootaddr=ef080000
norfdtaddr=ef040000
jffs2nand=mtdblock9
nandbootaddr=100000
nandfdtaddr=80000
nandimgsize=400000
nandfdtsize=80000
usb_phy_type=ulpi
vscfw_addr=ef000000
othbootargs=ramdisk_size=700000 cache-sram-size=0x10000
usbfatboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;
usb start;fatload usb 0:2 $lo
adaddr $bootfile;fatload usb 0:2 $fdtaddr $fdtfile;fatload usb 0:2 $ramdiskaddr
$ramdiskfile;bootm $loadaddr $ramdisk
addr $fdtaddr
usbext2boot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;
usb start;ext2load usb 0:4 $
loadaddr $bootfile;ext2load usb 0:4 $fdtaddr $fdtfile;ext2load usb 0:4 $ramdiskaddr
$ramdiskfile;bootm $loadaddr $ram
diskaddr $fdtaddr
norboot=setenv bootargs root=/dev/$jffs2nor rw console=$consoledev,$baudrate
rootfstype=jffs2 $othbootargs;bootm $nor
bootaddr - $norfdtaddr
nandboot=setenv bootargs root=/dev/$jffs2nand rw rootfstype=jffs2
console=$consoledev,$baudrate $othbootargs;nand rea
d 2000000 $nandbootaddr $nandimgsize;nand read 3000000 $nandfdtaddr $nandfdtsize;bootm
2000000 - 3000000;
ethact=eTSEC1
bootargs=root=/dev/ram rw console=ttyS0,115200 ramdisk_size=20000
serverip=10.232.20.140
ipaddr=10.232.133.185
netmask=255.255.252.0
ethaddr=00:04:9f:ef:01:01
eth1addr=00:04:9f:ef:01:02
eth2addr=00:04:9f:ef:01:03
52
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Using eTSEC1 device
TFTP from server 10.232.20.140; our IP address is 10.232.133.185
Filename 'P2020_Beta/rc4/rootfs_nor.jffs2'.
Load address: 0x2000000
Loading: ## Warning: gatewayip needed but not set
#################################################################
#################################################################
#################################################################
#################################################################
############################################
done
Bytes transferred = 4456448 (440000 hex)
=> tftp c00000 P2020_Beta/rc4/p2020rdb.dtb
Speed: 1000, full duplex
Using eTSEC1 device
TFTP from server 10.232.20.140; our IP address is 10.232.133.185
Filename 'P2020_Beta/rc4/p2020rdb.dtb'.
Load address: 0xc00000
Loading: ## Warning: gatewayip needed but not set
## Warning: gatewayip needed but not set
T ## Warning: gatewayip needed but not set
#
done
Bytes transferred = 11360 (2c60 hex)
=> protect off all
Un-Protect Flash Bank # 1
=> erase ef040000 ef07ffff
.. done
Erased 2 sectors
=> cp.b c00000 ef040000 2c60
Copy to Flash... 9....8....7....6....5....4....3....2....1....done
=> erase ef080000 ef3fffff
............................ done
Erased 28 sectors
=> cp.b 1000000 ef080000 313a39
Copy to Flash... 9....8....7....6....5....4....3....2....1....done
=> erase ef400000 efefffff
........................................................................................
done
Erased 88 sectors
=> cp.b 2000000 ef400000 440000
Copy to Flash... 9....8....7....6....5....4....3....2....1....done
=> print
bootcmd=setenv bootargs root=/dev/$bdev rw rootdelay=30 console=$consoledev,$baudrate
$othbootargs;usb start;ext2load
usb 0:1 $loadaddr /boot/$bootfile;ext2load usb 0:1 $fdtaddr /boot/$fdtfile;bootm
$loadaddr - $fdtaddr
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs; tftp
$ramdiskaddr $ramdiskfile;t
ftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath
ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostna
me:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp
$fdtaddr $fdtfile;bootm $load
addr - $fdtaddr
bootdelay=10
baudrate=115200
loads_echo=1
rootpath=/opt/nfsroot
hostname=P2020RDB
bootfile=uImage
loadaddr=1000000
netdev=eth0
uboot=u-boot.bin
loadaddr=1000000
bootfile=uImage
53
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
tftpflash=tftpboot $loadaddr $uboot; protect off 0xeff80000 +$filesize; erase 0xeff80000
+$filesize; cp.b $loadaddr 0
xeff80000 $filesize; protect on 0xeff80000 +$filesize; cmp.b $loadaddr 0xeff80000
$filesize
consoledev=ttyS0
ramdiskaddr=2000000
ramdiskfile=rootfs.ext2.gz.uboot
fdtaddr=c00000
fdtfile=p2020rdb.dtb
bdev=sda1
jffs2nor=mtdblock3
norbootaddr=ef080000
norfdtaddr=ef040000
jffs2nand=mtdblock9
nandbootaddr=100000
nandfdtaddr=80000
nandimgsize=400000
nandfdtsize=80000
usb_phy_type=ulpi
vscfw_addr=ef000000
othbootargs=ramdisk_size=700000 cache-sram-size=0x10000
usbfatboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;
usb start;fatload usb 0:2 $lo
adaddr $bootfile;fatload usb 0:2 $fdtaddr $fdtfile;fatload usb 0:2 $ramdiskaddr
$ramdiskfile;bootm $loadaddr $ramdisk
addr $fdtaddr
usbext2boot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;
usb start;ext2load usb 0:4 $
loadaddr $bootfile;ext2load usb 0:4 $fdtaddr $fdtfile;ext2load usb 0:4 $ramdiskaddr
$ramdiskfile;bootm $loadaddr $ram
diskaddr $fdtaddr
norboot=setenv bootargs root=/dev/$jffs2nor rw console=$consoledev,$baudrate
rootfstype=jffs2 $othbootargs;bootm $nor
bootaddr - $norfdtaddr
nandboot=setenv bootargs root=/dev/$jffs2nand rw rootfstype=jffs2
console=$consoledev,$baudrate $othbootargs;nand rea
d 2000000 $nandbootaddr $nandimgsize;nand read 3000000 $nandfdtaddr $nandfdtsize;bootm
2000000 - 3000000;
ethact=eTSEC1
bootargs=root=/dev/ram rw console=ttyS0,115200 ramdisk_size=20000
ethaddr=00:04:9f:ef:01:01
eth1addr=00:04:9f:ef:01:02
eth2addr=00:04:9f:ef:01:03
filesize=2C60
fileaddr=C00000
netmask=255.255.252.0
ipaddr=10.232.133.185
serverip=10.232.20.140
54
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Linux version 2.6.32-rc3 ([email protected]) (gcc version 4.3.2 (GCC) ) #1
SMP Fri Nov 6 11:37:04 IST 20
09
CPU maps initialized for 1 thread per core
bootconsole [udbg0] enabled
setup_arch: bootmem
mpc85xx_rdb_setup_arch()
Found FSL PCI host bridge at 0x00000000ffe09000. Firmware bus number: 0->255
PCI host bridge /pcie@ffe09000 ranges:
MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000
IO 0x00000000ffc30000..0x00000000ffc3ffff -> 0x0000000000000000
/pcie@ffe09000: PCICSRBAR @ 0xfff00000
Found FSL PCI host bridge at 0x00000000ffe0a000. Firmware bus number: 0->255
PCI host bridge /pcie@ffe0a000 ranges:
MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000
IO 0x00000000ffc20000..0x00000000ffc2ffff -> 0x0000000000000000
/pcie@ffe0a000: PCICSRBAR @ 0xfff00000
MPC85xx RDB board from Freescale Semiconductor
arch: exit
Zone PFN ranges:
DMA 0x00000000 -> 0x00030000
Normal 0x00030000 -> 0x00030000
HighMem 0x00030000 -> 0x00040000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00040000
MMU: Allocated 136 bytes of context maps for 31 contexts
PERCPU: Embedded 7 pages/cpu @c0e7f000 s8184 r8192 d12296 u65536
pcpu-alloc: s8184 r8192 d12296 u65536 alloc=16*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: root=/dev/mtdblock3 rw console=ttyS0,115200 rootfstype=jffs2
ramdisk_size=700000 cache-sram-size
=0x10000
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1032272k/1048576k available (6212k kernel code, 15772k reserved, 256k data, 147k
bss, 236k init)
Kernel virtual memory layout:
* 0xfffe0000..0xfffff000 : fixmap
* 0xff800000..0xffc00000 : highmem PTEs
* 0xff7d8000..0xff800000 : early ioremap
* 0xf1000000..0xff7d8000 : vmalloc & ioremap
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:512
mpic: Setting up MPIC " OpenPIC " version 1.2 at ffe40000, max 2 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource: timebase mult[4000000] shift[22] registered
Console: colour dummy device 80x25
Mount-cache hash table entries: 512
mpic: requesting IPIs ...
Processor 1 found.
Brought up 2 CPUs
xor: measuring software checksum speed
8regs : 1165.000 MB/sec
8regs_prefetch: 1011.000 MB/sec
32regs : 1253.000 MB/sec
32regs_prefetch: 1075.000 MB/sec
xor: using function: 32regs (1253.000 MB/sec)
NET: Registered protocol family 16
55
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
pci 0001:02:00.0: PME# disabled
pci 0000:00:00.0: PCI bridge, secondary bus 0000:01
pci 0000:00:00.0: IO window: 0x00-0xffff
pci 0000:00:00.0: MEM window: 0xa0000000-0xbfffffff
pci 0000:00:00.0: PREFETCH window: disabled
pci 0000:00:00.0: enabling device (0106 -> 0107)
pci 0001:02:00.0: PCI bridge, secondary bus 0001:03
pci 0001:02:00.0: IO window: 0x00-0xffff
pci 0001:02:00.0: MEM window: 0xc0000000-0xdfffffff
pci 0001:02:00.0: PREFETCH window: disabled
pci 0001:02:00.0: enabling device (0106 -> 0107)
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1 153 MB/s
raid6: int32x2 247 MB/s
raid6: int32x4 354 MB/s
raid6: int32x8 287 MB/s
raid6: using algorithm int32x4 (354 MB/s)
Freescale Elo / Elo Plus DMA driver
Switching to clocksource timebase
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
fsl-elo-dma ffe0c300.dma: Probe the Freescale DMA driver for fsl,eloplus-dma controller
at 0xffe0c300...
fsl-elo-dma ffe0c300.dma: #0 (fsl,eloplus-dma-channel), irq 76
fsl-elo-dma ffe0c300.dma: #1 (fsl,eloplus-dma-channel), irq 77
fsl-elo-dma ffe0c300.dma: #2 (fsl,eloplus-dma-channel), irq 78
fsl-elo-dma ffe0c300.dma: #3 (fsl,eloplus-dma-channel), irq 79
fsl-l2ctlr ffe20000.l2-cache-controller: [base:0xfff00000, size:0x10000] configured and
loaded
fsl-elo-dma ffe21300.dma: Probe the Freescale DMA driver for fsl,eloplus-dma controller
at 0xffe21300...
fsl-elo-dma ffe21300.dma: #0 (fsl,eloplus-dma-channel), irq 20
fsl-elo-dma ffe21300.dma: #1 (fsl,eloplus-dma-channel), irq 21
fsl-elo-dma ffe21300.dma: #2 (fsl,eloplus-dma-channel), irq 22
fsl-elo-dma ffe21300.dma: #3 (fsl,eloplus-dma-channel), irq 23
audit: initializing netlink socket (disabled)
type=2000 audit(0.580:1): initialized
highmem bounce pool size: 64 pages
Installing knfsd (copyright (C) 1996 [email protected]).
Slow work thread pool: Starting up
Slow work thread pool: Ready
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
JFFS2: default compression mode: priority
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1505
alg: No test for stdrng (krng)
async_tx: api initialized (async)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Generic non-volatile memory driver v1.1
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0xffe04500 (irq = 42) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
56
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
serial8250.0: ttyS1 at MMIO 0xffe04600 (irq = 42) is a 16550A
brd: module loaded
loop: module loaded
nbd: registered device at major 43
st: Version 20081215, fixed bufsize 32768, s/g segs 256
ef000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
ef000000.nor: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Creating 5 MTD partitions on "ef000000.nor":
0x000000000000-0x000000040000 : "NOR (RO) Vitesse-7385 Firmware"
ftl_cs: FTL header not found.
0x000000040000-0x000000080000 : "NOR (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000080000-0x000000400000 : "NOR (RO) Linux Kernel Image"
ftl_cs: FTL header not found.
0x000000400000-0x000000f00000 : "NOR (RW) JFFS2 Root File System"
ftl_cs: FTL header not found.
0x000000f00000-0x000001000000 : "NOR (RO) U-Boot Image"
ftl_cs: FTL header not found.
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
RedBoot partition parsing not available
Creating 6 MTD partitions on "ffa00000.flash":
0x000000000000-0x000000100000 : "NAND (RO) U-Boot Image"
ftl_cs: FTL header not found.
0x000000100000-0x000000200000 : "NAND (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000200000-0x000000600000 : "NAND (RO) Linux Kernel Image"
ftl_cs: FTL header not found.
0x000000600000-0x000000a00000 : "NAND (RO) Compressed RFS Image"
ftl_cs: FTL header not found.
0x000000a00000-0x000001100000 : "NAND (RW) JFFS2 Root File System"
ftl_cs: FTL header not found.
0x000001100000-0x000002000000 : "NAND (RW) Writable User area"
ftl_cs: FTL header not found.
eLBC NAND device at 0xffa00000, bank 1
fsl_m25p80 spi28672.0: s25sl128b (0 Kbytes)
Creating 5 MTD partitions on "SPIFLASH0":
0x000000000000-0x000000080000 : "SPI (RO) U-Boot Image"
ftl_cs: FTL header not found.
0x000000080000-0x000000100000 : "SPI (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000100000-0x000000500000 : "SPI (RO) Linux Kernel Image"
ftl_cs: FTL header not found.
0x000000500000-0x000000900000 : "SPI (RO) Compressed RFS Image"
ftl_cs: FTL header not found.
0x000000900000-0x000001000000 : "SPI (RW) JFFS2 RFS"
ftl_cs: FTL header not found.
ffe07000.spi: Freescale eSPI Controller driver at 0xf111e000 (irq = 59)
e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2
e1000e: Copyright (c) 1999-2008 Intel Corporation.
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth0: Gianfar Ethernet Controller Version 1.4-skbr1.1.4, 00:04:9f:ef:01:01
eth0: Running with NAPI enabled
eth0: :RX BD ring size for Q[0]: 128
eth0:TX BD ring size for Q[0]: 128
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth1: Gianfar Ethernet Controller Version 1.4-skbr1.1.4, 00:04:9f:ef:01:02
eth1: Running with NAPI enabled
eth1: :RX BD ring size for Q[0]: 128
eth1:TX BD ring size for Q[0]: 128
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth2: Gianfar Ethernet Controller Version 1.4-skbr1.1.4, 00:04:9f:ef:01:03
eth2: Running with NAPI enabled
eth2: :RX BD ring size for Q[0]: 128
57
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
eth2:TX BD ring size for Q[0]: 128
Freescale PowerQUICC MII Bus: probed
Freescale PowerQUICC MII Bus: probed
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 28, io base 0xffe22000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
rtc-ds1307 0-0068: rtc core: registered ds1339 as rtc0
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: SDHCI controller on ffe2e000.sdhci [ffe2e000.sdhci] using PIO
talitos ffe30000.crypto: hwrng
talitos ffe30000.crypto: max_xor_srcs 6
alg: No test for authenc(hmac(sha1),cbc(aes)) (authenc-hmac-sha1-cbc-aes-talitos)
talitos ffe30000.crypto: authenc-hmac-sha1-cbc-aes-talitos
alg: No test for authenc(hmac(sha1),cbc(des3_ede)) (authenc-hmac-sha1-cbc-3des-talitos)
talitos ffe30000.crypto: authenc-hmac-sha1-cbc-3des-talitos
alg: No test for authenc(hmac(sha256),cbc(aes)) (authenc-hmac-sha256-cbc-aes-talitos)
talitos ffe30000.crypto: authenc-hmac-sha256-cbc-aes-talitos
alg: No test for authenc(hmac(sha256),cbc(des3_ede)) (authenc-hmac-sha256-cbc-3des-
talitos)
talitos ffe30000.crypto: authenc-hmac-sha256-cbc-3des-talitos
alg: No test for authenc(hmac(md5),cbc(aes)) (authenc-hmac-md5-cbc-aes-talitos)
talitos ffe30000.crypto: authenc-hmac-md5-cbc-aes-talitos
alg: No test for authenc(hmac(md5),cbc(des3_ede)) (authenc-hmac-md5-cbc-3des-talitos)
talitos ffe30000.crypto: authenc-hmac-md5-cbc-3des-talitos
talitos ffe30000.crypto: cbc-aes-talitos
talitos ffe30000.crypto: cbc-3des-talitos
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
rtc-ds1307 0-0068: setting system clock to 2009-05-28 16:46:22 UTC (1243529182)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
mmc0: new SD card at address e664
mmcblk0: mmc0:e664 SD02G 1.84 GiB
mmcblk0:
p1
usb 1-1: new high speed USB device using fsl-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of
xdatum (0 unchecked, 0 orphan)
and 0 of xref (0 dead, 0 orphan) found.
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing unused kernel memory: 236k init
Mounting /proc and /sys
58
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Setting the hostname to P2020RDB
Mounting filesystems
scsi 0:0:0:0: Direct-Access CBM Flash Disk 5.00 PQ: 0 ANSI: 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 7805952 512-byte logical blocks: (3.99 GB/3.72 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
Starting syslogd and klogd
Running sysctl
Setting up networking on loopback device:
txbd[0]: addr, vaddr = 0xfff00000,0xf1040000
rxbd[0]: addr,vaddr=0xfff00400,0xf1040400
ADDRCONF(NETDEV_UP): eth0: link is not ready
Adding static route for default gateway to 192.168.0.1:
Setting nameserver to 192.168.0.1 in /etc/resolv.conf:
txbd[0]: addr, vaddr = 0xfff00c00,0xf1040c00
rxbd[0]: addr,vaddr=0xfff01000,0xf1041000
ADDRCONF(NETDEV_UP): eth1: link is not ready
Adding static route for default gateway to 192.168.1.1:
Setting nameserver to 192.168.1.1 in /etc/resolv.conf:
txbd[0]: addr, vaddr = 0xfff01800,0xf1041800
rxbd[0]: addr,vaddr=0xfff01c00,0xf1041c00
ADDRCONF(NETDEV_UP): eth2: link is not ready
Adding static route for default gateway to 192.168.2.1:
Starting inetd:
Generating keys for the dropbear ssh server:
Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Public key portion is:
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAAAgwCQfQkd/uTU/uqneKGZ4cTQ2ptn8ztDl429dAWKh7DEppE5NTroupxKUbXBj
IlO81CtvhMU7wiKHFoyu
QpTpEGQ/IFCCmmkp1dIlO7GIFiiU+DVgvoTIxKSbXRZPQFeP8Hd0OtekjApHWv1472wa/r0VIiegAm81DV4GNkaon
lBDG2t root@P2020RDB
Fingerprint: md5 0e:25:30:36:57:6e:62:b4:f3:8e:ff:d6
P2020RDB login:
59
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
The default password for the root account is: root
please change this password using the 'passwd' command
and then edit this message (/etc/issue) to remove this message
processor : 1
cpu : e500v2
clock : 1000.000000MHz
revision : 4.0 (pvr 8021 1040)
bogomips : 125.00
60
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Base address:0xa000
[root@P2020RDB /root]#
[root@P2020RDB /root]#
[root@P2020RDB /root]# ifconfig eth0 10.232.133.185 netmask 255.255.252.0
[root@P2020RDB /root]# ping 10.232.134.216
PING 10.232.134.216 (10.232.134.216): 56 data bytes
64 bytes from 10.232.134.216: seq=0 ttl=128 time=49.837 ms
64 bytes from 10.232.134.216: seq=1 ttl=128 time=0.354 ms
64 bytes from 10.232.134.216: seq=2 ttl=128 time=0.374 ms
64 bytes from 10.232.134.216: seq=3 ttl=128 time=0.324 ms
64 bytes from 10.232.134.216: seq=4 ttl=128 time=0.273 ms
64 bytes from 10.232.134.216: seq=5 ttl=128 time=0.350 ms
64 bytes from 10.232.134.216: seq=6 ttl=128 time=0.314 ms
61
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
6.1.6 NFS boot log
U-Boot 2009.11-rc1-00004-g37286d6 (Oct 29 2009 - 17:58:15)
In: serial
Out: serial
Err: serial
Net: uploading VSC7385 microcode from ef000000
eTSEC1: No support for PHY id ffffffff; assuming generic
eTSEC1, eTSEC2, eTSEC3
=>
=>
=> setenv ethact eTSEC3
=> print bootargs
bootargs=root=/dev/nfs rw nfsroot=10.232.134.140:/home/pratap/ltib.git/rootfs
ip=10.232.133.187:10.232.134.140
:10.232.135.254:255.255.252.0:P2020rdb:eth2:off console=ttyS0,115200 cache-sram-
size=0x10000
=> tftp 0x1000000 P2020_Beta/rc3/uImage_smp_new
Speed: 1000, full duplex
Using eTSEC3 device
TFTP from server 10.232.134.140; our IP address is 10.232.133.187
Filename 'P2020_Beta/rc3/uImage_smp_new'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#################################################################
#########################
done
Bytes transferred = 3225056 (3135e0 hex)
=> tftp 0xc00000 P2020_Beta/rc3/p2020rdb.dtb
Speed: 1000, full duplex
Using eTSEC3 device
TFTP from server 10.232.134.140; our IP address is 10.232.133.187
Filename 'P2020_Beta/rc3/p2020rdb.dtb'.
Load address: 0xc00000
Loading: #
done
62
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Bytes transferred = 11360 (2c60 hex)
=> bootm 0x1000000 - 0xc00000
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.32-rc3
Created: 2009-11-04 13:57:29 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 3224992 Bytes = 3.1 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 00c00000
Booting using the fdt blob at 0xc00000
Uncompressing Kernel Image ... OK
Using P2020 RDB machine description
Memory CAM mapping: 256/256/256 Mb, residual: 256Mb
Linux version 2.6.32-rc3 ([email protected]) (gcc version 4.3.2 (GCC) ) #1
SMP Wed Nov 4 19:27:16
IST 2009
CPU maps initialized for 1 thread per core
bootconsole [udbg0] enabled
setup_arch: bootmem
mpc85xx_rdb_setup_arch()
Found FSL PCI host bridge at 0x00000000ffe09000. Firmware bus number: 0->255
PCI host bridge /pcie@ffe09000 ranges:
MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000
IO 0x00000000ffc30000..0x00000000ffc3ffff -> 0x0000000000000000
/pcie@ffe09000: PCICSRBAR @ 0xfff00000
Found FSL PCI host bridge at 0x00000000ffe0a000. Firmware bus number: 0->255
PCI host bridge /pcie@ffe0a000 ranges:
MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000
IO 0x00000000ffc20000..0x00000000ffc2ffff -> 0x0000000000000000
/pcie@ffe0a000: PCICSRBAR @ 0xfff00000
MPC85xx RDB board from Freescale Semiconductor
arch: exit
Zone PFN ranges:
DMA 0x00000000 -> 0x00030000
Normal 0x00030000 -> 0x00030000
HighMem 0x00030000 -> 0x00040000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00040000
MMU: Allocated 136 bytes of context maps for 31 contexts
PERCPU: Embedded 7 pages/cpu @c1409000 s8184 r8192 d12296 u65536
pcpu-alloc: s8184 r8192 d12296 u65536 alloc=16*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: root=/dev/nfs rw nfsroot=10.232.134.140:/home/pratap/ltib.git/rootfs
ip=10.232.133.187:10
.232.134.140:10.232.135.254:255.255.252.0:P2020rdb:eth2:off console=ttyS0,115200 cache-
sram-size=0x10000
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1032400k/1048576k available (6208k kernel code, 15772k reserved, 260k data, 147k
bss, 236k init)
Kernel virtual memory layout:
* 0xfffe0000..0xfffff000 : fixmap
* 0xff800000..0xffc00000 : highmem PTEs
* 0xff7d8000..0xff800000 : early ioremap
* 0xf1000000..0xff7d8000 : vmalloc & ioremap
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:512
mpic: Setting up MPIC " OpenPIC " version 1.2 at ffe40000, max 2 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource: timebase mult[4000000] shift[22] registered
Console: colour dummy device 80x25
Mount-cache hash table entries: 512
63
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
mpic: requesting IPIs ...
Processor 1 found.
Brought up 2 CPUs
xor: measuring software checksum speed
8regs : 1166.000 MB/sec
8regs_prefetch: 1011.000 MB/sec
32regs : 1253.000 MB/sec
32regs_prefetch: 1112.000 MB/sec
xor: using function: 32regs (1253.000 MB/sec)
NET: Registered protocol family 16
64
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Slow work thread pool: Ready
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
JFFS2: default compression mode: priority
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1505
alg: No test for stdrng (krng)
async_tx: api initialized (async)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Generic non-volatile memory driver v1.1
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0xffe04500 (irq = 42) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
serial8250.0: ttyS1 at MMIO 0xffe04600 (irq = 42) is a 16550A
brd: module loaded
loop: module loaded
nbd: registered device at major 43
st: Version 20081215, fixed bufsize 32768, s/g segs 256
ef000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
ef000000.nor: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Creating 5 MTD partitions on "ef000000.nor":
0x000000000000-0x000000040000 : "NOR (RO) Vitesse-7385 Firmware"
ftl_cs: FTL header not found.
0x000000040000-0x000000080000 : "NOR (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000080000-0x000000400000 : "NOR (RO) Linux Kernel Image"
ftl_cs: FTL header not found.
0x000000400000-0x000000f00000 : "NOR (RW) JFFS2 Root File System"
ftl_cs: FTL header not found.
0x000000f00000-0x000001000000 : "NOR (RO) U-Boot Image"
ftl_cs: FTL header not found.
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
RedBoot partition parsing not available
Creating 6 MTD partitions on "ffa00000.flash":
0x000000000000-0x000000100000 : "NAND (RO) U-Boot Image"
ftl_cs: FTL header not found.
0x000000100000-0x000000200000 : "NAND (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000200000-0x000000600000 : "NAND (RO) Linux Kernel Image"
ftl_cs: FTL header not found.
0x000000600000-0x000000a00000 : "NAND (RO) Compressed RFS Image"
ftl_cs: FTL header not found.
0x000000a00000-0x000001100000 : "NAND (RW) JFFS2 Root File System"
ftl_cs: FTL header not found.
0x000001100000-0x000002000000 : "NAND (RW) Writable User area"
ftl_cs: FTL header not found.
eLBC NAND device at 0xffa00000, bank 1
fsl_m25p80 spi28672.0: s25sl128b (0 Kbytes)
Creating 5 MTD partitions on "SPIFLASH0":
0x000000000000-0x000000080000 : "SPI (RO) U-Boot Image"
ftl_cs: FTL header not found.
0x000000080000-0x000000100000 : "SPI (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000100000-0x000000500000 : "SPI (RO) Linux Kernel Image"
ftl_cs: FTL header not found.
0x000000500000-0x000000900000 : "SPI (RO) Compressed RFS Image"
ftl_cs: FTL header not found.
0x000000900000-0x000001000000 : "SPI (RW) JFFS2 RFS"
ftl_cs: FTL header not found.
ffe07000.spi: Freescale eSPI Controller driver at 0xf111e000 (irq = 59)
e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2
e1000e: Copyright (c) 1999-2008 Intel Corporation.
65
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth0: Gianfar Ethernet Controller Version 1.4-skbr1.1.4, 00:04:9f:ef:01:01
eth0: Running with NAPI enabled
eth0: :RX BD ring size for Q[0]: 128
eth0:TX BD ring size for Q[0]: 128
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth1: Gianfar Ethernet Controller Version 1.4-skbr1.1.4, 00:04:9f:ef:01:02
eth1: Running with NAPI enabled
eth1: :RX BD ring size for Q[0]: 128
eth1:TX BD ring size for Q[0]: 128
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth2: Gianfar Ethernet Controller Version 1.4-skbr1.1.4, 00:04:9f:ef:01:03
eth2: Running with NAPI enabled
eth2: :RX BD ring size for Q[0]: 128
eth2:TX BD ring size for Q[0]: 128
Freescale PowerQUICC MII Bus: probed
Freescale PowerQUICC MII Bus: probed
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 28, io base 0xffe22000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
rtc-ds1307 0-0068: rtc core: registered ds1339 as rtc0
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: SDHCI controller on ffe2e000.sdhci [ffe2e000.sdhci] using PIO
talitos ffe30000.crypto: hwrng
talitos ffe30000.crypto: max_xor_srcs 6
alg: No test for authenc(hmac(sha1),cbc(aes)) (authenc-hmac-sha1-cbc-aes-talitos)
talitos ffe30000.crypto: authenc-hmac-sha1-cbc-aes-talitos
alg: No test for authenc(hmac(sha1),cbc(des3_ede)) (authenc-hmac-sha1-cbc-3des-talitos)
talitos ffe30000.crypto: authenc-hmac-sha1-cbc-3des-talitos
alg: No test for authenc(hmac(sha256),cbc(aes)) (authenc-hmac-sha256-cbc-aes-talitos)
talitos ffe30000.crypto: authenc-hmac-sha256-cbc-aes-talitos
alg: No test for authenc(hmac(sha256),cbc(des3_ede)) (authenc-hmac-sha256-cbc-3des-
talitos)
talitos ffe30000.crypto: authenc-hmac-sha256-cbc-3des-talitos
alg: No test for authenc(hmac(md5),cbc(aes)) (authenc-hmac-md5-cbc-aes-talitos)
talitos ffe30000.crypto: authenc-hmac-md5-cbc-aes-talitos
alg: No test for authenc(hmac(md5),cbc(des3_ede)) (authenc-hmac-md5-cbc-3des-talitos)
talitos ffe30000.crypto: authenc-hmac-md5-cbc-3des-talitos
talitos ffe30000.crypto: cbc-aes-talitos
talitos ffe30000.crypto: cbc-3des-talitos
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
rtc-ds1307 0-0068: setting system clock to 2009-05-29 09:54:04 UTC (1243590844)
mmc0: new SD card at address 8fe4
mmcblk0: mmc0:8fe4 SD02G 1.84 GiB
66
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
mmcblk0: p1
usb 1-1: new high speed USB device using fsl-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
txbd[0]: addr, vaddr = 0xfff00000,0xf1040000
rxbd[0]: addr,vaddr=0xfff00400,0xf1040400
ADDRCONF(NETDEV_UP): eth2: link is not ready
IP-Config: Complete:
device=eth2, addr=10.232.133.187, mask=255.255.252.0, gw=10.232.135.254,
host=P2020rdb, domain=, nis-domain=(none),
bootserver=10.232.134.140, rootserver=10.232.134.140, rootpath=
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
Looking up port of RPC 100003/2 on 10.232.134.140
scsi 0:0:0:0: Direct-Access CBM Flash Disk 5.00 PQ: 0 ANSI: 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 7883776 512-byte logical blocks: (4.03 GB/3.75 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda4
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
PHY: mdio@ffe24520:01 - Link is Up - 1000/Full
ADDRCONF(NETDEV_CHANGE): e h2: link becomes ready
Looking up port of RPC 100005/1 on 10.232.134.140
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing unused kernel memory: 236k init
Mounting /proc and /sys
Setting the hostname to P2020RDB
Mounting filesystems
mount: sysfs already mounted or /sys busy
mount: according to mtab, /sys is already mounted on /sys
Starting syslogd and klogd
Running sysctl
Setting up networking on loopback device:
Setting up networking on eth0:
txbd[0]: addr, vaddr = 0xfff00c00,0xf1040c00
rxbd[0]: addr,vaddr=0xfff01000,0xf1041000
ADDRCONF(NETDEV_UP): eth0: link is not ready
Adding static route for default gateway to 192.168.0.1:
Setting nameserver to 192.168.0.1 in /etc/resolv.conf:
Setting up networking otxbd[0]: addr, vaddr = 0xfff01800,0xf1041800
n eth1:
rxbd[0]: addr,vaddr=0xfff01c00,0xf1041c00
ADDRCONF(NETDEV_UP): eth1: link is not ready
Adding static route for default gateway to 192.168.1.1:
Setting nameserver to 192.168.1.1 in /etc/resolv.conf:
Setting up networking on eth2:
Adding static route for default gateway to 10.232.135.254:
SIOCADDRT: File exists
Starting inetd:
Starting the port mapper:
Generating keys for the dropbear ssh server:
Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Public key portion is:
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAAAgwCZU9OXTG0ygAzJc/7mZ7nF+9COLuyVoHzM3rbyoBXMTARq2YZ8GX3DXzGDg
bp1OmJXsDTOUI
x7bdjU4tuHh/FVYG089yiHLE9Qm1ZIDX5uDqwFooOgsSp7IFAD1VBXYjNqHBL1oLxNg2kkWGjmQwhtw8KxWH1a5Xd
V/1s/wUfzMpYd root@P2
020RDB
Fingerprint: md5 41:00:f0:05:d5:f3:33:fc:59:bc:e2:cb:98:99:0a:8c
Starting the dropbear ssh server:
Starting the boa webserver:
67
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
Please set the system time using
date <mmddhhmnyyyy>
/sbin/hwclock -w
PHY: 0:01 - Link is Up - 1000/Full
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
68
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
6.2 Code warrior
To use CW 8.8 for P2020RDB, refer to README in help\Software\CW folder
69
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
- See the following getting selected.
Processor Family -> QorIQ
Target Processor -> P2020
Connection -> ethernet TAP.
Target Initialization file ->
P10xx-P20xxRDB_P2020_init_sram_flash.cfg
70
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
- Click on Flash Configuration.
71
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
For Flashing VSC2BIN
- Select Erase/Blank Check. Select the FF000000 to FF01FFFF sectors.
After erasing is complete, run a Blank Check on the selected sectors to make
sure that erase operation was successful.
72
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
- Go to Program/Verify.
Browse and select the binary file (vsc2bin) which needs to be
programmed. Select Apply Address Offset as FF000000 .
Click on Program.
After the programming is complete, click on Verify to confirm that the
programming was successful.
73
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
For Flashing NOR u-boot.bin
- Select Erase/Blank Check. Select the FFF60000 to FFFFFFFF sectors.
After erasing is complete, run a Blank Check on the selected sectors to make
sure that erase operation was successful.
74
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
- Go to Program/Verify.
Browse and select the binary file (u-boot.bin) which needs to be
programmed. select Apply Address Offset as FFF80000 .
Click on Program.
After the programming is complete, click on Verify to confirm that the
programming was successful..
75
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
6.2.2 Flashing NAND flash using CW IDE
- open CW8.8 IDE.
- Select the Tools tab-> Flash Programmer
- Select Target Configuration from the left pane.
- Click Load Settings and
Select P10xx-P20xxRDB_P2020_NAND_FLASH.xml.
76
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
- See the following getting selected.
Processor Family -> QorIQ
Target Processor -> P2020
Connection -> ethernet TAP.
Target Initialization file ->
P10xx-P20xxRDB_P2020_init_sram_flash.cfg
Edit the connection type “USB Tap” or “Ethernet Tap” to whichever is being
used.
77
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
- Select Erase/Blank Check.
Select the sectors to be erased. Click on Erase. Verify the erase by
doing a Blank Check on the same addresses.
78
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
- Go to Program/Verify.
Browse and select the proper binary file which needs to be flashed
on the NAND Flash. Specify the appropriate address offset.
Click on Program. After programming completes click on Verify
to confirm whether Flash programming was successful.
79
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0
80
Freescale Semiconductor, Inc. P2020RDB BSP User Manual, Rev 2.0