配置分析

#misc image
export RK_MISC=wipe_all-misc.img

wipe_all 类型的 misc 镜像通常用于:

  • 首次烧录后:清除残留数据,确保设备以干净状态启动
  • 出厂重置:清除 userdata、oem 等用户数据分区

删除overlay文件的脚本

# specify pre.sh for delete/overlay files
export RK_PRE_BUILD_OEM_SCRIPT=luckfox-buildroot-oem-pre.sh

# specify post.sh for delete/overlay files
export RK_PRE_BUILD_USERDATA_SCRIPT=luckfox-userdata-pre.sh

配置overlay文件的脚本

# declare overlay directory
export RK_POST_OVERLAY="overlay-luckfox-config overlay-luckfox-buildroot-init overlay-luckfox-buildroot-shadow overlay-luckfox-wifibt-firmware"