View Full Version : How do I read a system file on my Wing?
deftflux
14th March 2008, 04:04 PM
I'm trying to write a program to control the obnoxious LEDs on the Wing. I've been researching this online for days now. I found one solution that uses the LED1 serial port, but this does not work on the Wing. So I figured I'd reverse engineer the NLED driver (nleddrvr.dll) to see how it accesses the LEDs, and hopefully it will lead me in the right direction.
However, reading a system file on the Wing is like escape from alcatrez! Finally, I thought I could dump the ROM on my hard drive and extract the file that way, so I followed the instructions found at http://www.modaco.com/index.php?act=Print&client=printer&f=143&t=255064. I read Part02.raw from my Wing fine, but when I try to dump the contents using imgfstools, I get the following error:
Error: part02.raw is not a valid IMGFS file.
How do I extract a file from the ROM???? Please help!
CRE
14th March 2008, 06:25 PM
Someone on here wrote an app to accomplish what you're looking to do. It's called NeuLED. Is this the one you tried without sucess?
I can't find the thread, perhaps someone else has the link? (HINT)
deftflux
14th March 2008, 06:46 PM
I've tried a number of solutions including nueLED, which was designed for WM5 and uses the AllLEDMgr driver, which does not apply to the Wing which is WM6. The solution I was referring to is here: http://forum.xda-developers.com/showpost.php?p=1301040&postcount=16
WM6 has a notification LED (NLED) API, which provides universal control of LEDs, one of which is usually the vibration feature. WM6 loads a simple driver to handle these calls which in the case of the Wing is named nleddrvr.dll. Most NLED drivers, though, including this one, only provide rudimentary control of one LED, which in the case of the Wing, may only be turned on or off. Turning it on causes the left LED to blink orange more rapidly instead of green or orange slowly.
However, since nleddrvr.dll is used by the operating system to interact with the LEDs, I want to reverse engineer it to find out how it works. I can't do that if I can't read the file lol. I've tried everything from Resco Explorer to writing my own program to read the file, but access is denied. That's why I extracted the ROM from my Wing. Now I just need to extract the file from the ROM. That is where I'm having trouble now.
CRE
14th March 2008, 07:36 PM
Perhaps the info in this thread will be of use: http://forum.xda-developers.com/showthread.php?t=239576
I'll stop polluting your thread now, that's the best I can offer and there are definitely more knowledgeable people on this board.
Dc_striker
14th March 2008, 09:58 PM
I've tried a number of solutions including nueLED, which was designed for WM5 and uses the AllLEDMgr driver, which does not apply to the Wing which is WM6. The solution I was referring to is here: http://forum.xda-developers.com/showpost.php?p=1301040&postcount=16
WM6 has a notification LED (NLED) API, which provides universal control of LEDs, one of which is usually the vibration feature. WM6 loads a simple driver to handle these calls which in the case of the Wing is named nleddrvr.dll. Most NLED drivers, though, including this one, only provide rudimentary control of one LED, which in the case of the Wing, may only be turned on or off. Turning it on causes the left LED to blink orange more rapidly instead of green or orange slowly.
However, since nleddrvr.dll is used by the operating system to interact with the LEDs, I want to reverse engineer it to find out how it works. I can't do that if I can't read the file lol. I've tried everything from Resco Explorer to writing my own program to read the file, but access is denied. That's why I extracted the ROM from my Wing. Now I just need to extract the file from the ROM. That is where I'm having trouble now.
NUEled works fine on wm6 devices
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.