1 ------------------------------------------------------------------
2 Freescale PBL(pre-boot loader) Boot Image generation using mkimage
3 ------------------------------------------------------------------
5 The CoreNet SoC's can boot directly from eSPI FLASH, SD/MMC and
6 NAND, etc. These SoCs use PBL to load RCW and/or pre-initialization
7 instructions. For more details refer section 5 Pre-boot loader
8 specifications of reference manual P3041RM/P4080RM/P5020RM at link:
9 http://www.freescale.com/webapp/search/Serp.jsp?Reference+Manuals
11 Building PBL Boot Image and boot steps
12 --------------------------------------
14 1. Building PBL Boot Image.
15 The default Image is u-boot.pbl.
17 For eSPI boot(available on P3041/P4080/P5020):
18 To build the eSPI boot image:
19 make <board_name>_SPIFLASH_config
22 For SD boot(available on P3041/P4080/P5020):
23 To build the SD boot image:
24 make <board_name>_SDCARD_config
27 For Nand boot(available on P3041/P5020):
28 To build the NAND boot image:
29 make <board_name>_NAND_config
33 2. pblimage support available with mkimage utility will generate Freescale PBL
34 boot image that can be flashed on the board eSPI flash, SD/MMC and NAND.
35 Following steps describe it in detail.
37 1). Boot from eSPI flash
38 Write u-boot.pbl to eSPI flash from offset 0x0.
40 =>tftp 100000 u-boot.pbl
43 =>sf write 100000 0 $filesize
44 Change SW1[1:5] = off off on off on.
47 Write u-boot.pbl to SD/MMC from offset 0x1000.
49 =>tftp 100000 u-boot.pbl
51 =>mmc write 100000 8 441
52 Change SW1[1:5] = off off on on off.
55 Write u-boot.pbl to Nand from offset 0x0.
57 =>tftp 100000 u-boot.pbl
60 =>nand write 100000 0 $filesize
61 Change SW1[1:5] = off on off off on
62 Change SW7[1:4] = on off off on
64 Board specific configuration file specifications:
65 ------------------------------------------------
66 1. Configuration files rcw.cfg and pbi.cfg must present in the
67 board/freescale/corenet_ds/, rcw.cfg is for RCW, pbi.cfg is for
68 PBI instructions. File name must not be changed since they are used
70 2. These files can have empty lines and lines starting with "#" as first
71 character to put comments
73 Typical example of rcw.cfg file:
74 -----------------------------------
76 #PBL preamble and RCW header
79 4c580000 00000000 18185218 0000cccc
80 40464000 3c3c2000 58000000 61000000
81 00000000 00000000 00000000 008b6000
82 00000000 00000000 00000000 00000000
84 Typical example of pbi.cfg file:
85 -----------------------------------
96 #Configure LAW for CPC1
103 #Initialize eSPI controller
113 ------------------------------------------------
114 Author: Shaohui Xie<Shaohui.Xie@freescale.com>