2 updating windriver linux bsp – Kontron AM4204 User Manual

Page 75

Advertising
background image

60

AM4204

www.kontron.com

After the build process has been finished, the (stripped) kernel image is stored in the export directory
‘kontron_t5516-vmlinux-stripped-WR2.0ap_standard’

• Install root file system into bootable image

#

make boot-image-create BOOTIMAGE_FSTYPE=squashfs BOOTIMAGE_TYPE=flash BOOTIMAGE_ARGS=-be

BOOTIMAGE_RAM0SIZE=64000

• Create bootloader multi image

#

/opt/WindRiver/wrlinux-2.0/wrlinux/host-tools/bin/mkimage -A mips -O linux -T multi -C none -a 0 -e 0 -n

"kontron_t5516" -d export/kontron_t5516-vmlinux-stripped-WR2.0ap_standard:export/kontron_t5516-squashfs

kontron_t5516.multi

This command takes kernel and root file system images created before and stores them in the
‘kontron_t5516.multi’ file along with an appropriate u-boot header.

The final image may be downloaded via tftp and started using the ‘bootoctlinux’ command as defined in the
‘bootcmdprd’ environment script. It can also be copied into flash and started from here.

Please refer to the documentation provided with the appropriate WindRiver PNE distribution for more details
how to build and modify the kernel and/or the root file system.

5.3.4.2

Updating WindRiver Linux BSP

A WindRiver Linux BSP installed on the AM4204 module is updated using the kex-flashimage tool which is
part of the WindRiver Linux BSP installation.

A new WindRiver Linux BSP, either rebuilt as described above or delivered as part of an AM4204 software
release, is installed from the bootloader CLI. The BSP is stored in Linux MTD partitions mtd3 (image 0) and
mtd9 (image 1). Generally, the backup image (image1) is updated first. When the backup image has been
updated and started successfully, image0 will also be updated.

Prerequisites: a working NFS server, which can provide the update package file to the AM4204 module.

• Boot to WindRiver Linux prompt and mount NFS file system to AM4204 directory tree

#

portmap

#

mkdir /mnt/nfs

#

mount <server_ip>:<exported_fs> /mnt/nfs

• Install update package to image1 (backup image)

#

kex-flashimage --verify --update --image backup --file /mnt/nfs/am42xx-wr-GA-2.05.pkg

Note:

The following description assumes that image 0 is activated either using the ‘activate_image0’
bootloader command or the appropriate ipmitool command as described above. If image1 would be
active, the upper and lower halves of the flash address space are swapped. In this case, the
‘data1a_backup_flash_update’ command would not update image1 kernel and root FS partition as
intended but image0 instead.

Advertising