We'll use the MGT5200 Total board (revision 1) in this example. This board has a flash part that's 32 MB in size and sits in memory space from 0xFE000000 to 0xFFFFFFFF. The reset vector jumps to 0xFE000000.
You can design the flash any way you wish. Here's the layout that we'll use in this example:
From | To | Contains | Size |
---|---|---|---|
0xFE000000 | 0xFE03FFFF | IPL | 256 KB |
0xFE040000 | 0xFE2FFFFF | Boot image 1 (os1) | 3 MB − 256 KB |
0xFE300000 | 0xFE3FFFFF | Boot image 2 (os2) | 1 MB |
0xFE400000 | 0xFEFFFFFF | Flash filesystem mounted as / | 28 MB |
The IPL has been changed to start searching for os1 at 0xFE040000. By default, the IPL will search from 0xFE010000 to 0xFE030000.