Skip to content

Tag: embedded

How to deploy files to /boot partition with Yocto

I’m trying to deploy some binary files to /boot in a Yocto image for RPi CM3 but it deploys them to the wrong location. The files are deployed to /boot in the / partition of the final image, but not to the /boot partition. So they are not available at boot time. I already googled and studied the kernel …

Segmentation fault when maping /dev/mem

I’m trying to mmap a memory from my FPGA on a linux running on my Zedboard SoC. I can read the contents correctly using devmem on the command line, but when trying to read it through C I get a segmentation fault. The barebones code shown below throws the segmentation fault when trying to print the conte…

Buildroot: install and build the toolchain only

I want to install and build just the toolchain for my Buildroot project. make help suggests that the command make <options> toolchain should work; however, running that command simply returns Nothing to be done for ‘toolchain’. and output/host is never created. Answer You first have to confi…

How do I set up a embedded MySQL client in Qt

I’m trying to set up my embedded Linux machine as a MySQL client, in order to connect to a external MySQL server (running on a remote machine). sqlite is not an option. I understand, thanks to Basile Starynkevitch that I have to use libmysqlclient (because that is the only library to run such a connecti…

mmap does not work as expected (return random 0xdeadbeef)

I am writing c++ on linux7arm and the physical address is referring to a memory block (that can be accessed/changed by other peripherals) when I map a page of physical address space to the local address space and try to read it, it works fine and show the expected data BUT not all the time. if I write a scrip…

make implies new Extracting

I created a Buidroot package with the both following files : .mk Config.in I succedded in compiling the package by using the above .mk file. However, because I wanted to modify the source code into output/build I note the following behavior (After removing only .stamp_built) : I obtain a new Extracting, Patch…