Skip to content

Commit

Permalink
doc: adding procedure to build from linux with mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetit committed Jan 26, 2023
1 parent 77d6464 commit f18dc09
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For now, the driver is unsigned, so you need to put windows in test mode (allowi
To do this, open a command prompt **as an administrator** and run :

bcdedit.exe -set TESTSIGNING ON

Then restart the computer or server.

Once restarted, if on a desktop, you should have some text written on the bottom right corner of the desktop view with **"Test Mode"** displayed.
Expand All @@ -41,14 +41,14 @@ Then run, in an adminstrator command prompt :
At any time you could check for the state of the service giving access to the driver on your system, with this command :

driverquery /v | grep -i scaph

If running properly it should show a line like :

Scaphandre Dr Scaphandre Driver Serv Scaphandre Driver Serv File System System Running OK TRUE FALSE 0 4□096 0 14/01/2022 16:01:37 C:\WINDOWS\system32\DRIVERS\ScaphandreDrv.sys 4□096


## Compilation

### Windows 10

Install Visual Studio 2019
Expand All @@ -64,6 +64,18 @@ According to [this documentation](https://learn.microsoft.com/en-us/windows-hard

Optionnal : [install the EWDK](https://learn.microsoft.com/en-us/legal/windows/hardware/enterprise-wdk-license-2022)

### Compile from GNU/Linux (Ubuntu 22.04), run on windows

Compile DriverLoader.exe in `userland/Service`:

```
cd userland/Service
sudo apt install g++-mingw-w64 g++-mingw-w64-x86-64-win32 g++-mingw-w64-x86-64
x86_64-w64-mingw32-cpp DriverLoader.cpp -I/usr/x86_64-w64-mingw32/include/ddk/ -I/usr/x86_64-w64-mingw32/include/ --sysroot=. -o DriverLoader.exe
```

## Context

This driver has been developped for a specific use case : enabling [Scaphandre](https://github.com/hubblo-org/scaphandre) on Windows.
Expand Down
1 change: 1 addition & 0 deletions kernelland/ScaphandreDrv/driver.h

0 comments on commit f18dc09

Please sign in to comment.