Federico Fuga

Engineering, Tech, Informatics & science

Adding a user space "power switch" to your embedded linux

18 Jul 2019 08:25 +0000 Embedded Linux
Is is always amazing to see how some very obvious features are missing from the linux kernel. Yesterday, for a project I am developing for a Dutch firm, I come across one of these “very obvious feature”: the option to switch on and off a device in the embedded linux board we’re using. The problem seemed to be quite frequent: you have a device connected to the internal USB bus (a wifi module, maybe? Continue reading

Configuring Ubuntu to deal with an ARM board with U-Boot via USB

13 May 2019 07:40 +0000 Embedded Linux uboot ubuntu
Abstract We have a board on which an AllWinner ARM processor is running Linux. The bootloader is U-boot and we have to use the USB port to flash it. When flashing the device for the first time, after loading the bootloader via FEL protocol, we need to use tftp to load the SPL (Secondary program Loader) image and the uboot version for use with the spl. Unfortunately, a couple of issues in the default Ubuntu configuration prevent us from doing this apparently simple operation in a straight way, and we need to tweak some system configuration file. Continue reading

Vmware Player is slow under Ubuntu 16 host, Part 2.

21 Oct 2016 17:55 +0000 Linux vmware Windows
So it seems the issue I talked about some week ago, wasn't fixed. Windows is still slow, the hard disk always working at 100% load. Not so slow, because the fix explained in my previous post seems to mitigate the problem, but still slow. Since I was using many Virtual Machines on that box without any problem since longtime, well before my upgrade to Ubuntu 16.04, I guessed the problem was the kernel. Continue reading

Vmware Player is slow under Ubuntu 16 host

10 Oct 2016 17:57 +0000 Linux vmware Windows
So you just upgraded your Ubuntu box and found that all your VmWare Windows Boxes are extremely slow? The symptom is your Windows task manager showning 100% usage of your disk, and the WIndows Instrumentation showing very long lags, says, up to 2.5seconds (yes, seconds) to respond to a disk request. This makes the box practically unusable. Perhaps your vmware logs are shoing a lot of lines like scsi0:0: Command READ(10) took 2. Continue reading

The dbus-cpp Library, introduction

28 Nov 2015 22:33 +0000 c++ Code Linux
While working on a bluetooth based embedded device, I needed to deal with the somehow infamous dbus. [DBus](https://wiki.freedesktop.org/www/Software/dbus/) and [Bluez5](http://www.bluez.org/) have a very steep learning curve, and if you are don't have access to either [Qt framework](https://www.qt.io/) or [glib framework](https://developer.gnome.org/glib/), you have indeed a problem. Glib are very complex C libraries that mimick some of the built-in feature of the C++ language, while on the other hand, Qt are very vast and sometime a big overkill. Continue reading

Fixing problems with Ubuntu 13.04 and VmWare Tools

21 Aug 2013 09:51 +0000 Linux vmware
Installing Ubuntu on my VmWare fusion box has never been so difficult as it was last weeks, when I needed to have it ready as soon as possible. Though 12.04 LTS has been proved to be a great choice when you need a solid rock linux box, latest Ubuntu boxes are preferable, on my opinion, for development purpose. This way, switching to the latest, bleeding edge kernel hasn’t gone well for the people at VmWare. Continue reading