Merge branch 'master' into K4.14

This commit is contained in:
Lewis Kang
2018-06-06 08:30:38 +08:00
committed by GitHub
9 changed files with 19 additions and 9 deletions

View File

@@ -1065,7 +1065,7 @@ class InitrdContext(SubprocessMixin):
if "efivarfs" not in buf:
cmd = ('modprobe', 'efivarfs',)
try:
self.check_call(cmd, vmode=self.V1)
self.check_output(cmd, vmode=self.V1, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError:
pass

View File

@@ -11,7 +11,7 @@
import pprint
import json
import os
import os, sys
import re
import yaml
import onl.YamlUtils
@@ -386,6 +386,9 @@ class OnlPlatformBase(object):
rv[field['name']] = v['data'][field['key']]
except:
pass
finally:
if 'dmidecodemod' in sys.modules:
sys.modules['dmidecodemod'].clear_warnings()
return rv
def upgrade_manifest(self, type_, override_dir=None):

View File

@@ -67,6 +67,13 @@ def baseconfig():
f.write(dmidecode.QuerySection('system')['0x0001']['data']['Version'])
except:
pass
finally:
if 'dmidecodemod' in sys.modules:
mod = sys.modules['dmidecodemod']
buf = mod.get_warnings()
if buf:
[msg("*** %s\n" % x) for x in buf.splitlines(False)]
mod.clear_warnings()
if not platform.baseconfig():
msg("*** platform class baseconfig failed.\n", fatal=True)

View File

@@ -4000,7 +4000,7 @@ CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y
CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
# CONFIG_CONFIGFS_FS is not set
CONFIG_EFIVAR_FS=m
CONFIG_EFIVAR_FS=y
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ADFS_FS is not set

View File

@@ -196,7 +196,7 @@ onlp_psu_show(onlp_oid_t id, aim_pvs_t* pvs, uint32_t flags)
}
else {
iof_iprintf(&iof, "Status: Running");
iof_iprintf(&iof, "Model: %s", pi.model[0] ? pi.model : "Unknown");
if(pi.model[0]) iof_iprintf(&iof, "Model: %s", pi.model);
if(pi.serial[0]) iof_iprintf(&iof, "SN: %s", pi.serial);
if(pi.caps & ONLP_PSU_CAPS_AC) {
iof_iprintf(&iof, "Type: AC");

View File

@@ -177,8 +177,8 @@ sfpi_eeprom_read(int port, uint8_t devaddr, uint8_t data[256])
return ONLP_STATUS_E_INTERNAL;
}
data[i] = val & 0xff;
data[i+1] = (val >> 8) & 0xff;
data[i*2] = val & 0xff;
data[(i*2)+1] = (val >> 8) & 0xff;
}
return ONLP_STATUS_OK;

View File

@@ -213,7 +213,7 @@ static struct pca953x_platform_data pca9698_2_data = {
};
//CPU Board pca9555
static struct pca953x_platform_data pca9555_CPU_data = {
.gpio_base = 0x40,
.gpio_base = 0x48,
};
static struct i2c_board_info ix8_i2c_devices[] = {
{

View File

@@ -11,7 +11,7 @@
#define QUANTA_IX8_I2C_GPIO_BASE 0x10
#define QUANTA_IX8_I2C_GPIO_CPU_BASE 0x40
#define QUANTA_IX8_I2C_GPIO_CPU_BASE 0x48
#define QUANTA_IX8_CPU_BOARD_GPIO_BASE (QUANTA_IX8_I2C_GPIO_CPU_BASE)
#define QUANTA_IX8_CPU_BOARD_SYS_P1 (QUANTA_IX8_CPU_BOARD_GPIO_BASE + QUANTA_IX8_PCA953x_GPIO(1,2))