Lines Matching +full:conf +full:- +full:rst
5 # shellcheck source=meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh
6 source /usr/libexec/kudo-fw/kudo-lib.sh
9 echo " kudo rst [parameter]"
10 echo " hotswap --> reset the whole kudo node"
11 echo " system --> reset the host"
12 echo " btn --> trigger a power button event"
13 echo " shutdown --> send out shutdown signal to CPU"
14 echo " display --> "
19 echo " on --> change to CPU console"
20 echo " off --> change to CPU 0 SCP console"
21 echo " status --> change to CPU 1 SCP console"
26 echo " host --> show CPU console"
27 echo " scp --> show SCP0 console"
28 echo " swhost --> change to CPU console to ttyS1"
29 echo " swscp1 --> change to CPU 0 SCP console to ttyS3"
30 echo " swscp2 --> change to CPU 1 SCP console"
31 echo " swhosthr --> change CPU console to header"
32 echo " swscphr --> change SCP console to header"
33 echo " display --> "
39 echo " rst --> reset traget device"
40 echo " fw --> get version"
41 echo " uart --> control the uart mux"
42 echo " led --> control the leds"
98 # Save VERSION_ID line in string "VERSION_ID=vXX.XX-XX-kudo"
99 StringVersion=$(awk '/VERSION_ID/' /etc/os-release)
105 #Save SubMajor Version valeu between . and - ".XX-" then convert Hex to Decimal
107 SubMajorVersion=$(( 10#${SubMajorVersion%%-*}))
109 #Save Minor Version value between - and - "-XX-" then convert Hex to Decimal
110 MinorVersion=${StringVersion#*-}
111 MinorVersion=$(( 10#${MinorVersion%-*}))
116 i2cset -y -f -a "${I2C_BMC_PWRSEQ[0]}" 0x"${I2C_BMC_PWRSEQ[1]}" 0xfe 0x0000 w
117 …cmd=$(i2cget -y -f -a "${I2C_BMC_PWRSEQ[0]}" 0x"${I2C_BMC_PWRSEQ[1]}" 0xfe i 2 | awk '{print subst…
120 if [[ -e /var/lib/smbios/smbios2 ]]; then
126 cmd=$(i2cget -f -y "${I2C_S0_SMPRO[0]}" 0x"${I2C_S0_SMPRO[1]}" 0x1 w);
141 obmc-console-client -c /etc/obmc-console/server.ttyS1.conf
149 obmc-console-client -c /etc/obmc-console/server.ttyS3.conf
173 if [ "$(get_gpio_ctrl S0_UART0_BMC_SEL)" -eq 1 ]; then
178 …if [ "$(get_gpio_ctrl S0_UART1_BMC_SEL)" -eq 1 ] && [ "$(get_gpio_ctrl S1_UART0_BMC_SEL)" -eq 1 ];…
179 if [ "$(get_gpio_ctrl S1_UART1_BMC_SEL)" -eq 1 ]; then
184 …elif [ "$(get_gpio_ctrl S0_UART1_BMC_SEL)" -eq 0 ] && [ "$(get_gpio_ctrl S1_UART0_BMC_SEL)" -eq 0 …
185 if [ "$(get_gpio_ctrl S1_UART1_BMC_SEL)" -eq 1 ]; then
206 …CurrentLED=$( i2cget -y -f -a "${I2C_MB_CPLD[0]}" 0x"${I2C_MB_CPLD[1]}" 0x05 i 1 | cut -d ' ' -f 2)
213 if [[ $cmd -eq 0 ]]; then
215 i2cset -y -f -a "${I2C_MB_CPLD[0]}" 0x"${I2C_MB_CPLD[1]}" 0x10 $setValue
220 if [[ $cmd -eq 1 ]]; then
222 i2cset -y -f -a "${I2C_MB_CPLD[0]}" 0x"${I2C_MB_CPLD[1]}" 0x10 $setValue
228 i2cset -y -f -a "${I2C_MB_CPLD[0]}" 0x"${I2C_MB_CPLD[1]}" 0x10 $setValue
232 if [[ $cmd -eq 1 ]]; then
248 if [[ $cmd -eq 0 ]]; then
250 i2cset -y -f -a "${I2C_MB_CPLD[0]}" 0x"${I2C_MB_CPLD[1]}" 0x10 $setValue
255 if [[ $cmd -eq 1 ]]; then
257 i2cset -y -f -a "${I2C_MB_CPLD[0]}" 0x"${I2C_MB_CPLD[1]}" 0x10 $setValue
263 i2cset -y -f -a "${I2C_MB_CPLD[0]}" 0x"${I2C_MB_CPLD[1]}" 0x10 $setValue
267 if [[ $cmd -eq 1 ]]; then
288 printf "udc%d : 0xF083%d154-" "${i}" "${i}"
294 rst)