【Petalinux】制作SD卡 操作系统 启动

Vivado

添加 SD0

导出hdf

制作SD卡

https://mathd.blog.csdn.net/article/details/135217761

【Petalinux】下为空白SD卡建立BOOT,rootfs分区

Petalinux

生成 Petalinux 框架

c 复制代码
petalinux-create --type project --template zynq --name sdtest


进入 sdtest 文件内

c 复制代码
cd sdtest/

导入hdf

直接拷贝到目录里面

进入配置

c 复制代码
petalinux-config --get-hw-description=.

boot image settings

  • Subsystem AUTO Hardware Settings
    • Advanced bootable images storage Settings
      • boot image settings

Kernel image Settings

  • Subsystem AUTO Hardware Settings
    • Advanced bootable images storage Settings
      • Kernel image Settings

Image Packaging Configuration

BOOT/内核/文件系统打包到BOOT中版本配置方式

-*- Subsystem AUTO Hardware Settings --->

Flash Settings --->

Primary Flash (psu_qspi_0) --->

*** partition 0 ***

(boot) name

(0x2000000) size

*** partition 1 ***

(bootenv) name

(0x2000) size

程序更新

应用程序 自动运行

c 复制代码
petalinux-create -t apps --template install --name myapp-init --enable

myapp-init.bb

files/myapp-init文件

添加应用程序

c 复制代码
petalinux-create -t apps --template install --name myapp --enable

添加驱动模块

c 复制代码
petalinux-create -t modules -n axi //添加axi驱动模块

//将file文件夹、axi.bb的替换成自己的

c 复制代码
 petalinux-config -c rootfs



修改设备树

$ cd /project-spec/meta-user/recipes-bsp/device-tree/files/

替换system-user.dtsi文件

编译操作系统

c 复制代码
petalinux-build

打包操作系统

c 复制代码
cd images/linux/
petalinux-package --boot --fsbl zynq_fsbl.elf --fpga system.bit --kernel --u-boot --force

复制 BOOT.BIN 和 image.ub 到 SD 卡的 boot 分区

将 rootfs.tar.gz 解压到 SD 卡 rootfs 分区 sudo tar xvf rootfs.tar.gz -C /media/rootfs

相关推荐
yingheceping19 小时前
复旦微FPGA开发板厂商TOP5甄选榜:2026选型参考
fpga开发·fpga
凉、介2 天前
深入理解 ARMv7-A | Generic Timer
笔记·学习·嵌入式·arm
FPGA小迷弟4 天前
FPGA 与卫星:从星载硬件到在轨智能的完整技术解析
fpga开发·架构·fpga·1024程序员节·无线电
益企研究院4 天前
Arm 副总裁 Eddie Ramirez:智能体 AI 重塑数据中心,Arm 如何构建下一代算力底座?
arm
LabVIEW开发5 天前
FlexRIO 在轨图像取舍:判决要跑在数据进内存之前
labview·fpga·labview功能·labview程序·flexrio
FPGA小迷弟5 天前
FPGA 与无线电:从软件定义无线电到 5G 基带的硬件实现之路
5g·fpga开发·架构·dsp开发·fpga·无线电
yingheceping5 天前
2026 国产 FPGA 核心板怎么选?工控/视觉/通信/科研,四场景对板指南
fpga开发·fpga
FPGA小徐6 天前
FPGA离散数列信源熵:原理、计算与硬件实现全解
fpga
FPGA小徐7 天前
【FPGA数字信号处理】离散信源香农熵计算:原理详解 + 纯Verilog可综合实现 + 全套仿真代码
fpga
FPGA小迷弟9 天前
FPGA开发Vivado Block Design/Vitis/SDK/xlinx/开发教程,保姆级别,一看就会!
网络协议·tcp/ip·fpga开发·verilog·fpga