{"id":30064928,"url":"https://github.com/venkatesh4009/rfid-rc522-linux-driver","last_synced_at":"2026-05-15T21:31:34.788Z","repository":{"id":305664073,"uuid":"1021199108","full_name":"venkatesh4009/rfid-rc522-linux-driver","owner":"venkatesh4009","description":"This project provides a complete Linux kernel driver and integration guide for interfacing the RC522 RFID module with the A5D2X Rugged Board via the SPI interface. It includes kernel-mode driver source code, device tree updates, patch generation, and a user-space test application.  The main goal is to enable seamless RFID communication on embedded ","archived":false,"fork":false,"pushed_at":"2025-07-22T03:16:50.000Z","size":361,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-08T05:30:47.622Z","etag":null,"topics":["a5d2x","cross-compilation-toolchain","device-tree","embedded-linux","kernel-modules","linux-driver","linux-kernel","patch-generation","rc522-rfid","spi-driver","yocto"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/venkatesh4009.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-17T03:43:23.000Z","updated_at":"2025-07-22T03:16:53.000Z","dependencies_parsed_at":"2025-07-21T12:07:53.273Z","dependency_job_id":"6c85ce65-5fc7-4ea2-acb5-be59f5658a6c","html_url":"https://github.com/venkatesh4009/rfid-rc522-linux-driver","commit_stats":null,"previous_names":["venkatesh4009/rfid-rc522-linux-driver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/venkatesh4009/rfid-rc522-linux-driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatesh4009%2Frfid-rc522-linux-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatesh4009%2Frfid-rc522-linux-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatesh4009%2Frfid-rc522-linux-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatesh4009%2Frfid-rc522-linux-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/venkatesh4009","download_url":"https://codeload.github.com/venkatesh4009/rfid-rc522-linux-driver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatesh4009%2Frfid-rc522-linux-driver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33080777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["a5d2x","cross-compilation-toolchain","device-tree","embedded-linux","kernel-modules","linux-driver","linux-kernel","patch-generation","rc522-rfid","spi-driver","yocto"],"created_at":"2025-08-08T05:24:23.577Z","updated_at":"2026-05-15T21:31:34.770Z","avatar_url":"https://github.com/venkatesh4009.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛠️ RFID RC522 Linux Driver for A5D2X\n\nThis repository contains a Linux kernel driver and integration guide for the **RC522 RFID module** on the **A5D2X (Rugged Board)** using SPI interface. It includes kernel driver source, device tree patching, and testing procedures.\n\n---\n\n\n## 📦 Project Structure\n\n```text\nrfid-rc522-linux-driver/\n├── rfid_rc522/ # Kernel driver source folder\n│ ├── rc522.c\n│ ├── rc522_api.c\n│ ├── rc522_api.h\n│ ├── Makefile\n│ └── Kconfig\n├── rfid_rc522_dev.c # User-space test application\n├── driver-readme # Developer notes\n├── 0001-Rb-a5d2x.dtsi.patch # Device tree patch\n├── 0002-rfid-rc522_driver.patch # Driver patch\n├── Integration_rfid-rc522.pdf # Driver integration guide\n└── rfid-rc522_Generating_patch.pdf # Patch generation guide\n\n```\n\n### ⚙️ Hardware Requirements\n\n- 📟 RC522 RFID Module (SPI)\n- 💻 RB-A5D2X (Rugged Board)\n- 🔌 SPI-connected via mikroBUS (VCC, MISO, MOSI, SCK, CS, RST, GND)\n- 🏷️ RFID Tags\n\n---\n\n### 🔧 Software Requirements\n\n- 🐧 Linux kernel source for RB-A5D2X\n- 🛠️ Yocto or similar toolchain setup\n- 📦 Git, GCC, Device Tree tools\n- 🧰 Cross-compilation environment (e.g. poky-tiny)\n\n---\n\n### 🚀 Driver Integration (Kernel Static Build)\n\n### 📁 1. Copy driver files into kernel\n\n```bash\nPlace files into `/drivers/misc/rfid_rc522/`:\n\n- rc522.c\n- rc522_api.c\n- rc522_api.h\n- Kconfig\n- Makefile\n```\n\n### 🛠️ 2. Modify kernel Kconfig \u0026 Makefile\n\n```bash\n$ Edit `drivers/misc/Kconfig`:\n$ source \"drivers/misc/rfid_rc522/Kconfig\"\n```\n\n```bash\n$ Edit drivers/misc/Makefile:\nobj-y += rfid_rc522/\n```\n\n### 🌲 3. Update device tree\n```bash\nModify a5d2x-rugged_board_common.dtsi to include SPI node and pinctrl for RC522.\n```\n\n### 🏗️ 4. Recompile kernel\n\n```bash\n$ source /opt/poky-tiny/2.5.2/environment-setup-cortexa5hf-neon-poky-linux-musleabi\n$ make distclean\n$ make rb_a5d2x_defconfig\n$ make menuconfig   # Enable RFID_RC522\n$ make\n```\n\n### 💾 5. Copy artifacts to SD card\n- Replace zImage and .dtb files in the boot partition with newly built ones.\n\n### 🧪 Testing the Driver\n### 🔍 1. Boot and check device\n```bash\n$ ls /dev/rfid_rc522_dev\n```\n\n### 🧰 2. Compile \u0026 send test app\n```bash\n$ {CC} rfid_rc522_dev.c -o rfid_rc522_dev\n$ scp rfid_rc522_dev root@\u003cboard-ip\u003e:/home/root\n```\n\n### ▶️ 3. Run on board\n```bash\n$ chmod +x rfid_rc522_dev\n$ ./rfid_rc522_dev\n```\n\n### 🧵 Patch Generation (Optional)\n```bash\nTo create patches:\n\ngit add drivers/misc/rfid_rc522/\ngit commit -m \"Add RC522 RFID driver\"\ngit format-patch -p1 -o patches/\n```\n\n### To apply patch later:\n```bash\n$ git am 0001-rfid-rc522_driver.patch\n```\n\n### 📄 Documentation\n### 📘 Integration_rfid-rc522.pdf — Full hardware \u0026 software integration guide\n### 📘 rfid-rc522_Generating_patch.pdf — Kernel patch generation steps\n\n---\n\n👨‍💼 Author\n\nDeveloped by:\n\nVenkatesh M – venkatesh.m@phytecembedded.com\n\nEmbedded System Engineer\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenkatesh4009%2Frfid-rc522-linux-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvenkatesh4009%2Frfid-rc522-linux-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenkatesh4009%2Frfid-rc522-linux-driver/lists"}