Coder Social home page Coder Social logo

main's Introduction

Main Repository for Low-Level Development

Build Enviroment

You can either cross-compile from a native Ubuntu/Debian setup or build in docker container.

Ubuntu / Debian (x86 cross-compile)

Install the required dependencies:

sudo apt install build-essential git gcc-mips-linux-gnu autoconf autoconf libtool libtool cmake ftp-upload u-boot-tools pkg-config mercurial

Docker (Slower!)

Build your own local docker image:

git clone --recurse-submodules https://github.com/Dafang-Hacks/Main.git
cd Main
docker build -t ${USER}/dafang-cross-compile .
docker run --rm -ti -v $(pwd):/root/ ${USER}/dafang-cross-compile:latest

Or use the docker image provided by Daviey ( https://hub.docker.com/r/daviey/dafang-cross-compile ):

mkdir ~/dafang
cd ~/dafang
docker run --rm -ti -v $(pwd):/root/ daviey/dafang-cross-compile:latest

Build modules

Now check out the repo with all its submodules and build the necessary libraries and then the rtspserver:

git clone --recurse-submodules https://github.com/Dafang-Hacks/Main.git
cd Main
./compile_modules.sh

Prep

Building the V4LRTSP server requires a number of libraries from the binary release. (At some point this step will no longer be required.) Check it out and copy the libraries:

cd ~
git clone https://github.com/Dafang-Hacks/Xiaomi-Dafang-Hacks.git
cd Xiaomi-Dafang-Hacks/firmware_mod/lib
cp libimp.so libalog.so libsysutils.so ~/Main/_install/lib
cd ~/Main

Build RTSP server

Now check out the repo with all its submodules and build the necessary libraries and then the rtspserver:

cd ~/Main/v4l2rtspserver-master
./compile.sh

Deploy RTSP server to your camera

To push the v4lrtspserver to your camera, you will need to activate the FTP server and deactivate your RTSP server. Then:

cd ~/Main/v4lrtspserver-master
./deploy.sh <cam hostname or ip address>

Develop

To update the build environment:

git submodule update --init --recursive

You can push the compiled binaries to your development camera via ftp-upload:

ftp-upload -h dafang.local -u root --password ismart12 -d /system/sdcard/bin/ your_file_name

Sources:

main's People

Contributors

daviey avatar eliaskotlyar avatar ixisandyr avatar jmtatsch avatar nik0 avatar puddly avatar sian-lee-sa avatar sundarnagarajan avatar xdissent avatar yannik 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.