【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

相关推荐
CYRUS STUDIO5 小时前
使用 AndroidNativeEmu 调用 JNI 函数
android·汇编·arm开发·arm·逆向·jni
沐欣工作室_lvyiyi6 天前
基于物联网的智能蔬菜仓库设计(论文+源码)
人工智能·stm32·单片机·嵌入式硬件·物联网·fpga
RunningCamel7 天前
[Vivado报错] [Runs 36-527] DCP does not exist
verilog·fpga·vivado报错
小虾米的Daddy8 天前
ARM64 Trust Firmware [一]
linux·arm·安全架构
北城笑笑11 天前
FPGA 28 ,基于 Vivado Verilog 的呼吸灯效果设计与实现( 使用 Vivado Verilog 实现呼吸灯效果 )
fpga开发·fpga
世事如云有卷舒14 天前
《ARM64体系结构编程与实践》学习笔记(三)
笔记·学习·arm
亿道电子Emdoor14 天前
【ARM】MDK烧录配置文件无权限访问
arm开发·stm32·单片机·arm
hi9415 天前
Versal - Petalinux 2024.2(下载与安装+VD100+安装JupyterLab+SD卡分区+SDT流程)
linux·fpga开发·petalinux·versal soc
涛tao讲道16 天前
FPGA的IP核接口引脚含义-快解
接口·fpga·vivado·xilinx·ip核·涛tao讲道·抗单粒子翻转
tangyoha17 天前
arm 下 多线程访问同一变量 ,使用原子操作 性能差问题
arm