summaryrefslogtreecommitdiff
path: root/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh
AgeCommit message (Collapse)AuthorFilesLines
2022-05-05meta-fii: meta-kudo: Version bump and interpret version as decimalCharles Boyer1-3/+3
The version value used to be interpreted as hexadecimal for IPMI and then was changed to decimal to match Redfish. This will change the interpretation to decimal and increment to the next version. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I9e3513c7e51186bdbdbc2f3526a8e1dd0edf808d
2022-05-04meta-fii: meta-kudo: Updates for kudo fw and sys utilitiesKarthikeyan Sundaram1-0/+1
kudo.sh: Show which SCP EEPROM is used in (fw) option kudo-lib.sh: Added get_scp_eeprom() function Signed-off-by: Karthikeyan Sundaram <karthikeyan.sundaram@fii-na.com> Change-Id: I686ff6b3bf9ab8ef7434ab44f0668912bfffb9b2
2022-04-21meta-fii: meta-kudo: Use I2C array definitions in kudo-lib.shCharles Boyer1-10/+10
Adds the I2C bus and address in array form to kudo-lib.sh, and replaces the hardcoded values with references across Kudo layer. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I69bbff444e013e61d7f7fd5051612a6d4adc8ded
2022-04-21meta-fii: meta-kudo: Use GPIO line names instead of numberCharles Boyer1-37/+37
Replaces hard-coded GPIO throughout the Kudo layer with a reference to its line name from DTS. The process to dynamically obtain the GPIO number for Get is added to kudo-lib.sh, 1. Use `gpiofind <Line Name>` to obtain gpiochip# and pin# 2. If the gpiochip# exceeds the number of GPIO banks of Nuvoton, then it is an I/O Expander. a. Use `gpiodetect` and extract the I2C bus-addr b. Obtain GPIO base value from sysfs using bus-addr c. The GPIO number is then the (base + pin#) 3. If the gpiochip# is within Nuvoton GPIO banks, then calculate the GPIO number as ((gpiochip#)*32 + pin#) Then the GPIO number can be used in the export to obtain the value. Tested with Nuvoton: - Can read/set Nuvoton GPIO with defined line names - Can read/set GPIO from I/O Expanders with defined line names Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I651c0707a8bbc170d3c5a5fc261e5f9c62453e9f
2022-04-08meta-fii: meta-kudo: Fix shellcheck errorsCharles Boyer1-39/+41
Fixes bash shellcheck errors so that the exemptions in run-repotest can be removed. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I6afb059cf1151c871ddfcaf67efc6a63183f7130
2022-03-24meta-fii: meta-kudo: Modify Hex to Dec conversionAshwin Murali1-2/+2
Fix an issue where the SubMajor version was not converted correctly from Hex to Dec. Signed-off-by: Ashwin Murali <ashwin.murali@fii-na.com> Change-Id: I38d9d7e93652696b9674a8719d751325160b4f13
2022-01-18meta-fii/meta-kudo: Organize executables to follow anti-patterns.mdCharles Boyer1-1/+1
According to https://github.com/openbmc/docs/blob/master/anti-patterns.md, /usr/sbin is reserved for system administration executables. The executables called by services or internal use are placed in /usr/libexec/<package>. Executables kept in /usr/sbin, - kudo.sh - kudo-ras.sh - kudo-fw.sh Executables moved to /usr/libexec, - ampere-hostctrl/ampere_power_util.sh - kudo-fw/kudo-fw-ver.sh - kudo-fw/kudo-lib.sh - kudo-boot/init_once.sh - usb-network/usb_network.sh - obmc-console/kudo_uart_mux_ctrl.sh - pwm-init/pwm_init.sh - phosphor-virtual-sensor/tla2024-enable.sh Also removed /usr/bin/env from service files. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I270eee5cb9c0ca248f1b84a87d1cff5c6dc129f3
2022-01-12meta-fii/meta-kudo: Modify kudo.sh fw to display version in decimalXP Chen1-2/+18
Modify the kudo.sh fw to display BMC version format in decimal Signed-off-by: Mustafa Shehabi <mustafa.shehabi@fii-na.com> Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: Ifdc18e4b417bd764794750a2f7a28db849c17eca
2021-07-30meta-fii/meta-kudo: update kudo utilityLancelot Kao1-10/+27
1. Update to support DVT board 2. Support command for console redirection 3. Disable 2nd CPU clock when only 1 CPU is installed 4. Set HPM_STBY_RST_N to High to match dcscm spec Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I300b272587ddc2c7d82aa76196e5db100d02aae2 Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>
2021-07-27meta-fii/meta-kudo: add adm1266 flashMohaimen Alsamarai1-4/+4
add unbind adm1266 driver to support the flash Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com> Change-Id: I4221e646279b41b84c1d2be89ad3fb0df2220407
2021-05-14meta-fii/meta-kudo: Add kudo-cmd a collection of kudo system utilsXP Chen1-0/+276
1. Add Kudo.sh, a script for display and controlling kudo system 2. Add kudo-ras.sh for debug Ampere system errors on kudo system Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: I5763e0de4be942b9b851b910448d15135ca9db16 Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>