smx-smx / ASMTool

Firmware dumper and various utilities for ASMedia USB Controllers and related firmware
70 stars 10 forks source link

Windows binary of ASMTool #6

Closed t0niX closed 1 year ago

t0niX commented 1 year ago

Hi smx,

thanks for your repo!

As I mistakenly flashed a wrong firmware to my ASM 3074 (I used one for an ASM 3142 as I thought that’s the chip on my motherboard; It still works though) I would like to re-flash the original firmware. Sadly it’s not available publicly

The good thing is: My motherboard has two ASM 3074 controllers of which one was deactivated during the flash so it still has the original firmware on it. This is the one I would like to dump the firmware from.

I am not a coder which is why I don’t have any tools to build myself a binary of your repo. Would you be so kind to compile a version for windows for me and share it? Can I re-flash the extracted firmware 1:1 or do I need to edit the file using a hex editor?

Thank you!!

smx-smx commented 1 year ago

I configured CirrusCI to build and upload the artifacts. You can find them here: https://cirrus-ci.com/github/smx-smx/ASMTool/master

Click on the latest build, then navigate to binaries/build and download the zip file. For usage, refer to the README

screenshot

necros2k7 commented 1 year ago

win11: AsmTool.exe Unloading ASM Driver... Unhandled exception. System.DllNotFoundException: Unable to load DLL 'asmiodll' (0x8007007E) at AsmTool.AsmIODll.UnloadAsmIODriver() at AsmTool.WindowsAsmIO.UnloadAsmIODriver() in C:\Users\ContainerAdministrato Tool\WindowsAsmIO.cs:line 99 at AsmTool.Program.Main(String[] args) in C:\Users\ContainerAdministrator\App Program.cs:line 24

t0niX commented 1 year ago

Thanks a lot!

t0niX commented 1 year ago

win11: AsmTool.exe Unloading ASM Driver... Unhandled exception. System.DllNotFoundException: Unable to load DLL 'asmiodll' (0x8007007E) at AsmTool.AsmIODll.UnloadAsmIODriver() at AsmTool.WindowsAsmIO.UnloadAsmIODriver() in C:\Users\ContainerAdministrato Tool\WindowsAsmIO.cs:line 99 at AsmTool.Program.Main(String[] args) in C:\Users\ContainerAdministrator\App Program.cs:line 24

You need to add the .dlls mentioned in the README to the same folder!

smx-smx commented 1 year ago

It would be a good idea to collect those firmwares, for people that don't have dual/redundant controllers (me for example, i'm still looking for ASM2142 firmwares). I created a topic in Github Discussions where you can upload firmware dumps

necros2k7 commented 1 year ago

Can`t find asmiodll.dll x64 - anyone have a link? Should it be x32?

smx-smx commented 1 year ago

Yes it should be x86. You can get the files from here: https://www.inateck.com/blogs/news/asm3142-firmware-upgrade-operation-steps

Copy all .dll and .sys files

necros2k7 commented 1 year ago

copied but still: Unloading ASM Driver... Unhandled exception. System.BadImageFormatException: Attempt was made to load (0x8007000B) at AsmTool.AsmIODll.UnloadAsmIODriver() at AsmTool.WindowsAsmIO.UnloadAsmIODriver() in C:\Users\ContainerAdministrato Tool\WindowsAsmIO.cs:line 99 at AsmTool.Program.Main(String[] args) in C:\Users\ContainerAdministrator\App Program.cs:line 24

maybe I have a problem with netfx? how to check?

t0niX commented 1 year ago

ASMTool needs to be compiled in x86/32 bit. Then it should work.

necros2k7 commented 1 year ago

ASMTool needs to be compiled in x86/32 bit. Then it should work.

Then why author compiles in x64? https://cirrus-ci.com/github/smx-smx/ASMTool/master . Do you have win x32 binary man?

smx-smx commented 1 year ago

That's a mistake, thanks for reporting. The CI runner is x64 (which is why i called the jobs _x64), but i forgot to specify the x86 target. I will fix it this evening and rename the job accordingly

smx-smx commented 1 year ago

It should be fixed by 4d70d0da35eff91884a40708453bfb54d7a90daf. Can you verify?

necros2k7 commented 1 year ago

It`s ok now, thanx!