Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,14 @@
#!/bin/bash
bus=0
address=0x0d
offset=0x05
str=$(i2ctransfer -y -a $bus w2@$address $offset 0x00 r1)
version=${str:2:2}
echo "CPLD version got from I2C:$version"
if [ "$version" == "" ]; then
echo "CPLD version is null, skip"
else
mapper wait /xyz/openbmc_project/software/cpld_active
busctl set-property xyz.openbmc_project.Software.BMC.Updater /xyz/openbmc_project/software/cpld_active xyz.openbmc_project.Software.Version Version s ${version}
echo "Restored CPLD version ${version}"
fi