Skip to content

Initial commit for introducing the SONiC Platform Development Env (Re… - #7510

Merged
lguohan merged 36 commits into
sonic-net:masterfrom
geans-pin:pde_infra
Jul 24, 2021
Merged

lguohan merged 36 commits into
sonic-net:masterfrom
geans-pin:pde_infra

Conversation

@geans-pin

@geans-pin geans-pin commented May 4, 2021 •

Copy link
Copy Markdown
Contributor

What I did
This PR is a resubmit of PR#3778

How I did it
The PDE silicon test harness and platform test harness can be found in
src/sonic-platform-pdk-pde

How to verify it
You must have both this PR and PR below.
sonic-net/sonic-platform-pdk-pde#28

Enable PDE by un-commenting line in rules/config
INCLUDE_PDE=y

Currently only Broadcom support has been added.

Description for the changelog
Adding support for Platform Development Environment (PDE)

@lgtm-com

lgtm-com Bot commented May 4, 2021

Copy link
Copy Markdown

This pull request introduces 4 alerts when merging 138a7fe41449ce3814d5f85e260ba542eacf3091 into b2286a2 - view on LGTM.com

new alerts:

  • 4 for Unused import

Comment thread Makefile.work Outdated
@lgtm-com

lgtm-com Bot commented May 5, 2021

Copy link
Copy Markdown

This pull request introduces 4 alerts when merging c152419 into 0bc0f98 - view on LGTM.com

new alerts:

  • 4 for Unused import

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 7510 in repo Azure/sonic-buildimage

@adyeung

adyeung commented May 26, 2021

Copy link
Copy Markdown
Collaborator

@jleveque Pls help review

Comment thread Makefile.work Outdated
@lgtm-com

lgtm-com Bot commented May 27, 2021

Copy link
Copy Markdown

This pull request introduces 4 alerts when merging 1945c12 into 2cd61bc - view on LGTM.com

new alerts:

  • 4 for Unused import

@lgtm-com

lgtm-com Bot commented May 27, 2021

Copy link
Copy Markdown

This pull request introduces 4 alerts when merging 38592f9 into 237849a - view on LGTM.com

new alerts:

  • 4 for Unused import

Comment thread dockers/docker-pde/base_image_files/pde-bench Outdated
Comment thread dockers/docker-pde/docker_init.sh Outdated
Comment thread dockers/docker-pde/stress-sfp-i2c.py Outdated
Comment thread platform/broadcom/sonic-pde-tests.dep Outdated
Comment thread platform/broadcom/sonic-pde-tests.dep Outdated
@lgtm-com

lgtm-com Bot commented Jun 5, 2021

Copy link
Copy Markdown

This pull request introduces 4 alerts when merging d0f6bb2 into 1a3cab4 - view on LGTM.com

new alerts:

  • 4 for Unused import

@geans-pin

Copy link
Copy Markdown
Contributor Author

jleveque,

I have fixed the review comment. However, the kvm test is fail in the checker which seems not related with the fix.
Can you re-run the pipeline build ?

Geans

@geans-pin

Copy link
Copy Markdown
Contributor Author

/azure-pipelines

@geans-pin
geans-pin requested review from jleveque and xumia June 5, 2021 13:34
@geans-pin

Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@geans-pin

Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft

qiluo-msft commented Jul 2, 2021 •

Copy link
Copy Markdown
Collaborator

Sorry for misleading. I notice an unexpected file src/sonic-platform-pde/.gitkeep
Please double check the page https://git-scm.com/book/en/v2/Git-Tools-Submodules


In reply to: 873021616

@geans-pin

Copy link
Copy Markdown
Contributor Author

Thanks qiluo, Here we are.. Just committed the fix

@qiluo-msft qiluo-msft left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The submodule looks good now. Please check with other reviewers.

@geans-pin

Copy link
Copy Markdown
Contributor Author

xumia, jleveque, lguohan,

All of the reviewed comments are fixed and build are Pass.
Are we ready for the merge ?

Geans

@anshuv-mfst

anshuv-mfst commented Jul 7, 2021 •

Copy link
Copy Markdown

Hi @xumia , @qiluo-msft - can you please approve and merge by/before 7/9, this PR is needed in 202106 release.

@adyeung

adyeung commented Jul 22, 2021

Copy link
Copy Markdown
Collaborator

@xumia, @qiluo-msft, @lguohan, @anshuv-mfst, pls help approve and merge

Comment thread rules/config Outdated
Comment thread platform/broadcom/one-pde-image.mk Outdated
Comment thread slave.mk Outdated
Comment thread slave.mk Outdated
Comment thread Makefile.work Outdated
Comment thread platform/broadcom/one-pde-image.mk Outdated
Comment thread Makefile.work Outdated
Comment thread Makefile.work Outdated
Comment thread slave.mk Outdated
Comment thread slave.mk Outdated
@geans-pin

Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@lguohan lguohan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@lguohan
lguohan merged commit aa59bfe into sonic-net:master Jul 24, 2021
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
The PDE silicon test harness and platform test harness can be found in
src/sonic-platform-pdk-pde
@MikeHcChen

MikeHcChen commented Jan 18, 2022 •

Copy link
Copy Markdown

Recently, I tried to build PDE environment with 202111 branch codes.
I added "INCLUDE_PDE = y" and "PDDF_SUPPORT = y" in "sonic-buildimage/rules/config" file and
revised "sonic-buildimage/dockers/docker-pde/Dockerfile.j2" as following:
--- a/dockers/docker-pde/Dockerfile.j2
+++ b/dockers/docker-pde/Dockerfile.j2
@@ -1,4 +1,4 @@
-FROM {{ docker_pde_load_image }}
+FROM docker-config-engine-buster

Then I tried to build PDE using commands "make init;make configure PLATFORM=broadcom; make target/sonic-broadcom-pde.bin". I found I can get docker-pde.gz (PDE docker) and sonic-platform-pde_1.0_amd64.deb, but cannot get sonic-broadcom-pde.bin. The error logs like:

make: *** No rule to make target 'target/sonic-broadcom-pde.bin'. Stop.
Makefile.work:304: recipe for target 'target/sonic-broadcom-pde.bin' failed
make[1]: *** [target/sonic-broadcom-pde.bin] Error 2
make[1]: Leaving directory '/home/mike/sonic_202111_branch/sonic-buildimage'
Makefile:30: recipe for target 'target/sonic-broadcom-pde.bin' failed
make: *** [target/sonic-broadcom-pde.bin] Error 2

Is there anything I should add to make the PDE image in SONiC?
Any idea is welcome. Thanks.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants