1 image swap using bootloader predefined commands, 2 image swap using ipmitool, Table 5-10 on-board 128 mb nor flash layout – Kontron AM4211 User Manual
Page 54

39
www.kontron.com
After Linux startup, the flash is divided into 8 partitions (mtd0-mtd7) associated to the physical addresses as
shown in the AM4211 partition scheme below. Note that association of MTD partitions to image depends on
the started image as shown above.
Table 5-10:On-board 128 MB NOR Flash layout
When shipped from factory, image0 and image1 contain identical bootloader and firmware images and
image0 system is booted by default. Image1 serves as a backup system which is started in case that image0
fails for some reason. It is recommended to always boot and work from image0 and leave image1 firmware
untouched. This allows easy activation of the original firmware in case of any errors or corruption in the
active image.
5.2.0.1
Image swap using bootloader predefined commands
The current firmware image is displayed during startup. It can be changed from the bootloader. Below are the
available commands to change boot image. Those commands can be used in the U-Boot.
•Change to image 0
Kontron T5519#
run activate_image0
•Change to image 1
Kontron T5519#
run activate_image1
Using one of these commands, the board will immediately boot the selected image.
5.2.0.2
Image swap using ipmitool
Image swap can also be achieved using the ipmitool from the Linux shell of the board. The following
command syntax must be used (IMAGE: 0 or 1):
~ #
ipmitool raw 0x3e 0x20 0x00
It is possible to invoke the ipmitool with the same parameters from the AMC carrier that holds the AM4211 or
even from external server provided that the ipmitool installed supports the Kontron OEM extensions.
Physical Address Offset in flash Size
Linux Partition Designation
Description
0x17C00000
0
896KiB
mtd0
uboot
Active bootloader image
0x17CE0000
0xE0000
256KiB
mtd1
env
Active bootloader configuration
variables
0x17D20000
0x120000
40960KiB
mtd2
kernel_rootfs
Active linux and Root file system
0x1A520000
0x2920000
23424KiB
mtd3
user_jffs2
Active user filesystem
0x1BC00000
0x4000000
896KiB
mtd4
uboot_backup
Backup bootloader
0x1BCE0000
0x40E0000
256KiB
mtd5
env_backup
Backup bootloader configuration
variables
0x1BD20000
0x4120000
40960KiB
mtd6
kernel_rootfs_backup Backup Linux and root filesystem
0x1E520000
0x6920000
23424KiB
mtd7
user_jffs2_backup
Backup user file system