The EV Engineer
The EV Engineer
  • 28
  • 312 089
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
มุมมอง: 4 641

วีดีโอ

CAN-utils over VCAN | Virtual CAN Interface Tutorial | Linux SocketCAN
มุมมอง 3.5K11 หลายเดือนก่อน
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
มุมมอง 3.4K11 หลายเดือนก่อน
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
มุมมอง 7Kปีที่แล้ว
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
มุมมอง 11Kปีที่แล้ว
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
มุมมอง 4.5Kปีที่แล้ว
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.6Kปีที่แล้ว
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
มุมมอง 8Kปีที่แล้ว
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
มุมมอง 10Kปีที่แล้ว
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
มุมมอง 29Kปีที่แล้ว
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...
Getting started with SocketCAN (can-utils) | ESP32 | Kali Linux Vmware Installation
มุมมอง 16Kปีที่แล้ว
Getting started with SocketCAN (can-utils) | ESP32 | Kali Linux Vmware Installation
CAN Protocol Explained | Controller Area Network
มุมมอง 100Kปีที่แล้ว
CAN Protocol Explained | Controller Area Network
Making a CAN Bus on a breadboard with two ESP32 microcontrollers!
มุมมอง 50Kปีที่แล้ว
Making a CAN Bus on a breadboard with two ESP32 microcontrollers!
Serial communication protocols - what are the differences?
มุมมอง 5Kปีที่แล้ว
Serial communication protocols - what are the differences?
AVR ATMEGA328P ICSP Algorithm Explained
มุมมอง 1.1Kปีที่แล้ว
AVR ATMEGA328P ICSP Algorithm Explained
Flash AVR microcontroller over ICSP (SPI) with an Arduino
มุมมอง 2.3Kปีที่แล้ว
Flash AVR microcontroller over ICSP (SPI) with an Arduino
Assembling and Testing ESP32 H Bridge PCB
มุมมอง 1.5K2 ปีที่แล้ว
Assembling and Testing ESP32 H Bridge PCB
Generating Gerber files in KiCad for JLCPCB
มุมมอง 20K2 ปีที่แล้ว
Generating Gerber files in KiCad for JLCPCB
Making an H Bridge PCB in KiCad from scratch!
มุมมอง 4.6K2 ปีที่แล้ว
Making an H Bridge PCB in KiCad from scratch!
Making an H bridge Schematic in KiCad
มุมมอง 7K2 ปีที่แล้ว
Making an H bridge Schematic in KiCad
H bridge Circuit Theory - 2 Wire Input Design
มุมมอง 2.5K2 ปีที่แล้ว
H bridge Circuit Theory - 2 Wire Input Design
Getting Started with ESP-IDF on Windows
มุมมอง 6K2 ปีที่แล้ว
Getting Started with ESP-IDF on Windows