User Tools

Site Tools


pijack:hat

This is an old revision of the document!


Docs

git clone https://github.com/raspberrypi/hats.git
cd hats/eepromutils
make
./eepmake eeprom_settings.txt eeprom_settings.eep


#enable i2c using raspi-config
apt-get install i2c-tools


/boot/config.txt (in this order!!)
dtparam=i2c=on
dtparam=i2c_vc=on
dtoverlay=enc28j60
EOF

i2cdetect -a -y 0

./eepmake pijack_settings.txt pijack.eep /boot/overlays/enc28j60-overlay.dtb


./eepflash.sh -w -f=blank.eep -t=24c32
hexdump /sys/class/i2c-adapter/i2c-0/0-0050/eeprom
./eepflash.sh -w -f=pijack.eep -t=24c32
hexdump /sys/class/i2c-adapter/i2c-0/0-0050/eeprom

#see if hat is recognized
cd /proc/device-tree/hat/
pijack/hat.1471002983.txt.gz · Last modified: 2024/04/22 15:38 (external edit)