Skip to content

Commit f18dc09

Browse files
committed
doc: adding procedure to build from linux with mingw
1 parent 77d6464 commit f18dc09

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

README.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For now, the driver is unsigned, so you need to put windows in test mode (allowi
1717
To do this, open a command prompt **as an administrator** and run :
1818

1919
bcdedit.exe -set TESTSIGNING ON
20-
20+
2121
Then restart the computer or server.
2222

2323
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.
@@ -41,14 +41,14 @@ Then run, in an adminstrator command prompt :
4141
At any time you could check for the state of the service giving access to the driver on your system, with this command :
4242

4343
driverquery /v | grep -i scaph
44-
44+
4545
If running properly it should show a line like :
4646

4747
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
4848

49-
49+
5050
## Compilation
51-
51+
5252
### Windows 10
5353

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

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

67+
### Compile from GNU/Linux (Ubuntu 22.04), run on windows
68+
69+
Compile DriverLoader.exe in `userland/Service`:
70+
71+
```
72+
cd userland/Service
73+
74+
sudo apt install g++-mingw-w64 g++-mingw-w64-x86-64-win32 g++-mingw-w64-x86-64
75+
76+
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
77+
```
78+
6779
## Context
6880

6981
This driver has been developped for a specific use case : enabling [Scaphandre](https://github.com/hubblo-org/scaphandre) on Windows.

kernelland/ScaphandreDrv/driver.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Driver.h

0 commit comments

Comments
 (0)