REVELPROG-IS for Linux

Here you can ask technical questions about REVELPROG-IS and device/memory programming.
kah
Posts: 5
Joined: Fri Dec 14, 2018 1:15 pm
Has thanked: 1 time

REVELPROG-IS for Linux

Postby kah » Fri Dec 14, 2018 1:28 pm

Hi,

How can I use REVELPROG-IS from linux?
I do not see a linux version in the SW tab of https://www.reveltronics.com/en/product ... b#software

Thanks,

ArT
Posts: 1538
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 56 times
Been thanked: 166 times

Re: REVELPROG-IS for Linux

Postby ArT » Sun Dec 16, 2018 12:48 pm

There is only Windows version, but REVELPROG-IS is working with libusb drivers so you can use any windows emulator on linux and it will work. It's working also on MAC. Only update process may not work, but programming and communication with programmer will work.

kah
Posts: 5
Joined: Fri Dec 14, 2018 1:15 pm
Has thanked: 1 time

Re: REVELPROG-IS for Linux

Postby kah » Fri Dec 21, 2018 1:33 pm

Hi Art,

Thank you for this.

I'm trying to run REVELPROG_IS.exe using mono, but I ran into this:

System.EntryPointNotFoundException: CreateCaret
at (wrapper managed-to-native) Be.Windows.Forms.NativeMethods:CreateCaret (intptr,intptr,int,int)
at Be.Windows.Forms.HexBox.CreateCaret () [0x0004c] in <d891967e8277410cbc3714881762f58d>:0
at Be.Windows.Forms.HexBox.OnGotFocus (System.EventArgs e) [0x00007] in <d891967e8277410cbc3714881762f58d>:0
at System.Windows.Forms.Control.WmSetFocus (System.Windows.Forms.Message& m) [0x00012] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00217] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x0008e] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0


It looks like this is a known problem and has been fixed in 2014:
https://github.com/Pkcs11Admin/Be.HexEditor/commit/c05c5df1358bf5427dd2fcec0e392a132cd69422
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767355

What version of Be.Windows.Forms.HexBox.dll are you using?


Thank you :)

ArT
Posts: 1538
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 56 times
Been thanked: 166 times

Re: REVELPROG-IS for Linux

Postby ArT » Sat Dec 22, 2018 9:29 am

Hmm no one had this problem before. I'll consult it and let you know.

kah
Posts: 5
Joined: Fri Dec 14, 2018 1:15 pm
Has thanked: 1 time

Re: REVELPROG-IS for Linux

Postby kah » Mon Jan 07, 2019 1:27 pm

Hi ArT,

I believe they were not using mono but probably a VM running windows...

From what I understand:
Version 1.6.1 has linux compatibility - https://github.com/Pkcs11Admin/Be.HexEd ... NGELOG.txt
However, this version is not released on sourceforge, last one there is 1.6.0 - https://sourceforge.net/projects/hexbox/files/hexbox/

I tried changing the .dll shipped with revelprog-is but both 1.6.0 and 1.6.1 has a missing method 'Be.Windows.Forms.HexBox.add_BufferLengthChanged' this is why I assumed Revelprog is not using the latest version of HexEditor

If this is the case, upgrading the dll to at least 1.6.0 on your side should allow me to replace the .dll with 1.6.1 and see if it is better

Regards,

ArT
Posts: 1538
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 56 times
Been thanked: 166 times

Re: REVELPROG-IS for Linux

Postby ArT » Mon Jan 07, 2019 2:44 pm

Hello,

It is not working because we are using custom made library (a lot of functional changes).

I prepared you files with updated functions. Please unzip and replace both files in installation folder (files are for v1.8):
https://www.dropbox.com/s/2ri15n34czbl3 ... e.zip?dl=0
Please let me know about results.

Best Regards
Artur

kah
Posts: 5
Joined: Fri Dec 14, 2018 1:15 pm
Has thanked: 1 time

Re: REVELPROG-IS for Linux

Postby kah » Tue Jan 08, 2019 10:11 am

Thank you!

This is better. Now the GUI is loading correctly.

I have problem detecting the device now.

I'll check libusb is not being a derp.

USB: Device Not Found.
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at RevelprogIs.HID_USB.DisplayException (System.String moduleName, System.Exception e) [0x00035] in <8c38acd0e5a14018bf7887cbc38da647>:0
at RevelprogIs.HID_USB.FindTheHid () [0x0021e] in <8c38acd0e5a14018bf7887cbc38da647>:0
at RevelprogIs.HID_USB.Connect () [0x00002] in <8c38acd0e5a14018bf7887cbc38da647>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at RevelprogIs.HID_USB.DisplayException (System.String moduleName, System.Exception e) [0x00035] in <8c38acd0e5a14018bf7887cbc38da647>:0
at RevelprogIs.HID_USB.FindTheHid () [0x0021e] in <8c38acd0e5a14018bf7887cbc38da647>:0
at RevelprogIs.HID_USB.Connect () [0x00002] in <8c38acd0e5a14018bf7887cbc38da647>:0

ArT
Posts: 1538
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 56 times
Been thanked: 166 times

Re: REVELPROG-IS for Linux

Postby ArT » Tue Jan 08, 2019 10:16 am

Hmm it seems that it is trying to detect REVELPROG in older version (up to 1.2.x) when it was using HID drivers (not libusb). It's trying to connect using HID if it can not detect programmer with default methods (libusb). I'll check it and try to prepare you software without support for older versions (without HID USD compatibility).

ArT
Posts: 1538
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 56 times
Been thanked: 166 times

Re: REVELPROG-IS for Linux

Postby ArT » Tue Jan 08, 2019 10:50 am

Just checked it. I prepared you version which does not try to connect with HID devices (anyway it should not try use HID functions if it detect programmer with libusb). Please replace file and check it:
https://www.dropbox.com/s/xfh6qcz2f4uez ... S.zip?dl=0
Please let me know.

kah
Posts: 5
Joined: Fri Dec 14, 2018 1:15 pm
Has thanked: 1 time

Re: REVELPROG-IS for Linux

Postby kah » Tue Jan 08, 2019 12:11 pm

There might be a problem with my install of libusb then. I'll see what I can do.

I see a "USB: Device Not Found." in console on startup

Now the GUI is stable but crashed when I clicked "Settings > Select Device"

Image

System.NullReferenceException: Object reference not set to an instance of an object
at RevelprogIs.SQLiteDB.LoadData (System.String SQL) [0x0001f] in <c0c187fa157044869a4cafad829a4603>:0
at RevelprogIs.MemoryDB.LoadData (System.String SQL) [0x00000] in <c0c187fa157044869a4cafad829a4603>:0
at RevelprogIs.MemoryDB.GUI_DeviceListAddItems (System.Windows.Forms.ListBox deviceListBox, System.String sqlQuery) [0x00002] in <c0c187fa157044869a4cafad829a4603>:0
at RevelprogIs.MemoryDB.GUI_DeviceListShowTopLevel () [0x00019] in <c0c187fa157044869a4cafad829a4603>:0
at RevelprogIs.MemoryDB.MemoryDB_Load (System.Object sender, System.EventArgs e) [0x00039] in <c0c187fa157044869a4cafad829a4603>:0
at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00022] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00029] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0


I'm not sure what DLL is missing.

Thank you for your time!


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 5 guests