USB Mode
To put the EBB36 Gen2 into CAN mode (instead of USB mode) make sure to remove any jumper on the USB/CAN header
DFU Mode
To put the EBB42 Gen2 into DFU mode first power off the printer then connect the main CAN/Power cable from the EBB42 Gen2 to the breakout board that goes in your electronics bay.
Then make sure you have power connected to this breakout board as well, and then connect a USB cable from your Pi to the breakout board.
Then power up the system and on the EBB42 Gen2 board hold the BOOT button, press and release the RST button, then count to 5 and release the BOOT button.
Katapult Config
Klipper Config
Sample Configuration
A sample configuration file can be found at https://github.com/bigtreetech/EBB/blob/master/EBB_GEN2/EBB42_GEN2/sample-bigtreetech-ebb42-gen2-v1.0.cfg