【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

相关推荐
佛祖保佑永不宕机2 天前
麒麟系统ARM64架构部署mysql、jdk和java项目
java·arm
CloudPilotAI3 天前
“海外滴滴”Uber的Arm迁移实录:重构大规模基础设施
arm开发·架构·arm
toradexsh7 天前
NXP iMX8MP ARM 平台多屏幕克隆显示测试
linux·arm·nxp·toradex·imx8mp
霖0011 天前
FPGA实战项目1——坦克大战
人工智能·经验分享·嵌入式硬件·学习·fpga开发·fpga
二年级程序员12 天前
ARM介绍及其体系结构
嵌入式硬件·arm
雪天鱼13 天前
DSP48E2 的 MAC模式功能仿真
fpga开发·fpga·dsp48e2
霖0016 天前
FPGA中级项目8———UART-RAM-TFT
网络·经验分享·嵌入式硬件·fpga开发·显示器·fpga
单车少年ing18 天前
linux两个特殊的宏 _RET_IP_ 和_THIS_IP_ 实现
linux·arm
大新新大浩浩22 天前
arm64适配系列文章-第六章-arm64环境上rabbitmq-management的部署,构建cluster-operator
rabbitmq·arm
大新新大浩浩22 天前
arm64适配系列文章-第九章-arm64环境上sentinel的部署
arm