External tree used to configure Buildroot for Lichee Pi Zero.
Main goals of this project:
- use audio, recording and play are enabled
- use Wi-Fi via ESP8089, driver is installed as kernel module and loaded on startup
- use console via Serial Gadget (by power cable)
- board - Linux configuration, rootfs overlay, out-of-tree dts files and setup scripts.
- configs - Buildroot config
-
Clone project next to Buildroot . i using buildroot 2020.02
git clone https://github.com/korr237i/licheepi-tree.git
-
Initialize tree of licheepi zero (fish shell, in
buildroot/
)make licheepi_zero_defconfig
-
Initialize tree as external (fish shell, in
buildroot/
)make BR2_EXTERNAL=../licheepi-tree/ ../licheepi-tree/configs/licheepi.config
You can check output/.br2-external.mk to see if external tree was initialized correctly.
-
Run
make menuconfig
to initialize Buildroot and merge config from external tree:support/kconfig/merge_config.sh .config ../licheepi-tree/configs/licheepi.config
-
Run
make linux-menuconfig
and save Linux configuration obtained from external tree. -
Add esp8089 driver to kernel: in
board/setup/
, run./kernel-add-esp8089.sh
, and enable esp8089 package inNetworking support / Wireless
as kernel module. -
Run
make
-
Write image on disk (e.g. /dev/sdc/), in
licheepi-tree/board/
, run:./target_load.sh "/dev/sdc"
To update filesystem on remote working machine, in
licheepi-tree/board/
, run:./target_load_remote.sh port_number hostname password