Auto negotiating console speed could cause sonic to lock on a wrong
speed under rare conditions. The only way to come out of the wrong
speed is to issue line break or restart console service with forced
speed, or reboot sonic.
Lock down the console speed to avoid these situations.
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Flashes used for the 7050QX-32 and 7050QX-32S have a fw issue.
The best option to solve the problem is to upgrade to a newer firmware.
However this can only be done while in memory and take 10 seconds.
Adding an upgrade mechanism is possible but would need more
consideration as flashing the firmware and reformating the flash will
exceed the fast-reboot requirements.
A quick mitigation is to align the ext4 partition that we create on
these vfat based system on a 4k boundary.
Here we chose 1M instead but it's the same.
Newer version of sfdisk do this automatically but the one in SONiC
today doesn't have this behavior.
This workaround will only reduce the pace of the flash health
degradation. The only long term fix is to flash the firmware.
* Use MAC from EEPROM for PortChannels
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
* Use MAC from EEPROM in DEVICE_METADATA
Will affect MAC for VLAN interfaces
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
* Get MAC via decode-syseeprom
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
* hw-management is now a service
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
* Add error handling for MAC fetch process
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
- Correct lane map in broadcom configuration
- Add writes to txdisable bits for SFPs in hwsku-init
- Add correct hwsku-init implementation for 201803 branch
- Introduced systemd .service files to start and stop platform drivers.
- Moved depmod in *.postinst files. So, during first-time boot depmod is triggered post package installation and drivers will be loaded without any issues.
Signed-off-by: Guohan Lu <gulv@microsoft.com>
On overlay filesystem the name of the mountpoint will also match in the
mount command for overlayfs as upperdir=
To prevent detecting the wrong partition we now look for space before.
This ensure that we match mountpoint and not devices in df and mount
outputs.
debian/rules should be 755 and will be modified to 755 if not, which
can cause the image to be marked as dirty
Signed-off-by: Guohan Lu <gulv@microsoft.com>
When there is HWSKU specific initialization needs to be performed, please
add hwsku-init script under device folder, it will be invoked by swss
before any subsequent initializations.
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
* Enable WRED red color profile on mellanox platform
Signed-off-by: Wenda Ni <wenni@microsoft.com>
* Change ingress alpha to 2^(-3) on a7050
* a7050: Add dscp 46 mapping to pg 5 and queue 5; link pg 5 and queue 5 to
lossy profile; Make ecn off by default on queues
Signed-off-by: Wenda <wenni@microsoft.com>
1e61b29 [sonic_eeprom] If reading from what appears to be a corrupt cache file, delete file and read directly from EEPROM (#10)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
for ecn on/off operations, which are conducted at per queue all interfaces granularity.
TODO:
Ideally, we should have ECN/WRED profile applied at per interface per queue
granularity, and we should do it for all hwskus under the device
directory, not just 7050.
Signed-off-by: Wenda Ni <wenni@microsoft.com>
led start bcm cmd triggers link state notifications.
This is quick fix to avoid such fake link state notifications.
Signed-off-by: Guohan Lu <gulv@microsoft.com>