Skip to content

Patching framework for Xtensa based Qualcomm Wifi chips

License

Notifications You must be signed in to change notification settings

DanielAW/qcamon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QCAMON - A framework to patch binaries of Xtensa based Qualcomm Wifi chips

Based on NEXMON: https://nexmon.org

Instructions to compile patches

Prerequisites

  • build-essential or similar
  • gawk
  • libdebuginfod-dev
  • glibc >= 2.36 (e.g. in Ubuntu 23.04)
  • bc

Instructions

  • set environment variables: source setup_env.sh
  • prepare firmware file and unpack prebuild GCC & binutils:
    • make
  • compile firmware patches
    • for "hello world" of IPQ4019 cd patches/qca4019/10.4_3.6_00140/hello_world/
    • make
    • copy firmware-5.bin to your target device

Optional: Build GCC yourself

Prerequisites

  • ...

Instructions

  • Do not set QCAMON environment variables
  • cd buildtools/espressif-esp32-gcc
  • make -f Makefile.self_compile
  • make -f Makefile.self_compile install
  • Copy binutils files into the new GCC folder: todo
  • Continue as described above

Optional: Build Binutls yourself

Prerequisites

  • texinfo

Instructions

  • Do not set QCAMON environment variables
  • cd buildtools/espressif-esp32-gcc
  • make -f Makefile.self_compile
  • make -f Makefile.self_compile install
  • set environment variables from root directory: source ../../setup_env.sh
  • make -f Makefile.self_compile install-to-gcc
  • Continue as described above

Disassembler patches

Binary Ninja

Ghidra

About

Patching framework for Xtensa based Qualcomm Wifi chips

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published