-
Notifications
You must be signed in to change notification settings - Fork 141
Install Driver On Raspberry Pi 2
General information for Pi:
- Install Windows 10 IoT Core on Raspberry Pi
- Windbg setup (Kernel Debugger)
- Using SSH to operate PI remotely
- Using Windows file sharing to transfer files to and from your device
-
Build the driver and demos
-
Copy
roskmd.sys
,rosumd.dll
, andros.inf
fromrender-only-sample\ARM\Debug
toc:\data
on device -
Copy
DolphinUniversal_1.0.0.0_ARM_Debug.appx
andDolphinUniversal_1.0.0.0_ARM_Debug.cer
fromrender-only-sample\demos\AppPackages\DolphinUniversal\DolphinUniversal_<version>\
toc:\data
on device -
Copy
Microsoft.VCLibs.ARM.Debug.14.00.appx
fromrender-only-sample\demos\AppPackages\DolphinUniversal\DolphinUniversal_<version>\Dependencies\ARM\
to c:\data on device -
If your build number is less than 14288, unzip
render-only-sample\scripts\Firmware.zip
toc:\efiesp
on the device, replacing the existing files. -
Copy
iotshell.exe
andiotshellext.dll
fromrender-only-sample\scripts
toc:\data
on the device. -
SSH into device and run
cd \data Devcon dp_add ros.inf
-
Install DolphinUniversal and set it as the default application. You can do this either through the Windows Device Portal or from the command line:
CertMgr.exe /add DolphinUniversal_1.0.0.0_ARM_Debug.cer /r localMachine /s root mindeployappx /Add /PackagePath:Microsoft.VCLibs.ARM.Debug.14.00.appx mindeployappx /Add /PackagePath:DolphinUniversal_1.0.0.0_ARM_Debug.appx iotstartup add headed 08cf3077-2a0c-4939-adab-9a8ef519b297_5nhc2nv1kqb5j!App
-
If you are running build 10586 (aka. TH2), run
sfpcopy iotshellext.dll c:\windows\system32\iotshellext.dll
If you are running build 14269 (aka. RS1) or later, run
sfpcopy iotshell.exe c:\windows\system32\iotshell.exe
Reboot the machine: shutdown /r /t 0
After the initial driver installation, follow the procedure here to update the driver during development.
By default, the driver is configured as a full display driver. To configure it in render-only mode, add the following registry keys and reboot
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RenderOnlySample /v RenderOnly /t REG_DWORD /d 1
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers /v DisableAutoAcpiPostDeivce /t REG_DWORD /d 1
reg add HKLM\SOFTWARE\Microsoft\XAML /v ForceWARP /t REG_DWORD /d 1
If a failure in the driver is preventing the system from booting fully, you can use the following debugger commands to prevent the driver from loading. The system will then fall back to WARP and boot fully.
-
Set a breakpoint on load of roskmd.sys
sxe ld:roskmd.sys
-
When the debugger breaks in at load of roskmd.sys, set the flag that tells roskmd to fail
DriverEntry()
, and continue:ed roskmd!RosKmdGlobal::s_bDoNotInstall 1 g
Follow the instructions above to prevent roskmd from loading, then run
devcon dp_delete oemN.inf
where oemN.inf is the name that Windows assigned the driver when you installed it. If ROS is the only driver you installed, it will be called oem0.inf
. To see a list of all 3rd party driver packages on the system, run
devcon dp_enum