Skip to content

Instantly share code, notes, and snippets.

View pranav083's full-sized avatar
๐Ÿ˜‡

Pranav Kumar pranav083

๐Ÿ˜‡
View GitHub Profile
@pranav083
pranav083 / Rust on V6.14.md
Last active May 14, 2025 01:48
testing kernel with rust Linux v6.14

Setting Up Linux Kernel v6.14 with Rust Support

This guide provides step-by-step instructions to set up, build, and configure Linux kernel version 6.14 with Rust support on an Ubuntu 24.04 virtual machine (VM) running in QEMU. It includes version prerequisites, enabling Rust support, and building/testing sample Rust kernel modules (rust_mymodule and rust_usb_serial). The setup supports a physical QinHeng CH340 USB-serial device (0x1a86:0x7523) passed through to the VM and a virtual USB device (0x1234:0x5678) for testing.

Prerequisites

System Requirements

  • OS: Ubuntu 24.04 LTS (VM disk: u22s_rust.qcow2)
  • CPU: x86_64 architecture (QEMU with -cpu host)
  • Memory: 16 GB RAM (QEMU with -m 16G)
@pranav083
pranav083 / Install_demo.md
Last active January 17, 2025 17:33
How to Install and run PCAN-USB FD on linux system
@pranav083
pranav083 / readme-stm32.md
Last active June 22, 2022 07:52
running stm32 ros

Running STM32 from linux e.g, stm32l476rg

  • Install stm32cubemxIDE in linux
  • Install stlink for linux driver : Link
  • Run ROS on stm32 : LINK
  • see this forum if face queue module error : Link
@pranav083
pranav083 / after implentation
Last active October 10, 2019 10:37
protoc version error
mighty@ideapad:~$ sudo find / -type f -name 'libproto*'
[sudo] password for mighty:
/home/mighty/libprotobuf-lite.a
/home/mighty/libprotoc.a
/var/lib/dpkg/info/libprotobuf10:amd64.list
/var/lib/dpkg/info/libprotobuf10:amd64.md5sums
/var/lib/dpkg/info/libprotobuf10:amd64.shlibs
/var/lib/dpkg/info/libprotobuf10:amd64.triggers
/var/lib/dpkg/info/libprotoc10:amd64.md5sums
@pranav083
pranav083 / 74hc299_bi.asm
Created July 23, 2019 00:46
only logic here
.origin 0
.entrypoint start
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134
#define GPIO_DATAIN 0x138
@pranav083
pranav083 / 74hc299_10_in.asm
Last active July 21, 2019 20:42
testing is due
.origin 0
.entrypoint start
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134
#define GPIO_DATAIN 0x138
@pranav083
pranav083 / 74hc299_11_10.p
Last active July 2, 2019 14:45
interface of two 74hc299 in cascade with beaglebone black
.origin 0
.entrypoint start
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134
#define GPIO_DATAIN 0x138
@pranav083
pranav083 / P8_12.P
Last active June 30, 2019 14:55
INPUT AT P8_16 PIN
.origin 0
.entrypoint START
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134
@pranav083
pranav083 / PRU-GPIO-EXAMPLE1.dts
Last active June 20, 2019 23:25
pru pinmux not working
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";
// identification
part-number = "PRU-GPIO-EXAMPLE2";
version = "00A0";
@pranav083
pranav083 / P8_11.p
Created June 19, 2019 15:14
GPIO IN MODE 6 IS not working for pin no. p8_11
.origin 0
.entrypoint start
#define GPIO0 0x44E07000
#define GPIO1 0x4804C000
#define GPIO2 0x481AC000
#define GPIO3 0x481AE000
#define GPIO_OE 0x134