1702e6014SWolfgang DenkOverview 2702e6014SWolfgang Denk========= 3702e6014SWolfgang DenkThe P2041 Processor combines four Power Architecture processor cores 4702e6014SWolfgang Denkwith high-performance datapath acceleration architecture(DPAA), CoreNet 5702e6014SWolfgang Denkfabric infrastructure, as well as network and peripheral bus interfaces 6702e6014SWolfgang Denkrequired for networking, telecom/datacom, wireless infrastructure, and 7702e6014SWolfgang Denkmilitary/aerospace applications. 8702e6014SWolfgang Denk 9702e6014SWolfgang DenkP2041RDB board is a quad core platform supporting the P2041 processor 10702e6014SWolfgang Denkof QorIQ DPAA series. 11702e6014SWolfgang Denk 12702e6014SWolfgang DenkBoot from NOR flash 13702e6014SWolfgang Denk=================== 14702e6014SWolfgang Denk1. Build image 15702e6014SWolfgang Denk make P2041RDB_config 16702e6014SWolfgang Denk make all 17702e6014SWolfgang Denk 18702e6014SWolfgang Denk2. Program image 19702e6014SWolfgang Denk => tftp 1000000 u-boot.bin 20702e6014SWolfgang Denk => protect off all 21*e222b1f3SPrabhakar Kushwaha => erase eff40000 efffffff 22*e222b1f3SPrabhakar Kushwaha => cp.b 1000000 eff40000 c0000 23702e6014SWolfgang Denk 24702e6014SWolfgang Denk3. Program RCW 25702e6014SWolfgang Denk => tftp 1000000 rcw.bin 26702e6014SWolfgang Denk => protect off all 27702e6014SWolfgang Denk => erase e8000000 e801ffff 28702e6014SWolfgang Denk => cp.b 1000000 e8000000 50 29702e6014SWolfgang Denk 30702e6014SWolfgang Denk4. Program FMAN Firmware ucode 31702e6014SWolfgang Denk => tftp 1000000 ucode.bin 32702e6014SWolfgang Denk => protect off all 33*e222b1f3SPrabhakar Kushwaha => erase eff00000 eff3ffff 34*e222b1f3SPrabhakar Kushwaha => cp.b 1000000 eff00000 2000 35702e6014SWolfgang Denk 36702e6014SWolfgang Denk5. Change DIP-switch 37702e6014SWolfgang Denk SW1[1-5] = 10110 38702e6014SWolfgang Denk Note: 1 stands for 'on', 0 stands for 'off' 39702e6014SWolfgang Denk 40702e6014SWolfgang DenkBoot from SDCard 41702e6014SWolfgang Denk=================== 42702e6014SWolfgang Denk1. Build image 43702e6014SWolfgang Denk make P2041RDB_SDCARD_config 44702e6014SWolfgang Denk make all 45702e6014SWolfgang Denk 46702e6014SWolfgang Denk2. Generate PBL imge 47702e6014SWolfgang Denk Use PE tool to produce a image used to be programed to 48702e6014SWolfgang Denk SDCard which contains RCW and U-Boot image. 49702e6014SWolfgang Denk 50702e6014SWolfgang Denk3. Program the PBL image to SDCard 51702e6014SWolfgang Denk => tftp 1000000 pbl_sd.bin 52702e6014SWolfgang Denk => mmcinfo 53*e222b1f3SPrabhakar Kushwaha => mmc write 1000000 8 672 54702e6014SWolfgang Denk 55702e6014SWolfgang Denk4. Program FMAN Firmware ucode 56702e6014SWolfgang Denk => tftp 1000000 ucode.bin 57*e222b1f3SPrabhakar Kushwaha => mmc write 1000000 690 10 58702e6014SWolfgang Denk 59702e6014SWolfgang Denk5. Change DIP-switch 60702e6014SWolfgang Denk SW1[1-5] = 01100 61702e6014SWolfgang Denk Note: 1 stands for 'on', 0 stands for 'off' 62702e6014SWolfgang Denk 63702e6014SWolfgang DenkBoot from SPI flash 64702e6014SWolfgang Denk=================== 65702e6014SWolfgang Denk1. Build image 66702e6014SWolfgang Denk make P2041RDB_SPIFLASH_config 67702e6014SWolfgang Denk make all 68702e6014SWolfgang Denk 69702e6014SWolfgang Denk2. Generate PBL imge 70702e6014SWolfgang Denk Use PE tool to produce a image used to be programed to 71702e6014SWolfgang Denk SPI flash which contains RCW and U-Boot image. 72702e6014SWolfgang Denk 73702e6014SWolfgang Denk3. Program the PBL image to SPI flash 74702e6014SWolfgang Denk => tftp 1000000 pbl_spi.bin 75702e6014SWolfgang Denk => spi probe 0 76702e6014SWolfgang Denk => sf erase 0 100000 77702e6014SWolfgang Denk => sf write 1000000 0 $filesize 78702e6014SWolfgang Denk 79702e6014SWolfgang Denk4. Program FMAN Firmware ucode 80702e6014SWolfgang Denk => tftp 1000000 ucode.bin 81702e6014SWolfgang Denk => sf erase 110000 10000 82702e6014SWolfgang Denk => sf write 1000000 110000 $filesize 83702e6014SWolfgang Denk 84702e6014SWolfgang Denk5. Change DIP-switch 85702e6014SWolfgang Denk SW1[1-5] = 10100 86702e6014SWolfgang Denk Note: 1 stands for 'on', 0 stands for 'off' 87702e6014SWolfgang Denk 88702e6014SWolfgang DenkCPLD command 89702e6014SWolfgang Denk============ 90702e6014SWolfgang DenkThe CPLD is used to control the power sequence and some serdes lane 91702e6014SWolfgang Denkmux function. 92702e6014SWolfgang Denk 93702e6014SWolfgang Denkcpld reset - hard reset to default bank 94702e6014SWolfgang Denkcpld reset altbank - reset to alternate bank 95702e6014SWolfgang Denkcpld lane_mux <lane> <mux_value> - set multiplexed lane pin 96702e6014SWolfgang Denk lane 6: 0 -> slot1 (Default) 97702e6014SWolfgang Denk 1 -> SGMII 98702e6014SWolfgang Denk lane a: 0 -> slot2 (Default) 99702e6014SWolfgang Denk 1 -> AURORA 100702e6014SWolfgang Denk lane c: 0 -> slot2 (Default) 101702e6014SWolfgang Denk 1 -> SATA0 102702e6014SWolfgang Denk lane d: 0 -> slot2 (Default) 103702e6014SWolfgang Denk 1 -> SATA1 104702e6014SWolfgang Denk 105702e6014SWolfgang DenkUsing the Device Tree Source File 106702e6014SWolfgang Denk================================= 107702e6014SWolfgang DenkTo create the DTB (Device Tree Binary) image file, use a command 108702e6014SWolfgang Denksimilar to this: 109702e6014SWolfgang Denk dtc -O dtb -b 0 -p 1024 p2041rdb.dts > p2041rdb.dtb 110702e6014SWolfgang Denk 111702e6014SWolfgang DenkOr use the following command: 112702e6014SWolfgang Denk {linux-2.6}/make p2041rdb.dtb ARCH=powerpc 113702e6014SWolfgang Denk 114702e6014SWolfgang Denkthen the dtb file will be generated under the following directory: 115702e6014SWolfgang Denk {linux-2.6}/arch/powerpc/boot/p2041rdb.dtb 116702e6014SWolfgang Denk 117702e6014SWolfgang DenkBooting Linux 118702e6014SWolfgang Denk============= 119702e6014SWolfgang DenkPlace a linux uImage in the TFTP disk area. 120702e6014SWolfgang Denk tftp 1000000 uImage 121702e6014SWolfgang Denk tftp 2000000 rootfs.ext2.gz.uboot 122702e6014SWolfgang Denk tftp 3000000 p2041rdb.dtb 123702e6014SWolfgang Denk bootm 1000000 2000000 3000000 124