IMSProg icon indicating copy to clipboard operation
IMSProg copied to clipboard

Error reading block 0 in MANJARO/ARCH/LM22

Open bigbigmdm opened this issue 1 year ago • 16 comments

Distribution

Manjaro KDE 24.1.2, Manjaro 14.2.1, Linux Mint 22, ARCH?

Architecture

amd64

Kernel version

For example 5.15 from ubuntu package 5.15.0-56.62~20.04.1

IMSProg version

1.4.4

Bug description

When SPI NOR FLASH chips are used, an error message - ‘Error reading block 0’ - is triggered in the chip read procedure. Command line output: ‘cb-out: error: LIBUSB_TRANSFER_TIMED_OUT manj1

This might be - https://bbs.archlinux.org/viewtopic.php?id=298664

Steps to reproduce

Start IMSProg, then insert Winbond W25Q128 chip into the programmer, press the read button.

Expected behavior

No response

Additional information

No response

bigbigmdm avatar Nov 12 '24 12:11 bigbigmdm

@kjkent, can you connect to this problem?

bigbigmdm avatar Nov 12 '24 12:11 bigbigmdm

I can certainly check, though these W25Q series chips are what I usually use imsprog for and haven't encountered an error I'd attribute to the program.

The libusb errors I've encountered have often been related to incorrect udev rules/permissions/another program accessing the device/what day of the week it is, it's pretty temperamental in my experience.

It might be a day or two until I have the time, but I will throw the closest chip I have into the ch341a and test. Will report back what I find.

I've been using NixOS for a bit, but will fire up an Arch installation for this. And when I get time, I'll see about packaging imsprog for NixOS.

kjkent avatar Nov 12 '24 19:11 kjkent

Thank you, @kjkent ! For NixOS, the package has already been created by r-ryantm. Please see also Repology.

bigbigmdm avatar Nov 13 '24 04:11 bigbigmdm

@kjkent , i installed IMSProg from AUR repository on Manjaro 24.1.2 and I see this problem: "Error reading sector 0"... I used Oracle virtualbox and downloaded the official release from Manjaro's website.

bigbigmdm avatar Nov 13 '24 12:11 bigbigmdm

This problem is also present on the ArchLinux forum The problem occurs when accessing the libusb_transfer() function.

bigbigmdm avatar Nov 20 '24 12:11 bigbigmdm

happens on rpm as well, I cannot flash a fix vbios to my gpu because of this :v

ItsPancho8 avatar Nov 30 '24 01:11 ItsPancho8

@ItsPancho8 , I don't understand what rpm is? What is the name of your distribution and what is the version?

bigbigmdm avatar Nov 30 '24 15:11 bigbigmdm

Maybe try with a macOS VM if you don't have access to a machine to rule out udev.

asamahy avatar Dec 01 '24 05:12 asamahy

@asamahy , I'm not going to rule out udev, as it works correctly on Linux systems. The question here is about incorrect operation of the program with the latest version of the Linux kernel or the latest versions of the Libusb-1.0 library.

bigbigmdm avatar Dec 01 '24 10:12 bigbigmdm

Thank you, @asamahy ! The Fedora 41 distribution also uses Libusb 1.0.27 and this problem was also not detected. So far, I can't figure out what's wrong....

Can you please tell me what your native language is? If it is not included in IMSProg, can you make a translation?

bigbigmdm avatar Dec 18 '24 07:12 bigbigmdm

@bigbigmdm Arabic is my native language and I'll gladly translate if it isn't already done.

asamahy avatar Dec 18 '24 17:12 asamahy

Thank you, @asamahy ! A brief instruction is at the end of the README.md file...

Other than that, I now have another little project - SFP-Master....

bigbigmdm avatar Dec 18 '24 17:12 bigbigmdm

Ok great I'll take a look and start as soon as possible

asamahy avatar Dec 18 '24 17:12 asamahy

@asamahy Thank you so much again!

bigbigmdm avatar Dec 18 '24 17:12 bigbigmdm

the same happens with Kubuntu 24.04 and the master's build

sinkapoy avatar Feb 07 '25 13:02 sinkapoy

Linux Mint 22 XFCE - the program did not work, LINUX MINT 22.1 XFCE - everything was fine!

bigbigmdm avatar Feb 20 '25 06:02 bigbigmdm