embedded-linux

Can't boot basic OpenEmbedded-Core on Freescale i.MX28

折月煮酒 提交于 2019-12-05 23:34:12
问题 I've been trying to build and boot OpenEmbedded-Core on the evaluation kit for Freescale's ARM i.MX28, using the Freescale ARM layer for OpenEmbedded-Core. Unfortunately, I can't find a basic "Getting Started" guide (though there is a Yocto getting-started guide). Unfortunately, I haven't been able to "get started", to the point of successfully booting to a basic command prompt on the board's debug serial port. Here is what I've been able to piece together, and as far as I've managed to get

What is dev_id parameter in request_irq?

北城余情 提交于 2019-12-05 17:15:43
In the function declaration int request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_regs *), unsigned long irqflags, const char *devname, void *dev_id); Is dev_id an 'in' parameter or an 'out' parameter ? Where do we get this number from ? Dev_id is an input argument and must be globally unique. Normally the address of the device data structure is used as the Dev_id . It has value NULL if the interrupt line is NOT shared. It holds relevance only when the interrupt line is being shared. When it is shared, this parameter uniquely identifies the interrupt handler on the

How do you get a struct device for a Linux character device

时光毁灭记忆、已成空白 提交于 2019-12-05 14:36:53
I have a Linux kernel module that implements a character device driver. I've read through Linux Device Drivers and followed several tutorials. At this point, I have a simple module that provides open , release , and write file operations. I'm trying to use the Generic DMA Layer to create a streaming DMA mapping. I'm confused by the following excerpt from LDD: Many of the functions below require a struct device . This structure is the low-level representation of a device within the Linux device model. It is not something that drivers often have to work with directly, but you do need ot when

Linux File IO - Multithreading performance - writing to different files

允我心安 提交于 2019-12-05 11:30:50
I'm currently working on an audio recording application, that fetches up to 8 audio streams from the network and saves the data to the disk (simplified ;) ). Right now, each stream gets handled by one thread -> the same thread also does the saving work on the disk. That means I got 8 different threads that perform writes on the same disk, each one into a different file. Do you think there would be an increase in the disk i/o performance if all the writing work would be done by one common thread (that would sequently write the data into the particular files)? OS is an embedded Linux, the "disk"

Notify gpio interrupt to user space from a kernel module [closed]

痴心易碎 提交于 2019-12-05 09:33:17
Closed . This question is opinion-based . It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed 6 years ago . I have a code which detects GPIO interrupt in a kernel module. Now,I am looking for a mechanism to notify user space upon detecting gpio interrupt from kernel module. Any example / code snippet with certain advantages/disadvantages over different options? I would appreciate your response. Take a look at the GPIO keyboard driver ( drivers/input/keyboard/gpio_keys.c ). It is a

How to do a remote debug using GDB from Qt Creator?

自作多情 提交于 2019-12-05 09:26:31
I'm working on a Embedded Linux application and I would like to use GDB to debug it. The problem is that, although the Kit configuration seems fine (the Debugger option is correctly pointed to the GDB correspondent to the device's GCC - device is a Linux ARM), when I ask Qt Creator to run in debug mode it returns an error in the "Application Output": sh: gdbserver: not found This seems strange since, as I sad, the configuration is fine and no error about that is reported by Qt Creator in any moment before starting debug mode. I did some research on the web to find which was the exact steps to

Can ARM qemu system emulator boot from card image without kernel param?

心已入冬 提交于 2019-12-05 08:54:36
I've seen a lot of examples how to run a QEMU ARM board emulator. In every case, besides SD card image param, QEMU was also always supplied with kernel param, i.e.: qemu-system-arm -M versatilepb \ -kernel vmlinuz-2.6.18-6-versatile \ #KERNEL PARAM HERE -initrd initrd.gz \ -hda hda.img -append "root=/dev/ram" I am palying with bootloaders and want to create my own bootable SD card, but don't have a real board yet and want to learn with an emulated one. However, if run as described above, QEMU skips bootloader stage and runs kernel. So what should I do to emulate a full boot sequence on QEMU so

Dependency failure while installing libboost-all-dev on ubuntu core 14.04

拈花ヽ惹草 提交于 2019-12-05 06:58:42
Does someone know why I get the following after "sudo apt-get install libboost-all-dev": Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libboost-all-dev : Depends: libboost-context-dev but it is not going to be installed Depends: libboost-coroutine-dev but it is not going to be installed Depends: libboost

Write a recipe in yocto for a python application

北城以北 提交于 2019-12-05 06:46:14
I have a simple python application which does: acquire information from a GPS parse information store it in InfluxDB The package requirements: certifi==2018.4.16 chardet==3.0.4 idna==2.6 influxdb==5.0.0 pynmea2==1.12.0 pyserial==3.4 python-dateutil==2.7.3 pytz==2018.4 requests==2.18.4 six==1.11.0 urllib3==1.22 The above is generated by using: pip3 install pynmea2 pyserial influxdb In the OpenEmbedded Layers Index I have already found pyserial package for Python3 . Which implies on the board I just might need to do pip3 install pynmea2 influxdb . How do you go ahead writing my application's

How to set root password on Yocto / Poky image?

那年仲夏 提交于 2019-12-05 06:35:16
I am building an image with Yocto/Poky release Daisy 1.6.3. What is the correct way or config file where to set the root password? The default password is empty and I can't find a place where to specify it. Here is what you have to do in your recipe. inherit extrausers EXTRA_USERS_PARAMS = "usermod -P p@ssw0rd root;" where p@ssw0rd is the password you want root user to have. This link may help you. As "debug-tweaks"'s goal is to set root's password empty, you must remove it from your EXTRA_IMAGE_FEATURES. Hector D Martínez As of Poky 2.1.2; to set the root password the following instructions