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,29 @@
#!/bin/bash
cpld_image=$(ls $1/*.svf)
jtag_node="/dev/jtag1"
check_env() {
echo "[Info]: Check Environment."
#add action to prepare flash cpld.
#check cpld exist ?
}
flash_cpld() {
echo "[Info]: Flash CPLD."
echo "[Info]: Switch CPLD JTAG mux to BMC."
gpioset 0 124=1
gpioset 0 122=0
echo "[Info]: CPLD Image:$cpld_image"
/usr/bin/svf -n $jtag_node -s -p $cpld_image
}
enable_new_fw() {
echo "[Info]: Enable New Firmware."
}
check_env
flash_cpld
enable_new_fw