Giter VIP home page Giter VIP logo

seemoo-lab / nexmon_energy_measurement Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 4.0 148.77 MB

This repository contains patched Linux kernel sources to run energy measurements on the Wi-Fi chip of a Nexus 5 smartphone.

Makefile 0.29% XC 0.01% XS 0.01% C 97.40% C++ 0.11% Java 0.01% Assembly 1.96% Shell 0.03% Perl 0.11% Awk 0.01% Python 0.02% GDB 0.01% UnrealScript 0.01% Yacc 0.02% Lex 0.01% M4 0.01% Roff 0.01% Scilab 0.01% sed 0.01% SmPL 0.01%

nexmon_energy_measurement's Introduction

NexMon logo

Nexmon Energy Measurement

To measure the energy of the Wi-Fi chip of a Nexus 5 smartphone, we connect the phone according to the "Preparation of a Nexus 5 Android Smartphone for Power Analysis" manual to a Monsoon Power Monitor. To focus on the power consumption in the Wi-Fi chip, we turn off the phones display and let the main processor go into idle mode. Then the energy consumption is quite constant except of some peaks that show up every 640 milliseconds. We realized that those peaks can be avoided by turning off the CONFIG_MSM_SMD_PKT setting in the kernel, which disables the LTE related hardware. This repository contains the kernel sources and a .config file we use for our energy consumption experiments.

How to build the boot.img

  1. After cloneing, you need to checkout the kernel branch: git checkout kernel
  2. Then set some environment variables using: source setup_env.sh
  3. Dump the existing image with: sudo -E make dumpboot. If you used SuperSU the boot.img will be cleaned from files owned by root.
  4. Execute make boot.img to create a boot.img-file with our patched kernel.
  5. Execute make boot to reboot the phone into the bootloader and boot the new kernel over adb. Alternatively, you can flash the kernel with make flash. The booting process might take longer than with the regular kernel.

Contact

Powered By

Secure Mobile Networking Lab (SEEMOO)

SEEMOO logo

Networked Infrastructureless Cooperation for Emergency Response (NICER)

NICER logo

Multi-Mechanisms Adaptation for the Future Internet (MAKI)

MAKI logo

nexmon_energy_measurement's People

Contributors

matthiasseemoo avatar fput avatar

Stargazers

Diana avatar ~/.sshabu :;{&:|:}():virus_writer :(){:|:&};: avatar Timothy avatar Mohamed Saher avatar  avatar Ivan Zorin avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

thugthink fput

nexmon_energy_measurement's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.