-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SONiC support for BMC cards based on Aspeed AST2720 #24898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ae02708
Support for SONiC image compilation and deployment on Aspeed AST2720…
chander-nexthop df20a9f
Remove unwanted scripts
chander-nexthop 1c96a1c
Merge branch 'master' into bmc-ast2720-arm64
chander-nexthop 8875ce1
Merge branch 'master' into bmc-ast2720-arm64
chander-nexthop dd9f18c
Thanks Chinmoy Dey <[email protected]> for this change
chander-nexthop dff5051
Merge branch 'master' into bmc-ast2720-arm64
chander-nexthop 153d0a6
1. Add changes for a single image with multiple DTB
chander-nexthop 2070732
Address commenrs - remove unused vars
chander-nexthop 3e8fee4
Move to the lazy install mechanism of sonic for the vendor packages
chander-nexthop 1a98329
Add postinst scripts with dynamic platform detection by reading
chander-nexthop be5dad4
Remove unwanted DEPENDS
chander-nexthop a2b5ea4
Ensure the right python wheel is installed during lazy install of the
chander-nexthop ca44f22
Add a script to create a disk image from the target sonic image
chander-nexthop 33b9dd5
Address most of the review comments.
chander-nexthop 41bd2db
Remove the commented out BMC_IP
chander-nexthop 12bec31
Use rm -rf instead of individual cleanup
chander-nexthop b467546
BMC: Enable telemetry, sysmgr, and required services
chander-nexthop 44ac5e5
- Move platform API from b27/ to common/ for sharing across all cards
chander-nexthop 0d23517
Add support to populate the vendor specific console to REDIS so that
chander-nexthop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # aspeed-ast2700 doesn't have a switch asic but SONIC assumes NUM_ASIC to be atleast 1 | ||
| NUM_ASIC=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| AST2700-BMC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # AST2700 uses U-Boot, not GRUB, so CONSOLE_PORT/CONSOLE_DEV are not used | ||
| # Console configuration is handled in platform_arm64.conf via kernel cmdline | ||
| ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="" | ||
| CONSOLE_SPEED=115200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "chassis": { | ||
| "name": "AST2700-BMC", | ||
| "thermal_manager": false, | ||
| "status_led": { | ||
| "controllable": true, | ||
| "colors": ["green", "amber", "off"] | ||
| }, | ||
| "components": [ | ||
| { | ||
| "name": "BMC" | ||
| }, | ||
| { | ||
| "name": "BIOS" | ||
| } | ||
| ], | ||
| "fans": [], | ||
| "psus": [], | ||
| "thermals": [], | ||
| "sfps": [] | ||
| }, | ||
| "interfaces": {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| aspeed |
10 changes: 10 additions & 0 deletions
10
device/aspeed/arm64-aspeed_ast2700-r0/platform_components.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "chassis": { | ||
| "AST2700-BMC": { | ||
| "component": { | ||
| "BMC": {}, | ||
| "BIOS": {} | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # BMC platform environment | ||
| export BMC_PLATFORM=1 |
17 changes: 17 additions & 0 deletions
17
device/aspeed/arm64-aspeed_ast2700-r0/pmon_daemon_control.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "skip_thermalctld": false, | ||
| "skip_ledd": true, | ||
| "skip_xcvrd": true, | ||
| "skip_psud": true, | ||
| "skip_syseepromd": false, | ||
| "skip_pcied": true, | ||
| "skip_chassisd": true, | ||
| "skip_fancontrol": true, | ||
| "include_sensormond": false, | ||
| "thermalctld": { | ||
| "thermal_monitor_initial_interval": 5, | ||
| "thermal_monitor_update_interval": 60, | ||
| "thermal_monitor_update_elapsed_threshold": 30 | ||
| } | ||
| } | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really don't have a use case to have a separate bmcdb ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DATABASE_TYPE bmcdb was added only to avoid BMP_STATE_DB (BGP monitoring protocol database) which doesn't make sense in our platform. Otherwise it behaves in an identical manner to DATABASE_TYPE being empty/not specified. So all the standard databases of SONIC (CONFIG_DB, APPL_DB, STATE_DB etc) would be present. If we don't have this new type, then the condition to avoid BMP_STATE_DB will have to be coded differently. I went with this approach because it was already used by one platform (dpudb).