Author Topic: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?  (Read 14302 times)

0 Members and 1 Guest are viewing this topic.

Offline cdevTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
I'm casting around for interesting new hardware to experiment with and would like to learn more about both FPGAs and IoT platforms/devices.

But I'm on Linux and want to remain with it as my main platform. I can run Wine, I don't want to buy Windows and run Windows in a VM.  Given those constraints, which platforms have development tools and are supported by a toolchain that I can use on my platform of choice? Assuming that I had no other platforms available (which is more or less true)

I know that excludes a lot of good hardware, even now.

:(
"What the large print giveth, the small print taketh away."
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26891
  • Country: nl
    • NCT Developments
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #1 on: June 17, 2017, 05:28:32 pm »
Xilinx ISE runs on Linux just fine. The same for ARM's GCC compiler (see launchpad.net).
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: cdev

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11235
  • Country: us
    • Personal site
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #2 on: June 17, 2017, 06:03:17 pm »
Altera Quartus works on Linux perfectly as well.

Development for ARM is super easy on Linux. Programming the part may be a bit harder, but there are tools for all major vendors.
Alex
 
The following users thanked this post: cdev

Online NorthGuy

  • Super Contributor
  • ***
  • Posts: 3138
  • Country: ca
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #3 on: June 17, 2017, 06:13:06 pm »
Xilinx's Vivado is supposed to run on Linux, but I only tried ISE.

Microchip's MPLAB X runs on Linux very well - much better than on Windows actually.
 
The following users thanked this post: cdev

Offline dgtl

  • Regular Contributor
  • *
  • Posts: 183
  • Country: ee
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #4 on: June 17, 2017, 07:16:39 pm »
Vivado runs fine as well. At least 2017.1 and 2016.4 run as well as on Windows.
In case of Altera, the last time I used it (approx 5 years ago), the Linux one was more capable - the Windows one did not support the parallel port byteblaster anymore, linux one did. At that time it was handy - the newer jtag adapters were in use by colleagues and it was either wait or get another one ordered (and my machine happened to have serial port card with parallel port on it too). On both Altera ISE and Xilinx Vivado, the synthesis speed seems to be similar on both platforms, did not do any proper measurements though.
uC tools:
* nxp lpcxpresso / mcuxpresso run well on linux
* silabs (energy micro) stuff worked, too
* st system workbench has linux support, but I havent tried it myself (I use generic arm-gcc and my own scripts for stm32)
* cypress stuff is windows-only. Did not even work under wine. Runs well in vm (virtualbox). The uc us so complex (fpga-like reconfigurable peripherals), that without the vendors tools it would be almost impossible to do proper development ground-up. Even command-line-only tools to synthesize the hw and verilog sources for peripherals would be ok to have, but they don't seem to like this idea, instead forcing their gui on everybody.
* microchip (atmel) stuff was also windows-only. I have used generic arm-gcc and avr-gcc under linux without problems.

As said, just compiling stuff for ARM or AVR is not an issue at all under linux. You need a compiler and the register header file, that can be usually extracted from the vendors toolchain. Then you need the linker script, but that is simple to do. Finally you need the initialization code as the arm micros usually need a lot of initialization to be done by user code. This can be usually taken from vendors toolchain, alternatively it can be programmed manually but this takes a bit of work.
The programming / JTAG debug part is sometimes a little complicates as those micros do not have programming interface, instead via the JTAG the developer just uploads the program that runs on the micro and the data to flash and that program is executed then on the micro to write the data from ram to flash. As this little program comes with the programming tool, it needs to be written again and again for all tools. At least openocd supports a lot of ARM micros and this can be reused with different physical adapters, but this support usually is third-party developed, not from the vendor.
Apart from that, just grab a arm-gcc bare metal compiler, that is capable of the required cortex-m micro ISA and compile what you need.
 
The following users thanked this post: cdev

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #5 on: June 17, 2017, 08:01:07 pm »
There's a Linux version of Lattice Diamond.  Like all things Linux/USB related, YMMV
 
The following users thanked this post: cdev

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11235
  • Country: us
    • Personal site
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #6 on: June 18, 2017, 12:10:36 am »
I never had problems with Altera tools under Linux, especially after acquisition by Intel, when they just dropped that license requirement for free versions.

And I just got Lattice Diamond to work on Mint. It was not that hard, actually. I'm not sure what went wrong the first time I tried to do the same, and failed.
Alex
 
The following users thanked this post: cdev

Offline julian1

  • Frequent Contributor
  • **
  • Posts: 731
  • Country: au
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #7 on: June 18, 2017, 12:47:33 am »
For fpga, Lattice ice40, verilog compiler and p&r is just an apt-get install on debian.

Quote
apt-get install yosys
apt-get install arachne-pnr
apt-get install fpga-icestorm

 Demo: A fully open source flow for iCE40 FPGAs


For linux mcu, I like orange-pi pc and plus - anything based on Allwinner H3. Currently running headless debian - with mainline uboot, and mainline kernel. still need to wait for kernel 4.10 for ethernet patches to be accepted upstream, else you can patch 4.9.

http://linux-sunxi.org/Linux_mainlining_effort
 
The following users thanked this post: cdev

Offline cdevTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #8 on: June 18, 2017, 01:57:26 am »
Thank you for all this help!

I'm still indecisive about the FPGAs probably because the one that seems the most interesting to me is the cypress 5 lp series and its not Linux friendly.. but

(Mr. big spender here!) I did order an "STM32F103C8T6 ARM STM32 Minimum System Development Board"  which looks like an exceptionally good deal for a bit more than $2 - and I also got an

ESP8266 like the one in Daves recent video.. with the idea of hooking it up to some of my other household junk using unused  wifi access point that is so old it doesnt support wireless g so I dare not use it for actual internet but it will be fine for internet of thangs.

 "This is D1 mini, it is a mini WIFI board based on ESP-8266EX.
11 digital input/output pins, all pins have interrupt/pwm/I2C/one-wire
 supported(except D0)
 1 analog input(3.3V max input)
 a Micro USB connection" and two very cheap RTCs..  and two small super cheap 128x64 OLED displays in white.. Ive never done anything with a raw graphic display


A lot of potential fun for very little money..
« Last Edit: June 18, 2017, 02:07:36 am by cdev »
"What the large print giveth, the small print taketh away."
 

Offline TK

  • Super Contributor
  • ***
  • Posts: 1722
  • Country: us
  • I am a Systems Analyst who plays with Electronics
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #9 on: June 18, 2017, 02:14:15 am »
Beaglebone Black and Beaglebone Green work with debian embedded linux
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #10 on: June 18, 2017, 09:39:55 am »
interesting ... (but) not Linux friendly

Frankly I find this mind attitude a bit childish. If you are in business you know that you can cry as long as you want, at the end there are fields where linux is completely ignored by the industry, they have their reasons to do so, so you have to deal with it.

And what is your reaction? Oh, If it's not linux supported, but still very interesting as offered capabilities and features, then I won't use it as I as I care more in linux-friendly.

Is it your main priority? So here we are, and let's start looking for the last freaking alternative!

If you want to stay in business, be prepared to learn the little lesson: sometimes there are no alternatives since there are a lot of situations when you find something very interesting, useful, damn productive, and ... it's neither supported by linux nor it's opensource.

What will you do? Stay in your cave?
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #11 on: June 18, 2017, 09:58:29 am »
Cave is what they like

In today's world, you can play quite easy with both system on the same machine, taking the best that each one can offer using virtualization like VMware or VirtualBox, or even  dual boot, but those Richard Stallman fanboys refuse to accept a wider option even as a second platform, losing access to millions of products made just for that "evil" system who have the biggest availability of anything. Wanna play Psoc, no way to play on penguin, and Psoc is not alone, have a lot of powerful titles especially on engineering area, that runs only on windows. Why not at least set a Windows virtual machine  on linux and have access to the mainstream world


 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19491
  • Country: gb
  • 0999
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #12 on: June 18, 2017, 11:20:48 am »
I don't want to buy Windows and run Windows in a VM.
Are you sure you need to buy Windoze? Most PCs come with it pre-installed, so it's quite likely you already have a licence, whether you're using it at the moment or not. However if you've formatted the drive your machine I don't know how you can go about legally getting a copy.

If you built the machine yourself or purchased one with Linux pre-installed then that's a different matter, although it's still possible you already have a different machine with a Windows licence, which although M$ says isn't transferable in the EULA, I don't believe that clause is legal (assuming you actually care) but I'm not a lawyer.

Another thing you might want to try is a free Winblows 10 VM which M$ originally released to enable developers to test thie Edge browser.
https://betanews.com/2015/08/18/microsoft-releases-free-windows-10-virtual-machines/
https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
« Last Edit: June 19, 2017, 08:25:03 am by Hero999 »
 

Online NorthGuy

  • Super Contributor
  • ***
  • Posts: 3138
  • Country: ca
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #13 on: June 18, 2017, 02:14:30 pm »
IMHO, Microsoft went way over board in restricting users in Windows 10. Not to mention mandatory spying and backdooring. I don't think this has a chance to change.

Therefore I'm keeping Windows 7, but I also have plans to migrate to Linux. I already have several Linux machines, I gradually migrate all my workflows to Linux. I think 5-6 years from now it'll be all Linux, except for testing boxes.

I don't think I'm the only one who's not going to accept Windows 10. In the past 6 months, the market share of Windows 10 hardly ever grew, and this is despite the fact that all new computers are sold with Windows 10:

https://www.netmarketshare.com/operating-system-market-share.aspx?qprid=11&qpcustomb=0

Of course, Linux market share in the overall PC market is only 2%, but this includes all the housewives and bureaucrats. If you look at engineers only, I think the Linux share is much greater and I think it's growing.

It is enough software that can run on Linux, and it is stable enough. If something doesn't run on Linux, the hell with it.
 
The following users thanked this post: evb149

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #14 on: June 18, 2017, 05:35:58 pm »
Win 10 grew because of new machines, not so much from upgrades.  There is no good reason to upgrade from Win 7 but there may be from Win 8 and 8.1 (I never used them).

Still, in about a year, Win 10 swamped, by a factor of at least 12 (probably closer to 25), the number of Linux desktops and Linux has been around for 25 years!  Linux has been around but, really, nobody cares.

Linux doesn't even have enough desktops to be listed as a separate category like Mac OSx.  It is just lumped with 'other'.  And the percentage of 'other' is dropping!

In 2020, Win 7 will no longer be supported by Microsoft.  There will be a good reason to upgrade at that point.

I have Linux on  3 machines and I use them from time to time as servers or for writing code.  I like using gedit and make.  Clean and simple!  OTOH, I am kind of fond of Eclipse and I have it running on both flavors.  I also installed the bash shell under Win 10.  It comes in handy from time to time.
« Last Edit: June 18, 2017, 05:38:46 pm by rstofer »
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26891
  • Country: nl
    • NCT Developments
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #15 on: June 18, 2017, 06:24:02 pm »
Linux doesn't even have enough desktops to be listed as a separate category like Mac OSx.  It is just lumped with 'other'.  And the percentage of 'other' is dropping!
For generic computing that is true but Linux is definitely growing for engineering use and hence manufacturers of typical engineering software have Linux versions available for a good reason (= it makes them money).
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #16 on: June 18, 2017, 06:41:46 pm »
Linux doesn't even have enough desktops to be listed as a separate category like Mac OSx.  It is just lumped with 'other'.  And the percentage of 'other' is dropping!
For generic computing that is true but Linux is definitely growing for engineering use and hence manufacturers of typical engineering software have Linux versions available for a good reason (= it makes them money).

Even then, the manufacturers have a hard time matching all distros.  I remember back about 12 years ago where Xilinx ISE would run on RedHat Enterprise (I believe) but was not guaranteed to run on any other distro.  Enterprise cost money and I was using RedHat Workstation.  I didn't even try...

So, these days, the manufacturers will pick a popular distro like Debian (maybe Ubuntu) and that's the incantation they target.

I used to have a huge problem with my NVIDIA drivers and every time the kernel changed, I had to recompile (or whatever was going on) the driver code to match the new headers.  It seemed like the kernel was changing weekly and this NVIDIA thing was a huge PITA.  I just quit upgrading the kernel.

You're right, though, the manufacturers wouldn't bother writing a Linux variant if they didn't think there was a market out there.  They want to sell chips!

Universities tend to favor Linux (and anything else that is "free") and new engineers come from universities.  Of course the companies are going to target this segment.  Look at the student discounts on Adobe software.  Now I see they have Cloud versions that I could actually afford!

Autodesk, not so much.  Maya costs $185/month!
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #17 on: June 18, 2017, 07:54:37 pm »
Psoc is not alone, have a lot of powerful titles especially on engineering area

Exactly!

Protel/Altium
SolidWorks
TinaDesign
Rhinoceros
VisualDSP++

Just to list a few Windows-only products I need.
 
The following users thanked this post: ebclr

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #18 on: June 18, 2017, 08:22:59 pm »
I think 5-6 years from now it'll be all Linux

From my point of view it doesn't care which-OS, as the OS is just a tool for me. So, if they migrate all the software I need onto linux, then I will have no problem with it, but currently I am in the situation when I still see dependencies, there are applications which are available ONLY for windows, therefore I still take a Windows machine on hands instead of wasting my time in the silly attempts to workaround the problem.

Dual boot laptop. I have recently found I can access the linux partition from Windows through VirtualBOX. This, combined with MabaXterm, is extremely productive.
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26891
  • Country: nl
    • NCT Developments
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #19 on: June 18, 2017, 08:38:17 pm »
Just use Virtualbox and you can have both Windows and Linux running simultaneously while sharing files over the network (which is internal so extremely fast).
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline timb

  • Super Contributor
  • ***
  • Posts: 2536
  • Country: us
  • Pretentiously Posting Polysyllabic Prose
    • timb.us
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #20 on: June 19, 2017, 12:53:54 am »
Just use Virtualbox and you can have both Windows and Linux running simultaneously while sharing files over the network (which is internal so extremely fast).

Exactly. I use VMWare on OS X to run various Linux and BSD distros (the install sizes can be so small that I can have a separate VM for each build environment), plus Windows 7 (for modern stuff like DipTrace and PSoC Creator) and XP (for older software).

I keep all my VMs on a USB3 connected 200GB SSD, so it's fast. VMWare can share any folder/drive/network share directly between the host and guest, so working with files between VMs is cake.

There's so much Windows only engineering software that I would be severely limiting myself if I didn't use a Windows VM.

I bought a license for XP Pro and 7 Pro when they came out, but have since misplaced or lost the license keys, so I ended overriding the default VMWare BIOS.rom file with a ROM from Lenovo that contained SLIC tables and then just used a activator and matching key. Only took me a few seconds and I didn't have to bother with 7 phoning home for the activation and all that nonsense.

(And frankly, even if I didn't own a legitimate copy of 7 I wouldn't feel bad about that, as I've given more than enough money to MS over the years. I bought a copy of Windows ME and Windows 8, so they owe me! XD)
Any sufficiently advanced technology is indistinguishable from magic; e.g., Cheez Whiz, Hot Dogs and RF.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #21 on: June 19, 2017, 09:38:15 am »
Just use Virtualbox and you can have both Windows and Linux running simultaneously

It's better accessing linux files from a native ext3 partition. VirtualBox has no documentation about it but it's possible and it'safer because if Windows crashes you won't have a lot of chunk which are still stored in the disk-cache. Having them parked in RAM is the typical solution used by VirtualBox to handle its virtual disks.

In short: VirtualBox is great, but accessing a physical partition is better.

VirtualBox also has a few problem with USB-endpoints, therefore when I have to develop something on the usb bus, I prefer shutting-down Windows and reboot the machine from linux.

while sharing files over the network (which is internal so extremely fast).

I do it, I share my files over CIFS (SAMBA) from the laptop to a dedicated server which also offers NFS and sshfs. I am fine. CIFS from Windows to Linux suffers some timestamp issue (as well as it requires a fine tuning when you have to mount it from linux), not a critical problem, just annoying.
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #22 on: June 19, 2017, 04:09:27 pm »
As long as LLVM/clang, GCC or SDCC work for a target microcontroller and a Linux-based programming and/or debugging solution exist, it works under Linux. In fact the list below covers both Linux and Apple macOS.

PlatformToolchainDebugger/Programmer HardwareDebugger/Programmer SoftwareIDE (optional)
ARMGCC or LLVM/clangSEGGER J-LinkSEGGER J-Link or OpenOCDEclipse CDT
ARM Cortex-MGCC or LLVM/clangCMSIS-DAPOpenOCDEclipse CDT
8-bit AVRAVR-GCCAVRISP mkII or Atmel ICEavrdude (program only)Eclipse CDT
8-bit AVRAVR-GCCAtmel ICEavariceEclipse CDT
8-bit PICxc8 or SDCCPICkit 3MPLAB XMPLAB X
16-bit PICxc16PICkit 3MPLAB XMPLAB X
32-bit PICxc32PICkit 3MPLAB XMPLAB X
32-bit PICxc32SEGGER J-Link (v9)SEGGER J-LinkMPLAB X
32-bit PICMIPS-GCCSEGGER J-Link (v9)SEGGER J-LinkEclipse CDT
MSP430MSP430-GCC??? (the whatever tool came on my Launchpad)OpenOCD?Code Composer Studio?
STC 8051SDCCUSB to UART adapterstcgal (program only)Eclipse CDT
8051SDCCMiniPro TL866miniproEclipse CDT

On the FPGA front I only have experiences in Altera. Their Quartus line of tools works under Linux.

Most IoT boards I know off either uses some microcontroller listed above, or itself runs Linux. If the board runs Linux itself there will certainly be cross compiling toolchain available, and usual cross compiling development process follows.
 

Offline timb

  • Super Contributor
  • ***
  • Posts: 2536
  • Country: us
  • Pretentiously Posting Polysyllabic Prose
    • timb.us
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #23 on: June 19, 2017, 10:50:41 pm »
Just use Virtualbox and you can have both Windows and Linux running simultaneously

It's better accessing linux files from a native ext3 partition. VirtualBox has no documentation about it but it's possible and it'safer because if Windows crashes you won't have a lot of chunk which are still stored in the disk-cache. Having them parked in RAM is the typical solution used by VirtualBox to handle its virtual disks.

In VMWare you can disable the virtual disk cache; I'd imagine VirtualBox has a similar option.

I always disable the cache, as I find it uses a lot of RAM on the host, which slows down other applications you might be running, plus it's dangerous if you have a system crash or something (as you mentioned). I find that if you're running the guest from a SSD, disabling the write cache only slows down disk writes by less than 10%, which isn't that big of a deal. (Though if you're using a traditional hard drive it can slow writes down by over 60%.)
Any sufficiently advanced technology is indistinguishable from magic; e.g., Cheez Whiz, Hot Dogs and RF.
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #24 on: June 20, 2017, 02:26:18 am »
Speaking of Linux, is there any way to put a MCU development environment into Android yet?
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #25 on: June 20, 2017, 07:34:41 am »
In VMWare you can disable the virtual disk cache; I'd imagine VirtualBox has a similar option.

Umm, it seems it's not really possible as VirtualBox still uses disk-cache internally. Also I have experimented catastrophic disasters when Windows is used in NTFS-compression mode. A colleague wanted to have the option enabled, and on a crash he lost the whole virtual hard drive. Gone completely corrupted. So, NTFS-compression is not a bad idea, I won't recommend it.


btw, the point was: why should I have to use a virtual hard drive when I can access a physical partition which makes me able to have the same rootfs usable in dual boot?

There are programs where you want to be more comfortable or need to access the GPU, or the real hardware without having to deal with a virtualizer, therefore if you share a partition you are already ready, since you can reboot the machine into linux and files will be already there.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #26 on: June 20, 2017, 09:54:31 am »
The concern is if you screwed up, you can recover a VM from a snapshot.

Recover what? Also why should I have to duplicate the rootfs, which requires effort in order to have things compiled, installed, and configured (usually also hacked) in the proper why?

No sense.

With physical drive, that's hard to do.

Code: [Select]
nc blablala | dd if=hd-image of=/dev/sda*

Does the job.

Note the physical hd-image (raw) file can stay on a remote server as well as on a USB-stick.

A VM doesn't occupy the entire allocated space.

That's another annoying problem you have with virtualdisks as "sparse" doesn't work. Also, why should I have to waste harddrive space on my Windows's partition? *WHEN* I'd better have a native linux partition on the same harddrive which
1) can be accessed more safely from the virtualizer (directly access uses the LBA api)
2) can be accessed from a linux kernel without any-software layer under the hood
3) can be accessed from another machine if I hot-swap the harddrive

Again, no sense.

For GPU passthrough, you can do that with VT-d if you have 2 GPU cards, one for host, one for VM. VMWare esxi allows you to do this, so does unraid.

On XP the GPU support sucks, and can do professional job from MobaXterm? Like video editing?
« Last Edit: June 20, 2017, 10:09:47 am by legacy »
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26891
  • Country: nl
    • NCT Developments
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #27 on: June 20, 2017, 11:21:09 am »
The concern is if you screwed up, you can recover a VM from a snapshot.
Recover what? Also why should I have to duplicate the rootfs, which requires effort in order to have things compiled, installed, and configured (usually also hacked) in the proper why?

No sense.
It makes perfect sense. Once the system is setup you make a snapshot and do that every time you make a big change to the system. When things go bad you restore the last-known-good snapshot. Works like a charm. I'm using XP in a VM and when it starts to behave bad I simply restore the snapshot and all is well again.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #28 on: June 20, 2017, 01:41:39 pm »
"My points came from my own experience, which I'm NOT a heavy user of VM."


Vmware is extremely easy to use, and very reliable, can be used in both direction Linux <> WIN , WIN <> Linux , and  if you are a MAc guy, have fusion that is the Mac version of VMware.   

Vmware is the multimeter of software, there you can make records rollback, OS, Testing in different environments, software , networks , Control versioning, is simple a mandatory tool if you are involved in TI or software development   
« Last Edit: June 20, 2017, 01:46:42 pm by ebclr »
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #29 on: June 20, 2017, 01:45:02 pm »
" Linux is definitely growing for engineering use"    :-DD

