Ubuntu to Debian

More
03 Sep 2014 04:46 #50650 by fgauder
Ubuntu to Debian was created by fgauder
I upgraded from LinuxCNC 2.5 to 2.6 by using the Debian .iso. So, I've also gone from Ubuntu to Debian. When I try to execute my machine's config file I get the errors attached. Can someone tell me what's wrong? Thanks.

Please Log in or Create an account to join the conversation.

More
03 Sep 2014 04:56 - 03 Sep 2014 19:52 #50652 by fgauder
Replied by fgauder on topic Ubuntu to Debian
Well, I obviously didn't attach the file correctly. Here's my 2nd try.
That didn't work either so here's a cut and paste:
Attachments:
Last edit: 03 Sep 2014 19:52 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
03 Sep 2014 15:03 - 03 Sep 2014 15:04 #50667 by ArcEye
Replied by ArcEye on topic Ubuntu to Debian
Hi

This is the problem

Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hm2_pci.ko: Unknown symbol in module
Hurco_MD3.hal:9: exit value: 1


Normally this would indicate the module was compiled on a different kernel, with different libs etc, but insmod is notorious for giving misleading errors
and that should definately not be the case if you are using a stock binary.hybrid.iso install without added files.

Unfortunately the bit of dmesg that would tell us what the symbol was, is missing.

From a terminal do dmesg > dmesg.txt and attach the resultant file dmesg.txt

Also attach your hal and ini files.
It is possible it is the setup string for the 5i25 that is giving the error

Just on the offchance that your copy of hm2_pci.ko is corrupted, attached is a copy from my installation

regards
Attachments:
Last edit: 03 Sep 2014 15:04 by ArcEye.
The following user(s) said Thank You: fgauder

Please Log in or Create an account to join the conversation.

More
03 Sep 2014 19:53 #50681 by fgauder
Replied by fgauder on topic Ubuntu to Debian
ArcEye,

Thanks for the reply. I won't be able to get back to the machine for a day or two, but will then do what you suggest. I did use a stock binary. hybrid.iso. Also, is there some special trick to adding an attachment? Thanks.

Please Log in or Create an account to join the conversation.

More
03 Sep 2014 19:55 - 03 Sep 2014 19:57 #50682 by BigJohnT
Replied by BigJohnT on topic Ubuntu to Debian

ArcEye,

Thanks for the reply. I won't be able to get back to the machine for a day or two, but will then do what you suggest. I did use a stock binary. hybrid.iso. Also, is there some special trick to adding an attachment? Thanks.


Attachments need to have an allowable extension like .txt .zip etc.

linuxcnc.org/index.php/english/forum/29-...nts/342-posting-tips

JT
Last edit: 03 Sep 2014 19:57 by BigJohnT.
The following user(s) said Thank You: fgauder

Please Log in or Create an account to join the conversation.

More
04 Sep 2014 03:38 #50704 by fgauder
Replied by fgauder on topic Ubuntu to Debian
John, thanks for the lesson.

ArcEye, here are the files. I loades Debian on a new hard drive and copied the config files. By going back to the old drive, all works well. It's still running version 2.5. Since the dmesg.txt file indicates that the problem is with the 5i20 board, I didn't change the hm2_pci.ko file. Thanks
Attachments:

Please Log in or Create an account to join the conversation.

More
04 Sep 2014 13:42 - 04 Sep 2014 13:46 #50732 by ArcEye
Replied by ArcEye on topic Ubuntu to Debian
Hi

Quite simple by the look of it, you have transferred the configs, but have not installed the firmware.

From .hal file

loadrt hostmot2
loadrt hm2_pci config="firmware=hm2/5i20/SV12_2X7I48.BIT num_encoders=6 num_pwmgens=6 num_3pwmgens=0 num_stepgens=0 "


From dmesg

[ 87.593684] hm2: loading Mesa HostMot2 driver version 0.15
[ 87.601320] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 87.601405] hm2_pci: discovered 5i20 at 0000:05:00.0
[ 87.607686] hm2/hm2_5i20.0: firmware hm2/5i20/SV12_2X7I48.BIT not found
[ 87.607697] hm2/hm2_5i20.0: install the package containing the firmware.
[ 87.607707] hm2_5i20.0: board fails HM2 registration
[ 87.607774] hm2_pci: probe of 0000:05:00.0 failed with error -2
[ 88.324943] hm2: unloading
[ 88.456414] RTAI[math]: unloaded.


Install that and hopefully all will be well.

regards
Last edit: 04 Sep 2014 13:46 by ArcEye.
The following user(s) said Thank You: fgauder

Please Log in or Create an account to join the conversation.

More
04 Sep 2014 22:15 #50763 by fgauder
Replied by fgauder on topic Ubuntu to Debian
ArcEye,

I don't remember how I installed the firmware to begin with, but I figured I'd find it on the old drive and go from there. I did a search of the file system for "hm2/5i20/SV12_2X7I48.BIT" and got a "no files found". Could you point me in the right direction? Thanks

Please Log in or Create an account to join the conversation.

More
04 Sep 2014 22:43 #50770 by ArcEye
Replied by ArcEye on topic Ubuntu to Debian
Hi

Firmware should be hardware specific and not kernel specific, so you should be able to just copy it over

On your old system, copy the whole of /lib/firmware/hm2 to the same location on your new system

regards
The following user(s) said Thank You: fgauder

Please Log in or Create an account to join the conversation.

More
04 Sep 2014 23:45 #50777 by cncbasher
Replied by cncbasher on topic Ubuntu to Debian
i have attached them here
use sudo to copy them to /lib/firmware/hm2/5i20/
Attachments:
The following user(s) said Thank You: fgauder

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum