- Thank you received: 0
EMC2 running on Raspberry Pi?
- mhaberler
- New Member
-
Less
More
13 years 5 months ago #34946
by mhaberler
Replied by mhaberler on topic EMC2 running on Raspberry Pi?
can I encourage you folks to polish up this work, and prepare a patch for LinuxCNC ?
suggested shopping list:
- a README which could serve as a manual fragment
- man page(s) for component(s)
- a working configuration
- build notes if required
- Michael
suggested shopping list:
- a README which could serve as a manual fragment
- man page(s) for component(s)
- a working configuration
- build notes if required
- Michael
Please Log in or Create an account to join the conversation.
13 years 5 months ago #34953
by rexhunt
Replied by rexhunt on topic EMC2 running on Raspberry Pi?
Hi, I'm just waiting on some stuff for my raspberry pi (HDMI-> VGA adapter, keyboard, etc.) which should be here tomorrow. After verifying that the Rpi does work under raspian with my setup I'm going to give mungkie's code a try. Hopefully I'll be back on here with a success story in the next few days, then I might have a look at doing some documentation.
Cheers,
Rex
Cheers,
Rex
Please Log in or Create an account to join the conversation.
13 years 5 months ago - 13 years 5 months ago #34973
by otto_pjm
Michael,
I'm happy to help with whatever I can. As far as I can tell the source for the rpi driver is not in the image, so it's a blob at this point. We can make a cleaned up image, and document config settings etc to work with it but that will limit it's use to the rpi. I'd love to be able to extend LinuxCNC to ARM more broadly. There are numerous Allwinner A10 boards, out and Freescale and Samsung ARM boards that have more horsepower and options, but I don't think the DMA code would work directly with these other boards. These boards also tend to have different GPUs, like the Mali, which may be better or worse for LinuxCNC.
In the bigger picture, we need to see what Mungkie wants to do.
The video is here. Be kind it was after midnight and I'd spent about 7 hours working on getting it running, the machine is running rougher than it does with it's normal control as it needs more tuning. Also I didn't pull some sheet metal dust control pieces that rattle badly, sorry about that, I'll try again this weekend before I put the machine back together.
Try this, for the video, it didn't want to embed the link.
LinuxCNC on rpi - Youtube
Replied by otto_pjm on topic EMC2 running on Raspberry Pi?
mhaberler wrote: can I encourage you folks to polish up this work, and prepare a patch for LinuxCNC ?
suggested shopping list:
- a README which could serve as a manual fragment
- man page(s) for component(s)
- a working configuration
- build notes if required
- Michael
Michael,
I'm happy to help with whatever I can. As far as I can tell the source for the rpi driver is not in the image, so it's a blob at this point. We can make a cleaned up image, and document config settings etc to work with it but that will limit it's use to the rpi. I'd love to be able to extend LinuxCNC to ARM more broadly. There are numerous Allwinner A10 boards, out and Freescale and Samsung ARM boards that have more horsepower and options, but I don't think the DMA code would work directly with these other boards. These boards also tend to have different GPUs, like the Mali, which may be better or worse for LinuxCNC.
In the bigger picture, we need to see what Mungkie wants to do.
The video is here. Be kind it was after midnight and I'd spent about 7 hours working on getting it running, the machine is running rougher than it does with it's normal control as it needs more tuning. Also I didn't pull some sheet metal dust control pieces that rattle badly, sorry about that, I'll try again this weekend before I put the machine back together.
Try this, for the video, it didn't want to embed the link.
LinuxCNC on rpi - Youtube
Last edit: 13 years 5 months ago by otto_pjm. Reason: video link didn't show.
Please Log in or Create an account to join the conversation.
- mhaberler
- New Member
-
Less
More
- Thank you received: 0
13 years 5 months ago #34984
by mhaberler
Replied by mhaberler on topic EMC2 running on Raspberry Pi?
great to see metal moving!
well I hope I didnt discourage Mungkie too much with my sobering words.. that was not my intent.
That said: no binary contributions & no exceptions.
- Michael
well I hope I didnt discourage Mungkie too much with my sobering words.. that was not my intent.
That said: no binary contributions & no exceptions.
- Michael
Please Log in or Create an account to join the conversation.
13 years 5 months ago #35131
by otto_pjm
Replied by otto_pjm on topic EMC2 running on Raspberry Pi?
OK,
I think I may be at the end of what I can accomplish. I pulled the configuration bits from my x86 based setup for this machine, added them to the rpi configs and nothing changes. It is quite possible I'm misunderstanding configuration options in particular, or LinuxCNC in general, but what I observed with the CW250 drivers is that they need a long steplen and dirhold. I have them set to 22500 in my x86 Config. When I use these values in the rpi config, nothing seems to change. I looked at the values in the Hal Configuration -> rpi_stepgen -> [AXIS] -> dirhold and steplen with the stock and then my updated hal file variables and they remain at 60000.
Is this the right place to look? I'm assuming these values should change? I can post my config files in anyone wants to look. I see the same references to steplen and dirhold in the stepgen.so and rpi_stepgen.so when I run strings on them. I don't see a rpi_stepgen.c file at all so I can't look there. If anyone has ideas of things to try or test, I'm willing to try, but will need to get my machine back together and running under the x86 control pretty soon.
Thanks
Pete
I think I may be at the end of what I can accomplish. I pulled the configuration bits from my x86 based setup for this machine, added them to the rpi configs and nothing changes. It is quite possible I'm misunderstanding configuration options in particular, or LinuxCNC in general, but what I observed with the CW250 drivers is that they need a long steplen and dirhold. I have them set to 22500 in my x86 Config. When I use these values in the rpi config, nothing seems to change. I looked at the values in the Hal Configuration -> rpi_stepgen -> [AXIS] -> dirhold and steplen with the stock and then my updated hal file variables and they remain at 60000.
Is this the right place to look? I'm assuming these values should change? I can post my config files in anyone wants to look. I see the same references to steplen and dirhold in the stepgen.so and rpi_stepgen.so when I run strings on them. I don't see a rpi_stepgen.c file at all so I can't look there. If anyone has ideas of things to try or test, I'm willing to try, but will need to get my machine back together and running under the x86 control pretty soon.
Thanks
Pete
Please Log in or Create an account to join the conversation.
13 years 4 months ago #35165
by otto_pjm
Replied by otto_pjm on topic EMC2 running on Raspberry Pi?
I got some good advice from Andy, and spent another day playing with the RPi code. I learned a lot more about hal, and believe that the driver still has hard coded values, that are messing with my attempts to get it working correctly with my drivers. I think the driver could work OK, but it's too hard to work with given it's current behavior, and the inability to verify what's happening by looking at the code.
Pete
Pete
Please Log in or Create an account to join the conversation.
Time to create page: 0.194 seconds