This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Select the i2c bus | |
| i2c dev <bus> | |
| i2c dev 0 | |
| # Probe the device | |
| i2c probe <chip> | |
| i2c probe 0x60 | |
| # Read from the device | |
| i2c read <chip> <chip address> <length> <memory address> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | U-Boot SPL 2021.01-g2ee8efd654 (Feb 23 2023 - 22:21:26 +0000) | |
| SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar') | |
| am62a_init: board_init_f done | |
| am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0 | |
| Trying to boot from MMC2 | |
| am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0 | |
| Authentication passed | |
| am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0 | |
| Authentication passed | |
| am62a_init: spl_boot_device: devstat = 0x243 bootmedia = 0x8 bootindex = 0 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | root@am64xx-evm:~# sync | |
| root@am64xx-evm:~# sync | |
| root@am64xx-evm:~# | |
| root@am64xx-evm:~# | |
| root@am64xx-evm:~# | |
| root@am64xx-evm:~# | |
| root@am64xx-evm:~# reboot | |
| Stopping Session c1 of user root. | |
| [ OK ] Removed slice system-dropbear.slice. | |
| [ OK ] Stopped target RPC Port Mapper. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | U-Boot SPL 2021.01-g8de4494661 (Jun 24 2022 - 12:38:07 +0000) | |
| EEPROM not available at 80, trying to read at 81 | |
| SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.1--v08.04.01 (Jolly Jellyfi') | |
| SPL initial stack usage: 13400 bytes | |
| Trying to boot from MMC2 | |
| Starting ATF on ARM64 core... | |
| NOTICE: BL31: v2.6(release):v2.7-rc0-dirty | |
| NOTICE: BL31: Built : 11:26:33, Jun 24 2022 | |
| I/TC: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | root@am62xx-evm:~# reoot | |
| -sh: reoot: command not found | |
| root@am62xx-evm:~# reboot | |
| Stopping Session c1 of user root. | |
| [ OK ] Stopped target Multi-User System. | |
| [ OK ] Stopped target Login Prompts. | |
| [ OK ] Stopped target RPC Port Mapper. | |
| [ OK ] Stopped target Timers. | |
| [ OK ] Stopped Daily rotation of log files. | |
| [ OK ] Stopped Daily Cleanup of Temporary Directories. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | U-Boot SPL 2021.01-g072a9b409c (Feb 03 2023 - 15:56:00 +0000) | |
| SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.1--v08.06.01 (Chill Capybar') | |
| SPL initial stack usage: 13424 bytes | |
| Trying to boot from MMC2 | |
| Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
| Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
| Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
| Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
| Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
| Loading Environment from MMC... *** Warning - No MMC card found, using def | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # To run with pyusb debugging: | |
| # | |
| # PYUSB_DEBUG=debug python relay.py | |
| # | |
| # Grab the vendor and product codes from syslog when plugging in the relay: | |
| # | |
| # usb 3-1: New USB device found, idVendor=1a86, idProduct=7523 | |
| # | |
| import time | |
| import usb.core |