[installer]: support platform driver lazy installation#340
Merged
lguohan merged 3 commits intosonic-net:masterfrom Feb 27, 2017
Merged
[installer]: support platform driver lazy installation#340lguohan merged 3 commits intosonic-net:masterfrom
lguohan merged 3 commits intosonic-net:masterfrom
Conversation
allow one image to support multiple switch devices, install corresponding platform driver during the first boot time.
platform/broadcom/one-image.mk
Outdated
Collaborator
There was a problem hiding this comment.
How is this going to work with another platforms?
Collaborator
Author
There was a problem hiding this comment.
this one is only going to work on broadcom platform. for other asic platforms, need to add installs there. Since for other asic platforms, only one hardware sku is supported, so I did not change those.
Collaborator
There was a problem hiding this comment.
In this case we have a case of runtime driver installation for other platforms and compile time installation for others. Maybe we should use single flow for all platforms that installs drivers during first boot and get rid of different behavior?
Collaborator
Author
There was a problem hiding this comment.
will fix this in future PR.
lguohan
added a commit
to lguohan/sonic-buildimage
that referenced
this pull request
Sep 20, 2018
swss: * 13df5a9 2018-09-19 | [cfgmgr]: Add vrfmgrd (sonic-net#621) (HEAD, origin/master, origin/HEAD) [Marian Pritsak] * 54a7c9a 2018-09-18 | [portsorch]: Remove m_ifindex from Port class (sonic-net#624) [Shuotian Cheng] * e765c12 2018-09-17 | [aclorch]: Remove error message when match not found (sonic-net#618) [stepanblyschak] * 07f4cd8 2018-09-14 | Enable vxlan test (sonic-net#620) [pavel-shirshov] * 9fda944 2018-09-14 | Warm reboot: Add support for orchagent pre-shutdown warm-restart state check (sonic-net#562) [Jipan Yang] * 41e61bd 2018-09-14 | Warm reboot: port state sync up (sonic-net#557) [Jipan Yang] * bf38bec 2018-09-14 | [vxlan tunnel]: Don't create encap mapper. Currently not supported (sonic-net#613) [pavel-shirshov] * 528295d 2018-09-14 | [mirrororch]: Remove the queue initialization for different platforms (sonic-net#614) [Shuotian Cheng] * 5af88ab 2018-09-14 | Temporarily disable two test cases to unblock others (sonic-net#617) [Qi Luo] * 60a9d61 2018-09-08 | Support warm-restart for neighsyncd (sonic-net#599) [zhenggen-xu] * 387eac6 2018-09-08 | [mirrororch]: Change Mellanox GRE type to 0x8949 (sonic-net#610) [Shuotian Cheng] * 7114352 2018-09-07 | Store mirror session state in StateDB (sonic-net#609) [Qi Luo] * fa2b5d9 2018-09-06 | [test]: Mark VLAN related mirror test invalid in Debian Jessie (sonic-net#608) [Shuotian Cheng] * 6d40d85 2018-09-06 | [mirrororch]: Fix bug: return false when SAI API call fails (sonic-net#607) [Shuotian Cheng] * cbc5a05 2018-09-05 | [mirrororch]: Enable mirror session destination to point into VLAN (sonic-net#595) [Shuotian Cheng] swss-common: * c6c9a9b 2018-09-19 | Add new macro STATE_FDB_TABLE_NAME (sonic-net#233) (HEAD, origin/master, origin/HEAD) [Qi Luo] * 41b6e18 2018-09-13 | NotificationProducer.send() returns the number of clients that received the message (sonic-net#231) [Qi Luo] sairedis: * 5ef97ca 2018-09-11 | Fix findBridgeVlanForPortVlan for 1Q bridge (sonic-net#345) (HEAD) [Qi Luo] * e402ff6 2018-09-11 | update SAI header (sonic-net#344) [lguohan] * fd75e54 2018-09-11 | sairedis: add while loop to make syncd processEvent() handle as many entries as possible in one event call (sonic-net#335) [Dong Zhang] * 50e1915 2018-08-29 | [misc]: Fix typos (sonic-net#342) [Shuotian Cheng] * 2322375 2018-08-29 | Use syncd -u option (sonic-net#341) [Qi Luo] * 2c2a13c 2018-08-28 | Cleanup usage (sonic-net#340) [Qi Luo] * 7cd75c0 2018-08-26 | [saimeta]: Fix typo: > then -> >; don't exists -> doesn't exist (sonic-net#339) [Shuotian Cheng] Signed-off-by: Guohan Lu <gulv@microsoft.com>
lguohan
added a commit
that referenced
this pull request
Sep 21, 2018
swss: * 13df5a9 2018-09-19 | [cfgmgr]: Add vrfmgrd (#621) (HEAD, origin/master, origin/HEAD) [Marian Pritsak] * 54a7c9a 2018-09-18 | [portsorch]: Remove m_ifindex from Port class (#624) [Shuotian Cheng] * e765c12 2018-09-17 | [aclorch]: Remove error message when match not found (#618) [stepanblyschak] * 07f4cd8 2018-09-14 | Enable vxlan test (#620) [pavel-shirshov] * 9fda944 2018-09-14 | Warm reboot: Add support for orchagent pre-shutdown warm-restart state check (#562) [Jipan Yang] * 41e61bd 2018-09-14 | Warm reboot: port state sync up (#557) [Jipan Yang] * bf38bec 2018-09-14 | [vxlan tunnel]: Don't create encap mapper. Currently not supported (#613) [pavel-shirshov] * 528295d 2018-09-14 | [mirrororch]: Remove the queue initialization for different platforms (#614) [Shuotian Cheng] * 5af88ab 2018-09-14 | Temporarily disable two test cases to unblock others (#617) [Qi Luo] * 60a9d61 2018-09-08 | Support warm-restart for neighsyncd (#599) [zhenggen-xu] * 387eac6 2018-09-08 | [mirrororch]: Change Mellanox GRE type to 0x8949 (#610) [Shuotian Cheng] * 7114352 2018-09-07 | Store mirror session state in StateDB (#609) [Qi Luo] * fa2b5d9 2018-09-06 | [test]: Mark VLAN related mirror test invalid in Debian Jessie (#608) [Shuotian Cheng] * 6d40d85 2018-09-06 | [mirrororch]: Fix bug: return false when SAI API call fails (#607) [Shuotian Cheng] * cbc5a05 2018-09-05 | [mirrororch]: Enable mirror session destination to point into VLAN (#595) [Shuotian Cheng] swss-common: * c6c9a9b 2018-09-19 | Add new macro STATE_FDB_TABLE_NAME (#233) (HEAD, origin/master, origin/HEAD) [Qi Luo] * 41b6e18 2018-09-13 | NotificationProducer.send() returns the number of clients that received the message (#231) [Qi Luo] sairedis: * 5ef97ca 2018-09-11 | Fix findBridgeVlanForPortVlan for 1Q bridge (#345) (HEAD) [Qi Luo] * e402ff6 2018-09-11 | update SAI header (#344) [lguohan] * fd75e54 2018-09-11 | sairedis: add while loop to make syncd processEvent() handle as many entries as possible in one event call (#335) [Dong Zhang] * 50e1915 2018-08-29 | [misc]: Fix typos (#342) [Shuotian Cheng] * 2322375 2018-08-29 | Use syncd -u option (#341) [Qi Luo] * 2c2a13c 2018-08-28 | Cleanup usage (#340) [Qi Luo] * 7cd75c0 2018-08-26 | [saimeta]: Fix typo: > then -> >; don't exists -> doesn't exist (#339) [Shuotian Cheng] Signed-off-by: Guohan Lu <gulv@microsoft.com>
lguohan
added a commit
to lguohan/sonic-buildimage
that referenced
this pull request
Oct 14, 2018
* 6d00d14 2018-10-13 | pfcwd cmd check (sonic-net#342) (HEAD, origin/master, origin/HEAD) [Wenda Ni] * eb92560 2018-10-12 | [show] Refactor show vlan brief to use configdb and update the output (sonic-net#340) [Deva Nandhagopal] * 9a139ab 2018-10-10 | Remove explicit dependency on tabulate; Add comments (sonic-net#336) [Joe LeVeque] * 7874b8f 2018-10-09 | Update restart_count to restore_count for warm restart (sonic-net#326) [Jipan Yang] * 7a51a85 2018-10-08 | [acl_loader] fix show acl table (sonic-net#329) [ironjosh] * 54ebfc8 2018-10-05 | Add a "-l/--load-sysinfo" option for "config reload" to merge the system info on device (sonic-net#324) [zhenggen-xu] * 34810df 2018-10-05 | [show] Eliminate need for writing template files for 'show platform summary' and 'show version' (sonic-net#335) [Joe LeVeque] * 4258287 2018-10-05 | Added argument forwarder for platform reboot. (sonic-net#333) [Nazarii Hnydyn] * e2b4bd5 2018-10-03 | Warm reboot: Add support for docker upgrade (sonic-net#292) [Jipan Yang] * f1236aa 2018-10-01 | Root priviliege for ecn configuration set commands (sonic-net#332) [Wenda Ni] * 3098b8a 2018-10-01 | require root privilege for all pfcwd configuration commands (sonic-net#330) [lguohan] * 7627d08 2018-09-27 | [config]: Add portchannel related commands (sonic-net#328) [Shuotian Cheng] * b8a62d7 2018-09-27 | Add 'alias mode' support for show commands (sonic-net#298) [paavaanan] * 4383300 2018-09-26 | [aclshow]: Fix the KeyError issue in aclshow (sonic-net#325) [Shuotian Cheng] Signed-off-by: Guohan Lu <gulv@microsoft.com>
lguohan
added a commit
that referenced
this pull request
Oct 14, 2018
* 6d00d14 2018-10-13 | pfcwd cmd check (#342) (HEAD, origin/master, origin/HEAD) [Wenda Ni] * eb92560 2018-10-12 | [show] Refactor show vlan brief to use configdb and update the output (#340) [Deva Nandhagopal] * 9a139ab 2018-10-10 | Remove explicit dependency on tabulate; Add comments (#336) [Joe LeVeque] * 7874b8f 2018-10-09 | Update restart_count to restore_count for warm restart (#326) [Jipan Yang] * 7a51a85 2018-10-08 | [acl_loader] fix show acl table (#329) [ironjosh] * 54ebfc8 2018-10-05 | Add a "-l/--load-sysinfo" option for "config reload" to merge the system info on device (#324) [zhenggen-xu] * 34810df 2018-10-05 | [show] Eliminate need for writing template files for 'show platform summary' and 'show version' (#335) [Joe LeVeque] * 4258287 2018-10-05 | Added argument forwarder for platform reboot. (#333) [Nazarii Hnydyn] * e2b4bd5 2018-10-03 | Warm reboot: Add support for docker upgrade (#292) [Jipan Yang] * f1236aa 2018-10-01 | Root priviliege for ecn configuration set commands (#332) [Wenda Ni] * 3098b8a 2018-10-01 | require root privilege for all pfcwd configuration commands (#330) [lguohan] * 7627d08 2018-09-27 | [config]: Add portchannel related commands (#328) [Shuotian Cheng] * b8a62d7 2018-09-27 | Add 'alias mode' support for show commands (#298) [paavaanan] * 4383300 2018-09-26 | [aclshow]: Fix the KeyError issue in aclshow (#325) [Shuotian Cheng] Signed-off-by: Guohan Lu <gulv@microsoft.com>
Kalimuthu-Velappan
pushed a commit
to Kalimuthu-Velappan/sonic-buildimage
that referenced
this pull request
Sep 12, 2019
madhanmellanox
pushed a commit
to madhanmellanox/sonic-buildimage
that referenced
this pull request
Mar 23, 2020
Signed-off-by: marian-pritsak <marianp@mellanox.com>
dmytroxshevchuk
pushed a commit
to dmytroxshevchuk/sonic-buildimage
that referenced
this pull request
Aug 31, 2020
yxieca
pushed a commit
that referenced
this pull request
Mar 26, 2023
Why I did it src/linkmgrd * 3403160 - (HEAD -> 202205, origin/202205) [ci] fix azure pipeline (#190) (33 hours ago) [Jing Zhang] * 95abb4c - [active-standby] avoid unnecessary mux state probe after configuring to `auto` (#183) (33 hours ago) [Jing Zhang] * 9277650 - [ci] Fix apt-get install unable locate package issue. (#177) (33 hours ago) [Liu Shilong] src/sonic-linux-kernel * 836aedf - (HEAD -> 202205, origin/202205) [202205] Add Secure Boot Kernel configuration (#310) (35 hours ago) [Sachin Naik] src/sonic-platform-common * 9b367e4 - (HEAD -> 202205, origin/202205) Modify get_host_lane_assignment_option to return value based on application id (#352) (33 hours ago) [mihirpat1] src/sonic-platform-daemons * a6015f2 - (HEAD -> 202205, origin/202205) chassisd: Fix crash on exit on linecard (#347) (33 hours ago) [Patrick MacArthur] * dcc0079 - [Supervisor][fabric] Modify the deinit function not to remove CHASSIS_FABRIC_ASIC_TABLE when supervisorctl stop chassisd (#340) (33 hours ago) [prem-nokia] src/sonic-swss * a2f1428 - (HEAD -> 202205, origin/202205) Run individule pytests instead of running all pytests at once. (#2350) (33 hours ago) [mint570] src/sonic-swss-common * 643132e - (HEAD -> 202205, origin/202205) Fix mod_config with empty config will delete table bug. (#767) (34 hours ago) [Hua Liu] * 4c7ee30 - Revamp module build script to make it work for 5.15 on Ubuntu 20.04 (#720) (34 hours ago) [Saikrishna Arcot]
shanshri
pushed a commit
to shanshri/sonic-buildimage-sonic-net
that referenced
this pull request
Oct 24, 2023
IGB has a dependency on PTP_CLOCK in bookworm and PTP_CLOCK is set to m by debian kconfig Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
mssonicbld
added a commit
that referenced
this pull request
Nov 23, 2023
…tomatically (#17249) #### Why I did it src/sonic-linux-kernel ``` * b2601c7 - (HEAD -> master, origin/master, origin/HEAD) [mellanox] Update Kernel patches and Kconfig for Linux 6.1.x (#359) (3 hours ago) [Vivek] * ba37b4d - Ported Fullcone NAT changes are ported from 5.10 to 6.1 kernel. (#357) (3 hours ago) [Akhilesh Samineni] * b899479 - Bookworm:AMD-Pensando ELBA SOC support (#353) (3 hours ago) [Shantanu Shrivastava] * 07a6d64 - [marvell-arm64]: Update kernel patches for Linux 6.1.x (#352) (3 hours ago) [Keshav Gupta] * 73abe79 - Set CONFIG_IGB to m for the build to work (#340) (3 hours ago) [Vivek] * 0c12436 - Use bookworm-tagged slave container for now (3 hours ago) [Saikrishna Arcot] * aca1572 - Use bookworm slave container (3 hours ago) [Saikrishna Arcot] * bbf045a - Update kernel to 6.1.38 (3 hours ago) [Saikrishna Arcot] ``` #### How I did it #### How to verify it #### Description for the changelog
mlok-nokia
pushed a commit
to mlok-nokia/sonic-buildimage
that referenced
this pull request
Jun 5, 2024
[yang-models] Add YANG model for SYSTEM_PORT (sonic-net#12689)
DavidZagury
pushed a commit
to DavidZagury/sonic-buildimage
that referenced
this pull request
Dec 7, 2024
IGB has a dependency on PTP_CLOCK in bookworm and PTP_CLOCK is set to m by debian kconfig Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
bobby-nexthop
pushed a commit
to bobby-nexthop/sonic-buildimage
that referenced
this pull request
Aug 1, 2025
…_FABRIC_ASIC_TABLE when supervisorctl stop chassisd (sonic-net#340) Code changes are implemented in deinit function such that it does not remove entries in CHASSI_FABRIC_ASIC_TABLE when supervisorctl stop chassisd is triggered.
jianyuewu
added a commit
to jianyuewu/sonic-buildimage
that referenced
this pull request
Feb 10, 2026
Issue When try upgrade internal SW and reboot, in some rare case, it will report error: 2025 Dec 20 13:47:54.048784 sonic_testbed ERR determine-reboot-cause: :- parseDatabaseConfig: Sonic database config file doesn't exist at /var/run/redis/sonic-db/database_config.json 2025 Dec 20 13:47:54.048904 sonic_testbed INFO determine-reboot-cause[16038]: Traceback (most recent call last): 2025 Dec 20 13:47:54.048942 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/bin/determine-reboot-cause", line 298, in <module> 2025 Dec 20 13:47:54.048972 sonic_testbed INFO determine-reboot-cause[16038]: main() 2025 Dec 20 13:47:54.049002 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/bin/determine-reboot-cause", line 257, in main 2025 Dec 20 13:47:54.049039 sonic_testbed INFO determine-reboot-cause[16038]: previous_reboot_cause, additional_reboot_info = determine_reboot_cause() 2025 Dec 20 13:47:54.049070 sonic_testbed INFO determine-reboot-cause[16038]: ^^^^^^^^^^^^^^^^^^^^^^^^ 2025 Dec 20 13:47:54.049099 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/bin/determine-reboot-cause", line 185, in determine_reboot_cause 2025 Dec 20 13:47:54.049142 sonic_testbed INFO determine-reboot-cause[16038]: hardware_reboot_cause = find_hardware_reboot_cause() 2025 Dec 20 13:47:54.049172 sonic_testbed INFO determine-reboot-cause[16038]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025 Dec 20 13:47:54.049204 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/bin/determine-reboot-cause", line 126, in find_hardware_reboot_cause 2025 Dec 20 13:47:54.049232 sonic_testbed INFO determine-reboot-cause[16038]: hardware_reboot_cause_major, hardware_reboot_cause_minor = get_reboot_cause_from_platform() 2025 Dec 20 13:47:54.049261 sonic_testbed INFO determine-reboot-cause[16038]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025 Dec 20 13:47:54.049289 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/bin/determine-reboot-cause", line 114, in get_reboot_cause_from_platform 2025 Dec 20 13:47:54.049330 sonic_testbed INFO determine-reboot-cause[16038]: platform = sonic_platform.platform.Platform() 2025 Dec 20 13:47:54.049359 sonic_testbed INFO determine-reboot-cause[16038]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025 Dec 20 13:47:54.049387 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/lib/python3.11/dist-packages/sonic_platform/platform.py", line 35, in __init__ 2025 Dec 20 13:47:54.052263 sonic_testbed INFO determine-reboot-cause[16038]: self._chassis = SmartSwitchChassis() 2025 Dec 20 13:47:54.052303 sonic_testbed INFO determine-reboot-cause[16038]: ^^^^^^^^^^^^^^^^^^^^ 2025 Dec 20 13:47:54.052332 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/lib/python3.11/dist-packages/sonic_platform/chassis.py", line 1264, in __init__ 2025 Dec 20 13:47:54.053215 sonic_testbed INFO determine-reboot-cause[16038]: self.initialize_modules() 2025 Dec 20 13:47:54.053256 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/lib/python3.11/dist-packages/sonic_platform/chassis.py", line 1301, in initialize_modules 2025 Dec 20 13:47:54.053479 sonic_testbed INFO determine-reboot-cause[16038]: self.initialize_single_module(index=index) 2025 Dec 20 13:47:54.053518 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/lib/python3.11/dist-packages/sonic_platform/chassis.py", line 1293, in initialize_single_module 2025 Dec 20 13:47:54.053748 sonic_testbed INFO determine-reboot-cause[16038]: module = DpuModule(index) 2025 Dec 20 13:47:54.053788 sonic_testbed INFO determine-reboot-cause[16038]: ^^^^^^^^^^^^^^^^ 2025 Dec 20 13:47:54.053817 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/local/lib/python3.11/dist-packages/sonic_platform/module.py", line 288, in __init__ 2025 Dec 20 13:47:54.054556 sonic_testbed INFO determine-reboot-cause[16038]: self.chassis_state_db = SonicV2Connector(host="127.0.0.1") 2025 Dec 20 13:47:54.054595 sonic_testbed INFO determine-reboot-cause[16038]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025 Dec 20 13:47:54.054624 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/lib/python3/dist-packages/swsscommon/swsscommon.py", line 2254, in __init__ 2025 Dec 20 13:47:54.057262 sonic_testbed INFO determine-reboot-cause[16038]: for db_name in self.get_db_list(): 2025 Dec 20 13:47:54.057304 sonic_testbed INFO determine-reboot-cause[16038]: ^^^^^^^^^^^^^^^^^^ 2025 Dec 20 13:47:54.057333 sonic_testbed INFO determine-reboot-cause[16038]: File "/usr/lib/python3/dist-packages/swsscommon/swsscommon.py", line 2191, in get_db_list 2025 Dec 20 13:47:54.057642 sonic_testbed INFO determine-reboot-cause[16038]: return _swsscommon.SonicV2Connector_Native_get_db_list(self) 2025 Dec 20 13:47:54.057687 sonic_testbed INFO determine-reboot-cause[16038]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025 Dec 20 13:47:54.057718 sonic_testbed INFO determine-reboot-cause[16038]: RuntimeError: Sonic database config file doesn't exist at /var/run/redis/sonic-db/database_config.json Fix Add database.service to Requires/After, so determine-reboot-cause runs only after Redis/StateDB is up, avoiding failures when database_config.json is not yet present.
FengPan-Frank
pushed a commit
to FengPan-Frank/sonic-buildimage
that referenced
this pull request
Mar 6, 2026
…utomatically (sonic-net#25318) #### Why I did it src/sonic-host-services ``` * 88df6ff - (HEAD -> master, origin/master, origin/HEAD) determine-reboot-cause: wait for database before running (sonic-net#340) (5 hours ago) [Jianyue Wu] ``` #### How I did it #### How to verify it #### Description for the changelog Signed-off-by: Feng Pan <fenpan@microsoft.com>
dprital
pushed a commit
that referenced
this pull request
Mar 19, 2026
…utomatically (#25318) #### Why I did it src/sonic-host-services ``` * 88df6ff - (HEAD -> master, origin/master, origin/HEAD) determine-reboot-cause: wait for database before running (#340) (5 hours ago) [Jianyue Wu] ``` #### How I did it #### How to verify it #### Description for the changelog Signed-off-by: dprital <drorp@nvidia.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
allow one image to support multiple switch devices, install
corresponding platform driver during the first boot time.