Skip to content

Enable sonic bmc build#25853

Draft
Gfrom2016 wants to merge 16 commits intosonic-net:masterfrom
Gfrom2016:enable_sonic_bmc_build
Draft

Enable sonic bmc build#25853
Gfrom2016 wants to merge 16 commits intosonic-net:masterfrom
Gfrom2016:enable_sonic_bmc_build

Conversation

@Gfrom2016
Copy link
Contributor

Why I did it

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Gfrom2016 Gfrom2016 force-pushed the enable_sonic_bmc_build branch from 1399694 to 69efadb Compare March 3, 2026 09:01
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

chander-nexthop and others added 15 commits March 4, 2026 10:04
…eval board

   Platform Introduction:
     • New Aspeed platform for ARM64 architecture
     • Kernel drivers via src/sonic-linux-kernel (separate PR)
     • Build infrastructure: platform/aspeed + device/aspeed → sonic-aspeed.bin target
     • eMMC installation tooling with ext4 image creation scripts

   Installation & Image Management:
     • Initial platform infrastructure under platform/aspeed and device/aspeed directories
     • SONiC installer-based approach with single partition and multiple directory-based
       installs (replacing two-partition setup)
     • eMMC image download support via HTTP/SCP with flashing capabilities
     • U-Boot environment variable configuration for proper boot management
     • Fixed sonic-installer for bootonce logic and image creation

   System Services & Configuration:
     • New sonic-bmc-platform-aspeed debian package for BMC initialization and management
     • Reorganized systemd services: added/removed/masked units as needed
     • Enhanced service dependencies (config-topology, config-setup, etc.)

   Build & Packaging:
     • Modernized Debian packaging for debhelper-compat 13 compatibility
     • Rust stable version 1.86 for build stability
     • Multi-distribution support: Trixie and Bookworm
     • Database Docker container support for BMC

   Hardware Monitoring & Services:
     • Platform support for fan, temperature sensors, thermal monitoring, reboot cause, and
       watchdog
     • GNMI service auto-start on BMC boot with ASIC dependencies removed
     • New bmcdb database type (similar to dpudb) to avoid BMP_STATE_DB dependencies

Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
Minor fix: adding missing 'sudo'
  - adding sudo would improve consistency and
    help safeguard against potential umask changes.

Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
2. Enable pmon service
3. Add code to setup /usr/share/sonic/platform link
4. Move to the target name as sonic-aspeed-arm64.bin

Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
under platform/aspeed. While at this remove the common platform package.

Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
machine.conf. In addition move switch_cpu_utils.sh to device
scripts directory.

Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
.deb package in the host as well. pmon gets the correct wheel as
docker_install.sh (docker_init.j2) gets it from
/usr/share/sonic/platform, whereas on the host side, its done during the
image creation time (first one wins).

Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
- Move device-specific settings to installer.conf
- Dynamically detect boot device and storage interface
- Support both eMMC and UFS storage
- Remove hardcoded console and partition values
- Add ONIE detection to skip U-Boot env setup during installation

Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
Signed-off-by: Chandrasekaran Swaminathan <chander@nexthop.ai>
Signed-off-by: zitingguo <zitingguo@microsoft.com>
The CI build script uses make target/sonic-(GROUP_NAME).bin where
GROUP_NAME=aspeed. Rename SONIC_ONE_IMAGE from sonic-aspeed-arm64.bin
to sonic-aspeed.bin so the make target matches. Also revert the job
name back to 'aspeed' (aspeed-arm64 caused CONFIGURED_PLATFORM=aspeed-arm64
which looked for non-existent platform/aspeed-arm64/ directory).

Signed-off-by: zitingguo <zitingguo@microsoft.com>
@Gfrom2016 Gfrom2016 force-pushed the enable_sonic_bmc_build branch from 69efadb to 9e71119 Compare March 4, 2026 02:05
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Include commit dac5f908e which adds nexthop-b27-r0.dts to the kernel
tree, enabling nexthop-b27-r0.dtb to be built and installed for the
aspeed FIT image.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants