zoukankan      html  css  js  c++  java
  • MPSOC之4——petalinux提取源码

    petalinux使用太不方便,捆绑的太死板,也不通用,还不如直接用编译器来的简单高效。
    本文说明从petalinux中提取出源代码的过程,前提是已经petalinux-build完成。

    1. uboot

    编译结果里没有uboot的源码,可能是编译完了就删除了。
    从git上下载吧。

    git clone https://github.com/Xilinx/u-boot-xlnx.git

    2. linux

    分析log文件太费劲了,直接查找linux内核的文件,获取内核源码。

    [liuwanpeng@localhost xilinx-zcu102-2017.2]$ find ./ -name "core.c" -print
    ./build/tmp/sysroots/plnx_aarch64/usr/lib/perl/ptest/ext/XS-APItest/core.c
    ./build/tmp/work-shared/plnx_aarch64/kernel-source/arch/arm/mach-cns3xxx/core.c
    ./build/tmp/work-shared/plnx_aarch64/kernel-source/arch/arm/mach-ebsa110/core.c
    linux目录在:./build/tmp/work-shared/plnx_aarch64/kernel-source/

    3.dts

    使用petalinux根据bsp建立工程以后,会在prebuild文件夹生产system.dtb,用dtc反汇编可获取dts文件

    4.rootfs

    编译完成后,./image/linux中有编译好的rootfs

    5 编译器提取

    暂时不提取,后续如果别的机器不安装petalinux时,再把编译器单独提取出来。

    转载:https://www.cnblogs.com/liuwanpeng/p/8074256.html

  • 相关阅读:
    Web API初印象
    SQL注入总结篇
    Debian Linux 下安装pip3
    DVWA:环境搭建
    AWVS使用手册
    常见的反爬虫和应对方法
    Fiddler抓取手机APP数据包
    爬虫 Scrapy框架 爬取图虫图片并下载
    python 爬虫基础知识(继续补充)
    Python 爬虫 多进程清洗代理
  • 原文地址:https://www.cnblogs.com/lidan2019/p/10315674.html
Copyright © 2011-2022 走看看