你好。以为我们之前的工作早期但未能在2个不同的Windows 10系统上使用修补程序修补最新的SDK。
1)从哪里可以下载patch.exe实用程序来执行此修补程序?相信此工具不是Windows 10的原生。
2)在一个Windows 10系统上,PC锁定或正在等待一些其他信息继续进行。在install.txt之后不起作用。
3)在另一个Windows 10系统上,PC报告无法找到patch.exe。
>patch
'patch' is not recognized as an internal or external command,
operable program or batch file.
Update:
刚刚在“<”管道字符上抓住了我错了。这将修复(我认为)一个PC,但另一个Windows 10框缺少Patch.exe。这是第三方工具吗?
patch -p1<
我认为patch.exe工具来自这里:
GnuWin download | SourceForge.net
but why would this detail be left out of the documentation? Or we missed it?
嗨mom2,
要么您可以从Web下载或使用包含Patch.exe文件的工具。例如,Git也包括这个SS Studio v2.0.12。
之后,只需使用patch.exe的完整路径运行install.txt中所描述的命令
谢谢,PM_DIALOG.
Thanks. Please review the details on our attached screen grab. Still not working for us.
1) Downloaded the patch.exe tool from here:
Patch for Windows (sourceforge.net)
此链接应记录在本网站的相关文档中。
2)丢弃了SDK文件夹中的上面的文件,并在install.txt后面 - 有一个新的弹出窗口为空白,对我们没有任何作用。
3)这是我们投资的第3天应该是2分钟,以修复SDK内的错误。今年早些时候的补丁是简单的。不确定为什么它是缺少文档的一点斗篷和匕首方法。有关如何应用此修补程序的完整详细信息,还有一个简明文件。还是更好,为什么不发布完全修补的SDK?对我们来说,会更友好。我们是在这些问题上切换到不同的供应商的边界。
嗨mom2,
您是否可以在SDK6.0.14或无附件(作为您之前的论坛帖子上)来注明您是否尝试运行修补程序?
谢谢,PM_DIALOG.
Thanks.
下载SDK_6.0.14.1114.rar并尝试使用sdk_6.0.14.1114_hotfix_001.rar文件修补。
请尝试按照程序操作,并告知我们是否适合您。使用最新的patch.exe工具,我们的win10框在尝试遵循时锁定:
> patch -p1 </sdk.patch
install.txt列出了一个修补程序方法,然后列出了此TXT文件的底部,注释为替换SDK内的子文件夹。
那么这是否意味着我们可以选择修补方法或替换子文件夹?
Guessing now that we can just replace the sub-folders and have the "patched" SDK?
嗨mom2,
谢谢,PM_DIALOG.
谢谢你。我们会很快再试一次。
1)从究竟究竟下载patch.exe工具?我们希望使用相同的工具。
2)路径细节非常重要,可以实现这项工作。从我们对此补丁工具上无数小时的研究,-P1 =意味着应该跳过“\”之一。如果必须跳过-p2 =那么2 *“\”。最终,我们仍然没有这样做的是上周工作。patch.exe工具只会引发空弹出窗口,永远不会返回到DOS提示符。
Confident that the path depth has a relationship to this issue. Will attempt to follow your procedure again but will appreciate the link for the patch.exe tool. We are using one that was compiled in 2007 and it may not be compatible with Windows 10.
Thanks.
还是行不通。是你的patch.exe the same filesize of 112,128 bytes?
我想我们可能会接近having a winning lottery ticket here. The root cause is the depth of the SOURCE and TARGET folders. Will download a fresh copy and test again and report the resolution.
At this time of writing, finally observing a bit of progress...
C:\ Users \ Kumar \ Downloads \ 6.0.14.1114> Patch -P1修补文件二进制文件/ da14531 / prod_test / prod_test_531.hex
断言失败:hunk,file ../patch-2.5.9-src/patch.c,第354行
请分享完整的详细信息of your patch.exe tool. Believe that is the last requirement to get this working. Still facing the above line 354 error.
嗨mom2,
我使用的是git安装中的patch.exe文件。你能检查一下吗?
谢谢,PM_DIALOG.
好的。刚刚工作。该解决方案远非简单,需要认真记录,以便在此“简单”问题上,下一个开发人员不会浪费2周。
Here are the missing steps:
1) Download patch.exe from here:
Patch for Windows (sourceforge.net)
2007年的DateMamped文件在Windows 10上工作正常。
2) The path for the SDK and the path for the hotfix are critical to the operation of the patch.exe tool.
Read over the past 2 weeks of hunting that the value after the -p flag denotes the # of forward slashes that must be skipped during the patch process. So -p1 matches the sub-folder structure of the OP (Dialog) but may not match yours / ours.
In my lab PC:
从一个级别深度提取原始SDK(支持-P1):
C:\Users\kumar\Downloads\6.0.14.1114>
这patch.exe tool should be present inside this one-level deep folder.
Directory of 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
2020-12-01 12:10 PM
2007-05-14 06:19 PM 112,128 Patch.exe
2020-11-24 10:42 AM
2020-11-24 10:42 AM
2020-12-01 11:48 AM
2020-11-24 10:42 AM
1文件112,128字节
接下来,热修复文件夹结构:
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
2020-11-12 11:58 AM 699 DISCLAIMER.TXT
2020-11-12 11:58 AM
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
2020-11-12 11:58 AM
接下来,使用管理模式中的命令提示符输入SDK文件夹。右键单击并使用管理权限运行命令模式。
使用DOS CD命令输入SDK文件夹。
按如下方式运行:
C:\ Users \ Kumar \ Downloads \ 6.0.14.1114> Patch -P1
结果是:
C:\ Users \ Kumar \ Downloads \ 6.0.14.1114> Patch -P1修补文件二进制文件/ da14531 / prod_test / prod_test_531.hex
断言失败:hunk,file ../patch-2.5.9-src/patch.c,第354行
Using my black-belt in Google-fu, found this excellent thread and resolution here:
使用Git的Patch.exe for Windows - 堆栈溢出时批量文件 - “断言失败”
Many thanks to the poster for the fix -langlauf.io!
这fix is to download notepad++ -> read in the Dialog sdk.patch source file -> Edit tab -> EOL conversion -> Windows format -> Save this patch file.
Run again:
C:\ Users \ Kumar \ Downloads \ 6.0.14.1114> Patch -P1修补文件二进制文件/ da14531 / prod_test / prod_test_531.hex
patching file binaries/da14531/prod_test/prod_test_531_UART_P00_P01.hex
patching file binaries/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
修补文件doc / licensing.txt
修补文件项目/ target_apps / prod_test / prod_test / keil_5 /未使用_531.txt
修补文件项目/ target_apps / prod_test / prod_test / keil_5 /未使用_531_uart_p00_p01.txt
修补文件项目/ target_apps / prod_test / prod_test / keil_5 /未使用_531_uart_p03.txt
patching file projects/target_apps/prod_test/prod_test/Keil_5/unused_531_UART_P05.txt
patching file projects/target_apps/prod_test/prod_test/Keil_5/unused_585.txt
patching file projects/target_apps/prod_test/prod_test/Keil_5/unused_585_UART_P04_P05.txt
patching file projects/target_apps/prod_test/prod_test/Keil_5/unused_586.txt
patching file projects/target_apps/prod_test/prod_test/Keil_5/unused_586_UART_P04_P05.txt
patching file sdk/common_project_files/misc/da14531_symbols.lds
patching file sdk/common_project_files/misc/da14531_symbols.txt
修补文件sdk / common_project_files / misc / da1a585_symbols.lds
修补文件sdk / common_project_files / misc / da14585_symbols.txt
修补文件SDK / platform /包含/ sdk_version.h
修补文件实用程序/ flash_programmer / unused_jtag_531.txt
修补文件实用程序/ flash_programmer / unused_jtag_585.txt
patching file utilities/flash_programmer/unused_uart_531.txt
patching file utilities/flash_programmer/unused_uart_585.txt
修补文件实用程序/ efferic_bootloader /未使用_531.txt
修补文件实用程序/ secondard_bootloader /未使用_585.txt
补丁文件实用程序/ secondary_bootloader / unused_586.txt
Done!
现在会去购买彩票......
嗨mom2,
很高兴你能够运行补丁并感谢迹象。
谢谢,PM_DIALOG.
After a week of issues for me this detailed list of instructions worked for me as well and Windows 10. Thanks for putting this together. Seems the hotfix patch.sdk may have issues that need addessing.