099f9b0a6a
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> |
||
---|---|---|
.. | ||
docker-saiserver-brcm | ||
docker-syncd-brcm | ||
docker-syncd-brcm-rpc | ||
saibcm-modules | ||
sonic-platform-modules-accton | ||
sonic-platform-modules-alphanetworks | ||
sonic-platform-modules-arista@390d5e22f9 | ||
sonic-platform-modules-brcm-xlr-gts | ||
sonic-platform-modules-cel | ||
sonic-platform-modules-dell | ||
sonic-platform-modules-delta | ||
sonic-platform-modules-ingrasys | ||
sonic-platform-modules-inventec | ||
sonic-platform-modules-juniper | ||
sonic-platform-modules-mitac | ||
sonic-platform-modules-quanta | ||
docker-ptf-brcm.mk | ||
docker-saiserver-brcm.mk | ||
docker-syncd-brcm-rpc.mk | ||
docker-syncd-brcm.mk | ||
libsaithrift-dev.mk | ||
one-aboot.mk | ||
one-image.mk | ||
platform-modules-accton.mk | ||
platform-modules-alphanetworks.mk | ||
platform-modules-arista.mk | ||
platform-modules-brcm-xlr-gts.mk | ||
platform-modules-cel.mk | ||
platform-modules-dell.mk | ||
platform-modules-delta.mk | ||
platform-modules-ingrasys.mk | ||
platform-modules-inventec.mk | ||
platform-modules-juniper.mk | ||
platform-modules-mitac.mk | ||
platform-modules-quanta.mk | ||
platform.conf | ||
raw-image.mk | ||
rules.mk | ||
sai-modules.mk | ||
sai.mk |