kumquat-buildroot/board/aspeed/ast2500-evb
Cédric Le Goater f089aa9877 configs/aspeed_ast2500evb: new defconfig
The kernel is from upstream with a few extras to reduce the size of
the 'aspeed_g5' zImage because it is too big for the flash layout.
Mainline U-Boot has enough support to load the kernel from the flash
device and from network but it is still behind the OpenBMC branch
where most the development is done.

The main resulting file from the build is a flash image. The partition
layout matches the OpenBMC one for 32M chips. It makes it easier to
update the different partitions from Linux. Intermediate files can be
used to boot from U-Boot over the network or to boot QEMU using
-kernel/-initrd/-dtb.

Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-06-27 22:59:51 +02:00
..
genimage.cfg configs/aspeed_ast2500evb: new defconfig 2022-06-27 22:59:51 +02:00
linux.fragment configs/aspeed_ast2500evb: new defconfig 2022-06-27 22:59:51 +02:00
readme.txt configs/aspeed_ast2500evb: new defconfig 2022-06-27 22:59:51 +02:00
uboot.fragment configs/aspeed_ast2500evb: new defconfig 2022-06-27 22:59:51 +02:00

Aspeed AST2500 EVB

Introduction
============

The AST2500 EVB is an evaluation board for the AST2500 SoC, most
commonly used as a Server Management Processor. It includes an 800MHz
ARM11 processor with DDR3 or DDR4 SDRAM (up to 1GB), SPI flash memory
devices for BMC and host firmwares and numerous controllers to drive
the server board.

  https://www.aspeedtech.com/server_ast2500/

How to build it
===============

Configure buildroot:

  $ make aspeed_ast2500evb_defconfig

Compile everything and build the rootfs image:

  $ make

Result of the build
===================

After building, the output/images directory contains:

  output/images/
    ├── aspeed-ast2500-evb.dtb
    ├── flash.img
    ├── image.itb
    ├── rootfs.cpio
    ├── rootfs.cpio.xz
    ├── rootfs.tar
    ├── u-boot.bin
    └── zImage

Flashing the image
==================

To update the contents of the first flash device, copy flash.img :

  $ flashcp flash.img /dev/mtd0

or simply the boot loader:

  $ flashcp u-boot.bin /dev/mtd1

Preparing the board
===================

 * Connect a serial line to the board
 * Power-up the board

Booting the board
=================

The AST2500 EVB boots from the SPI flash device directly and loads a
first bootloader (usually U-Boot). U-Boot will attempt to load a Linux
kernel from the same flash device by default but other storage could
be used.

 * from U-Boot

   The FIT image image.itb can be used to boot the board from U-Boot
   using tftp

 * with QEMU

   $ qemu-system-arm -M ast2500-evb \
	-drive file=output/images/flash.img,format=raw,if=mtd \
	-nographic

   $ qemu-system-arm -M ast2500-evb \
	-kernel output/images/zImage \
	-initrd output/images/rootfs.cpio \
	-dtb output/images/aspeed-ast2500-evb.dtb \
	-nographic