From 0.2% to 0,4% market share will be doubled  :box:

 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #30 on: June 20, 2017, 02:15:52 pm »
" Linux is definitely growing for engineering use"    :-DD

From 0.2% to 0,4% market share will be doubled  :box:
A lot of new developments of software have been done on macOS... Well it is not Linux but it is still UNIX. And things may be as simple as recompile and run from macOS code base.
 


Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #32 on: June 20, 2017, 03:11:12 pm »
Same on Windows

https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/
Not quite. I have much more success trying to move code between Linux (Ubuntu) and macOS. But whenever Windows gets involved it becomes troublesome. Especially when hardware access is involved, like serial ports or USB.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #33 on: June 20, 2017, 03:45:03 pm »
Are you kidding, Windows just love serial ports, just need to remember that ports in windows are COM ports like COM1 ,COM2 not files
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #34 on: June 20, 2017, 04:17:53 pm »
Are you kidding, Windows just love serial ports, just need to remember that ports in windows are COM ports like COM1 ,COM2 not files
The termios are vastly different between UNIX and Windows. And don't get me started on the access permissions. Oh and you did not solve the USB problem.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #35 on: June 20, 2017, 04:22:03 pm »
What is the USB problem?

http://libusb.info/

 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #36 on: June 20, 2017, 04:31:53 pm »
What is the USB problem?

http://libusb.info/
You go ahead and try get a random libusb driver signed. Keep in mind that since Windows 8 it takes the user a few hoops to disable the mandatory driver code signing.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #37 on: June 20, 2017, 04:36:39 pm »
You have at least 3 easy options

1) The drivers is available and signed if the supplier is smart enough to care about 90% of the market

2) You can easily tell windows to not enforce the rule

3) You sign the driver yourself

 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #38 on: June 20, 2017, 04:43:38 pm »
You have at least 3 easy options

1) The drivers is available and signed if the supplier is smart enough to care about 90% of the market
Who is the vendor in the first place? Think from an end user's point of view.
2) You can easily tell windows to not enforce the rule
Significant numbers of loops and hoops have to be through. Think from an end user's point of view.
3) You sign the driver yourself


Can an average Joe with a computer be nothered to do this? Think from an end user's point of view.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #39 on: June 20, 2017, 04:54:49 pm »
You are right, will be much easier for the average Joe learn Linux, open the terminal, install the device and  the software, Linux is made for Joe six pack, Windows is for PHD's only
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #40 on: June 20, 2017, 04:59:36 pm »
You are right, will be much easier for the average Joe learn Linux, open the terminal, install the device and  the software, Linux is made for Joe six pack, Windows is for PHD's only
Wrong. Windows device driver development is for megacorporations only. For average Joe there is Android (and in some cases iOS) so you got UNIX there.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #41 on: June 20, 2017, 05:27:19 pm »
EagleCAD needs EC_get_builtin_curves, defined by OpenSSL, so EagleCAD depends on OpenSSL, and it makes sense.

UAU  :-BROKE
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #42 on: June 20, 2017, 05:33:17 pm »
At least on Windows you can simply provide a local dll, problem solved.

On linux  :palm: :palm: :palm:

I am going to fix && recompile { dev-libs/openssl, dev-libs/openssh } ebuilds, just to include what is required by EagleCAD, with the hope (finger crosses) that it won't break something.
 
The following users thanked this post: ebclr

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26891
  • Country: nl
    • NCT Developments
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #43 on: June 20, 2017, 05:47:00 pm »
The fault is in trying to compile from source. Just look for a pre-build binary.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #44 on: June 20, 2017, 06:08:30 pm »
The fault is in trying to compile from source. Just look for a pre-build binary.

Do you really think I'd waste my time compiling stuff if I was allowed to use pre-build binaries? A bit naive, don't you think?

Now there is another freaking problem: Eagle needs some potentially patent encumbered code in a library that it depends on, and I am not sure *IF* I am authorized to recompile SLL with EC  :palm: :palm: :palm:


 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #45 on: June 20, 2017, 11:31:07 pm »
At least on Windows you can simply provide a local dll, problem solved.

On linux  :palm: :palm: :palm:

I am going to fix && recompile { dev-libs/openssl, dev-libs/openssh } ebuilds, just to include what is required by EagleCAD, with the hope (finger crosses) that it won't break something.
This is a trick very well documented by Apple but it works on all UNIX: rpath.
 
