Build Image and SDK
Precondition for Ubuntu 22.04
sudo apt install -y wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev cpio rsync subversion python3 mercurial imagemagick btrfs-progs
Clone buildroot repo
You can build four types of source
- Shared uClibc Image and SDK
- Shared musl Image and SDK
- Static uClibc SDK only
- Static musl SDK only
NOTE: You can build only one type of source, after each build you need to clean workspace by using
make cleanNOTE: Difference between static and shared: Static library Shared_library
NOTE: You will also need at least 10GB of free space before you can proceed
NOTE: This can take a long time!
Build uClibc image and SDK shared
Build musl image and SDK shared
Build uClibc SDK static
Build musl SDK static
NOTE: If you have a multicore CPU, you can increase build speed with: make -j ${YOUR_CPU_COUNT}
Install image
Img will be in the output directory e.g.
Install SDK
SDK will be in the output directory
Unpack arm-miyoo-linux-uclibcgnueabi_sdk-buildroot.tar.gz to /opt/miyoo, additionally you can run relocate-sdk.sh in custom SDK path
gzip -d arm-miyoo-linux-uclibcgnueabi_sdk-buildroot.tar.gz
tar xvf arm-miyoo-linux-uclibcgnueabi_sdk-buildroot.tar
mv arm-miyoo-linux-uclibcgnueabi_sdk-buildroot miyoo
sudo cp -a miyoo /opt/
/opt/miyoo/relocate-sdk.sh
Your SDK is ready to use