3 embedded linux, 4 building at8242 firmware image, 1 preparation – Kontron AT8242 User Manual

Page 91: 2 building u-boot firmware, Embedded linux, Building at8242 firmware image

Advertising
background image

Software Setup

75

AT8242

www.kontron.com

3 – Complete the installation by copying all files in the

storage directory of the board support package to

[OCTEON_SDK]/linux/embedded_rootfs/storage.

5.1.3

Embedded Linux

5.1.3.1

Embedded Filesystem And Init Script Customizations

The sample embedded linux filesystem shipped with the AT8242 is an initramfs. That means that any file can
be modified but will return to their original states after a Cavium NPU restart.

By default there is a flash partition that is automatically mounted to /mnt. This partition can be used to have
permanent R/W storage space. All data stored in /mnt will be permanently saved to the flash (user_jffs2, /
dev/mtd3).

You can also create custom initialization script by adding this in the user_jffs2 partition (/mnt):

# mkdir /mnt/etc

# vi /mnt/etc/rc.local

Add your init code in this file (shell script).

# chmod +x /mnt/etc/rc.local

The script file /mnt/etc/rc.local will be executed at the end of each boot.

5.1.4

Building AT8242 Firmware Image

5.1.4.1

Preparation

From the root of OCTEON SDK directory, configure the SDK environment for OCTEON CN68XX device:

# source env-setup OCTEON_CN68XX

5.1.4.2

Building U-Boot Firmware

Go to OCTEON SDK bootloader directory:

# cd [OCTEON_SDK]/bootloader/u-boot

Select AT8242 board configuration:

# make kontron_t5311_config

Build U-boot firmware:

Advertising