Menu

#2 bootloader_usb init fails because of dll search path

v1.0_(example)
open
nobody
None
5
2014-04-29
2014-04-29
Ulli John
No

In the default installation of Muhkuh v1.0.228 the file libusb0.dll is located in C:\Program Files (x86)\Muhkuh\driver\romloader_usb\ When Muhkuh is started the error message appears "The plugin 'plugins\bootloader_usb.dll' failed to load, it will be disabled: failed to load the shared object from 'plugins\bootloader_usb.dll'"
The Message log is:
16:01:11: application started
16:01:11: loading plugin 'plugins/bootloader_uart.xml'
16:01:11: romloader uart plugin init
16:01:11: loading plugin 'plugins/bootloader_usb.xml'
16:01:11: bootloader usb plugin init
16:01:11: Lua path:lua/?.lua
16:01:11: Reading testdescription 'file:/C%3A/Programme/Muhkuh/demos/memory_read_gui/test_description.xml'
16:03:36: execute test 'Memory Read Gui', index 0
16:03:36: lua include: searching 'file:/C%3A/Programme/Muhkuh/demos/memory_read_gui\read_write_gui.lua'
16:03:36: lua_include: file loaded, executing code
16:03:40: canceled!
16:03:40: Test 'Memory Read Gui' finished, cleaning up...

Process Monitor from Sysinternals showed, the libusb0.dll is seached but never found. It is searched in some system directories and in C:\Programme\Muhkuh\application\ BUT NOT in C:\Program Files (x86)\Muhkuh\driver\romloader_usb\ where it is installed. As workaround is enough to copy libusb0.dll and libusb0.sys from the driver to the application directory. Afterwards no error message is reported and Muhkuh successfully connects to netX.

Problem seen with Windows7, 64 Bit and WindowsXP 32 Bit. (XP inside VirtualBox).

Discussion


Log in to post a comment.