Skip to content

Buildroot fork of building rootfs for HPMicro MCUs.

License

Notifications You must be signed in to change notification settings

hpm-rs/buildroot

This branch is 59 commits ahead of, 4221 commits behind buildroot/buildroot:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3a3ccfc · Aug 17, 2024
Jul 27, 2024
Jul 10, 2024
May 12, 2024
Jul 27, 2024
Aug 17, 2024
Aug 16, 2024
Jun 12, 2024
Jun 5, 2024
Jul 11, 2024
Jul 13, 2024
Jul 13, 2024
Mar 28, 2024
May 17, 2024
Jun 10, 2024
Jun 6, 2024
Jan 1, 2022
Sep 8, 2016
Jun 11, 2024
Jan 2, 2021
May 4, 2013
Aug 27, 2023
Jul 25, 2022
Jul 13, 2024
Feb 26, 2016
Jun 3, 2024
Jun 3, 2024
Jul 6, 2024
Jul 13, 2024
Oct 15, 2016
May 29, 2021
Aug 14, 2024

Repository files navigation

Buildroot for HPMicro MCUs

Build

为 HPMicro MCUs 生成可启动的 Linux 镜像。

asciicast

考虑到 Buildroot 编译一次耗时过长,提供了 pre-built 镜像,可在最新的 CI 构建 中下载。

如果你想在本地环境编译,请参考下列说明。

获取源码

git clone https://github.com/hpm-rs/buildroot.git

配置编译环境

Ubuntu 22.04

sudo apt-get install bc bison build-essential flex libssl-dev unzip
# 安装 rust 编译环境
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

编译

make hpmicro_hpm6360evk_defconfig
make all

烧录

生成的镜像路径为 output/images/flash.img。可使用 hpm_isp 工具进行烧录。

修改启动模式选择管脚为 BOOT_MODE[1:0]=0b10 后将 USB0 连接至 PC,运行如下命令进行烧录。

hpm_isp flash 0 write 0x0 output/images/flash.img

About

Buildroot fork of building rootfs for HPMicro MCUs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 64.3%
  • Python 15.4%
  • C 9.1%
  • Shell 6.0%
  • BitBake 2.7%
  • C++ 0.8%
  • Other 1.7%