Jump to content

TheLabGuy

Validating
  • Posts

    1
  • Joined

  • Last visited

Posts posted by TheLabGuy

  1. I'm trying to get an MCP2515 working with an Orange Pi Zero LTS H2+.  Everything seems to go well until I try to bring up the can0 interface using the command 

    ip link set can0 up type can bitrate 500000

     

    Once the command is entered, it never returns.  Control+C doesn't do help.  New SSH sessions fail to start, but pinging the IP address works fine.  Trying 

    ifconfig

    from the serial terminal will also fail to return.

     

    Trying to shutdown after the "ip link set..." command, the shutdown procedure takes a long time, and eventually sends 

     

    [ 4320.026984] systemd-shutdown[1]: Waiting for process: ifdown, wpa_supplicant, NetworkManager, ip

     

    The image was built using the git clone and config commands, per https://docs.armbian.com/Developer-Guide_Build-Preparation/, using a Lubuntu VM.  Image is "Current", "Ubuntu Focal".

     

    The overlay was based on https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/spi-mcp251x.dts, with 

    target = <&spi0>;

    changed to

    target = <&spi1>;

     

    In dmesg, the MCP2515 appears to be working

    mcp251x spi1.0 can0: MCP2515 successfully initialized.

     

    Any tips on how to debug?

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines