The EV Engineer
The EV Engineer
  • 29
  • 230 482
Linux Kernel Programming: Driver Modification Tutorial
In this video, we dive into modifying and compiling a Linux kernel driver, focusing on the pcnet32 driver. The tutorial covers key aspects such as ABI compatibility and module loading. This video is the first of many aimed at advancing practical knowledge in kernel development.
Commands:
# Step 1: Install Necessary Tools
sudo apt update
sudo apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev
# Step 2: Install the Kernel Source Package
cd /usr/src/
sudo apt install linux-source-{version} # replace version
sudo tar -xjf linux-source-{version}.tar.bz2 # replace version
cd linux-source-{version} # replace version
sudo chown -R {user}:{user} /usr/src/linux-source-{version} # replace version
# Step 3: Modify the pcnet driver
nvim drivers/net/ethernet/amd/pcnet32.c
# Step 4: Configure the Kernel
cp /boot/config-$(uname -r) .config
make oldconfig
# Step 5: Compile
make modules_prepare
cd drivers/net/ethernet/amd
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
# Step 6: Unload and Reload new module
lsmod | grep pcnet32
sudo rmmod pcnet32
lsmod | grep pcnet32
sudo insmod ./pcnet32.ko
lsmod | grep pcnet32
sudo dmesg | less
มุมมอง: 2 371

วีดีโอ

CAN-utils over VCAN | Virtual CAN Interface Tutorial | Linux SocketCAN
มุมมอง 1.6K5 หลายเดือนก่อน
A focused tutorial on using CAN-Utils with virtual CAN interfaces in Linux. This guide is ideal for those looking to simulate CAN networks without physical hardware, offering practical steps and insights for effective network testing and simulation.
SocketCAN Tutorial: Writing a Custom candump Linux Tool
มุมมอง 1.8K5 หลายเดือนก่อน
Dive into Linux network programming to write a custom CAN logger. This detailed video guide is designed for firmware engineers, system developers, and network programming enthusiasts eager to deepen their understanding of CAN (Controller Area Network) interfaces using the SocketCAN library in a Linux environment.
TCP Client on ESP32 with ESP-IDF programmed in C: Step-by-Step Tutorial
มุมมอง 4.8K10 หลายเดือนก่อน
Learn how to build a TCP Client on the ESP32 with ESP-IDF, all programmed in C, starting from scratch. This step-by-step tutorial guides you through setting up your environment, creating the project, and writing the necessary code for TCP communication. Perfect for anyone looking to explore networking on embedded systems. Check the links below for additional resources and tools. GitHub Reposito...
Bare metal GPIO driver for ESP32 | Toggling an LED
มุมมอง 6K11 หลายเดือนก่อน
In this video, I write my own GPIO driver for the ESP32 microcontroller, instead of using the provided ESP-IDF headers. All memory addresses are pulled directly from the Technical Reference Manual. [Technical Reference Manual] www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf [Source Code] github.com/JoshMarangoni/bare-metal-gpio-toggle-esp32
UART Echo Task on ESP32 using ESP-IDF
มุมมอง 2.8K11 หลายเดือนก่อน
In this video, I dive into the ESP-IDF to write a UART echo RTOS task for the ESP-32 microcontroller. [ESP-IDF Programming Guide] docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/uart.html
Remote Control Robot with ChatGPT and Embedded Web Server on ESP32
มุมมอง 1.2Kปีที่แล้ว
In this video, I go through the design of my remote-controlled robot. First I show the robot's motor control using my laptop's WASD keys, which send HTTP requests to a web server running on my robot's ESP32. The commands are sent via a Python console, which I wrote partially with assistance from ChatGPT. I also explain the embedded web server running on the ESP32 microcontroller. Lastly, I demo...
Three Node CAN System on a Breadboard with ESP32 and Arduino Microcontrollers
มุมมอง 5Kปีที่แล้ว
In this video, I create a CAN bus on a breadboard with 3 devices. Two 3.3V ESP32s with TJA1050 CAN transceivers and a 5V Arduino Uno with MCP2515 CAN SPI module. This video is the summation of some of my previous videos, if you'd like to learn more about this system in detail, check out: [CAN Bus on a Breadboard with two ESP32s] th-cam.com/video/ZH_CCs12ptg/w-d-xo.html [MCP2515 CAN Bus Module w...
CAN Bus signals on a breadboard with ESP32 microcontroller and Oscilloscope
มุมมอง 7Kปีที่แล้ว
In this video, I use a pocket-sized oscilloscope to measure CAN signals on a breadboard. The system consists of two ESP32 microcontrollers, each connected to a TJA1050 CAN transceiver. I use an open-source Arduino library for CAN communication. The primary objective of this experiment is to determine if using 5V CAN transceivers with 3.3V microcontrollers is safe. As a bonus, we get to see the ...
MCP2515 CAN Bus Module Tutorial with Arduino and Linux
มุมมอง 19Kปีที่แล้ว
In this video, I demonstrate how to use the MCP2515 CAN Bus Module to transmit data from an Arduino that's connected over SPI to a CAN receiver connected to my Linux virtual machine. [MCP2515 CAN Bus Module] www.amazon.com/dp/B07J9KZ4L4?psc=1&ref=ppx_yo2ov_dt_b_product_details [Arduino MCP2515 CAN library] github.com/autowp/arduino-mcp2515 [USB CAN Converter Module] www.amazon.com/dp/B07P9JGXXB...
Hacking my Roommates Car - Linux CAN Bus sniffing
มุมมอง 21Kปีที่แล้ว
Hacking my Roommates Car - Linux CAN Bus sniffing
Getting started with SocketCAN (can-utils) | ESP32 | Kali Linux Vmware Installation
มุมมอง 12Kปีที่แล้ว
Getting started with SocketCAN (can-utils) | ESP32 | Kali Linux Vmware Installation
CAN Protocol Explained | Controller Area Network
มุมมอง 65Kปีที่แล้ว
CAN Protocol Explained | Controller Area Network
Making a CAN Bus on a breadboard with two ESP32 microcontrollers!
มุมมอง 40Kปีที่แล้ว
Making a CAN Bus on a breadboard with two ESP32 microcontrollers!
Serial communication protocols - what are the differences?
มุมมอง 2.8Kปีที่แล้ว
Serial communication protocols - what are the differences?
AVR ATMEGA328P ICSP Algorithm Explained
มุมมอง 906ปีที่แล้ว
AVR ATMEGA328P ICSP Algorithm Explained
Flash AVR microcontroller over ICSP (SPI) with an Arduino
มุมมอง 1.5Kปีที่แล้ว
Flash AVR microcontroller over ICSP (SPI) with an Arduino
Assembling and Testing ESP32 H Bridge PCB
มุมมอง 1.2Kปีที่แล้ว
Assembling and Testing ESP32 H Bridge PCB
Generating Gerber files in KiCad for JLCPCB
มุมมอง 14Kปีที่แล้ว
Generating Gerber files in KiCad for JLCPCB
Making an H Bridge PCB in KiCad from scratch!
มุมมอง 3.4Kปีที่แล้ว
Making an H Bridge PCB in KiCad from scratch!
Making an H bridge Schematic in KiCad
มุมมอง 4.7Kปีที่แล้ว
Making an H bridge Schematic in KiCad
H bridge Circuit Theory - 2 Wire Input Design
มุมมอง 1.4Kปีที่แล้ว
H bridge Circuit Theory - 2 Wire Input Design
Getting Started with ESP-IDF on Windows
มุมมอง 3.7Kปีที่แล้ว
Getting Started with ESP-IDF on Windows

ความคิดเห็น

  • @_.ah7
    @_.ah7 13 ชั่วโมงที่ผ่านมา

    You explain good, please make more baremetal videos for esp idf

  • @felixkrocher8103
    @felixkrocher8103 วันที่ผ่านมา

    I'm just looking for a way to communicate with my R48 2000e3 rectifier to reduce the voltage but I'm lost here

  • @thaisclaudino7913
    @thaisclaudino7913 2 วันที่ผ่านมา

    Insteady of using the tja1050 can we use a TJA1040 High speed CAN transceiver

  • @bigdilliams
    @bigdilliams 4 วันที่ผ่านมา

    can you make a tutorial on how to make a man in the middle attack on the can bus with esp32, for example as described on this paper: Development of a Man-in-the-Middle Attack Device for the CAN Bus (search for the pdf) that would be amazing. great content by the way. subscribed 👍

  • @khaldounkayal8788
    @khaldounkayal8788 6 วันที่ผ่านมา

    Espressif-IDE is an Integrated Development Environment(IDE) based on Eclipse CDT for developing IoT Applications using ESP-IDF framework.

  • @deemorris7229
    @deemorris7229 8 วันที่ผ่านมา

    Good day to you so I am seeking to make a custom gauge cluster using master slave combo with uno r3 and mega r3. I want to connect to combination meter to the OEM gauge cluster for my 2006 honda cbr1000rr... Will make a tutorial on how to connect for the master to read the can bus from the meter send that data to the slave and the slave display it on a tft, hmi, or oled screen?

  • @devadasanvarier9814
    @devadasanvarier9814 16 วันที่ผ่านมา

    Very good explanation. I am working as an ETO onboard Tanker ship. Main engine is utilising full electronic control using CANBUS protocol. It was difficult me to understand this concept. After watching your video, made it very clear how the CANBUS signal communicating and how it is transmitted over the bus. Thank you 😊

    • @kurtronaldesteban8190
      @kurtronaldesteban8190 วันที่ผ่านมา

      I'm here for the very same reason. ~ETO onboard LNG Tanker

  • @SujarwokoWoko-vb1lq
    @SujarwokoWoko-vb1lq 18 วันที่ผ่านมา

    master where can I buy the tools and software I need to service the speedometer.

  • @dazealex
    @dazealex 22 วันที่ผ่านมา

    What exactly are those components I need to flash an ATMega32-P, let's say, so I can order them?

  • @ecaredu2022
    @ecaredu2022 24 วันที่ผ่านมา

    CAN BUS in practice th-cam.com/video/NIL5zymN64k/w-d-xo.html

  • @grenadier4702
    @grenadier4702 27 วันที่ผ่านมา

    The next step is write your own linker script

  • @SupremelyFly
    @SupremelyFly 28 วันที่ผ่านมา

    Good video. I like how you presented the information in a traditional manner using slides supported with a solid verbal explanation. Made it easy to take notes and follow.

  • @jakewasowski1353
    @jakewasowski1353 หลายเดือนก่อน

    Thanks bro

  • @Paavo1991
    @Paavo1991 หลายเดือนก่อน

    Hi. Did you connected to obd port? If so that means you connected to FCAN I believe and things like doors, wipers or hvac should be part of BCAN which is not available in obd port. Need to check with my Honda becuase I was sure that changing doors position would not be visibile in FCAN so I struggle with BCAN snifffing now (connected to HVAC) but my problem is there are only little traffic on the BCAN bus and nothing happens when I play with doors or windows..

  • @zaca211
    @zaca211 หลายเดือนก่อน

    Holy crap that was simple. I just switched over the Espressif framework from Arduino and I've been messing around with their GPIO driver for a couple of hours now. Considering all I needed to do was toggle the internal LED, this saves so much hassle.

  • @Roottech25
    @Roottech25 หลายเดือนก่อน

    good and quick tutorial.... can you control a real can network let's say activating a selenoid in the car to see if it is working.

  • @abdalrhmanahmed3187
    @abdalrhmanahmed3187 หลายเดือนก่อน

    im using esp 32 LILYGO can rs485 is no working

  • @chrisman2598
    @chrisman2598 หลายเดือนก่อน

    Why use a vm ?

  • @electrical_engineer1
    @electrical_engineer1 หลายเดือนก่อน

    Sir, electric vehicles charger not on without bms battery. Now sir how to on charger without bms battery? Please guide

  • @Bravo_L
    @Bravo_L หลายเดือนก่อน

    Thanks again for this brother. Lots of help❤

  • @tarikulislamtarif1122
    @tarikulislamtarif1122 หลายเดือนก่อน

    Hey,my android wifi doesn't work after flashing compiled kernel,now I am trying to build module named wlan.ko to make wifi working,but how do I make it,is it similar to this tutorial?

  • @kawtarbelhinani1496
    @kawtarbelhinani1496 หลายเดือนก่อน

    thanks for you video i watched can connection btw esp and esp32 and also between stm32 and STM32 THAT U just posted can u do between stm32 AND esp32 with can protocol I NEED IT FOR MY project

  • @eriklethdanielsen3968
    @eriklethdanielsen3968 หลายเดือนก่อน

    why do you still run windows, windows is dead i have run Debian KDE sinse 2019, it works fine for ewrything also pcb design and writing software

  • @renansaraivadossantos2896
    @renansaraivadossantos2896 หลายเดือนก่อน

    How are you reading the transmitted data? Are you using openmoko, is it a software for linux?

  • @TheWohnJick
    @TheWohnJick หลายเดือนก่อน

    Awesome tutorial 🫶

  • @petersuvara
    @petersuvara หลายเดือนก่อน

    Easy as. Does Canplayer come with Kali Linux?

  • @TheTruth-fb4be
    @TheTruth-fb4be 2 หลายเดือนก่อน

    To reprogram a keyfob, do you need the can bus to be communicating?

  • @Rkemobilitywork
    @Rkemobilitywork 2 หลายเดือนก่อน

    Hello, need your help , for project, I am from India, pls update me fast

  • @luigiprovencher8888
    @luigiprovencher8888 2 หลายเดือนก่อน

    If that's the case then how do I convert it for that architecture or do I have to recompile it or something?

  • @Bravo_L
    @Bravo_L 2 หลายเดือนก่อน

    Thank you boss! I'm 1st year out of school and I'm making a can bus reader and I'm going to shoot data to a screen and display rpms and other vehicle data. I will use esp32 as well as a stm32. I want to try using this chip as well as trying the onboard controllers and i will do what you did in the esp32 video and use just transceiver(the stm32 nucleo has built in "bxCan"). I need to buy you a coffee or something!!!!!! very helpful as well as the article you shared from circuit state saved my life!

  • @Marc1999th
    @Marc1999th 2 หลายเดือนก่อน

    Why would you use this instead of printf?

  • @craigdoyle8225
    @craigdoyle8225 2 หลายเดือนก่อน

    G'day Josh, Am having trouble compiling with this error: f:\Workbench\Arduino\libraries\CAN\src\MCP2515.cpp: In member function 'virtual void MCP2515Class::onReceive(void (*)(int))': f:\Workbench\Arduino\libraries\CAN\src\MCP2515.cpp:270:9: error: 'class SPIClass' has no member named 'usingInterrupt' 270 | SPI.usingInterrupt(digitalPinToInterrupt(_intPin)); | ^~~~~~~~~~~~~~ Any help would be very much appreciated Craig

  • @RCagataySahin
    @RCagataySahin 2 หลายเดือนก่อน

    Thank you for the clear explanation. I am really interested in these stuff. My background is mostly on mechanical engineering, and I wonder if learning communication protocols would be so useful for my career as well. Could you tell me how deep I should go into the topic to use it in my future?

  • @ecaredu2022
    @ecaredu2022 2 หลายเดือนก่อน

    th-cam.com/video/EsKpbdRWXZM/w-d-xo.html

  • @stomio1164
    @stomio1164 2 หลายเดือนก่อน

    very simple. nice!!

  • @sanjayns9462
    @sanjayns9462 2 หลายเดือนก่อน

    Hello @EV_engineer, thanks a lot for this video, but I USB-CAN-A with me instead of the device that you have used, could you please let me know how to do the same project with my device, thanks in advance :)

  • @tba3679
    @tba3679 3 หลายเดือนก่อน

    Ahahah nice video but wow that is a big fuss in the era of iot 😅

  • @mahmudulhasan6355
    @mahmudulhasan6355 3 หลายเดือนก่อน

    Very helpful video ❤️❤️. Please make a video about UDS protocol...

  • @user-xs7fz5ym3x
    @user-xs7fz5ym3x 3 หลายเดือนก่อน

    well explained thank you

  • @farhadkamali2321
    @farhadkamali2321 3 หลายเดือนก่อน

    HI I did all the steps but I don't get any information from obd2 port. The car is Hyundai Azera 2019. please guide me. Thank you.

    • @1996_Dude
      @1996_Dude 3 หลายเดือนก่อน

      Hello newer hyundai models have "CAN bus gateway" and it blocks the data from OBD port you need to directly splice wires to the required module that you want to read also can i know what are you tring to do ? im curious because i have 2016 azera

  • @02__76
    @02__76 3 หลายเดือนก่อน

    I can send the data but I can not receive the data help me pls

  • @skanderbelhaj2278
    @skanderbelhaj2278 3 หลายเดือนก่อน

    man writing code like its native language

  • @VivoJefindo-id4cj
    @VivoJefindo-id4cj 3 หลายเดือนก่อน

    I will try this metode for kobelco excavator.. I hope succes

  • @umbra3324
    @umbra3324 3 หลายเดือนก่อน

    Can you activate a snap to the grid in KiCAD for components? Maybe I wasn’t seeing it in the short

  • @FreestylerAlbert
    @FreestylerAlbert 3 หลายเดือนก่อน

    tricky question, is ths possible?? : So car ECU ----> Arduino Nano33 ----> MCP2515 ------(can I connect the processed data back to the Arduino Nano 33??)---> And I want to push all processed data via Wifi ---> my phone Is this possible? :D (background: I want to process the ECU logs form my car, and have a realtime view on oil temp and things, I have a CANbus translator cript from the ECU already. And have a phone app which can process the CANbus data.) Million thanks!!!!

  • @francescovergentini3244
    @francescovergentini3244 3 หลายเดือนก่อน

    Thanks for the very interesting video. Can you share which Can transiver you used for the ESP32 which is 3.3V device?

  • @yasserarafath9567
    @yasserarafath9567 3 หลายเดือนก่อน

    Hey Josh! Can you put up a video tutorial on cannelloni? What i was trying is to transfer CAN message from the vehicle over IP and receive it in some scan tool. Then send the diagnostics signal back to the vehicle from the scan tool. Remote diagnostics stuff. But I was able to receive the CAN message over IP only on a virtual CAN interface and not on a physical CAN interface (i.e : the scan tool) Also i used 2 raspberry pi with a CAN hat to check if it works. Would love to see you put up a tutorial on cannelloni

  • @naveens1379
    @naveens1379 3 หลายเดือนก่อน

    for some reason, when i use cansniffer -c can0 command, i don't see the can messages being dumped. is there something that i'm doing wrong? perhaps wrong bitrate or could you give me any other suggestions to troubleshoot my issue? Thanks a lot in advance