Error reading block 0 in MANJARO/ARCH/LM22
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
’
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
@kjkent, can you connect to this problem?
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.
Thank you, @kjkent ! For NixOS, the package has already been created by r-ryantm. Please see also Repology.
@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.
This problem is also present on the ArchLinux forum The problem occurs when accessing the libusb_transfer() function.
happens on rpm as well, I cannot flash a fix vbios to my gpu because of this :v
@ItsPancho8 , I don't understand what rpm is? What is the name of your distribution and what is the version?
Maybe try with a macOS VM if you don't have access to a machine to rule out udev.
@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.
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 Arabic is my native language and I'll gladly translate if it isn't already done.
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....
Ok great I'll take a look and start as soon as possible
@asamahy Thank you so much again!
the same happens with Kubuntu 24.04 and the master's build
Linux Mint 22 XFCE - the program did not work, LINUX MINT 22.1 XFCE - everything was fine!