2 update from windriver linux shell, 3 board firmware – Kontron AM4220 User Manual
Page 68
53
www.kontron.com
5.2.3.2
Update from WindRiver Linux Shell
To update the boardloader along with the Linux kernel BSP using the kex-flashimage tool the sequence
described in chapter 5.3.4.2:
5.3
Board Firmware
The system is delivered with a bootloader and Linux OS preinstalled on the on-board 128MB NOR flash. The
system will boot by default from this flash, which is directly connected to the bootbus of the Cavium Octeon
CPU. In addition to the on-board flash the board supports a mounted USB flash drive that can be used for
application data. This USB flash drive is not used for booting in the default configuration.
The on-board flash is logically divided into two 64MB sections each consisting of 512 flash sectors. They are
referred to as image0 and image1. The table 5-13 shows the physical addresses and associated flash sectors
for each image once the board has booted on image 0.
Table 5-12:Fabric Default Flash Sector to Image Association
Image0 and image1 can be swapped by a simple IPMI command. Physically, the uppermost address line of the
flash device is inverted in this case. Flash sector to logical image association remains the same; however
physical address to logical image association will be swapped as shown below
Table 5-13:Swapped Flash Sector to Image Association
As the Octeon CPU always starts booting from the first physical address in the flash, image0 system is started
in the first case and image1 in the second.
After Linux startup, the flash is divided into 10 partitions (mtd0-mtd9) associated to the physical addresses
as shown in the AM4220 partition scheme below. Note that association of MTD partitions to image depends
on the started image as shown above.
Table 5-14:On-board 128 MB NOR Flash layout
Physical Address Range
Linux MTD Partitions
Flash Sectors
Logical Image
0x17C00000 – 0x1BBFFFFF
mtd0 – mtd4
0 – 511
Image0
0x1BC00000 – 0x1FBFFFFF
mtd5 – mtd9
512 – 1023
Image1
Physical Address Range
Linux MTD Partitions
Flash Sectors
Logical Image
0x17C00000 – 0x1BBFFFFF
mtd0 – mtd4
512 – 1023
Image1
0x1BC00000 – 0x1FBFFFFF
mtd5 – mtd9
0 – 511
Image0
Physical address
Offset in flash
Size
Linux parti-
tion
Designation
Description
0x17C00000
0
512KiB
mtd0
uboot0
Active bootloader image
0x17C80000
0x80000
128KiB
mtd1
env0a
Redundant bootloader environment
0x17CA0000
0xA0000
128KiB
mtd2
env0b
Redundant bootloader environment
0x17CC0000
0xC0000
32384KiB
mtd3
data0a
First data partition (typically read-only
OS)