简体   繁体   English

如何将NULL设备添加到Windows XP Embedded?

[英]How do I add the NULL device to Windows XP Embedded?

Windows XP Embedded is missing the NULL or "NUL" device. Windows XP Embedded缺少NULL或“ NUL”设备。 For one thing, Visual Studio seems to require it and trying to build a project aborts with a PRJ0015 error. 一方面,Visual Studio似乎需要它,并且尝试构建项目会中止,并出现PRJ0015错误。

Anyone know how to configure an XPe image to include support for the NUL device? 有人知道如何配置XPe映像以包括对NUL设备的支持吗?

"Null Device Driver" is available in the XPe Target Designer, but it's normally hidden. XPe Target Designer中提供了“空设备驱动程序”,但通常是隐藏的。 Apparently each component has a visibility level, and if it's lower than that set in the Target Designer options (Tools->Options), it's hidden. 显然,每个组件都有一个可见性级别,如果它低于“目标设计器”选项(“工具”->“选项”)中设置的可见性级别,则它是隐藏的。 Null Device Driver is at level 200, so I set the level to 100 and could see it and install it. 空设备驱动程序的级别为200,因此我将级别设置为100,可以看到并安装它。

There's another important situation where you're going to want the NUL device: if you're installing some or all of the Cygwin UNIX solutions for Windows. 还有另一种重要情况需要NUL设备:如果要安装Windows的部分或全部Cygwin UNIX解决方案。 In particular, if you're doing something like, oh, I don't know, to pick a completely random example, trying to put an SSH server on the damned thing so you can, just on a lark, say, log in and maintain it. 特别是,如果您正在做类似这样的事情,哦,我不知道,是选择一个完全随机的示例,尝试将SSH服务器放置在该死的东西上,这样您就可以傻傻地说,登录并维护它。

That's right-- Cygwin actually maps its UNIX /dev/null device to the Windows NUL device. 是的-Cygwin实际上将其UNIX / dev / null设备映射到Windows NUL设备。 You know, for maximum compatibility. 您知道,以获得最大的兼容性。 Just in case the platform-specific implementation of IMMEDIATELY THROWING DATA INTO THE TOILET AND OBLITERATING IT, NEVER TO BE SEEN AGAIN, UNTIL THE HEAT DEATH OF THE UNIVERSE, happened to be novel and innovative. 以防万一,立即将数据扔进马桶并强制化的特定于平台的实现,直到宇宙的热死,再也没有发生,这恰好是新颖和创新的。

While cygwin will INSTALL without NUL available, it will not, in fact, actually enjoy a typical work day. 尽管cygwin将在没有NUL的情况下进行安装,但实际上,它实际上不会享受正常的工作。 This is most evident the first time you try to launch a bash shell, and notice a slew of error messages about /dev/null resulting in no such file or directory errors. 这在您第一次尝试启动bash shell并注意到有关/ dev / null的大量错误消息时,最明显,这不会导致此类文件或目录错误。 One presumes the device is perhaps actually just an NTFS link, but who knows. 有人认为设备实际上可能只是NTFS链接,但谁知道呢。

In any case, the fix is to add the "Null Device Driver" component, helpfully located under Software -> System -> Other, a surprisingly small category which also contains such useful components as Internet Checkers, the Schedule Service Command Line Utility, the 1394 Kernel Debugger Support Library, EBCDIC support for Microsoft Bob, some cheat codes for Zork, and the code pages to say "(A)bort, (R)etry, (I)gnore, (F)ail?" 无论如何,解决方法是添加“空设备驱动程序”组件,该组件可以方便地位于“软件”->“系统”->“其他”下,这是一个令人惊讶的小类别,其中还包含诸如Internet Checkers,Schedule Service Command Line Utility, 1394内核调试器支持库,对Microsoft Bob的EBCDIC支持,对Zork的一些作弊代码以及代码页,上面写着“(A)bort,(R)etry,(I)gnore,(F)ail?”。 in Muppet Swedish ("(B)ork, b(o)rk, bo(r)k, bor(k)?") 在Muppet Swedish中(“(B)ork,b(o)rk,bo(r)k,bor(k)?”)

Hope this helps, 希望这可以帮助,
Matt "Breakpoint" Heck 马特·“断点”·赫克

Running Visual Studio itself on XP Embedded doesn't seem like it'd be supported. 在XP Embedded上运行Visual Studio本身似乎不受支持。 You should build on a full OS and then just deploy your application to XP embedded. 您应该在完整的操作系统上构建,然后将应用程序部署到嵌入式XP中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM