From ca49aa9b48b5f86d3ab7bbd73249aa2d11133767 Mon Sep 17 00:00:00 2001 From: Yu Chien Peter Lin Date: Sat, 13 Aug 2022 21:11:18 +0800 Subject: [PATCH] docs: add ae350-ax45mp document Signed-off-by: Yu Chien Peter Lin --- docs/AE350-AX45MP.md | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 docs/AE350-AX45MP.md diff --git a/docs/AE350-AX45MP.md b/docs/AE350-AX45MP.md new file mode 100644 index 0000000..e016756 --- /dev/null +++ b/docs/AE350-AX45MP.md @@ -0,0 +1,64 @@ +Andes AE350 AX45MP Platform +======= + +AE350 is an AXI/AHB-based platform with level-one memories, +interrupt controller, debug module, AXI and AHB Bus Matrix +Controller, AXI-to-AHB Bridge and a collection of fundamental +AHB/APB bus IP components pre-integrated together as a system +design. + +The `ae350-ax45mp` machine configuration helps developers build +a disk image based on mainline Linux kernel 5.18 with MMC, DMA, +Ethernet and RTC drivers support, hosted on Andestech Github. + +How to build +============= + +``` +$ SHELL=/bin/bash kas-container build ./meta-riscv/ae350-ax45mp.yml +``` + +The `kas-container` script can be obtained from +[kas repository](https://github.com/siemens/kas/blob/3.0.2/kas-container). + +Build results +============= + +- core-image-minimal-ae350-ax45mp.wic.gz +- fitImage +- ae350_ax45mp.dtb +- boot.scr.uimg +- uEnv.txt +- u-boot-spl.bin +- u-boot.itb + +Flashing SD card +============== + +``` +gunzip -c core-image-minimal-ae350-ax45mp.wic.gz | sudo dd of=/dev/sdX bs=4M iflag=fullblock oflag=direct conv=fsync status=progress && sync +``` + +(Optional.) Flashing U-boot SPL +============== + +If you need to update the SPL, the first partition holds XIP mode SPL +(u-boot-spl.bin) that can be burned on flash by using the `sf` command +shown below in U-boot prompt or [SPI_Burn tool](https://github.com/andestech/Andes-Development-Kit). + +``` +RISC-V # fatload mmc 0:1 0x600000 u-boot-spl.bin +RISC-V # sf probe 0:0 50000000 0 +RISC-V # sf erase 0x0 0x10000 +RISC-V # sf write 0x600000 0x0 0x10000 +``` + +Connect to the UART console and reset the board, it should boot +from MMC and loads fw_dynamic.bin and u-boot.bin from u-boot.itb +located at first partition. + +Resources +============== + +* [Buildroot AE350 README](https://github.com/buildroot/buildroot/blob/master/board/andes/ae350/readme.txt) +* [Andestech AndesCoreā„¢ AX45MP Multicore](http://www.andestech.com/en/products-solutions/andescore-processors/riscv-ax45mp/)