The following users thanked this post: blueskull

Offline alm

  • Super Contributor
  • ***
  • Posts: 2862
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #46 on: June 21, 2017, 09:32:13 am »
Or do what many closed source applications do, and launch via a shell script which sets LD_LIBRARY_PATH. You can also do this if you do not have the source to the binary.

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #47 on: June 21, 2017, 09:45:38 am »
Or do what many closed source applications do, and launch via a shell script which sets LD_LIBRARY_PATH. You can also do this if you do not have the source to the binary.
rpath is much easier to use, if you have the source to the library and binary

It is extremely well documented by Apple because of the App Store distribution model: one portable container and one portable container only, no installer or putting libraries elsewhere allowed. Here is the typical layout of an application with libraries embedded (in Apple vocabulary libraries are called Frameworks:)
Code: [Select]
/Applications/MyApp.app/
    Contents/
        MacOS/MyApp (the actual executable)
        Info.plist
        Resources/
            MainWindow.nib (resources - this is just an example)
            AppIcon.icns
        Franeworks/
            MyFramework.framework/
                MyFramework (the actual dynamic library file)
                Frameworks/ (Dynamic library files can carries even more library files this way.)
In this case, the MyApp binary links to MyFramework dynamic library using a path like this:
Code: [Select]
$rpath/../Frameworks/MyFramework.framework/MyFramework
 

