Coder Social home page Coder Social logo

open-p3go's Introduction

Open source project for P3GO supported by G-TEAM

The core of P3GO MCU is MIPS, so you need a cross compiler toolchain for your host system. You can download it from the link as blow. When you decompress compiler tools, you also need to add the installed path to your environment settings, like "export PATH=$PATH:~mips_compile/bin". 
Cygwin on Windows: 
ftp://ftp.ingenic.cn/3sw/02rtos/00toolchain/mipsel-gcc4.1-cygwin-nopic.tar.bz2
Linux:
ftp://ftp.ingenic.cn/3sw/02rtos/00toolchain/mipsel-4.1.2-nopic.tar.bz2

Directory structure
inc			--		common include directory
miniclib	    --	    small c library
mtv_50		--	    main project directory, there has already some payload projects, like hermes,kakroto,asbestos
release		--	    compile binary directory
soc_src		--	    some driver and system boot code
src		    --	ucos and mips header files

How to compile?
There is some example project in the mtv_50 directory; you can try to compile these by yourselves. 

  mtv_50/loader -- Hermers V4B payload
  mtv_50/loaderPL3  -- KaKaroto PL3 payload
  mtv_50/asbestos	--	WIP:porting asbestos loader

You can enter mtv_50/loader and "make build", then will generate homebrew.bin and update.bin in release directory if there is no error occured.

How to update your P3GO?
First you need update your P3GO to development version (please go to www.gamebox.hk to download a development version update binary), then you can put you compiled update.bin to P3GO buildin disk not TF card disk, then re-plug your device to complete update. Note if you want to your custom firmware work, you must insert a TF card in the P3GO TF slot.

Example setup steps on cygwin
step1:
	Download and install cygwin to c:\cygwin on your pc, specialy you must selected and installed the development packet.
step2:
	Download the mipsel-gcc4.1-cygwin-nopic.tar.bz2 from above link and extract to c:\cygwin\opt, and then "mipseltools-nopic" directory will be created in c:\cygwin\opt.

	#cd /opt
	#bzip2 -d mipsel-gcc4.1-cygwin-nopic.tar.bz2
	#tar xf mipsel-gcc4.1-cygwin-nopic.tar

step3:
	edit C:\cygwin\home\Administrator\.bashrc and add "export PATH=/opt/mipseltools-nopic/bin:$PATH" to last of the bashrc file.
	
step4:
	restart cygwin and enter your open-p3go directory and 
	
	#cd mtv_50/loader
	#make clean
	#make build
	
	then if no error occur, you will get a homebrew.bin and update.bin in open-p3go/release.

open-p3go's People

Contributors

joyup avatar

Stargazers

 avatar

Watchers

 avatar  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.