Change console baudrate to be 57600.

I2c bus from cp2112 is at bus 1, instead of bus0.
Signed-off-by: roy_lee <roy_lee@accton.com>
This commit is contained in:
roy_lee
2018-12-17 15:04:54 +08:00
parent ff9df1b200
commit ee689111cb
2 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ x86-64-accton-minipack-r0:
serial: >-
--unit=0
--speed=9600
--speed=57600
--word=8
--parity=0
--stop=1
@@ -22,7 +22,7 @@ x86-64-accton-minipack-r0:
args: >-
nopat
console=ttyS0,9600n8
console=ttyS0,57600n8
rd_NO_MD
rd_NO_LUKS
intel_iommu=off

View File

@@ -13,12 +13,12 @@ class OnlPlatform_x86_64_accton_minipack_r0(OnlPlatformAccton,
########### initialize I2C bus 1 ###########
# initialize level 1 multiplexer (PCA9548)
self.new_i2c_devices([
('pca9548', 0x70, 0),
('pca9548', 0x70, 1),
('24c64', 0x57, 0),
])
# initialize multiplexer for 8 PIMs
for pim in range(1, 9):
for pim in range(2, 10):
self.new_i2c_devices([
('pca9548', 0x72, pim),
('pca9548', 0x71, pim),
@@ -27,7 +27,7 @@ class OnlPlatform_x86_64_accton_minipack_r0(OnlPlatformAccton,
# Initialize QSFP devices
for port in range(1, 129):
self.new_i2c_device('optoe1', 0x50, port+8)
base = ((port-1)/8*8) + 9
base = ((port-1)/8*8) + 10
index = (port - 1) % 8
index = 7 - index
if (index%2):