Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 1 | Overview |
| 2 | ========= |
| 3 | The P1010RDB is a Freescale reference design board that hosts the P1010 SoC. |
| 4 | |
| 5 | The P1010 is a cost-effective, low-power, highly integrated host processor |
| 6 | based on a Power Architecture e500v2 core (maximum core frequency 800/1000 MHz), |
| 7 | that addresses the requirements of several routing, gateways, storage, consumer, |
| 8 | and industrial applications. Applications of interest include the main CPUs and |
| 9 | I/O processors in network attached storage (NAS), the voice over IP (VoIP) |
| 10 | router/gateway, and wireless LAN (WLAN) and industrial controllers. |
| 11 | |
| 12 | The P1010RDB board features are as follows: |
| 13 | Memory subsystem: |
| 14 | - 1Gbyte unbuffered DDR3 SDRAM discrete devices (32-bit bus) |
| 15 | - 32 Mbyte NOR flash single-chip memory |
| 16 | - 32 Mbyte NAND flash memory |
| 17 | - 256 Kbit M24256 I2C EEPROM |
| 18 | - 16 Mbyte SPI memory |
| 19 | - I2C Board EEPROM 128x8 bit memory |
| 20 | - SD/MMC connector to interface with the SD memory card |
| 21 | Interfaces: |
| 22 | - PCIe: |
| 23 | - Lane0: x1 mini-PCIe slot |
| 24 | - Lane1: x1 PCIe standard slot |
| 25 | - SATA: |
| 26 | - 1 internal SATA connector to 2.5” 160G SATA2 HDD |
| 27 | - 1 eSATA connector to rear panel |
| 28 | - 10/100/1000 BaseT Ethernet ports: |
| 29 | - eTSEC1, RGMII: one 10/100/1000 port using Vitesse VSC8641XKO |
| 30 | - eTSEC2, SGMII: one 10/100/1000 port using Vitesse VSC8221 |
| 31 | - eTSEC3, SGMII: one 10/100/1000 port using Vitesse VSC8221 |
| 32 | - USB 2.0 port: |
| 33 | - x1 USB2.0 port via an external ULPI PHY to micro-AB connector |
| 34 | - x1 USB2.0 port via an internal UTMI PHY to micro-AB connector |
| 35 | - FlexCAN ports: |
| 36 | - 2 DB-9 female connectors for FlexCAN bus(revision 2.0B) |
| 37 | interface; |
| 38 | - DUART interface: |
| 39 | - DUART interface: supports two UARTs up to 115200 bps for |
| 40 | console display |
| 41 | - RJ45 connectors are used for these 2 UART ports. |
| 42 | - TDM |
| 43 | - 2 FXS ports connected via an external SLIC to the TDM interface. |
| 44 | SLIC is controllled via SPI. |
| 45 | - 1 FXO port connected via a relay to FXS for switchover to POTS |
| 46 | Board connectors: |
| 47 | - Mini-ITX power supply connector |
| 48 | - JTAG/COP for debugging |
| 49 | IEEE Std. 1588 signals for test and measurement |
| 50 | Real-time clock on I2C bus |
| 51 | POR |
| 52 | - support critical POR setting changed via switch on board |
| 53 | PCB |
| 54 | - 6-layer routing (4-layer signals, 2-layer power and ground) |
| 55 | |
| 56 | |
| 57 | Physical Memory Map on P1010RDB |
| 58 | =============================== |
| 59 | Address Start Address End Memory type Attributes |
| 60 | 0x0000_0000 0x3fff_ffff DDR 1G Cacheable |
| 61 | 0xa000_0000 0xdfff_ffff PCI Express Mem 1G non-cacheable |
| 62 | 0xee00_0000 0xefff_ffff NOR Flash 32M non-cacheable |
| 63 | 0xffc2_0000 0xffc5_ffff PCI IO range 256K non-cacheable |
| 64 | 0xffa0_0000 0xffaf_ffff NAND Flash 1M cacheable |
| 65 | 0xffb0_0000 0xffbf_ffff Board CPLD 1M non-cacheable |
| 66 | 0xffd0_0000 0xffd0_3fff L1 for Stack 16K Cacheable TLB0 |
| 67 | 0xffe0_0000 0xffef_ffff CCSR 1M non-cacheable |
| 68 | |
| 69 | |
| 70 | Serial Port Configuration on P1010RDB |
| 71 | ===================================== |
| 72 | Configure the serial port of the attached computer with the following values: |
| 73 | -Data rate: 115200 bps |
| 74 | -Number of data bits: 8 |
| 75 | -Parity: None |
| 76 | -Number of Stop bits: 1 |
| 77 | -Flow Control: Hardware/None |
| 78 | |
| 79 | |
| 80 | Settings of DIP-switch |
| 81 | ====================== |
| 82 | SW4[1:4]= 1111 and SW6[4]=0 for boot from 16bit NOR flash |
| 83 | SW4[1:4]= 1000 and SW6[4]=1 for boot from 8bit NAND flash |
| 84 | SW4[1:4]= 0110 and SW6[4]=0 for boot from SPI flash |
| 85 | Note: 1 stands for 'on', 0 stands for 'off' |
| 86 | |
| 87 | |
| 88 | Setting of hwconfig |
| 89 | =================== |
| 90 | If FlexCAN or TDM is needed, please set "fsl_p1010mux:tdm_can=can" or |
Michal Simek | 21f753c | 2020-06-05 11:45:12 +0200 | [diff] [blame] | 91 | "fsl_p1010mux:tdm_can=tdm" explicitly in u-boot prompt as below for example: |
Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 92 | setenv hwconfig "fsl_p1010mux:tdm_can=tdm;usb1:dr_mode=host,phy_type=utmi" |
| 93 | By default, don't set fsl_p1010mux:tdm_can, in this case, spi chip selection |
| 94 | is set to spi-flash instead of to SLIC/TDM/DAC and tdm_can_sel is set to TDM |
| 95 | instead of to CAN/UART1. |
| 96 | |
| 97 | |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 98 | Build and burn U-Boot to NOR flash |
Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 99 | ================================== |
| 100 | 1. Build u-boot.bin image |
Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 101 | export CROSS_COMPILE=/your_path/powerpc-linux-gnu- |
| 102 | make P1010RDB_NOR |
| 103 | |
| 104 | 2. Burn u-boot.bin into NOR flash |
| 105 | => tftp $loadaddr $uboot |
Prabhakar Kushwaha | f203656 | 2014-01-14 11:34:26 +0530 | [diff] [blame] | 106 | => protect off eff40000 +$filesize |
| 107 | => erase eff40000 +$filesize |
| 108 | => cp.b $loadaddr eff40000 $filesize |
Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 109 | |
| 110 | 3. Check SW4[1:4]= 1111 and SW6[4]=0, then power on. |
| 111 | |
| 112 | |
| 113 | Alternate NOR bank |
| 114 | ================== |
| 115 | 1. Burn u-boot.bin into alternate NOR bank |
| 116 | => tftp $loadaddr $uboot |
Prabhakar Kushwaha | f203656 | 2014-01-14 11:34:26 +0530 | [diff] [blame] | 117 | => protect off eef40000 +$filesize |
| 118 | => erase eef40000 +$filesize |
| 119 | => cp.b $loadaddr eef40000 $filesize |
Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 120 | |
| 121 | 2. Switch to alternate NOR bank |
| 122 | => mw.b ffb00009 1 |
| 123 | => reset |
| 124 | or set SW1[8]= ON |
| 125 | |
| 126 | SW1[8]= OFF: Upper bank used for booting start |
| 127 | SW1[8]= ON: Lower bank used for booting start |
| 128 | CPLD NOR bank selection register address 0xFFB00009 Bit[0]: |
| 129 | 0 - boot from upper 4 sectors |
| 130 | 1 - boot from lower 4 sectors |
| 131 | |
| 132 | |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 133 | Build and burn U-Boot to NAND flash |
Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 134 | =================================== |
| 135 | 1. Build u-boot.bin image |
| 136 | export ARCH=powerpc |
| 137 | export CROSS_COMPILE=/your_path/powerpc-linux-gnu- |
| 138 | make P1010RDB_NAND |
| 139 | |
| 140 | 2. Burn u-boot-nand.bin into NAND flash |
| 141 | => tftp $loadaddr $uboot-nand |
| 142 | => nand erase 0 $filesize |
| 143 | => nand write $loadaddr 0 $filesize |
| 144 | |
| 145 | 3. Check SW4[1:4]= 1000 and SW6[4]=1, then power on. |
| 146 | |
| 147 | |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 148 | Build and burn U-Boot to SPI flash |
Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 149 | ================================== |
| 150 | 1. Build u-boot-spi.bin image |
| 151 | make P1010RDB_SPIFLASH_config; make |
| 152 | Boot up kernel with rootfs.ext2.gz.uboot.p1010rdb |
| 153 | Download u-boot.bin to linux and you can find some config files |
| 154 | under /usr/share such as config_xx.dat. Do below command: |
| 155 | boot_format config_ddr3_1gb_p1010rdb_800M.dat u-boot.bin -spi \ |
| 156 | u-boot-spi.bin |
| 157 | to generate u-boot-spi.bin. |
| 158 | |
| 159 | 2. Burn u-boot-spi.bin into SPI flash |
| 160 | => tftp $loadaddr $uboot-spi |
| 161 | => sf erase 0 100000 |
| 162 | => sf write $loadaddr 0 $filesize |
| 163 | |
| 164 | 3. Check SW4[1:4]= 0110 and SW6[4]=0, then power on. |
| 165 | |
| 166 | |
Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 167 | CPLD POR setting registers |
| 168 | ========================== |
| 169 | 1. Set POR switch selection register (addr 0xFFB00011) to 0. |
| 170 | 2. Write CPLD POR registers (BCSR0~BCSR3, addr 0xFFB00014~0xFFB00017) with |
| 171 | proper values. |
| 172 | If change boot ROM location to NOR or NAND flash, need write the IFC_CS0 |
| 173 | switch command by I2C. |
| 174 | 3. Send reset command. |
| 175 | After reset, the new POR setting will be implemented. |
| 176 | |
| 177 | Two examples are given in below: |
| 178 | Switch from NOR to NAND boot with default frequency: |
| 179 | => i2c dev 0 |
| 180 | => i2c mw 18 1 f9 |
| 181 | => i2c mw 18 3 f0 |
| 182 | => mw.b ffb00011 0 |
| 183 | => mw.b ffb00017 1 |
| 184 | => reset |
| 185 | Switch from NAND to NOR boot with Core/CCB/DDR (800/400/667 MHz): |
| 186 | => i2c dev 0 |
| 187 | => i2c mw 18 1 f1 |
| 188 | => i2c mw 18 3 f0 |
| 189 | => mw.b ffb00011 0 |
| 190 | => mw.b ffb00014 2 |
| 191 | => mw.b ffb00015 5 |
| 192 | => mw.b ffb00016 3 |
| 193 | => mw.b ffb00017 f |
| 194 | => reset |
| 195 | |
| 196 | |
Shengzhou Liu | c447f43 | 2012-05-03 16:51:10 +0000 | [diff] [blame] | 197 | Boot Linux from network using TFTP on P1010RDB |
| 198 | ============================================== |
| 199 | Place uImage, p1010rdb.dtb and rootfs files in the TFTP disk area. |
| 200 | => tftp 1000000 uImage |
| 201 | => tftp 2000000 p1010rdb.dtb |
| 202 | => tftp 3000000 rootfs.ext2.gz.uboot.p1010rdb |
| 203 | => bootm 1000000 3000000 2000000 |
| 204 | |
| 205 | |
Shengzhou Liu | d20e7fe | 2013-10-11 23:02:38 +0800 | [diff] [blame] | 206 | For more details, please refer to P1010RDB User Guide and access website |
| 207 | www.freescale.com |