Commit ce55fc2f authored by Matthieu Cattin's avatar Matthieu Cattin

test46: Add test to write eeprom, with calibration data taken from sdbfs/calib.

This test is used to fix problem found in batch of 100 boards from Creotech (2014).
It is used by the script tests/fix_creothech_batch_2014.sh
parent a4151f93
#! /bin/sh
# Scan serial number
serial=$1
if [ x$1 = x"" ]; then
echo -n "Please scan CERN serial number bar-code, then press [ENTER]: "
read serial
fi
if [ x$serial = x"" ]; then
echo -n "Serial numer cannot be empty!!"
exit
fi
if [ -e ../serial.txt ]; then
sudo rm -f ../serial.txt
fi
echo $serial >> ../serial.txt
# Load bitstream
sudo ./test00.py
# Read eeprom, dump to eeprom_content.out
sudo ./test26.py
# Backup eeprom content
cp eeprom_content.out ../eeprom_bkp/eeprom_$serial.bin
# Save calibration data
sudo sdb-read -e 0x200 eeprom_content.out calib > sdbfs/calib
# Re-write eeprom (new ipmi, saved calibration data)
sudo ./test46.py
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment