zynq> ./i2c_eeprom_helper.sh i2c 0 16 + dirname ./i2c_eeprom_helper.sh + . ./../test_common.sh + dirname ./i2c_eeprom_helper.sh + bin_dir=./../bin + dirname ./i2c_eeprom_helper.sh + data_dir=./../data + dirname ./i2c_eeprom_helper.sh + bits_dir=./../bits + out_dir=/tmp/autotest_temp_output + mkdir -p /tmp/autotest_temp_output + out_prefix=/tmp/autotest_temp_output/ + out_mount=/tmp/autotest_temp_output/.mount + out_mount_prefix=/tmp/autotest_temp_output/.mount/ + umount /tmp/autotest_temp_output/.mount + rm -rf /tmp/autotest_temp_output/* + eeprom_device=i2c + test_name= + eeprom_size=256 + block_size=1 + block_count=16 + offset=0 + echo ============================================================ ============================================================ + echo I2C Testing: I2C Testing: + echo -e \tTest name = Test name = + echo -e \tEEPROM = i2c EEPROM = i2c + echo -e \tEEPROM size = 256 EEPROM size = 256 + echo -e \tEEPROM block size = 1 EEPROM block size = 1 + echo -e \tTest byte count = Test byte count = + echo -e \tTest byte offset = 16 Test byte offset = 16 + echo -e \tTest block count = 16 Test block count = 16 + echo -e \tTest block offset = 0 Test block offset = 0 + echo ============================================================ ============================================================ + input_file_list=eeprom_0.bin eeprom_inc.bin eeprom_dec.bin + echo Testing eeprom_0.bin datafile... Testing eeprom_0.bin datafile... + dd if=./../data/eeprom_0.bin of=/tmp/autotest_temp_output/.eeprom_0.bin bs=1 count=16 skip=0 16+0 records in 16+0 records out 16 bytes (16B) copied, 0.000370 seconds, 42.2KB/s + dd if=/tmp/autotest_temp_output/.eeprom_0.bin of=i2c bs=1 seek=0 16+0 records in 16+0 records out 16 bytes (16B) copied, 0.000385 seconds, 40.6KB/s + dd if=i2c of=/tmp/autotest_temp_output/.eeprom_0.bin.read bs=1 count=16 skip=0 16+0 records in 16+0 records out 16 bytes (16B) copied, 0.000264 seconds, 59.2KB/s + diff -q /tmp/autotest_temp_output/.eeprom_0.bin.read /tmp/autotest_temp_output/.eeprom_0.bin + [ 0 -ne 0 ] + echo ------------------------------------------------------------ ------------------------------------------------------------ + echo Testing eeprom_inc.bin datafile... Testing eeprom_inc.bin datafile... + dd if=./../data/eeprom_inc.bin of=/tmp/autotest_temp_output/.eeprom_inc.bin bs=1 count=16 skip0 16+0 records in 16+0 records out 16 bytes (16B) copied, 0.000271 seconds, 57.7KB/s + dd if=/tmp/autotest_temp_output/.eeprom_inc.bin of=i2c bs=1 seek=0 16+0 records in 16+0 records out 16 bytes (16B) copied, 0.000288 seconds, 54.3KB/s + dd if=i2c of=/tmp/autotest_temp_output/.eeprom_inc.bin.read bs=1 count=16 skip=0 16+0 records in 16+0 records out 16 bytes (16B) copied, 0.000259 seconds, 60.3KB/s + diff -q /tmp/autotest_temp_output/.eeprom_inc.bin.read /tmp/autotest_temp_output/.eeprom_inc.bn + [ 0 -ne 0 ] + echo ------------------------------------------------------------ ------------------------------------------------------------ + echo Testing eeprom_dec.bin datafile... Testing eeprom_dec.bin datafile... + dd if=./../data/eeprom_dec.bin of=/tmp/autotest_temp_output/.eeprom_dec.bin bs=1 count=16 skip0 16+0 records in 16+0 records out 16 bytes (16B) copied, 0.000318 seconds, 49.1KB/s + dd if=/tmp/autotest_temp_output/.eeprom_dec.bin of=i2c bs=1 seek=0 16+0 records in 16+0 records out 16 bytes (16B) copied, 0.000336 seconds, 46.5KB/s + dd if=i2c of=/tmp/autotest_temp_output/.eeprom_dec.bin.read bs=1 count=16 skip=0 16+0 records in 16+0 records out 16 bytes (16B) copied, 0.000260 seconds, 60.1KB/s + diff -q /tmp/autotest_temp_output/.eeprom_dec.bin.read /tmp/autotest_temp_output/.eeprom_dec.bn + [ 0 -ne 0 ] + echo ------------------------------------------------------------ ------------------------------------------------------------ + echo ---> Test pass, I2C EEPROM readback matched what was written... ---> Test pass, I2C EEPROM readback matched what was written... + echo ============================================================ ============================================================