- Install dependencies:
sudo apt-get update
sudo apt-get install libssl-dev ocaml-nox golang
sudo apt-get install npm
note: You need to install those packages above one by one when you have problem with them.
- Clone ImageBuilder to you Ubuntu and go to the ImageBuiler directory
- Generate .profiles.mk
make info
- Find your device in .profiles.mk and modify .profiles.mk
vim .profiles.mk
- Generate Image for you device
make image PROFILE=xiaomi-r3g
You can add FIELS=files/ after make image command then all the files in files directory will be add to the root directory of you image