Coder Social home page Coder Social logo

myorbit / pynq-mods Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 58 KB

Examples on how to modify or enhance PYNQ

Jupyter Notebook 77.62% Python 2.65% Makefile 12.52% C 6.68% Shell 0.52%
babel can dbc i2c iic microblaze pynq pynq-mods slcan zubax zynq

pynq-mods's People

Contributors

myorbit avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

pynq-mods's Issues

Compile CAN kernel module - building fails

If we follow the guide in the jupyter notebook (slcan_demo.ipynb) as indicated the build will fail.
I have compiled the modules with the folowing steps:

Start from:

sudo -i

Starting with PYNQ v2.4 the kernel source is shipped as tar.
So from the top directory extract the tar and cd into the directory:

cd /
tar xzf kernel.tgz
cd /usr/src/kernel

Then invoke the config commands:

make xilinx_zynq_defconfig
make menuconfig

The ARCH=arm is not needed since we are compiling on the arm platform.
In menuconfig select the modules as described. BUT: make sure to select them as modules (with M, not Y). This makes sure the modules are compiled as loadable modules and not kernel built-in modules (a built-in module needs to be compiled with the kernel and we don't want to build the whole kernel).

grafik

Save and exit. You can check the build flag for the modules in the config:

cat .config | grep SLCAN

This should output:

CONFIG_CAN_SLCAN=m

This should read "m" not "y" so that it is built as loadable module.

Now, in order to prepare the headers and configuration files as well as build scripts to build the modules run:

make modules_prepare

Then build the modules with:

make SUBDIRS=drivers/net/can modules

And copy the build modules to the module directory:

cp drivers/net/can/*.ko /lib/modules/4.14.0-xilinx-v2018.3/kernel/net/can/

The rebuild the module dependency list:

depmod -ae

And load the module:

modprobe slcan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.