Re: [Emc-users] Linuxcnc on the Olinuxino
On 01/12/2013 10:47 PM, Eric H. Johnson wrote: Jon, It has what it calls a serial port, which in fact goes to a USB. There are then some drivers (Windows only) which apparently allow communicating with it as a serial device. OK, the Beagle Board has a real serial port, driven via some GPIO pads and then brought out with a Max232-style chip, so it needs no special drivers once the OMAP's GPIO mux setting is made. So, this serial port works from the VERY start of the boot process, and you see the TI boot ROM ID'ing the processor rev number, the memory chips and so on. This allows you to see the messages from bad SD card formats, and all sorts of similar incompatible boot params and other problems that prevent Linux from booting. I only know the Beagle Board, so I can't help much beyond that. Jon -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Linuxcnc on the Olinuxino
Hi Eric, Am 12.01.2013 um 05:49 schrieb Eric H. Johnson: Hi all, This is really a response to the LinuxCNC for DIY 3D Printing thread without hijacking that thread. After seeing the success of a few other people in getting lcnc running on an Arm / Beaglebone, I thought I would take a shot at doing the same on the Olinuxino, with the intent of driving a 3D printer. I found the Olinuxino attractive because it has 512MB RAM and a 1Ghz processor and 3 I2C interfaces, as well as a companion 7 LCD or LCD touch display. It does not have an immediate interface to get to a Mesa type FPGA device, but I was hoping with a 1Ghz processor I would at least be able to directly drive 3 stepper motors. The board in fact just arrived today. Android built into the onboard NAND booted first time. While waiting for the board to arrive, I also built a custom kernel and a debian image and loaded that to a 4GB SD card. That, unfortunately was an abject failure. It would not boot, and worse, gave no error message. I just got a black screen. I am going to try a prebuilt stock debian image tomorrow. having been through this with two different ARM boards, let me tack on a suggestion together with a wish for good luck: - RTAI not being an option, an RT_PREEMPT being similar effort for worse results, the preferred RT OS would be Xenomai. That however depends on a bit of lowelevel code which isnt available in stock kernels, and replicating this for new hardware would be out of my skill range; I therefore would start the search for suitable SoC by filtering which architecture, or board, has a know-to-work Xenomai port. Even if RT_PREEMPT is easier to get running, you might lack the hires timer support. This list of commits between stock 3.2.21 and a working Xenomai kernel gives an idea of the task: https://github.com/roosen/linux/commits/v3.2.21_AM33xx_core-3.2 - the lesser chore is finding a closely matching package stream, or be prepared to build all of the prerequisites yourself. mazeltov, - Michael I did start a blog to document my progress here: http://lcncolinuxino.blogspot.com/ I will certainly have many questions (probably better posted to the developer list) as I get further along, but this seemed to be an appropriate time mention what I was up to. Regards, Eric -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Linuxcnc on the Olinuxino
After seeing the success of a few other people in getting lcnc running on an Arm / Beaglebone, I thought I would take a shot at doing the same on the Olinuxino, with the intent of driving a 3D printer. I found the Olinuxino attractive because it has 512MB RAM and a 1Ghz processor and 3 I2C interfaces, as well as a companion 7 LCD or LCD touch display. It does not have an immediate interface to get to a Mesa type FPGA device, but I was hoping with a 1Ghz processor I would at least be able to directly drive 3 stepper motors. Nice! This is the first project I've seen with an affordable and apparently good-looking functional touch screen solution. For various embedded projects I've been looking for a board that runs linuxcnc/HAL, with either on-board IO/Microcontroller/FPGA or the possibility to use a MESA card. A touch-screen would be used for UI. Raspberry Pi. + small, cheap - the processor is slow - barely able to boot a standard debian desktop. - There are some touchscreen hacks but nothing universally used good. - two SPI channels, one of which (maybe) goes to touch-screen use. ITX-sized x86 + stock standard x68 - 7 HDMI touch-screens exist (e.g. lilliput UK), but expensive (200 eur/gbp/usd). - expensive (board 100eur, processor 100eur, etc.) + PCI or PCI-E for MESA card For now I am slowly working on the x86 solution, mostly because it is tried tested, but these substantially cheaper ARM alternatives seem to be progressing... Does anyone know what electronics would go between the HDMI-connector of an x86-board, and the 55eur Olinuxino 7 touch-screen? Is it something one could DIY for less than 150eur which is roughly the price-difference to a 7 Lilliput HDMI-interfaced (USB for touch) screen ? Definitely keep us posted on the progress, and latency-numbers if/when you get a xenomai kernel going. Anders -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Linuxcnc on the Olinuxino
On 01/11/2013 10:49 PM, Eric H. Johnson wrote: The board in fact just arrived today. Android built into the onboard NAND booted first time. While waiting for the board to arrive, I also built a custom kernel and a debian image and loaded that to a 4GB SD card. That, unfortunately was an abject failure. It would not boot, and worse, gave no error message. I just got a black screen. Does it have a serial port? That is the best way to debug boot failure on the Beagle Board and its cousins. 4GB is a bit tight for the full Linux system, but it can work. But, for real work on the system itself, you might want to go for an 8 GB card. As for attaching hardware, I built a board that puts a bidir parallel port on the Beagle Board's expansion header. It doesn't do native EPP mode, but that can be emulated in software. I have a rudimentary driver for my EPP-connected stepper/PWM controller that ran on the Beagle Board. (The SD card got corrupted, but I think I have the code backed up.) If the olinuxino also has an expansion header for GPIO pins, I could give you the schematic. The Beagle Board and XM have 1.8 V I/O levels, so it includes a level translator. Jon -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Linuxcnc on the Olinuxino
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/12/2013 9:05 AM, Anders Wallin wrote: After seeing the success of a few other people in getting lcnc running on an Arm / Beaglebone, I thought I would take a shot at doing the same on the Olinuxino, with the intent of driving a 3D printer. I found the Olinuxino attractive because it has 512MB RAM and a 1Ghz processor and 3 I2C interfaces, as well as a companion 7 LCD or LCD touch display. It does not have an immediate interface to get to a Mesa type FPGA device, but I was hoping with a 1Ghz processor I would at least be able to directly drive 3 stepper motors. Nice! This is the first project I've seen with an affordable and apparently good-looking functional touch screen solution. For various embedded projects I've been looking for a board that runs linuxcnc/HAL, with either on-board IO/Microcontroller/FPGA or the possibility to use a MESA card. A touch-screen would be used for UI. The simplest way to do this would probably be to use two systems, one for LinuxCNC and the hardware, and an Android tablet/phone/whatever to run a remote touch-screen interface. For a single-platform ARM solution, TI has another AM335x reference design with a touch-screen that's pretty reasonably priced ($200): http://www.ti.com/tool/tmdssk3358 I'm currently using the 'Bone because: * It's cheaper to start, and I'm not to the point I need a display yet * It has pin headers for I/O expansion * The LCD interface on the AM335x uses the same pins as the PRU direct I/O lines. * I was able to buy a BeBoPr 'shield' which means I don't have to make any custom hardware to get through the first round of testing with an actual 3D printer. The pin muxing issue could probably be worked around somewhat, at the expense of (slightly) worse jitter on the PRU generated step/dir signals, but for initial testing the 'Bone is the easy solution. WARNING: Even with a 1 GHz CPU and Xenomai on the Olinuxino (or any similar development board), I don't think you're going to get latency numbers that work well for (Linux based) software stepgen. You'll probably need either hardware PWM generation (on or off chip), or something like the PRU available in the TI parts that can off-load the step generation from the Linux based servo thread. You could fairly easily do software stepgen with custom code running on the bare metal (ie: no OS), but that kind of defeats the idea of using LinuxCNC. - -- Charles Steinkuehler char...@steinkuehler.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlDxf4sACgkQLywbqEHdNFxveACg/pioLkTO4fhtGuzRHoy6zby7 v1MAoI+WVJ+dBK+lI8QLKhkc4TAbBAfX =j0l2 -END PGP SIGNATURE- -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Linuxcnc on the Olinuxino
Re getting the Olimex screen working... it looks like its just a vanilla LVDS panel.. so you just need one of the many LVDS-HDMI driver boards from ebay and the like.. basically look around and you'll find a few people on sites selling LVDS-HDMI controller boards or converters... basically you need the board that takes HDMI in from your system, converts it to the 'native' format of LVDS and drives the coloumns etc. To interact with the 'touch' side - you again need a tiny dongle that converts it to a USB HID device... Rough estimates would see you have both boards for $40... so yes, you should be able to use the Olimex panel with your current setup + the converter boards for display (LVDS) and touch (which becomes a USB HID mouse)... Bringing it all in still cost effectively.. On 13 January 2013 02:05, Anders Wallin anders.e.e.wal...@gmail.com wrote: After seeing the success of a few other people in getting lcnc running on an Arm / Beaglebone, I thought I would take a shot at doing the same on the Olinuxino, with the intent of driving a 3D printer. I found the Olinuxino attractive because it has 512MB RAM and a 1Ghz processor and 3 I2C interfaces, as well as a companion 7 LCD or LCD touch display. It does not have an immediate interface to get to a Mesa type FPGA device, but I was hoping with a 1Ghz processor I would at least be able to directly drive 3 stepper motors. Nice! This is the first project I've seen with an affordable and apparently good-looking functional touch screen solution. For various embedded projects I've been looking for a board that runs linuxcnc/HAL, with either on-board IO/Microcontroller/FPGA or the possibility to use a MESA card. A touch-screen would be used for UI. Raspberry Pi. + small, cheap - the processor is slow - barely able to boot a standard debian desktop. - There are some touchscreen hacks but nothing universally used good. - two SPI channels, one of which (maybe) goes to touch-screen use. ITX-sized x86 + stock standard x68 - 7 HDMI touch-screens exist (e.g. lilliput UK), but expensive (200 eur/gbp/usd). - expensive (board 100eur, processor 100eur, etc.) + PCI or PCI-E for MESA card For now I am slowly working on the x86 solution, mostly because it is tried tested, but these substantially cheaper ARM alternatives seem to be progressing... Does anyone know what electronics would go between the HDMI-connector of an x86-board, and the 55eur Olinuxino 7 touch-screen? Is it something one could DIY for less than 150eur which is roughly the price-difference to a 7 Lilliput HDMI-interfaced (USB for touch) screen ? Definitely keep us posted on the progress, and latency-numbers if/when you get a xenomai kernel going. Anders -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Linuxcnc on the Olinuxino
Jon, It has what it calls a serial port, which in fact goes to a USB. There are then some drivers (Windows only) which apparently allow communicating with it as a serial device. Something is not working in my setup for these drivers. I got the drivers installed, and three external drives show up when the board is plugged in, but I cannot view any of them and nothing shows up in hyperterminal. But more importantly, a USB device is only recognized when I boot to Android. If I boot to the SD I get nothing, not even the bing when a USB device is detected. Further, I have now tried three different SD cards. Under Android, when I insert any one of them it gives me a damaged SD error. I initially thought this might be because Android does not recognize the ext3 / ext4 format, but I get the same error when I insert a 32GB SD that I regularly use in my Android tablet. The manual does say: We have tested a number of microSD cards on the OLinuXino boards and all of them worked fine regardless manufacturer or capacity. However, keep in mind that some of the lower quality microSD cards might draw too much current from the slot which might cause power-state problems. If you suspect the microSD card is causing problems please try using another one of better quality for better results. I picked up a second 4GB SD today, unfortunately Best Buy only seems to carry PNY, so both 4GB SDs are PNYs. The 32 GB SD is Transcend. I have a class 10 32GB SD on order, but it just shipped Friday. I suppose there is an outside chance that it is a power supply problem. The power supply I intend to use has not arrived, so I have been using a combination of USB ports from a PC and a high power USB power supply. The stand-alone USB power supply is rated at 2.1A at 5V. The manual does say that for full operation, including the LCD display, the requirements are 6-16VDC at 1A. As for I/O, I am still working out what will be available for usable GPIO. It looks like most of it is available on one of the 40 pin connectors, the other 40 pin connector is for the LCD / Touch screen. The complete manual is here: https://www.olimex.com/Products/OLinuXino/A13/A13-OLinuXino/resources/A13-OL INUXINO.pdf Regards, Eric Does it have a serial port? That is the best way to debug boot failure on the Beagle Board and its cousins. 4GB is a bit tight for the full Linux system, but it can work. But, for real work on the system itself, you might want to go for an 8 GB card. As for attaching hardware, I built a board that puts a bidir parallel port on the Beagle Board's expansion header. It doesn't do native EPP mode, but that can be emulated in software. I have a rudimentary driver for my EPP-connected stepper/PWM controller that ran on the Beagle Board. (The SD card got corrupted, but I think I have the code backed up.) If the olinuxino also has an expansion header for GPIO pins, I could give you the schematic. The Beagle Board and XM have 1.8 V I/O levels, so it includes a level translator. -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users