...
...
devmem2 is used to configure the relevant registers.
Enable Global test mode (GMDC[1:0]=0x2) in the Global Control Register:
...
root@smarc-rzg2l:~# cansend can1 18ff6228##1aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55 can1 18FF6228 [32] AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 can0 18FF6228 [32] AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55
Note: obviously this test works only if the CAN transceiver is fitted. Many EVKs shipped recently do not have the transceiver populated. First check that IC15 is soldered on the board.
...