Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Use LAZY_INSTALL to avoid all drivers install to all platforms. Remove the bf_kdrv, bf_tun and test to avoid install WNC package failed. #6

Open
wants to merge 1 commit into
base: rel_7_0
Choose a base branch
from

Conversation

wadelnn
Copy link

@wadelnn wadelnn commented Mar 9, 2018

- What I did
All platform drivers are installed into the wedge100bf-32x device and cause a bunch of errors. However, in SONiC architecture, the platform driver is independent and only the specific platform device driver will be installed. The issue should not happen. The root cause is that the Barefoot private github install all platform drivers in platform/barefoot/one-image.mk. This could be modified by using LAZY_INSTALL like https://github.com/Azure/sonic-buildimage/blob/master/platform/broadcom/one-image.mk. And this LAZY_INSTALL procedure will check machine.conf platform and install specific driver.

- How I did it
Use LAZY_INSTALL procedure to avoid installing all platform drivers in one platform.
Modify WNC package for avoid install failed as follows:

+ sudo dpkg --root=./fsroot -i target/debs/platform-modules-wnc-osw1800_1.0_amd64.deb
Selecting previously unselected package platform-modules-wnc-osw1800.
(Reading database ... 21804 files and directories currently installed.)
Preparing to unpack .../platform-modules-wnc-osw1800_1.0_amd64.deb ...
Unpacking platform-modules-wnc-osw1800 (1.0) ...
dpkg: error processing archive target/debs/platform-modules-wnc-osw1800_1.0_amd64.deb (--install):
 trying to overwrite '/usr/local/bin/test', which is also in package platform-modules-bfn 1.0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 target/debs/platform-modules-wnc-osw1800_1.0_amd64.deb

This is becuase the debian package of other platform driver (ex: wnc) has conflict files and cannot be installed into the wedge100bf-32x platform.
The platform-modules-bfn-montara directory is still have install error as follows:

+ sudo dpkg --root=./fsroot -i target/debs/platform-modules-bfn-montara_1.0_amd64.deb
Selecting previously unselected package platform-modules-bfn-montara.
(Reading database ... 21804 files and directories currently installed.)
Preparing to unpack .../platform-modules-bfn-montara_1.0_amd64.deb ...
Unpacking platform-modules-bfn-montara (1.0) ...
dpkg: error processing archive target/debs/platform-modules-bfn-montara_1.0_amd64.deb (--install):
 trying to overwrite '/usr/local/bin/test', which is also in package platform-modules-bfn 1.0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 target/debs/platform-modules-bfn-montara_1.0_amd64.deb

But in this modules it's just install three files (bf_kdrv, bf_tun and test). It I deleted these files will make error. So I keep this packages exist and ignore the install error. You can determine how to fix it or not.
- How to verify it
We have built a fixed image and load into the wedge100bf-32x and Ingrasys s9180-32x. They work fine.

- Description for the changelog

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

…e the bf_kdrv, bf_tun and test to avoid install WNC package failed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant