diff options
author | Joel Stanley <joel@jms.id.au> | 2021-03-01 08:58:51 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2021-03-03 20:49:58 +0300 |
commit | 710dd2d406bae814547294bfa3de817063033fc1 (patch) | |
tree | 4f8c49cc0d628a3f3f1d18a3ef68e2e6c7f4de2a /meta-mellanox/meta-msn/recipes-phosphor/initfs/files/recovery.sh | |
parent | 4716254dbaae9ec5d88386a9ada9bb0271a31ca3 (diff) | |
download | openbmc-710dd2d406bae814547294bfa3de817063033fc1.tar.xz |
Retire meta-mellenaox and the MSN machine
This was a machine contributed by Mykola Kostenok
<c_mykolak@mellanox.com> back in 2017, during the infancy of OpenBMC.
It was the first non-IBM machine contributed to the repository.
There's been no updates to this machine since September 2017, and the
device tree was dropped in the move from dev-4.10 to dev-4.13. Some parts
of the system live on at https://github.com/mellanoxbmc.
So long and thanks for all the fish, meta-msn!
Signed-off-by: Joel Stanley <joel@jms.id.au>
Change-Id: If610d48fd01785bf727b36dec055fe167f964a5c
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'meta-mellanox/meta-msn/recipes-phosphor/initfs/files/recovery.sh')
-rw-r--r-- | meta-mellanox/meta-msn/recipes-phosphor/initfs/files/recovery.sh | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/meta-mellanox/meta-msn/recipes-phosphor/initfs/files/recovery.sh b/meta-mellanox/meta-msn/recipes-phosphor/initfs/files/recovery.sh deleted file mode 100644 index 256e18fdb..000000000 --- a/meta-mellanox/meta-msn/recipes-phosphor/initfs/files/recovery.sh +++ /dev/null @@ -1,52 +0,0 @@ - -#!/bin/sh -# -# Script to burn entire 32MB of BMC SPI Flash 1 -# -# Usage: -# a) Local: /run/initramfs/recovery <bmc-image-file> -# -# Assumptions: -# <bmc-image-file> is a 32MB file representing all partitions in BMC SPI Flash -# <bmc-image-file> exists on local filesystem -# /dev/mtd0 represents entire BMC SPI Flash device -# /dev/mtd5 is a JFFS2 filesystem (rwfs) partition -# /bsp/reset/bmc_upgrade is symlink pointing to proper sticky bit in CPLD -# - -if [ -f $1 ] -then - echo $0: Update BMC SPI Flash with $1 -else - echo $0: File $1 not found on target, exiting - exit -fi - -echo $0: Remounting rwfs "(/dev/mtd5)" as read-only -mount /dev/mtdblock5 /run/initramfs/rw -t jffs2 -o remount,ro - -echo $0: Unmounting rofs "(/dev/mtd4)" -umount /dev/mtdblock4 - -devmem 0x1e785034 l 0x01; - -MAC=`fw_printenv ethaddr | sed -n "s/^ethaddr=//p"` - -echo $0: Burning SPI Flash "(/dev/mtd0)" with image "$1" -/usr/sbin/flashcp -v $1 /dev/mtd0 - -if [ -v $MAC ]; then - echo "MAC env variable not exist. Set eth0 MAC from eeprom." - MAC=`hexdump -n 6 -s 0xf0 -v -e '/1 "%02x:"' /sys/bus/i2c/devices/6-0055/eeprom`;MAC=${MAC::-1}; -else - echo "MAC env variable exist. Set eth0 MAC from env." -fi; - -fw_setenv ethaddr $MAC - -echo $0: Setting bmc_upgrade sticky bit in CPLD -echo 1 > /bsp/reset/bmc_upgrade - -echo $0: Rebooting BMC -echo 0 > /bsp/reset/bmc_reset_soft - |