This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux Drivers 101 Bone and CAN cape

I am very Green with Linux . I believe I can be self sustaining

I have a bone white  and Digikey CAN cape and am using the SDK . Used the script to populate the SD card  

cat /proc/net/dev' shows no CAN device

1) Does this prebuilt image support the CAN or do I have to build the kernel myself

2)Where is the kernel config file placed in the directory tree 

3) Can I build the driver into the kernel or must I make it a loadable module?

4) If I need to change the kernel in the future using make menuconfig ARCH=arm command does this replace the command make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- am335x_evm_defconfig? 

5) Lastly It looks like when building yourself even with default config loadable modules are created. The sd card script hides the details of where to copy the kernel modules on the sd  for booting please explain howto do this manually

This is confusing can I use this command and then copy the files to the SD? ifso where on the SD

To install the kernel modules you use another make command similar to the others, but with an additional parameter
which give the base location where the modules should be installed

For example if you are installing the modules to an NFS share located at /home/user/targetNFS you would do:
make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- INSTALL_MOD_PATH=/home/user/targetNFS modules_install

  • I have answered #5 myself I need to mount partition 2 as /media/rootfs then

    make ARCH=arm CROSS_COMPILE=${CC} modules_install INSTALL_MOD_PATH=/media/rootfs

    I copied the new uImage over but still nothing under /proc/net/dev

  • I followed the DCAN users guide set up the kernel config and got this when building the modules

    drivers/input/touchscreen/eeti_ts.c: In function 'eeti_ts_irq_active':
    drivers/input/touchscreen/eeti_ts.c:65:2: error: implicit declaration of function 'irq_to_gpio'
    make[3]: *** [drivers/input/touchscreen/eeti_ts.o] Error 1
    make[2]: *** [drivers/input/touchscreen] Error 2
    make[1]: *** [drivers/input] Error 2
    make: *** [drivers] Error 2
    lazarman@ubuntu:~/ti-sdk-am335x-evm-05.07.00.00/board-support/board-port-labs/sitara-board-port-linux$