Pankaj Gupta | e55f6c4 | 2020-12-09 14:02:39 +0530 | [diff] [blame] | 1 | Description: |
| 2 | ------------ |
| 3 | Tool 'create_pbl' is a standalone tool to create the PBL images. |
| 4 | where, |
| 5 | On the basis of Chassis, |
| 6 | RCW image is placed first followed by the, |
| 7 | PBI commands to copy the, |
| 8 | Input BL2 image stored on the, |
| 9 | Specified boot source (QSPI or SD or NOR) to the, |
| 10 | Specified destination address. |
| 11 | |
| 12 | |
| 13 | Usage in standalone way: |
| 14 | ----------------------- |
| 15 | |
| 16 | ./create_pbl [options] (mentioned below): |
| 17 | |
| 18 | -r <RCW file-name> - name of RCW binary file. |
| 19 | -i <BL2 Bin file-name> - file to be added to rcw file. |
| 20 | -c <SoC Number> - SoC numeric identifier, may be one of |
| 21 | 1012,1023,1026.1028, |
| 22 | 1043,1046,1088,2080, |
| 23 | 2088,2160 |
| 24 | -b <boot source id> - Boot source id string, may be one of |
| 25 | "qspi", "nor", "nand", "sd", "emmc" |
| 26 | -d <Address> - Destination address where BL2 |
| 27 | image is to be copied |
| 28 | -o <output filename> - Name of PBL image generated |
| 29 | as an output of the tool. |
| 30 | -e <Address> - [Optional] Entry Point Address |
| 31 | of the BL2.bin |
| 32 | -f <Address> - BL2 image offset |
| 33 | on Boot Source for block copy. |
| 34 | command for chassis >=3.) |
| 35 | (Must for Ch3, Ignored for Ch2) |
| 36 | -h Help. |
| 37 | -s Secure boot. |
| 38 | |
| 39 | -s secure boot |
| 40 | -c SoC Number (see description above) |
| 41 | -b Boot source. |
| 42 | -r RCW binary file. |
| 43 | -i Input file that is to be added to rcw file. |
| 44 | -o Name of output file |
| 45 | -f Source Offset (Block Copy) |
| 46 | -d Destination address to which file has to be copied |
| 47 | -h Help. |
| 48 | |
| 49 | Example: |
| 50 | ./create_pbl -r <RCW file> -i <bl2.bin> -c <chassis_no> -b <boot_source = sd/qspi/nor> -d <Destination_Addr> -o <pbl_image_name> |
| 51 | |
| 52 | |
| 53 | |
| 54 | Usage at compilation time: |
| 55 | -------------------------------- |
| 56 | |
| 57 | make <compilation command......> pbl RCW=<Path_to_RCW_File>/<rcw_file_name.bin> |
| 58 | |
| 59 | Example: QSPI Boot For LS1046ARDB- |
| 60 | |
| 61 | make PLAT=ls1046rdb all fip BOOT_MODE=qspi SPD=opteed BL32=tee.bin BL33=u-boot-ls1046.bin pbl RCW=/home/pankaj/flexbuild/packages/firmware/dash-rcw/ls1046ardb/RR_FFSSPPPN_1133_5506/rcw_1600_qspiboot.bin |
| 62 | |
| 63 | Example: QSPI Boot For LX2160ARDB- |
| 64 | |
| 65 | make PLAT=lx2160ardb all fip BOOT_MODE=flexspi_nor SPD=opteed BL32=tee_lx2.bin BL33=u-boot_lx2160.bin pbl RCW=plat/nxp/soc-lx2160/lx2160ardb/rcw_1900_600_1600_19_5_2.bin |