On Sun, Oct 25, 2020 at 09:49:43AM +0100, Oliver Hartkopp wrote: > > > Thanks, will do. I am currently trying to finish up my ELC-E talk > > > prep :) but will get back to you with the results of testing later. > > > > I noticed up doing a modprobe that there are several Unknown symbol errors. > > > > Any ideas? > > > > [ 358.686691] mcp251xfd: Unknown symbol can_rx_offload_del (err -2) > > [ 358.686744] mcp251xfd: Unknown symbol can_put_echo_skb (err -2) > > [ 358.686796] mcp251xfd: Unknown symbol can_len2dlc (err -2) > > [ 358.686844] mcp251xfd: Unknown symbol alloc_canfd_skb (err -2) > > [ 358.686942] mcp251xfd: Unknown symbol open_candev (err -2) > > [ 358.687042] mcp251xfd: Unknown symbol alloc_can_skb (err -2) > > [ 358.687093] mcp251xfd: Unknown symbol unregister_candev (err -2) > > [ 358.687139] mcp251xfd: Unknown symbol can_change_state (err -2) > > [ 358.687183] mcp251xfd: Unknown symbol can_change_mtu (err -2) > > [ 358.687227] mcp251xfd: Unknown symbol can_rx_offload_add_manual (err -2) > > [ 358.687294] mcp251xfd: Unknown symbol free_candev (err -2) > > [ 358.687345] mcp251xfd: Unknown symbol alloc_candev_mqs (err -2) > > [ 358.687416] mcp251xfd: Unknown symbol close_candev (err -2) > > [ 358.687475] mcp251xfd: Unknown symbol can_bus_off (err -2) > > [ 358.687519] mcp251xfd: Unknown symbol can_rx_offload_enable (err -2) > > [ 358.687569] mcp251xfd: Unknown symbol can_rx_offload_get_echo_skb (err -2) > > [ 358.687656] mcp251xfd: Unknown symbol can_dlc2len (err -2) > > [ 358.687710] mcp251xfd: Unknown symbol alloc_can_err_skb (err -2) > > [ 358.687773] mcp251xfd: Unknown symbol can_rx_offload_queue_sorted (err -2) > > [ 358.687819] mcp251xfd: Unknown symbol register_candev (err -2) > > [ 369.092608] CAN device driver interface > > The can-dev module has been loaded *after* mcp251xfd. > > Don't know why autoloading did not work on your machine but doing a > 'modprobe can-dev' before loading the MCP driver should do it for a test. > > > root@raspberrypi:~# modinfo mcp251xfd > > filename: > > /lib/modules/5.4.72-v7l+/kernel/drivers/net/can/spi/mcp251xfd/mcp251xfd.ko > > license: GPL v2 > > description: Microchip MCP251xFD Family CAN controller driver > > author: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> > > srcversion: 1E05EEB5939E9AB22BA2E1B > > alias: spi:mcp251xfd > > alias: spi:mcp2518fd > > alias: spi:mcp2517fd > > alias: of:N*T*Cmicrochip,mcp251xfdC* > > alias: of:N*T*Cmicrochip,mcp251xfd > > alias: of:N*T*Cmicrochip,mcp2518fdC* > > alias: of:N*T*Cmicrochip,mcp2518fd > > alias: of:N*T*Cmicrochip,mcp2517fdC* > > alias: of:N*T*Cmicrochip,mcp2517fd > > depends: can-dev ^^^^^^^ > > intree: Y > > name: mcp251xfd > > vermagic: 5.4.72-v7l+ SMP mod_unload modversions ARMv7 p2v8 The dependencies are correct. Try running a "depmod -a". If you are on a distro with udev, manual modprobe should not be needed, as udev should load all needed modules automatically during boot. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |