EditReg
Edit each field of SOC internal register
- EditReg
Shortest form:
er.Edit a register field by field. The shell reads the register, prints
Current value: 0x…, then asks for each field in turn; type a new value or press Enter to keep it. A value too wide for a field is refused (Value too big for <n>-bit field, try again.). At the end it printsWriting new value: 0x…and writes the register.Warning
This writes the hardware behind SONiC’s back (see
Setreg).editregneeds an interactive terminal. Throughbcmcmdthere is no one to answer the prompts, so useModreginstead.Unvalidated
drivshell> editreg CLMAC_CTRL.ce0Built-in help
Parameters: <REGISTER> Loads a register and displays each field, providing an opportunity to modify each field.Further reading