Apaczer 2783f9be95 BOARD: refactor/simplify & update USB scripts for connection detect (#181)
* update USB scripts for connection detect
don't remove gadget after running HID, or it is impossible to detect USB connection afterwards

* refactor - create unified `usb-mode` script
- move it to rootfs /usr/bin
- use parrent for mdkir cmds
2025-09-18 22:35:33 +02:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-03-13 17:52:33 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00
2019-09-25 20:52:32 -03:00
2023-01-31 16:39:34 +01:00
2023-01-31 16:39:34 +01:00

Buildroot Package for Miyoo CFW 2.0.0

Opensource development package for Miyoo handhelds.

Install

It is assumed you're using Debian based distro, others like Arch or Fedora may brake at build time.

Install necessary packages

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

Download BSP

git clone https://github.com/MiyooCFW/buildroot

Make the first build

Apply defconfig uClibc

cd buildroot
make miyoo_uclibc_defconfig

Or apply defconfig musl

cd buildroot
make miyoo_musl_defconfig

Regular build

  • image
make
  • image & sdk
make sdk

Speed up build progress

Compile speed

If you have a multicore CPU, you can try

make -j ${YOUR_CPU_COUNT}

or buy a powerful PC for yourself.

Flashing firmware to target

load output/images/miyoo-cfw-*.img on sdcard

First booting device

You will have to answer a few questions on first boot, represented on graphic below: flashing procedure


Buildroot 2022.02.9 (docs: https://github.com/MiyooCFW/buildroot/blob/master/docs/manual/manual.pdf)


Description
No description provided
Readme 181 MiB
Languages
Max 75%
Makefile 17.1%
Python 2.6%
C 2.1%
Shell 1.6%
Other 1.2%