【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

相关推荐
璞致电子1 小时前
【PZ-KU060-KFB】——Kintex UltraScale 纯 FPGA 开发平台,释放高速并行计算潜能,高性价比的 FPGA 解决方案
fpga开发·fpga
亿道电子Emdoor1 天前
【ARM】ARM架构基础知识
arm开发·架构·arm
toradexsh2 天前
Yocto meta-toradex-security layer 使用 TI AM62 安全启动功能
linux·安全·arm·ti·am62
亿道电子Emdoor3 天前
【ARM】当选择AC5时每次点击build都会全编译
arm开发·arm
亿道电子Emdoor4 天前
[ARM]MDK出现报错error: A\L3903U的解决方法
arm开发·stm32·单片机·arm
lwd_up5 天前
多片RFSoC同步,64T 64R
fpga开发·无线通信·信号处理·fpga
XINVRY-FPGA6 天前
XC7A35T‑2FGG484I Xilinx FPGA Artix‑7 AMD
嵌入式硬件·fpga开发·云计算·硬件架构·硬件工程·fpga·pcb工艺
FPGAmaster创新者7 天前
基于FPGA的智能小车设计(包含代码)/ 全栈FPGA智能小车:Verilog实现蓝牙/语音/多传感器融合的移动平台
fpga开发·毕业设计·智能家居·fpga·毕设
witton9 天前
x86版Ubuntu的容器中运行ARM版Ubuntu
linux·arm开发·ubuntu·docker·容器·arm·qemu
witton11 天前
x86版的ubuntu上使用qemu运行arm版ubuntu
arm开发·ubuntu·arm·qemu·aarch64·qemu_efi.fd·cortex-a72