Giter Club home page Giter Club logo

mediadeb's Introduction

What is MediaDeb ?

Ever had an old cheap cellphone? Perhaps with a broken screen/sim slot/barely alive battery? With MediaDeb you can turn it into a Raspberry Pi-like SBC.

MediaDeb is a hacky effort to port a recent Debian to run on a mediatek phone. No chroot, no android guts whatsoever. Just pure Debian. We try to make it work with the least effort, therefore:

  • Kernels built from published vendor SDK. Forward-porting all the vendor hacks is a tedious, nearly impossible task and is outside of the scope of this project

  • A minimal initrd is provided to mount the actual root partition and do any hardware-specific setup

Supported devices

SoC Device Feature Status
MT6589 UMI X2 Supported Yes
Platform umi-x2
Kernel 3.4.67
WiFi WiP
Display YES
Battery Hack* YES
USB Client YES
USB Host No, possible
UART YES, requires soldering
FM ?
BT ?
Sound ?
Camera ?
Modem ?
Magnetometer ?
Flashlight ?
SoC Device Feature Status
MT6592 iOcean X8 Supported Yes
Platform iocean-x8
Kernel 3.4.67
WiFi ?
Display NO
Battery Hack* NO
USB Client YES
USB Host No, possible
UART NO
FM ?
BT ?
Sound ?
Camera ?
Modem ?
Magnetometer ?
Flashlight ?

* Battery Hack is a mod to the PMIC driver that changes the maximum voltage for the battery from 4-4.2 volts to 3.7-3.8 volts. This allows to avoid 'bloating' batteries when you keep your phone always charged.

How to build

  • System Requirements.
    1. A recent Debian Stretch or Debian jessie linux distro
    2. Development packages: multistrap build-essential
    3. Caffeine
  • Clone the MediaDeb repository.

DO NOT UPDATE SUBMODULES OR YOU RISK BLOATING YOUR FILESSYSTEM WITH USELESS STUFF

git clone https://github.com/nekromant/MediaDeb.git
  • Run make PLATFORM=umi-x2

Check the table above for available platforms

  • Get your firmware in build/fw.platform_name

How to port

  • Find a suitable kernel kitchen. If your cellphone has the same SoC as one of the above you may well be lucky.

  • Make yourself familiar with firmware compilation and packaging process. This may be tricky.

  • Add this to the end of the kernel config. This should do the minimal trick.

CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_CGROUPS=y
CONFIG_INOTIFY_USER=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EPOLL=y
CONFIG_NET=y
CONFIG_SYSFS=y
CONFIG_PROC_FS=y
CONFIG_FHANDLE=y
CONFIG_CRYPTO_USER_API_HASH=y
CONFIG_CRYPTO_HMAC=y
CONFIG_CRYPTO_SHA256=y
CONFIG_SYSFS_DEPRECATED=n
CONFIG_ANDROID_PARANOID_NETWORK=n
CONFIG_EXT4_FS_XATTR=y
  • Consult Systemd README and add required options for it to work.

  • Compile your own kernel

  • Write a platforms/your_phone/platform.mk and send us your patches!

NOTE: This section is a placeholder written by cpt. Obvious

No warranty

MediaDeb comes with absolutely no warranty, not even of fitness for particular purpose. If you brick your hardware and your mom gets angry - it's all your fault ;)

Credits

Andy 'ncrmnt' http://ncrmnt.org

mediadeb's People

Contributors

nekromant avatar

Watchers

Ted Feng avatar

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.