转载:https://blog.csdn.net/qq_33232152/article/details/121122599
1 zynq7000 传统方式制作系统镜像
传统方式制作系统镜像,主要是以下几个步骤:
配置zynq芯片
uboot
kernel
device-tree
rootfs
打包制作BOOT.BIN和image.ub
环境配置
安装xilinx的vivado、SDK软件
安装gcc make g++等基本编译环境
从xilinx的github上下载交叉编译工具gcc-arm-linux-gnueabi
配置交叉编译工具,建立compile.sh脚本
#!/bin/sh
current_path=$(pwd)
export ARCH=arm
export CROSS_COMPILE=$current_path/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-
export PATH=$current_path/gcc-arm-linux-gnueabi/bin:$PATH
配置zynq
bd文件
uboot制作
转载:https://www.saoniuhuo.com/question/detail-2659897.html
在rootfs中安装一个包含头源文件子目录的目录,路径为/usr/include/。
这些文件不包含在映像中。
bb文件:
do_install () {
install -d ${D}/${includedir}/maindir
install -d ${D}/${includedir}/maindir/subdir
install -d ${D}/${includedir}/maindir/subdir2
install -m 0644 ${S}/maindir/subdir/*.h ${D}/${includedir}/maindir/subdir/
install -m 0644 ${S}/maindir/subdir2/*.h ${D}/${includedir}/maindir/subdir2/
}
FILES_${PN}-dev += "\
${includedir}/maindir/subdir/*.h \
${includedir}/maindir/subdir2/*.h \
"do_install () {
install -d ${D}/${includedir}/maindir
install -d ${D}/${includedir}/maindir/subdir
install -d ${D}/${includedir}/maindir/subdir2
install -m 0644 ${S}/maindir/subdir/*.h ${D}/${includedir}/maindir/subdir/
install -m 0644 ${S}/maindir/subdir2/*.h ${D}/${includedir}/maindir/subdir2/
}
FILES_${PN}-dev += "\
${includedir}/maindir/subdir/*.h \
${includedir}/maindir/subdir2/*.h \
"
注意,使用
然后,要安装刚刚制作的recipe-dev包,您需要:
IMAGE_INSTALL_append = " recipe-dev"
yocto系列讲解[实战篇]62 - 文件系统中配置文件修改和systemd挂载分区的方法
https://blog.csdn.net/fulinus/article/details/118580248
build]$ devtool modify base-files
build]$ cd workspace/sources/base-files/
base-files]$ ls
fstab hosts issue.net motd oe-local-files rotation shells
host.conf issue licenses nsswitch.conf profile share source-date-epoch
base-files]$ vim fstab