Xilinx官方提供了u-boot的源码,位于https://github.com/Xilinx/u-boot-xlnx/releases,我们按照自己需要的版本进行下载和使用。 将下载好的u-boot-xlnx-xilinx-v2017.1.zip文件上传到Ubuntu服务器,使用命令unzip解压缩后进入u-boot-xlnx-xilinx-v2017.1目录,在 u-boot 的文件夹下有很多子文件夹构成,其中每个文件...
Petalinux工程,通过meta-user\recipes-kernel\linux\linux-xlnx中的patch文件,给Linux kernel增加了驱动,并使能为module形式编译。 再在Petalinux-config -c kernel中disable。编译Petalinux工程后,文件系统里,还是有对应的驱动。 在编译后,把linux kernel的代码复制出来,再修改其中对应驱动程序的makefile,在makefile里删...
}if[ -z"$1"];thenhelpfiif[ -z"$2"];thenhelpfi## 删除源目录rm$1-rf## 创建项目petalinux-create --typeproject --template zynq --name$1## 导入硬件信息cd$1petalinux-config --get-hw-description$2## 使PetaLinux不删除源码echo'RM_WORK_EXCLUDE += "linux-xlnx"'>> project-spec/m...
u-boot (u-boot-xlnx)—>:用于配置U-Boot源码的来源。 u-boot-xlnx:默认U-Boot是xilinx提供的U-Boot源码―版本号跟petalinux版本号一致。 remote:远程仓库当中的U-Boot源码。 ext-local-src:Ubuntu主机本地目录当中存放的U-Boot源码。 linux-kernel (linux-xlnx) —>:用于配置Linux内核源码的来源。 Auto ...
https://github.com/Xilinx/linux-xlnx 图3 要调试内核,我们需要完整的xlnx-linux源代码。选择remote source ,在petalinux项目的配置阶段,将自动从GitHub下载内核镜像到PetaLinux项目中。 8)接下来需要设置一下boot镜像文件的加载地址偏移量。如下图所示,定位到u-boot Configuration ---> and set the netboot offs...
通过执行命令“petalinux-devtool modify linux-xlnx”或者“devtool modify linux-xlnx”,Linux源代码会被保存至"components/yocto/workspace/sources/linux-xlnx"目录下。 通过执行命令“petalinux-devtool modify u-boot-xlnx”或者“devtool modify u-boot-xlnx”,Linux源代码会被保存至"components/yocto/workspac...
1.7 Linux Components Selection 选项可以配置 uboot 和 Linux 内核来源,默认从 git 上下载,这里选用本地内核文件,进入Linux Components Selection→linux-kernel (linux-xlnx),选中ext-local-src 1.8 选择External linux-kernel local source settings→EXternal linux-kernel local source path,填写本地 Linux 内核源码...
2) 进入内核代码目录projname/build/tmp/work-shared/plnx-zynqmp/kernel-source 修改对应的代码,然后执行 git diff > ${projname }/project-spec/meta-user/recipes-kernel/linux/linux-xlnx/kernel.patch 3) 将patch追加到petalinux配置中,使其生效 ...
使用petalinux-config -c rootfs配置Linux根文件系统; 配置设备树文件; 使用petalinux-build编译整个工程; 使用petalinux-package --boot制作BOOT.BIN启动文件; 制作SD启动卡,将BOOT.BIN和image.ub以及根文件系统部署到SD卡中; 将SD卡插入开发板,并将开发板启动模式设置为从SD卡启动; ...
linux-xlnx.git.tar.gz git2_git.linuxfoundation.org.diamon.babeltrace.git.tar.gz git2_github.com.linux-test-project.ltp.git.tar.gz git2_git.kernel.org.pub.scm.linux.kernel.git.kdave.btrfs-progs.git.tar.gz git2_github.com.Xilinx.linux-examples.git.tar.gz git2_git.kernel.org.pub.scm...