Giter Site home page Giter Site logo

andreiw / uefitoolspkg Goto Github PK

View Code? Open in Web Editor NEW
115.0 15.0 40.0 590 KB

Various useful utilities for UEFI

C 93.01% Python 0.41% Makefile 3.03% HTML 3.23% Assembly 0.23% Shell 0.09%
uefi efi tianocore edk2 uefi-tools uefi-utils uefi-unix uefi-admin uefi-dev

uefitoolspkg's Introduction

UefiToolsPkg

This is a Tiano Core (edk2) package with various goodies. The goal was to make the UEFI environment much more useful to system hackers. It may be a reduced environment, but there's no need for it to remain a crippled one. People make the analogy of UEFI being the 21st century equivalent of DOS, yet DOS was a vastly more useful environment than UEFI is today.

Hopefully, one day this will grow into a veritable distribution of software to be productive even without a "real OS" around.

Other tools around the Web.

Building

Assuming you have EDK2 (http://www.tianocore.org/edk2/) all configured and capable of producing builds for your target architecture:

$ git clone --recursive https://github.com/andreiw/UefiToolsPkg.git
$ build -p UefiToolsPkg/UefiToolsPkg.dsc

To override architecture and/or toolchain:

$ build -p UefiToolsPkg/UefiToolsPkg.dsc -a PPC64
$ build -p UefiToolsPkg/UefiToolsPkg.dsc -a X64 -t GCC49

Utilities

Name Description Notes
FdtDump dump system device tree to storage README.md
AcpiDump dump system ACPI tables to storage README.md
AcpiLoader load system ACPI tables from storage README.md
ShellPlatVars set UEFI Shell variables based on platform configuration README.md
ShellErrVars set UEFI Shell variables to look up EFI RETURN_STATUS values README.md
ShellMapVar set %mapvar% with own current device mapping README.md
MemResv create new memory map entries README.md
RangeIsMapped validates ranges in the memory map README.md
GopTool check and manipulate EFI_GRAPHICS_OUTPUT_PROTOCOL instances README.md
SetCon check and manipulate console device variables README.md
PciRom list and save PCI ROM images README.md
tinycc port of TinyCC to UEFI README.md

UNIX Tools

Name Description Notes
cat Port of NetBSD cat README.md
dd Port of NetBSD dd README.md
grep Port of NetBSD grep README.md
ls Port of NetBSD directory lister README.md
stat Port of NetBSD stat README.md

Libraries

Name Description Notes
UtilsLib consumed by the above utilities None
SoftFloatLib port of SoftFloat-3d to UEFI README.md
FTSLib port of FTS(3) routines, file hierarchy traversal README.md
RegexLib port of REGEX(3) IEEE Std 1003.2-1992 regular expression routines README.md
StdExtLib fixes and functionality on top of StdLib README.md

Drivers

What Description Platform Notes
QemuVideoDxe GOP driver for QEMU OVMF, ArmVirtPkg README.md

Development Tools

Name Description Notes
gdb_uefi.py load TianoCore symbols in gdb README.md

Contact Info

Andrei Warkentin ([email protected]).

uefitoolspkg's People

Contributors

andreiw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uefitoolspkg's Issues

How to build?

Totally new to edk and this. Please help me to do my very first build on Ubuntu.

I untar edk2-edk2-stable202108-rc1.tar on my ubuntu and put UefiToolsPkg into edk2-edk2-stable202108-rc1.

My steps to build:

cd edk2-edk2-stable202108-rc1
source edksetup.sh
build -p UefiToolsPkg/trunk/UefiToolsPkg.dsc
edk2-edk2-stable202108-rc1/UefiToolsPkg/trunk/UefiToolsPkg.dsc(44): error 000E: File/directory not found in workspace
edk2-edk2-stable202108-rc1/UefiToolsPkg/trunk/StdLib/StdLib.inc
edk2-edk2-stable202108-rc1/StdLib/StdLib.inc

I searched edk2-edk2-stable202108-rc1 and only found these:
./UefiToolsPkg/trunk/Library/StdLibDevConsole
./UefiToolsPkg/trunk/Library/StdLibUefi
./UefiToolsPkg/trunk/Library/StdLibInteractiveIO

In README.md under StdLibDevConsole:
This is a fixed-up version of edk2's StdLib/LibC/Uefi/Devices/Console.

Do I need do some changes in UefiToolsPkg.dsc?

Thank you
Harry

UEFI tool to read/write/probe serial flash

Hi,
Is there any tool/utility available to read/write/probe serial flash from UEFI ?
Something like 'sf', thats available on uboot.

If there is, kindly guide me to it.

Build fail

I have an Ubuntu machine on which I have setup an edk2 environment following the instructions on the tianocore GitHub page. I have confirmed that I can build the MdeModulePkg and that the resulting HelloWorld.efi works in my efi shell.

I cloned this repo into my edk2 base directory and made the following changes to Conf/target.txt:

ACTIVE_PLATFORM = UefiToolsPkg/UefiToolsPkg.dsc
TARGET_ARCH = X64
TOOL_CHAIN_TAG = GCC5
MAX_CONCURRENT_THREAD_NUMBER = 9

Issuing the build command gives the following:

Build start time: 14:50:38, Dec.13 2022

WORKSPACE        = /home/russell/src/edk2
EDK_TOOLS_PATH   = /home/russell/src/edk2/BaseTools
CONF_PATH        = /home/russell/src/edk2/Conf
PYTHON_COMMAND   = /usr/bin/python3


build.py...
/home/russell/src/edk2/UefiToolsPkg/UefiToolsPkg.dsc(44): error 000E: File/directory not found in workspace
	/home/russell/src/edk2/UefiToolsPkg/StdLib/StdLib.inc
/home/russell/src/edk2/StdLib/StdLib.inc

- Failed -
Build end time: 14:50:38, Dec.13 2022
Build total time: 00:00:00

Build is correct the file /home/russell/src/edk2/UefiToolsPkg/StdLib/StdLib.inc doesn't exist. I've had a look through UefiToolsPkg.dsc and see references to over riding StdLib but I see anything blatantly wrong. However I am a complete novice at building efi packages with edk2.

Having grep in an efi shell means I can script the update procedure for certain LSI based RAID/HBA cards. Any help would be really appreciated.

Regards,
Russell

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.