{"id":18290635,"url":"https://github.com/shuai132/petalinux","last_synced_at":"2026-03-19T03:43:55.045Z","repository":{"id":124277277,"uuid":"193710759","full_name":"shuai132/petalinux","owner":"shuai132","description":"workflow of build linux for Zynq SoC using petalinux","archived":false,"fork":false,"pushed_at":"2019-07-02T21:58:34.000Z","size":3282,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-21T12:41:50.721Z","etag":null,"topics":["kernel-driver","petalinux","zynq"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shuai132.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-25T13:14:26.000Z","updated_at":"2023-03-26T14:55:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"15a30569-0098-4ff8-9775-2cc33d1fe1f6","html_url":"https://github.com/shuai132/petalinux","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shuai132/petalinux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuai132%2Fpetalinux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuai132%2Fpetalinux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuai132%2Fpetalinux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuai132%2Fpetalinux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuai132","download_url":"https://codeload.github.com/shuai132/petalinux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuai132%2Fpetalinux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29280437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T19:05:41.198Z","status":"ssl_error","status_checked_at":"2026-02-09T19:05:37.449Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kernel-driver","petalinux","zynq"],"created_at":"2024-11-05T14:11:42.569Z","updated_at":"2026-02-09T20:44:15.117Z","avatar_url":"https://github.com/shuai132.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# petalinux\n\nZynq SoC构建linux的uboot、kernel、rootfs、driver等相关配置和流程，主要实现axi-adc-dma驱动。\n\n## Notice:\n* Vivado 和 Petalinux版本均为2019.1，必须保持一致。\n更具体地说，不同Vivado版本生成的hdf文件是不同的，所以不可以混用。另外，不同Petalinux版本对使用的linux内核版本也有要求，尽量用默认配置自动获取。\n\n* 在使用petalinux命令前需要设置环境变量，例如:\n```bash\nsource ~/Software/Xilinx/Petalinux/settings.sh\nsource ~/Software/Xilinx/Vivado/2019.1/settings64.sh\n```\n为了方便，可以创建一个文件\"petaenv\"，就是以上内容。并把所在路径加入到环境变量PATH中。后续就可以直接使\"source petaenv\"。\n\n* Ubuntu 18.04.2 LTS\n\n## Workflow Example\n```bash\nsource petaenv\npetalinux-create --type project --template zynq --name ax_peta\n\n# build kernel and rootfs\ncd ax_peta\npetalinux-config --get-hw-description ../proj.sdk\npetalinux-config -c kernel\npetalinux-config -c rootfs\n\n# driver modules. optional!\npetalinux-create -t modules -n mymodule --enable\npetalinux-build -c mymodule\n\n# compile uboot、kernel、rootfs、device tree...\npetalinux-build\n\n# generate boot file\npetalinux-package --boot --fsbl ./images/linux/zynq_fsbl.elf --fpga --u-boot --force\n```\nOutput files in \"images/linux/\"\n\n\n## Develop Kernel Driver\n\n* 为了更好的维护性，驱动模块使用petalinux创建，都在此目录下：\"project-spec/meta-user/recipes-modules/\"。以下操作都在上述目录，首先配置环境：\n```bash\ncd env\ncp cmake.env.example cmake.env\ncp make.env.example make.env\n```\n然后修改里面的源码目录。env主要配置源码位置，最好拷贝出一份工具自动下载的源码(\"build/tmp/work-shared/plnx-zynq7/kernel-source\")，并编译一下。\n          \n* 驱动程序用petalinux编译特别慢，为了方便开发和调试，可使用build.mk手动编译。\n```bash\ncd adcmodule/files\nmake -f build.mk\n```\n\n* 为了更好的IDE支持，可直接用CLion等IDE加载CMake工程进行开发。\n\n# Links\n* [ug1144-petalinux-tools-reference-guide.pdf](https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_1/ug1144-petalinux-tools-reference-guide.pdf)\n* [ug1157-petalinux-tools-command-line-guide.pdf](https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_1/ug1157-petalinux-tools-command-line-guide.pdf)\n* [xapp1183-zynq-xadc-axi.pdf](https://www.xilinx.com/support/documentation/application_notes/xapp1183-zynq-xadc-axi.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuai132%2Fpetalinux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuai132%2Fpetalinux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuai132%2Fpetalinux/lists"}