Git Product home page Git Product logo

tutorials's Issues

memory usage is very high

after loading module using ->sudo insmod gpio_driver.ko
changed permissions ->sudo chmod 666 /dex/ext_device
and used sudo echo 1 > /edv/ext_device
after that it is consuming all the memeory availabe in raspberry pi 2 board so i cant messages as memery full even in file manger also i can able to see plz help me to solve the issue
demo

Problem With the execution of Makefile

Hi,
Awesome implimentaion of SPI driver using Raspberry pi.
I started to impliment the same ,while implimenting this in raspberry Pi 4 , i stuck with the problem of execution of Makefile. Below is the error message:

sudo make
make -C /lib/modules/6.1.21-v7l+/build M=/home/mihir/Desktop/SPI modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v7l+'
CC [M] /home/mihir/Desktop/SPI/spi_ssd1306_driver.o
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c: In function ‘etx_spi_init’:
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c:67:12: error: implicit declaration of function ‘spi_busnum_to_master’ [-Werror=implicit-function-declaration]
67 | master = spi_busnum_to_master( etx_spi_device_info.bus_num );
| ^~~~~~~~~~~~~~~~~~~~
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c:67:10: warning: assignment to ‘struct spi_controller *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
67 | master = spi_busnum_to_master( etx_spi_device_info.bus_num );
| ^
cc1: some warnings being treated as errors
make[2]: * [scripts/Makefile.build:250: /home/mihir/Desktop/SPI/spi_ssd1306_driver.o] Error 1
make[1]: * [Makefile:2012: /home/mihir/Desktop/SPI] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v7l+'
make: * [Makefile:8: all] Error 2


Request to suggest solution for the above problem.

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.