Offline alm

  • Super Contributor
  • ***
  • Posts: 2862
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #48 on: June 21, 2017, 11:12:20 am »
Absolutely, rpath is superior if you have the source. The LD_LIBRARY_PATH can trick getting help third-party stuff to run.

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #49 on: June 21, 2017, 01:23:32 pm »
As expected I am not authorized to change ssh  :palm: :palm: :palm:

EagleCAD v6.* is not affected.
EagleCAD v7 is affected, as it requires EC

Therefore I created a local library which contains EC, then I renamed /opt/eaglecad-v7.*/bin/eagle (the binary ELF application) into eagle-app, and created a wrapper with the name /opt/eaglecad-v7.*/bin/eagle

The wrapper uses app-admin/chrpath which modifies the rpath of the ELF executable.

The local library is within the same path. Problem solved.
 

Offline cdevTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #50 on: June 24, 2017, 08:22:24 pm »
Is there any chance that the manufacturers could write their IDEs in Java so it could be portable from one hardware platform to another?

You would think they would want to, with the popularity of Chromebooks, etc, in the educational arena.
"What the large print giveth, the small print taketh away."
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: What PSoCs, MCUs/MCPUs , FPGAs and IoT boards are Linux friendly?
« Reply #51 on: June 25, 2017, 03:53:20 am »
You don't even have to "write much" if you're wanting to make a high quality IDE.

