After adding support for SDHC card on PicoCOM1 we received a lot of request if it is possible to add this feature on an existing system without the need to reflash the complete kernel image. This HowTo will describe one solution we have preprared to arrange this.
The basic problem with SDHC update is that there where involved a lot of DLLs in this updated. These DLLs are located in the Windows directory by default. These Dlls are not only referenced in registry settings but there also some directly interconnectiones (with LoadLibrary). To avoid that there appears a mixup between old and new versions of these DLLs it is required to replace them in Windows directory. But as this directory is virtual only it is required to repeat this copying on every bootup. Therefore we needed to implement a small patch driver that replaces the DLLS in Windows directory on startup.
The ZIP package attached to this thread includes all DLLS and settings to patch an older kernel image. Just copy the SDHC directory into \FFSDISK\ and apply the settings in the included NDCUCFG script (SDCH-Update.txt). This script will ajdust all registry settings required to get the new SDHC driver working.
After booting up the you should see debug messages similiar to following:
- SDP: \FFSDISK\SDHC\sdbus.dll -> \Windows\sdbus.dll (over)
- SDP: \FFSDISK\SDHC\sdbus2.dll -> \Windows\sdbus2.dll (over)
- SDP: \FFSDISK\SDHC\sdmemory.dll -> \Windows\sdmemory.dll (over)
- SDP: \FFSDISK\SDHC\pc1_sdmemory.dll -> \Windows\pc1_sdmemory.dll (over)
- SDP: \FFSDISK\SDHC\pc1_sdhc.dll -> \Windows\pc1_sdhc.dll (over)
- SDP: \FFSDISK\SDHC\pc1_sdmmcloader.dll -> \Windows\pc1_sdmmcloader.dll (over)
Of course you can adjust the Update-Script according to your needs.
If you want to put the new SD card libraries into another location please adjust the following settings according:
-
Modify the location of the SDHC-Patch driver
-
Tell SDHC Patch driver to copy the files from a different location
Please note that this fix is posted without warrenty, We advise to to test this fix before applying it to modules in the field.