This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/platform
CharlieChenEC 099f9b0a6a [devices]:start opennsl modules after platform handle mac service on AS7326-56X/AS7726-56X (#3726)
AS7326-56X and AS7726-56X use the same design so both devices have the same problem.
The detailed description below takes AS7326-56X as the example to explain.

Original implementation:
- In platform/broadcom/sonic-platform-modules-accton/as7326-56x/service/as7326-platform-handle_mac.service,
  it executes the script file "accton_handle_idt.sh".
- In "accton_handle_idt.sh", it modifies the content of the script file "/etc/init.d/opennsl-modules"
  to insert the lines to execute "idt_init.sh" before the command to load broadcom linux kernel module "linux-kernel-bde.ko".
- The script "idt_init.sh" cannot be executed at the first boot of SONiC after installing SONiC under ONIE. This is the reason why all of the ports does not work.

New implementation:
- Let "as7326-platform-handle_mac.service" execute "idt_init.sh".
- Change the content of "as7326-platform-handle_mac.service" to define the service type as "oneshot". Add the settings to ensure "as7326-platform-handle_mac.service" is executed before "opennsl-modules.service".
  By setting the service type as "oneshot", it is guaranteed that "opennsl-modules.services" is started only when the forked process to execute the script file "idt_init.sh" is terminated

Signed-off-by: charlie_chen <charlie_chen@edge-core.com>
2019-11-09 10:23:18 -08:00
..
barefoot [build]: Fixed BFN target build (#3721) 2019-11-07 11:01:53 -08:00
broadcom [devices]:start opennsl modules after platform handle mac service on AS7326-56X/AS7726-56X (#3726) 2019-11-09 10:23:18 -08:00
cavium [build]: Move Systemd service start to systemd generator (#3172) 2019-07-29 15:52:15 -07:00
centec [build]: Move Systemd service start to systemd generator (#3172) 2019-07-29 15:52:15 -07:00
generic [build]: Move Systemd service start to systemd generator (#3172) 2019-07-29 15:52:15 -07:00
innovium [innovium]: Fix package path + add SYSTEMD_SONIC_GENERATOR (#3351) 2019-08-15 22:06:06 -07:00
marvell [Platform] Updated Marvell x86 platform makefiles (#3606) 2019-10-17 18:16:57 -07:00
marvell-arm64 [build]: sonic arm64 changes (#3419) 2019-09-11 09:41:38 -07:00
marvell-armhf [build]: Kill arm march docker service before every run to avoid stale entries (#3644) 2019-10-24 13:50:45 -07:00
mellanox [mellanox] Upgrade HW-MGMT to V.7.0000.2303 (#3707) 2019-11-06 00:27:18 +02:00
nephos [device/accton] Platform2.0 API Implementation for accton as7116-54x (#3622) 2019-11-08 21:49:46 -08:00
p4 [swss] Remove "-p port_config.ini" option from the portsyncd (#3671) 2019-10-27 21:15:39 -07:00
template [build]: Makefile: Extend to build debug docker images for all stretch dockers (#2789) 2019-04-19 18:49:21 -07:00
vs Enable sflowmgrd in docker-sonic-vs (#3595) 2019-10-29 18:05:55 -07:00