Mingkai Hu | f354b53 | 2011-07-07 12:29:15 +0800 | [diff] [blame] | 1 | Overview |
| 2 | ========= |
| 3 | The P2041 Processor combines four Power Architecture processor cores |
| 4 | with high-performance datapath acceleration architecture(DPAA), CoreNet |
| 5 | fabric infrastructure, as well as network and peripheral bus interfaces |
| 6 | required for networking, telecom/datacom, wireless infrastructure, and |
| 7 | military/aerospace applications. |
| 8 | |
| 9 | P2041RDB board is a quad core platform supporting the P2041 processor |
| 10 | of QorIQ DPAA series. |
| 11 | |
| 12 | Boot from NOR flash |
| 13 | =================== |
| 14 | 1. Build image |
| 15 | make P2041RDB_config |
| 16 | make all |
| 17 | |
| 18 | 2. Program image |
| 19 | => tftp 1000000 u-boot.bin |
| 20 | => protect off all |
Prabhakar Kushwaha | f203656 | 2014-01-14 11:34:26 +0530 | [diff] [blame] | 21 | => erase eff40000 efffffff |
| 22 | => cp.b 1000000 eff40000 c0000 |
Mingkai Hu | f354b53 | 2011-07-07 12:29:15 +0800 | [diff] [blame] | 23 | |
| 24 | 3. Program RCW |
| 25 | => tftp 1000000 rcw.bin |
| 26 | => protect off all |
| 27 | => erase e8000000 e801ffff |
| 28 | => cp.b 1000000 e8000000 50 |
| 29 | |
| 30 | 4. Program FMAN Firmware ucode |
| 31 | => tftp 1000000 ucode.bin |
| 32 | => protect off all |
Prabhakar Kushwaha | f203656 | 2014-01-14 11:34:26 +0530 | [diff] [blame] | 33 | => erase eff00000 eff3ffff |
| 34 | => cp.b 1000000 eff00000 2000 |
Mingkai Hu | f354b53 | 2011-07-07 12:29:15 +0800 | [diff] [blame] | 35 | |
| 36 | 5. Change DIP-switch |
| 37 | SW1[1-5] = 10110 |
| 38 | Note: 1 stands for 'on', 0 stands for 'off' |
| 39 | |
| 40 | Boot from SDCard |
| 41 | =================== |
| 42 | 1. Build image |
| 43 | make P2041RDB_SDCARD_config |
| 44 | make all |
| 45 | |
| 46 | 2. Generate PBL imge |
| 47 | Use PE tool to produce a image used to be programed to |
| 48 | SDCard which contains RCW and U-Boot image. |
| 49 | |
| 50 | 3. Program the PBL image to SDCard |
| 51 | => tftp 1000000 pbl_sd.bin |
| 52 | => mmcinfo |
Prabhakar Kushwaha | f203656 | 2014-01-14 11:34:26 +0530 | [diff] [blame] | 53 | => mmc write 1000000 8 672 |
Mingkai Hu | f354b53 | 2011-07-07 12:29:15 +0800 | [diff] [blame] | 54 | |
| 55 | 4. Program FMAN Firmware ucode |
| 56 | => tftp 1000000 ucode.bin |
Prabhakar Kushwaha | f203656 | 2014-01-14 11:34:26 +0530 | [diff] [blame] | 57 | => mmc write 1000000 690 10 |
Mingkai Hu | f354b53 | 2011-07-07 12:29:15 +0800 | [diff] [blame] | 58 | |
| 59 | 5. Change DIP-switch |
| 60 | SW1[1-5] = 01100 |
| 61 | Note: 1 stands for 'on', 0 stands for 'off' |
| 62 | |
| 63 | Boot from SPI flash |
| 64 | =================== |
| 65 | 1. Build image |
| 66 | make P2041RDB_SPIFLASH_config |
| 67 | make all |
| 68 | |
| 69 | 2. Generate PBL imge |
| 70 | Use PE tool to produce a image used to be programed to |
| 71 | SPI flash which contains RCW and U-Boot image. |
| 72 | |
| 73 | 3. Program the PBL image to SPI flash |
| 74 | => tftp 1000000 pbl_spi.bin |
| 75 | => spi probe 0 |
| 76 | => sf erase 0 100000 |
| 77 | => sf write 1000000 0 $filesize |
| 78 | |
| 79 | 4. Program FMAN Firmware ucode |
| 80 | => tftp 1000000 ucode.bin |
| 81 | => sf erase 110000 10000 |
| 82 | => sf write 1000000 110000 $filesize |
| 83 | |
| 84 | 5. Change DIP-switch |
| 85 | SW1[1-5] = 10100 |
| 86 | Note: 1 stands for 'on', 0 stands for 'off' |
| 87 | |
Hou Zhiqiang | 85010c5 | 2019-08-20 09:35:30 +0000 | [diff] [blame^] | 88 | Device tree support and how to enable it for different configs |
| 89 | -------------------------------------------------------------- |
| 90 | Device tree support is available for p2041rdb for below mentioned boot, |
| 91 | 1. NOR Boot |
| 92 | 2. NAND Boot |
| 93 | 3. SD Boot |
| 94 | 4. SPIFLASH Boot |
| 95 | |
| 96 | To enable device tree support for other boot, below configs need to be |
| 97 | enabled in relative defconfig file, |
| 98 | 1. CONFIG_DEFAULT_DEVICE_TREE="p2041rdb" (Change default device tree name if required) |
| 99 | 2. CONFIG_OF_CONTROL |
| 100 | 3. CONFIG_MPC85XX_HAVE_RESET_VECTOR if reset vector is located at |
| 101 | CONFIG_RESET_VECTOR_ADDRESS - 0xffc |
| 102 | |
| 103 | If device tree support is enabled in defconfig, use 'u-boot-with-dtb.bin' |
| 104 | instead of u-boot.bin for all boot. |
| 105 | |
Mingkai Hu | f354b53 | 2011-07-07 12:29:15 +0800 | [diff] [blame] | 106 | CPLD command |
| 107 | ============ |
| 108 | The CPLD is used to control the power sequence and some serdes lane |
| 109 | mux function. |
| 110 | |
| 111 | cpld reset - hard reset to default bank |
| 112 | cpld reset altbank - reset to alternate bank |
| 113 | cpld lane_mux <lane> <mux_value> - set multiplexed lane pin |
| 114 | lane 6: 0 -> slot1 (Default) |
| 115 | 1 -> SGMII |
| 116 | lane a: 0 -> slot2 (Default) |
| 117 | 1 -> AURORA |
| 118 | lane c: 0 -> slot2 (Default) |
| 119 | 1 -> SATA0 |
| 120 | lane d: 0 -> slot2 (Default) |
| 121 | 1 -> SATA1 |
| 122 | |
| 123 | Using the Device Tree Source File |
| 124 | ================================= |
| 125 | To create the DTB (Device Tree Binary) image file, use a command |
| 126 | similar to this: |
| 127 | dtc -O dtb -b 0 -p 1024 p2041rdb.dts > p2041rdb.dtb |
| 128 | |
| 129 | Or use the following command: |
| 130 | {linux-2.6}/make p2041rdb.dtb ARCH=powerpc |
| 131 | |
| 132 | then the dtb file will be generated under the following directory: |
| 133 | {linux-2.6}/arch/powerpc/boot/p2041rdb.dtb |
| 134 | |
| 135 | Booting Linux |
| 136 | ============= |
| 137 | Place a linux uImage in the TFTP disk area. |
| 138 | tftp 1000000 uImage |
| 139 | tftp 2000000 rootfs.ext2.gz.uboot |
| 140 | tftp 3000000 p2041rdb.dtb |
| 141 | bootm 1000000 2000000 3000000 |