Skip to content

Instantly share code, notes, and snippets.

@leyyce
Created February 6, 2025 20:24
Show Gist options
  • Select an option

  • Save leyyce/192f768cec7d73cbbc5fd905ea8ef8c2 to your computer and use it in GitHub Desktop.

Select an option

Save leyyce/192f768cec7d73cbbc5fd905ea8ef8c2 to your computer and use it in GitHub Desktop.
sudo modprobe i2c-stub chip_addr=0x10
echo monitoring_system 0x10 | sudo tee /sys/bus/i2c/devices/i2c-1/new_device
echo 'file drivers/i2c/* +p' | sudo tee /sys/kernel/debug/dynamic_debug/control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment