E2000-yocto-docker/README.md

54 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

# E2000 builder Dockerfile
Useing FT Offical E2000 build system BASED on Ubuntu 20.04 and yocto project.
Make Sure your host volume has lager than 50GB free space.
# How to build Docker
~~~bash
sudo docker build -t ft-e2000-builder:1.1 .
~~~
# How to Init this docker for use
~~~bash
export BUILD_DIR=/data/build_dir
sudo docker run -it --rm -u 1000:1000 -v ${BUILD_DIR}:/home/AcoSailBuilder/build_dir ft-e2000-builder:1.1 /bin/bash
~~~
In the docker, then, for the first time, do as following.
~~~bash
cd ~
sudo chown AcoSailBuilder:AcoSailBuilder build_dir
2023-04-11 16:23:51 +08:00
#passwd is "acosail".
cp -rdp workspace build_dir/
cd build_dir/workspace
source setup-env -m e2000
#Say "y" when dialog shows up.
#Then project is ready to go.
~~~
Or, do as following for other times.
~~~bash
cd ~/build_dir/workspace
source setup-env -m e2000
#This is for have build env
~~~
# How to build core-image-minimal
~~~bash
#After Init project,
#you should in dir /home/AcoSailBuilder/build_dir/workspace/build_e2000/
bitbake core-image-minimal
~~~
# Where to get builded files
Everything is placed in "${BUILD_DIR}/workspace/build_e2000/tmp/deploy/"
Kernel image is in "${BUILD_DIR}/workspace/build_e2000/tmp/deploy/images/e2000"
# FAQ
## bitbake error
If error is about kernel, you may need to change "linux-phytium.inc", to fix download error.
Like changing ssh to https for git clone.
If error is about other downloads, you may need to rerun "bitbake core-image-minimal".