Eclipse is based on JAVA and is open source and cross platform and has not only a "good" IDE but also tons of vertically integratable IDE / toolchain / development components.  Code editors.  Highlighting.  Reformatting.  Refactoring.   Auto completion.  Build tool integration.  Build configuration / management.  Model driven design tools.  Documentation tools.  SCM integration tools.  Reporting tools.  UML.  Diagramming.  etc. etc.  You could probably write a ton of NON programming related apps in the Eclipse framework and still get a lot of benefit from their vast UI and system tool arena.

Similar for NetBeans. (JAVA)

Then there's the CLR/NET framework which is sort of semi open source / portable and there are some integrable IDEs / source code editors written for it that could be extended.

Then there are things like (don't laugh) Emacs which is highly portable and has good code editing and build integration stuff etc.

Then you have the open toolchain stuff, GCC, LLVM/CLANG, LIBC, various small LIBC versions, GDB, etc.

Then you have the whole "web frameworks" where you can generate your tool as a MVC type approach and have your back end logic be portable and your presentation stuff handled entirely or mostly by active (or not) web based controls that just need one of the major browser engines to handle UI chrome / presentation / layout / rendering / DOM stuff.  Done.  You don't HAVE to use these to make cloud based solutions.  There's nothing stopping you from running the same code locally as an application environment.  So you design it once and have a cloud version AND a local portable installable version.

Then you've got nice portable frameworks like QT that can be used to make UIs that run on anything from a smartphone to a desktop.

I wonder how the MS Windows KDE version is doing these days?  Anyway...

I'm almost at a loss as to how / why in this day and age anyone writes anything that ISN'T cross platform portable with only very modest effort these days.  And even on a single platform you've got to be mindful of locales, different screen resolutions / sizes, different input devices / methods, etc. so your "extra effort" to handle a tablet vs. a netbook vs. a laptop vs. a desktop vs a browser is pretty small if you're doing it right.

Heck 90% of the time I don't necessarily want my IDE to dictate my code editor / browser choice anyway so they could save the effort and just make it plug in / interact nicely with whatever you run -- emacs / Visual Studio / sublime / vim / whatever and there you go, one less problem for developers and users.

And of course there's NO excuse for the *compilers* and other code generation / toolchain stuff not to be 100% standards compliant portable code so THAT shouldn't matter.

Debugging interface is a bit less ideally portable but if you support JLINK's libraries that are cross platform that'll handle a lot of cases.  Similar OpenOCD and a couple other ones.  And ethernet proxy based of course.  Basically not a problem if you do it right.

Is there any chance that the manufacturers could write their IDEs in Java so it could be portable from one hardware platform to another?

You would think they would want to, with the popularity of Chromebooks, etc, in the educational arena.

From the proprietary point of view, assuming the company absolutely does not want to fess up a single line of the code to the community, it is still possible to create a portable IDE or toolchain using cross platform open source projects:

* LLVM/clang is licensed under MIT license. A company can add code into this and release the resulting code under a proprietary license without source code. LLVM/clang have built-in assembler and linker so there is no need to find an alternative to those components.
* Eclipse allows proprietary plugins to be included without extending EPL to it, so a company can use Eclipse-based IDE for their chips.
* There are multiple libc implementations licensed under MIT, BSD or ISC licneses. The company can choose one and modify it as needed to build theirown C standard library.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf