Enabling CAN bus controller MCP2515

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

Enabling CAN bus controller MCP2515

Postby EmbeddedGuy » Fri May 08, 2015 9:55 am

I am considering a CanBerry Pi V1.1.1, but i am not able to find the mcp251x.ko within the kernel modules library as described in the installation guide. How can i add this kernel module?

Here is a snippet from the installation guide:

$this->bbcode_second_pass_code('', 'insmod /lib/modules/3.12.28+/kernel/drivers/spi/spi-bcm2708.ko
insmod /lib/modules/3.12.28+/kernel/net/can/can.ko
insmod /lib/modules/3.12.28+/kernel/drivers/net/can/can-dev.ko
insmod /lib/modules/3.12.28+/kernel/net/can/can-raw.ko
insmod /lib/modules/3.12.28+/kernel/net/can/can-bcm.ko
insmod /lib/modules/3.12.28+/extra/spi-config.ko devices=\bus=0:cs=0:modalias=mcp2515:speed=10000000:gpioirq=25:pd=20:pds32-0=16000000:pdu32-4=0X2002:force_release
insmod /lib/modules/3.12.28+/kernel/drivers/net/can/mcp251x.ko
ip link set can0 up type can bitrate 1000000')

Reference: http://www.industrialberry.com/canberry-v-1-1/
EmbeddedGuy
 
Posts: 25
Joined: Mon Jan 12, 2015 1:03 pm

Re: Enabling CAN bus controller MCP2515

Postby WarheadsSE » Fri May 08, 2015 1:17 pm

Wow. No one ever heard of modprobe eh?

Anywho, the it looks like the modules are currently not built into the kernel per the existing config.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Enabling CAN bus controller MCP2515

Postby EmbeddedGuy » Fri May 08, 2015 1:18 pm

Looks pretty darn oldschool ;-)

How much work would it require to add this?

Cheers!
EmbeddedGuy
 
Posts: 25
Joined: Mon Jan 12, 2015 1:03 pm

Re: Enabling CAN bus controller MCP2515

Postby WarheadsSE » Fri May 08, 2015 1:21 pm

Proper PR to the config.

Read the PKGBUILD for you kernel, and pay attention to commentary about using make menuconfig {etc} in there. Remember that the Pi has 2 configs. One for v6 (1), one for v7 (2)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Enabling CAN bus controller MCP2515

Postby EmbeddedGuy » Fri May 08, 2015 1:30 pm

I am not an expert on kernel modules. Is there a guide for a rookie?
EmbeddedGuy
 
Posts: 25
Joined: Mon Jan 12, 2015 1:03 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests