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

 
 

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%