从零开始打造 OpenSTLinux 6.6 Yocto 系统(基于STM32CubeMX)(十三)
-
下载官方Yocto仓库
├── meta-openembedded │ ├── contrib │ ├── COPYING.MIT │ ├── meta-filesystems │ ├── meta-gnome │ ├── meta-initramfs │ ├── meta-multimedia │ ├── meta-networking │ ├── meta-oe │ ├── meta-perl │ ├── meta-python │ ├── meta-webserver │ ├── meta-xfce │ └── README.md ├── meta-st │ ├── meta-my-custo-layer // 增加正点原子自定义曾 │ ├── meta-st-openstlinux │ ├── meta-st-stm32mp │ ├── meta-st-stm32mp-addons │ └── scripts └── openembedded-core├── bitbake├── contrib├── LICENSE├── LICENSE.GPL-2.0-only├── LICENSE.MIT├── MAINTAINERS.md├── MEMORIAM├── meta├── meta-selftest├── meta-skeleton├── oe-init-build-env├── README.md -> README.OE-Core.md├── README.OE-Core.md├── README.qemu.md├── scripts└── SECURITY.md
-
增加meta-my-custo-layer
├── classes │ └── cubemx-stm32mp.bbclass ├── conf │ ├── eula │ ├── layer.conf │ └── machine ├── COPYING.MIT ├── mx1 │ └── stm32mp157-bsp-cubemx ├── README ├── recipes-bsp │ ├── trusted-firmware-a │ └── u-boot ├── recipes-example │ └── example ├── recipes-kernel │ └── linux └── recipes-security└── optee
-
编译yocto,显示如下图所示,则编译成功
MACHINE=stm32mp1-develop DISTRO=openstlinux-weston source layers/meta-st/scripts/envsetup.sh bitbake st-image-weston
-
烧录镜像到开发板
-
烧录文件在
yocto\build-openstlinuxweston-stm32mp1-develop\tmp-glibc\deploy\images\stm32mp1-develop\flashlayout_st-image-weston\optee\FlashLayout_emmc_stm32mp157d-stm32mp157daa1-mx-optee.tsv
-
-
使用STM32CubeProgrammer打开tsv文件
-
等待烧录完成,将启动方式修改成EMMC,启动大功告成
-
开源地址,欢迎大家一起构建!!!
https://github.com/AcSully/Yocto_STM32MP157DAA1
- TODO:
- 屏幕颜色偏黄
- PWM控制背光
- 声卡
- M4 rproc
- HDMI
- 摄像头等
- TODO: