如何在Windows 10上修补SDK?

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
14个帖子/ 0新
Last post
mon2
离线
Last seen:4 months 2 weeks ago
加入:2018-09-04 19:16
如何在Windows 10上修补SDK?

Hi. Thought we had this working earlier but failing to patch the latest SDK with the hotfix on 2 different Windows 10 systems.

1)从哪里可以下载patch.exe实用程序来执行此修补程序?相信此工具不是Windows 10的原生。

2) On one Windows 10 system, the PC locks or is waiting on some additional information to proceed. Following the install.txt is not working.

3) On another Windows 10 system, the PC reports that the patch.exe cannot be found.

>补丁
'补丁'未被识别为内部或外部命令,
可操作的程序或批处理文件。

更新:

刚刚在“<”管道字符上抓住了我错了。这将修复(我认为)一个PC,但另一个Windows 10框缺少Patch.exe。这是第三方工具吗?

补丁-P1< /sdk.patch

I think the patch.exe tool is from here:

gnuwin下载|sourceforge.net.

但是为什么这个细节会遗漏文档?或者我们错过了吗?

附件:
PM_Dialog
离线
Last seen:21小时23分钟前
工作人员
加入:2018-02-08 11:03
Hi mom2,

Hi mom2,

Either you can download it from the web or use a tool that includes the patch.exe file. For example, GIT includes this one the SS Studio v2.0.12 as well.

After that, just run the command as described in the INSTALL.TXT with the full path of the patch.exe

Thanks, PM_Dialog

mon2
离线
Last seen:4 months 2 weeks ago
加入:2018-09-04 19:16
谢谢。请审查这一点

谢谢。请查看随附的屏幕抓取信息。仍然没有为我们工作。

1)从这里下载patch.exe工具:

适用于Windows(SourceForge.net)

This link should be documented in the related docs on this website.

2) Dropped the above file inside the SDK folder and in following the INSTALL.TXT - there is a new pop-up window that is blank and does nothing for us.

3) This is the 3rd day we are investing into what should have been a 2 minute to fix the bugs inside the SDK. The patch from earlier this year was simple to follow. Not sure why it is a bit of a cloak and dagger approach to the missing documentation. An improvement would have been concise docs with full details on how to apply this patch. Or better yet, why not post a fully patched SDK? That to us, would have been much more friendly. We are borderline in switching to a different vendor over these issues.

PM_Dialog
离线
Last seen:21小时23分钟前
工作人员
加入:2018-02-08 11:03
Hi mom2,

Hi mom2,

Could you please indicate if you are trying to run the patch on the SDK6.0.14 or on the CodeLess ( as your previous forum posts ) ?

Thanks, PM_Dialog

mon2
离线
Last seen:4 months 2 weeks ago
加入:2018-09-04 19:16
谢谢。

谢谢。

下载SDK_6.0.14.1114.rar并尝试使用sdk_6.0.14.1114_hotfix_001.rar文件修补。

请尝试按照程序操作,并告知我们是否适合您。使用最新的patch.exe工具,我们的win10框在尝试遵循时锁定:

> patch -p1 < /sdk.patch

The INSTALL.TXT lists a patch method and then at the bottom of this txt file, notes to replace sub-folders inside the SDK.

So does this mean that we have a choice of either patch method OR to replace the sub-folders?

猜测现在我们可以替换子文件夹并具有“修补”的SDK?

PM_Dialog
离线
Last seen:21小时23分钟前
工作人员
加入:2018-02-08 11:03
Hi mom2,

Hi mom2,

  1. I have downloaded both the SDK6.0.14 and its hotfix patch from the support website. Both are placed in the same folder (see attached )
  2. Navigate inside the SDK in …\6.0.14.1114 depth. Please try using a short directory without spaces.
  3. 从此目录中打开CMD或PowerShell。
  4. 执行补丁。正如您可以在附加的屏幕截图中看到的那样,我将与install.txt文件中的结果相同,因此修补程序已正确运行。
  5. 遵循install.txt文件的最后一步:“在”提取的SDK文件夹中“,将以下文件夹替换为HotFix版本中提供的文件夹”

Thanks, PM_Dialog

附件:
mon2
离线
Last seen:4 months 2 weeks ago
加入:2018-09-04 19:16
谢谢你。我们会再试一次

谢谢你。我们会很快再试一次。

1) From where exactly did you download the patch.exe tool? We wish to use the same tool.

2) The path details are very important to get this to work. From our researching of countless hours on this patch tool, the -p1 = means that one of the "\" should be skipped. Respectively if -p2 = then 2 * "\" must be skipped. In the end, we still did not get this to work as of last week. The patch.exe tool would just raise an empty pop-up and never return back to the dos prompt.

确信路径深度与这个问题有关系。将尝试再次遵循您的过程,但将欣赏Patch.exe工具的链接。我们正在使用2007年编译的那个,它可能与Windows 10可能不兼容。

谢谢。

mon2
离线
Last seen:4 months 2 weeks ago
加入:2018-09-04 19:16
还是行不通。Is your

还是行不通。您的patch.exe是否相同的文件大小为112,128字节?

mon2
离线
Last seen:4 months 2 weeks ago
加入:2018-09-04 19:16
I think we may be close to

我认为我们可能会接近在这里有一个赢得彩票票。根本原因是源和目标文件夹的深度。将再次下载新的副本和测试并报告分辨率。

在写作的这个时候,终于观察了一些进步......

C:\ Users \ Kumar \ Downloads \ 6.0.14.1114>补丁-P1< C:\Users\kumar\Downloads\SDK_6.0.14.1114_hotfix_001\sdk.patch
补丁文件二进制文件/ da14531/prod_test/prod_test_531.hex
断言失败:hunk,file ../patch-2.5.9-src/patch.c,第354行

mon2
离线
Last seen:4 months 2 weeks ago
加入:2018-09-04 19:16
Please share the full details

请分享patch.exe工具的完整详细信息。相信这是让这项工作的最后要求。仍面临上面的354个错误。

PM_Dialog
离线
Last seen:21小时23分钟前
工作人员
加入:2018-02-08 11:03
Hi mom2,

Hi mom2,

I am using the patch.exe file which is within the GIT installation. Could you please check this ?

Thanks, PM_Dialog

mon2
离线
Last seen:4 months 2 weeks ago
加入:2018-09-04 19:16
好的。刚刚工作。The

好的。刚刚工作。该解决方案远非简单,需要认真记录,以便在此“简单”问题上,下一个开发人员不会浪费2周。

以下是丢失的步骤:

1)从这里下载patch.exe:

适用于Windows(SourceForge.net)

The 2007 datestamped file works fine on Windows 10.

2)SDK的路径和修补程序的路径对Patch.exe工具的操作至关重要。

在过去的2周内读取-P标志后的值表示在补丁过程中必须跳过的正斜杠#。因此 - P1匹配OP(对话框)的子文件夹结构,但可能与您的/我们的匹配。

在我的实验室PC中:

从一个级别深度提取原始SDK(支持-P1):

C:\ Users \ Kumar \ Downloads \ 6.0.14.1114>

Patch.exe工具应存在于此一个级别的深文件夹中。

C:\ Users \ Kumar \ Downloads的目录\ 6.0.14.1114

2020-12-01 11:41 AM

.
2020-12-01 11:41 AM ..
2020-11-24 10:42 AM 二进制文件
2020-12-01 11:48 AM CONFIG
2020-12-01 12:10 PM doc
2007-05-14 06:19 PM 112,128 patch.exe
2020-11-24 10:42 AM 项目
2020-11-24 10:42 AM SDK
2020-12-01 11:48 AM 第三篇
2020-11-24 10:42 AM 公用事业
1 File(s) 112,128 bytes

Next, the hot-fix folder structure:

C:\ Users \ Kumar \ Downloads \ SDK_6.0.14.1114_HOTFIX_001>

2020-12-01 11:44 AM


2020-12-01 11:44 AM 。.
2020-11-12 11:58 AM binaries
2020-11-12 11:58 AM 699 AccoveAmmer.txt
2020-11-12 11:58 AM DOC
2020-11-12 11:58 AM 2,481 install.txt
2020-11-12 11:58 AM 1,264 LICENSE.TXT
2020-12-01 12:10 PM 352,941 SDK.PATCH
2020-11-12 11:58 AM System_Library
2020-11-12 11:58 AM Toolbox_Resources

接下来,使用管理模式中的命令提示符输入SDK文件夹。右键单击并使用管理权限运行命令模式。

使用DOS CD命令输入SDK文件夹。

Run as follows:

C:\ Users \ Kumar \ Downloads \ 6.0.14.1114>补丁-P1< C:\Users\kumar\Downloads\SDK_6.0.14.1114_hotfix_001\sdk.patch

Results in:

C:\ Users \ Kumar \ Downloads \ 6.0.14.1114>补丁-P1< C:\Users\kumar\Downloads\SDK_6.0.14.1114_hotfix_001\sdk.patch
补丁文件二进制文件/ da14531/prod_test/prod_test_531.hex
断言失败:hunk,file ../patch-2.5.9-src/patch.c,第354行

在Google-fu使用我的黑带,发现了这个优秀的线程和解决方案在这里:

使用Git的Patch.exe for Windows - 堆栈溢出时批量文件 - “断言失败”

非常感谢修复的海报 -langlauf.io.!!

此修复程序是下载Notepad ++ - >在对话框SDK.Patch源文件中读取 - >编辑选项卡 - > EOL转换 - > Windows格式 - >保存此修补程序文件。

再次运行:

C:\ Users \ Kumar \ Downloads \ 6.0.14.1114>补丁-P1< C:\Users\kumar\Downloads\SDK_6.0.14.1114_hotfix_001\sdk.patch
补丁文件二进制文件/ da14531/prod_test/prod_test_531.hex
修补文件二进制文件/ da14531 / prod_test / prod_test_531_uart_p00_p01.hex
修补文件二进制文件/ da14531 / prod_test / prod_test_531_uart_p03.hex
补丁文件二进制文件/ da14531/prod_test/prod_test_531_UART_P05.hex
补丁文件二进制文件/ da14585/prod_test/prod_test_585.hex
补丁文件二进制文件/ da14585/prod_test/prod_test_585_UART_P04_P05.hex
补丁文件二进制文件/ da14586/prod_test/prod_test_586.hex
补丁文件二进制文件/ da14586/prod_test/prod_test_586_UART_P04_P05.hex
patching file doc/licensing.txt
patching file projects/target_apps/prod_test/prod_test/Keil_5/unused_531.txt
修补文件项目/ target_apps / prod_test / prod_test / keil_5 /未使用_531_uart_p00_p01.txt
patching file projects/target_apps/prod_test/prod_test/Keil_5/unused_531_UART_P03.txt
修补文件项目/ target_apps / prod_test / prod_test / keil_5 /未使用_531_uart_p05.txt
修补文件项目/ target_apps / prod_test / prod_test / keil_5 /未使用_585.txt
修补文件项目/ target_apps / prod_test / prod_test / keil_5 /未使用_585_uart_p04_p05.txt
修补文件项目/ target_apps / prod_test / prod_test / keil_5 /未使用_586.txt
修补文件项目/ target_apps / prod_test / prod_test / keil_5 /未使用_586_uart_p04_p05.txt
修补文件sdk / common_project_files / misc / da1a531_symbols.lds
修补文件sdk / common_project_files / misc / da1a531_symbols.txt
patching file sdk/common_project_files/misc/da14585_symbols.lds
patching file sdk/common_project_files/misc/da14585_symbols.txt
patching file sdk/platform/include/sdk_version.h
patching file utilities/flash_programmer/unused_jtag_531.txt
patching file utilities/flash_programmer/unused_jtag_585.txt
修补文件实用程序/ flash_programmer /未使用_uart_531.txt
修补文件实用程序/ flash_programmer /未使用_uart_585.txt
patching file utilities/secondary_bootloader/unused_531.txt
patching file utilities/secondary_bootloader/unused_585.txt
修补文件实用程序/ efferic_bootloader /未使用_586.txt

完毕!

Will go and purchase a lottery ticket now...

PM_Dialog
离线
Last seen:21小时23分钟前
工作人员
加入:2018-02-08 11:03
Hi mom2,

Hi mom2,

Glad that you are able to run the patch and thanks for the indication.

Thanks, PM_Dialog

tlrogers
离线
Last seen:2 months 3 weeks ago
加入:2020-06-26 23:51
After a week for me this

经过一周的问题,对我来说,这个详细的说明清单也为我和Windows 10工作了。感谢将此放在一起。似乎修补程序patch.sdk可能有需要加入的问题。