Mesaflash is not able to find 5i25

More
1 year 2 months ago #332721 by GDTH
Not entirely sure if this is the correct category of the forum for this question, but here goes:I've just done a completely fresh install of LinuxCNC and I'm running into a few issues — some related to EtherCAT, but also with
Code:
mesaflash
.I'm trying to use
Code:
mesaflash
with a 5i25 board. I installed it and ran the following command:
Code:
sudo mesaflash --device 5I25 --readhmid
But I get this error:
Code:
pci_boards_init can't open /dev/mem: Operation not permitted No 5I25 board found
The 5i25 itself isn't broken — I’ve tested it on another PC and it works fine.When I run
Code:
lspci -v
, I can see the board:
Code:
02:00.0 DPIO module: Device 2718:5125 (rev 01) Subsystem: Device 2718:5125 Flags: medium devsel, IRQ 255 Memory at d1000000 (32-bit, non-prefetchable) [disabled] [size=64K]
It feels like something went wrong during the software installation. Has anyone seen this before or know what might be wrong?

Please Log in to join the conversation.

More
1 year 2 months ago #332722 by PCW
Memory at d1000000 (32-bit, non-prefetchable) [disabled] [size=64K]

is suspicious, Sometimes this is BIOS option related.

Please Log in to join the conversation.

More
1 year 2 months ago #332728 by GDTH
I have a small HP ProDesk 400 G3 SFF. From your suggestion i have looked at both devices (same pc type) bios settings, as of now nothing sticks out yet.

Please Log in to join the conversation.

More
1 year 2 months ago #332735 by PCW
Does LinuxCNC find the card?

Please Log in to join the conversation.

More
1 year 2 months ago #332758 by andypugh
does "sudo mesaflash" get any further?

Please Log in to join the conversation.

More
1 year 2 months ago #332781 by PCW
He did use sudo, I expect this is a BIOS issue, and it appears that the
hm2_pci driver works around this with this:

    // NOTE: this enables the board's BARs -- this fixes the Arty bug
    if (rtapi_pci_enable_device(dev)) {
        LL_PRINT("skipping AnyIO board at %s, failed to enable PCI device\n", rtapi_pci_name(dev));
        return failed_errno = -ENODEV;

But I don't see any equivalent code in mesaflash (nor do I know the equivalent
of rtapi_pci_enable_device with the PCI library that mesaflash uses, but I can take a look.)

 

Please Log in to join the conversation.

More
1 year 2 months ago #332798 by GDTH
I will dig more into tonight and see if i can find something from the bios. The only thing i can think of is that linuxcnc was installed with secure boot.

Properply end up doing a fresh start with linuxcnc.

I will update on this, if i find something.

Please Log in to join the conversation.

More
1 year 2 months ago #332800 by unknown
This seems to be an issue that seems to happen with HP boxes, add in cards seem to be disabled. This is just not related to Linuxcnc cards. Users have had issues with PCIe LPT cards and a month or so ago when doing a google search related to this it pops up in HP forums with no resolution (not just the above mentioned add in cards). (sorry I didn't bookmark the threads I found)

Please Log in to join the conversation.

More
1 year 2 months ago #333046 by GDTH
Okay, so I still don’t know exactly what the issue was. I checked the BIOS and compared it with another PC, but nothing stood out. After a while, I decided to just reinstall LinuxCNC 2.9.4 — and this time, it worked.
It might be because I installed other software in a different order; this time, I set up EtherCAT and everything else right away. I also removed the annoying
Code:
raspi-firmware
package, which could have been the culprit as well.

Please Log in to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum