INIT
Initialize SOC and S/W
- INIT
Initialise the switch chip and SDK layers, usually with a chip reset. The keywords must be spelt out.
Warning
initresets or reprograms the ASIC underneathsyncd. Ports, routes and ACLs that the SAI configured are lost, traffic stops, and the switch stays broken untilsyncdrestarts. Use it only in a lab.The built-in help lists
interrupt; on Trident 3 that is rejected withUnknown module: interrupt.pvt_monandfgl_apiprintParameters error.init soc FALSEis the same asinit noreset.Unvalidated
drivshell> init all- init soc [FALSE]
What a plain
initdoes: stop the unit’s background tasks, reset the chip and set up the minimal registers and interrupts. WithFALSEthe chip is not reset.Unvalidated
drivshell> init soc
- init noreset
Like
init soc, but without resetting the chip.Unvalidated
drivshell> init noreset
- init all
Full initialisation: chip, MMU, chip-specific setup and the BCM driver. The usual step after changing a variable with
configin a lab. Errors printUnable to reset and initialize BCM driver.Unvalidated
drivshell> init all
- init bcm
Initialise only the BCM driver layer.
Unvalidated
drivshell> init bcm
- init mmu
Program only the MMU (packet buffer) settings.
init miscandinit tcamdo the same for chip-specific setup and the TCAMs.Unvalidated
drivshell> init mmu
Single modules:
init <module> …. Initialise single BCM modules, such asport,l2,vlanorl3(see the built-in help for the list). The chip must already be initialised; otherwise it printsPlease try "init soc" first.. An unknown name printsUnknown moduleand the usage.Unvalidated
drivshell> init l2Built-in help
Parameters: [soc|noreset|mmu|bcm|misc|interrupt|all] Performs various initializations (default is soc): soc - resets the device, configures minimal register settings and enables interrupts noreset - like soc, but does not reset the device mmu - writes SDRAM and MMU parameters (does not size GBP) bcm - initializes BCM driver internals/registers/tables misc - performs chip-specific fundamental initialization tcam - perform tcam initialization interrupt - initialize Interrupt Application Handler all - equivalent to performing soc, mmu, misc, and bcm Additional selective initialization (components of 'init bcm'): port, l2, vlan, trunk, cosq, mcast, linkscan, stat, filter, diffserv mirror, packet, l3, stack, ipmc, stg, mbcm, stp, tx, auth.Further reading
bcmsh.md (published as https://kamelnetworks.github.io/sonic/bcmsh.html), SDK-6.5.20 HSDK Getting Started Guide (GS-SDK6520-R), plus SDK-6.5.20/21/22 Release Notes (RN-SDK65xx-R), OpenBCM sdk-6.5.27/rc: rc.soc, config.bcm, td3_sanity.soc, cmd_td3_tr514_lr.soc, tr51/tr517_bcm56870_a0.soc, bcm_diag_info.soc …, BCM_SDK命令.