Coder Social home page Coder Social logo

firmware_qemu_gdb's Introduction

需要安装的第三方工具包

sudo apt install build-essential uuid-dev iasl git nasm python-is-python3
sudo apt install gcc-aarch64-linux-gnu
sudo apt install libssl-dev

sudo apt install qemu-system-arm
apt-get install vgabios
ln -s /usr/share/vgabios/vgabios.stdvga.bin /usr/share/qemu/vgabios-stdvga.bin

sudo apt install gdb-multiarch

以上命令用于安装和配置在Linux系统中编译和调试UEFI固件所需的第三方工具包和软件。

详细作用

build-essential: 提供基本的编译工具链(如GCC编译器、make等),用于编译C/C++源码。

uuid-dev: 提供UUID开发库,支持与UEFI相关的UUID操作。

iasl: Intel ACPI编译器,用于处理ACPI源代码。

git: 分布式版本控制系统,用于源码管理和协作。

nasm: Netwide Assembler,一款流行的x86汇编器,用于编译UEFI相关的汇编代码。

python-is-python3: 确保Python命令指向Python 3版本,可能在某些系统中需要。

gcc-aarch64-linux-gnu: ARM 64位架构的交叉编译工具链,用于编译针对ARM平台的UEFI固件。

libssl-dev: OpenSSL开发库,提供SSL/TLS支持,可能在编译过程中涉及加密相关功能时需要。

qemu-system-arm: QEMU模拟器的ARM版本,用于在x86平台上模拟运行ARM架构的UEFI固件。

vgabios: VGA BIOS文件,提供图形显示支持。

gdb-multiarch: 多架构版本的GDB调试器,可用于调试不同架构(包括ARM)的程序。

最后,通过ln -s命令创建符号链接,将vgabios文件正确地关联到QEMU所需的路径,确保在使用QEMU模拟时能加载标准VGA BIOS。这些工具和库共同构成了一个完整的开发环境,支持UEFI固件的编译、调试及在QEMU虚拟机中进行硬件模拟测试。

firmware_qemu_gdb's People

Contributors

alen-leo avatar zhoumou2333 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.