Skip to contentSkip to conversation

Support vbootrom for AST2700

PATCH Superseded Jamin Lin via 3 participants 4 messages Apr 29, 2025 Arm/Amlogic Meson SoC support

v7 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

v7 cover Support vbootrom for AST2700

v1:
Add initial support for AST27x0
The purpose of vbootrom here is to simulate the work of BootMCU SPL (riscv) in AST2700, because QEMU doesn't support heterogenous architecture yet.

ast27x0_bootrom.bin is a simplified, free (Apache 2.0) boot ROM for ASPEED AST27x0 BMC SOC. It currently implements the bare minimum to load, parse, initialize and run boot images stored in SPI flash, but may grow more features over time as needed. The source code is available at:
https://github.com/google/vbootrom

v2:
Add "Introduced ASPEED_DEV_VBOOTROM in the device enumeration" patch to fix build failed.

v3:
1. Supports both vbootrom and device loader boot methods, with vbootrom used as the default.
2. Fix review and QTEST test failed issues.

v4:
Adjust the patch order.

v5:
fix review issue and remove unnecessary class attribure.
doc: create a new section for AST2700.

v6:
fix review issue.
Add google/vbootrom commit id for ast27x0 split to patch to update documentataion for ast27x0

v7:
update vbootrom pre-built image and add its build info

Jamin Lin (1):
pc-bios: Add AST27x0 vBootrom

 MAINTAINERS                 |   1 +
 pc-bios/README              |   6 ++++++
 pc-bios/ast27x0_bootrom.bin | Bin 0 -> 15552 bytes
 pc-bios/meson.build         |   1 +
 4 files changed, 8 insertions(+)
 create mode 100644 pc-bios/ast27x0_bootrom.bin
Signature · 1 line
2.43.0
#1 lore raw

PATCH v7 1/1 pc-bios: Add AST27x0 vBootrom

The boot ROM is a minimal implementation designed to load an AST27x0 boot image. Its source code is available at:
https://github.com/google/vbootrom
Commit id: d6e3386709b3e49322a94ffadc2aaab9944ab77b
Build Information:

```
Build Date : Apr 29 2025 01:23:18
FW Version : git-d6e3386
```
---
 MAINTAINERS                 |   1 +
 pc-bios/README              |   6 ++++++
 pc-bios/ast27x0_bootrom.bin | Bin 0 -> 15552 bytes
 pc-bios/meson.build         |   1 +
 4 files changed, 8 insertions(+)
 create mode 100644 pc-bios/ast27x0_bootrom.bin
MAINTAINERS +1 -0
index d54b5578f8..70ab0d0afa 100644
@@ -1163,6 +1163,7 @@ F: docs/system/arm/fby35.rst
 F: tests/*/*aspeed*
 F: tests/*/*ast2700*
 F: hw/arm/fby35.c
+F: pc-bios/ast27x0_bootrom.bin
 
 NRF51
 M: Joel Stanley <[email protected]>
pc-bios/README +6 -0
index f0f13e15f2..d009c37895 100644
@@ -89,6 +89,12 @@
   more features over time as needed. The source code is available at:
   https://github.com/google/vbootrom
 
+- ast27x0_bootrom.bin is a simplified, free (Apache 2.0) boot ROM for
+  ASPEED AST27x0 BMC SOC. It currently implements the bare minimum to
+  load, parse, initialize and run boot images stored in SPI flash, but may grow
+  more features over time as needed. The source code is available at:
+  https://github.com/google/vbootrom
+
 - hppa-firmware.img (32-bit) and hppa-firmware64.img (64-bit) are firmware
   files for the HP-PARISC (hppa) architecture.
   They are built form the SeaBIOS-hppa sources, which is a fork of SeaBIOS
pc-bios/ast27x0_bootrom.bin new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..0b9b3a2360e375bb6007ecdf13b39d931870f6fa
GIT binary patch
pc-bios/meson.build +1 -0
index 34d6616c32..83998f6071 100644
@@ -84,6 +84,7 @@ blobs = [
   'npcm8xx_bootrom.bin',
   'vof.bin',
   'vof-nvram.bin',
+  'ast27x0_bootrom.bin',
 ]
 
 dtc = find_program('dtc', required: false)
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH v7 1/1] pc-bios: Add AST27x0 vBootrom

Hello Jamin,

Quoted 21 lines · Jamin Lin

The boot ROM is a minimal implementation designed to load an AST27x0 boot image. Its source code is available at:
https://github.com/google/vbootrom
Commit id: d6e3386709b3e49322a94ffadc2aaab9944ab77b
Build Information:

```
Build Date : Apr 29 2025 01:23:18
FW Version : git-d6e3386
```
---
  MAINTAINERS                 |   1 +
  pc-bios/README              |   6 ++++++
  pc-bios/ast27x0_bootrom.bin | Bin 0 -> 15552 bytes
  pc-bios/meson.build         |   1 +
  4 files changed, 8 insertions(+)

create mode 100644 pc-bios/ast27x0_bootrom.bin

[ ... ]

pc-bios/meson.build blobs = [ · line 87

Quoted 8 lines

index 34d6616c32..83998f6071 100644

pc-bios/meson.build +1 -0
@@ -84,6 +84,7 @@ blobs = [
    'npcm8xx_bootrom.bin',
    'vof.bin',
    'vof-nvram.bin',
+  'ast27x0_bootrom.bin',

I think this list should be kept in alphabetic order. Could you resend please ?

Thanks,

C.

Quoted 3 lines
pc-bios/meson.build +0 -0
  ]
 
  dtc = find_program('dtc', required: false)
#3 lore raw

RE: [PATCH v7 1/1] pc-bios: Add AST27x0 vBootrom

Hi Cedric,

Quoted 31 lines

Cc: Troy Lee <[email protected]>; [email protected]
Subject: Re: [PATCH v7 1/1] pc-bios: Add AST27x0 vBootrom

Hello Jamin,

Quoted 1 line · Jamin Lin

The boot ROM is a minimal implementation designed to load an AST27x0

boot image.

Quoted 20 lines

Its source code is available at:
https://github.com/google/vbootrom
Commit id: d6e3386709b3e49322a94ffadc2aaab9944ab77b Build Information:

```
Build Date : Apr 29 2025 01:23:18
FW Version : git-d6e3386
```
---
  MAINTAINERS                 |   1 +
  pc-bios/README              |   6 ++++++
  pc-bios/ast27x0_bootrom.bin | Bin 0 -> 15552 bytes
  pc-bios/meson.build         |   1 +
  4 files changed, 8 insertions(+)

create mode 100644 pc-bios/ast27x0_bootrom.bin

[ ... ]

Quoted 11 lines

pc-bios/meson.build blobs = [ · line 87

Quoted 8 lines

index 34d6616c32..83998f6071 100644

pc-bios/meson.build +1 -0
@@ -84,6 +84,7 @@ blobs = [
    'npcm8xx_bootrom.bin',
    'vof.bin',
    'vof-nvram.bin',
+  'ast27x0_bootrom.bin',

I think this list should be kept in alphabetic order. Could you resend please ?

OK

Quoted 10 lines

Thanks,

C.

Quoted 3 lines
pc-bios/meson.build +0 -0
  ]
 
  dtc = find_program('dtc', required: false)