Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reading block 0 in MANJARO/ARCH/LM22 #118

Open
bigbigmdm opened this issue Nov 12, 2024 · 14 comments
Open

Error reading block 0 in MANJARO/ARCH/LM22 #118

bigbigmdm opened this issue Nov 12, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@bigbigmdm
Copy link
Owner

bigbigmdm commented Nov 12, 2024

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 bigbigmdm added the bug Something isn't working label Nov 12, 2024
@bigbigmdm
Copy link
Owner Author

bigbigmdm commented Nov 12, 2024

@kjkent, can you connect to this problem?

@kjkent
Copy link

kjkent commented Nov 12, 2024

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.

@bigbigmdm
Copy link
Owner Author

bigbigmdm commented Nov 13, 2024

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

@bigbigmdm
Copy link
Owner Author

@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 bigbigmdm changed the title Error reading block 0 in MANJARO/ARCH Error reading block 0 in MANJARO/ARCH/LM22 Nov 16, 2024
@bigbigmdm
Copy link
Owner Author

bigbigmdm commented Nov 20, 2024

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

@ItsPancho8
Copy link

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

@bigbigmdm
Copy link
Owner Author

bigbigmdm commented Nov 30, 2024

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

@asamahy
Copy link
Contributor

asamahy commented Dec 1, 2024

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

@bigbigmdm
Copy link
Owner Author

@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
Copy link
Owner Author

bigbigmdm commented Dec 18, 2024

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?

@asamahy
Copy link
Contributor

asamahy commented Dec 18, 2024

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

@bigbigmdm
Copy link
Owner Author

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....

@asamahy
Copy link
Contributor

asamahy commented Dec 18, 2024

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

@bigbigmdm
Copy link
Owner Author

@asamahy Thank you so much again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants