Skip to content

Commit

Permalink
Merge branch 'devel/RIFFA/2.2.2' of github.com:drichmond/riffa into d…
Browse files Browse the repository at this point in the history
…evel/RIFFA/2.2.2
  • Loading branch information
Dustin Richmond committed Jun 29, 2016
2 parents 57e389e + 4e898fc commit 35b2730
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
16 changes: 13 additions & 3 deletions driver/windows/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@ To build the Windows driver:
version 7600.16385.1).
2) Open a DDK command window environment for Windows 7 (which ever version
you're targeting).
3) Move to the directory containing this README.txt and run: build -ceZ
3) Move to the directory containing this README.txt and run build -ceZ
4) The driver should be built and ready in the output directory along with a
Windows 7 catalog file and the coinstaller DLLs.

5) To build the installer you will need to build the driver using the DDK for
each architecture (x86/x64). If you want both setup.exe and setup_dbg.exe
executables, you will run the build command FOUR TIMES before step 6.
6) To build the setup.exe file, run the win7install.bat script from the DDK
unchecked/free command window. To build the setup_dbg.exe file, run the
script from the checked command window.

A few notes:

- You will need to sign the driver (riffa.sys) and catalog file (riffa.cat)
before you can install it on a x64 Windows 7 or Vista computer. The build
process will attempt to sign the catalog file with the UCSD certificate. You
don't have that, so you won't get a signed driver simply by building. You'll
need to get a certificate from a certificate authority that is capable of
cross-certificate kernel driver signing. See this page for more details:
cross-certificate kernel driver signing to authenticate yourself (.pfx),
and the cross-signing certificate from that authority (.crt file available
from link). These should both be added to the windows certificate list and
and copied into the root folder for the windows driver (same location as this
README.txt file). See this page for more details:
http://msdn.microsoft.com/en-us/windows/hardware/gg487315.aspx

- Debugging on Windows is difficult because there exists no kernel log file.
Expand Down
17 changes: 13 additions & 4 deletions driver/windows/install/install.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off
@echo on

rmdir /s /q build
md build
Expand All @@ -14,12 +14,21 @@ xcopy /E /H /K /I /Y ..\..\..\c_c++\windows .\build\c_c++
xcopy /E /H /K /I /Y ..\..\..\java .\build\java
xcopy /E /H /K /I /Y ..\..\..\python .\build\python
xcopy /E /H /K /I /Y ..\..\..\matlab .\build\matlab
echo "%3"

if "%3" == "chk" (
"c:\program files\inno setup 5\iscc.exe" /dDebug="1" /o.\build .\build\win7.iss
md .\build.\tmp_dbg
"c:\program files (x86)\inno setup 5\iscc.exe" /dDebug="1" /o.\build\tmp_dbg .\build\win7.iss
signtool sign /v /ac "..\GlobalSign Root CA.crt" /s my /n "University of California, San Diego" /t http://timestamp.verisign.com/scripts/timestamp.dll .\build\tmp_dbg\setup.exe
move .\build\tmp_dbg\setup.exe .\setup_dbg.exe
rmdir /s /q .\build\tmp_dbg\
) else (
"c:\program files\inno setup 5\iscc.exe" /o.\build .\build\win7.iss
md .\build\tmp
"c:\program files (x86)\inno setup 5\iscc.exe" /o.\build\tmp\ .\build\win7.iss
signtool sign /v /ac "..\GlobalSign Root CA.crt" /s my /n "University of California, San Diego" /t http://timestamp.verisign.com/scripts/timestamp.dll .\build\tmp\setup.exe
move .\build\tmp\setup.exe .\setup.exe
rmdir /s /q .\build\tmp\
)
signtool sign /v /s my /n "University of California, San Diego" /t http://timestamp.verisign.com/scripts/timestamp.dll .\build\setup.exe



2 changes: 1 addition & 1 deletion driver/windows/install/win7.iss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

[Setup]
AppName=RIFFA
AppVersion=2.0
AppVersion=2.2.1
AppPublisher=University of California, San Diego
AppPublisherURL=https://sites.google.com/a/eng.ucsd.edu/matt-jacobsen/riffa
AppCopyright=Copyright (C) 2016 The Regents of the University of California. All Rights Reserved.
Expand Down
4 changes: 2 additions & 2 deletions driver/windows/sys/makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ POST:
inf2cat /driver:$(OBJ_PATH)\$(O) /os:7_x64
! endif
! endif
signtool sign /v /ac "$(_INX)\GlobalSign Root CA.crt" /s my /n "University of California, San Diego" /t http://timestamp.verisign.com/scripts/timestamp.dll $(OBJ_PATH)\$(O)\$(INF_NAME).cat
signtool sign /v /ac "$(_INX)\GlobalSign Root CA.crt" /s my /n "University of California, San Diego" /t http://timestamp.verisign.com/scripts/timestamp.dll $(OBJ_PATH)\$(O)\$(INF_NAME).sys
signtool sign /v /ac "$(_INX)\..\GlobalSign Root CA.crt" /s my /n "University of California, San Diego" /t http://timestamp.verisign.com/scripts/timestamp.dll $(OBJ_PATH)\$(O)\$(INF_NAME).cat
signtool sign /v /ac "$(_INX)\..\GlobalSign Root CA.crt" /s my /n "University of California, San Diego" /t http://timestamp.verisign.com/scripts/timestamp.dll $(OBJ_PATH)\$(O)\$(INF_NAME).sys


0 comments on commit 35b2730

Please sign in to comment.