Writing a BeagleBone Cape’s EEPROM from UBoot
eeprom -d /dev/i2c-3 -a 0x54 -f foo
vi foo
<Escape> and :%!xxd
Edit the hex portion to your heart’s content
<Escape> and :%!xxd -r
Save and quit vi
To convert your eeprom.bin for upload via BusPirate
cat eeprom.bin | hexdump -v -e ‘8/1 “0x%02X “‘ -e ‘”\n”‘> eeprom.ascii
Upload using the method shown here.
Thanks to “Kev’s Site” for the tip on using VI as a hex editor