embedded-linux

yocto fails to build images for intel edison in ubuntu 17.10(64 bit)

人盡茶涼 提交于 2019-12-11 16:33:22
问题 I am beginner to yocto. I am trying to build edison images on ubuntu 17.10. I am following this link. But It fails in native autmake. I have linked recipe ERROR over here. RE-EDIT I have made changes for removing automake error, followed by patch. Now it's failed in native ncurses-5.9. Log file is attached Log_file. Thanks, Pritam 回答1: Something wrong with generation man docs for automake in the command line: : && /bin/mkdir -p doc && { PATH='/home/prityaa/documents/boards/intel/edison/tools

Memory-Debuging: How to get locked pages information in user space/kernel space in linux

ぃ、小莉子 提交于 2019-12-11 15:32:05
问题 Is there any way to get locked pages(virtual memory pages) information in user space/kernel space in linux . I want to know details like: Who locked the pages ? how many pages are locked ? Process name who locked the page ? Also let me know the memory debugging techniques in kernel space as well as user space. 回答1: For each page in memory the is flag assigned to it, Virtual memory page is locked using mlock , mlockall() etc API, it assigned the VM_LOCKED flag to page. Two options to know the

Handle GPIOs in User space for Embedded Linux ARM9

随声附和 提交于 2019-12-11 15:13:50
问题 I have to interface my GSM module with the AM1808 based on ARM9. I have assigned all the GPIO pins to the Da850.c as well as mux.h files. I successfully created a uImage and inserted that image in my flash. I need to handle some of that GPIO from User application. I know that we can handle the GPIO from the Kerel space but i need to handle from the user space. As for example I have assigned a GPIO for power key to GSM module. I need to change the pin means (HIGH or LOW) through application.

YOCTO : Modify Linux OS features by editing it's device tree

我只是一个虾纸丫 提交于 2019-12-11 15:03:36
问题 I am using YOCTO project SUMO release to Build Linux kernel for my embedded board. I want to customize the features of my board. They told me to edit the device tree file. My question is what is the path of this DT file ? And when i modify it, I must rebuild all the kernel using Bitbake ? Thanks. 回答1: Create the following tree in your layer meta-custom: recipes-kernel/ └── linux ├── linux-at91 │ ├── 0001-my-custom-dt.patch └── linux-at91_%.bbappend In linux-at91_%.bbappend , put

Linux register read arm i.mx257 from userland - devmem not working

寵の児 提交于 2019-12-11 14:09:59
问题 I'm currently working on a i.mx257 platform and want to read some peripheral registers (the iomux register to be specific) to see how it is configured or if it is set right. I've read about the devmem from busybox and devmem2, too. Tried both and both get an error. Currently there the custom board is running linux kernel version 4.6.0-rc7 from the meta-fsl-arm yocto meta package. The system is built with yocto. root@system /]#./tmp/devmem2 0x43fac190 /dev/mem opened. Unhandled fault: external

Getting EINVAL when trying to write to mtd device

陌路散爱 提交于 2019-12-11 12:59:47
问题 I am referring to the code in this answer. I added error handling though. The open() erase and the read() all perform without error and the 20 bytes that I read all are 0xff . However, when trying to write the 20 bytes from the data[] array, I get an EINVAL errorcode from the write() function. What could be the cause of the problem? I did erase the memory before trying to write... 回答1: I have seen your original post. I have the same problem recently, and I found that the write size is

How to set input with image for tensorflow-lite in c++?

浪子不回头ぞ 提交于 2019-12-11 12:44:46
问题 I am trying to move our Tensoflow model from Python+Keras version to Tensorflow Lite with C++ on an embedded platform. It looks like I don't know how set properly input for interpreter. Input shape should be (1, 224, 224, 3). As an input I am taking image with openCV, converting this to CV_BGR2RGB. std::unique_ptr<tflite::FlatBufferModel> model_stage1 = tflite::FlatBufferModel::BuildFromFile("model1.tflite"); TFLITE_MINIMAL_CHECK(model_stage1 != nullptr); // Build the interpreter tflite::ops:

Using DMA API in linux kernel but channel is never available

邮差的信 提交于 2019-12-11 11:12:39
问题 I am trying to use dmatest.c to test DMA in intel xeon server and regular laptop with i7 processor. It is never been able to get a channel - I found this out by debugging the dmatest.c itself. Line 854 below is always executed (I put my own printk there). Is there anything I should do to get this API to work before executing (such as dma modules or anything?) Or, do I use wrong API set? On the Xeon server, I did research and it has ioatdma.ko module that can be loaded. modprobe ioatdma and

Android: pcm_open failed cannot open device '/dev/snd/pcmC0D1p'

我怕爱的太早我们不能终老 提交于 2019-12-11 10:01:17
问题 A custom piece of hardware is running Android with the audio drivers installed. An simple Android app is created to play some audio using media player, the app is tested on a emulator so it works for sure. When running the device on the hardware, error message from logcat displays the following many times: 01-01 01:09:16.355 2792-3186/? E/audio_hw_primary﹕ pcm_open(PCM_CARD) failed: cannot open device '/dev/snd/pcmC0D1p': No such file or directory 01-01 01:09:16.375 2792-3186/? E/audio_hw