embedded-linux

Build software on Linux using cross toolchain

倖福魔咒の 提交于 2019-12-08 12:05:43
问题 Motorola provides a cross compiling toolchain for building Software for their Set Top Box VIP1710. You have to extract it to /usr/local/kreatel and there you have a tree of build tools: ./bin ./bin/mipsel-kreatel-linux-gnu-addr2line ./bin/mipsel-kreatel-linux-gnu-ar ./bin/mipsel-kreatel-linux-gnu-as ./bin/mipsel-kreatel-linux-gnu-c++ ./bin/mipsel-kreatel-linux-gnu-c++filt ./bin/mipsel-kreatel-linux-gnu-cpp ./bin/mipsel-kreatel-linux-gnu-g++ ./bin/mipsel-kreatel-linux-gnu-gcc ... ./include .

mmap very slow when using O_SYNC

ε祈祈猫儿з 提交于 2019-12-08 11:39:11
问题 Brief description of our project: We are using CycloneV in our project, FPGA will write data to DDR using AXI bus and our application needs to send the data out using Ethernet. We benchmark our Ethernet throughput using iperf and it can achieve a speed of about 700Mbps. When we test our application throughput, the result we are getting is just 400Mbps. We write a simple server code without using /dev/mem , then populate the memory with random data using dd command and the application reads

Unable to run Snappy player on Beaglebone Black using Yocto Project

99封情书 提交于 2019-12-08 04:32:10
问题 My main objective is to run snappy player (https://wiki.gnome.org/Snappy) on target machine ( BeagleBone Black ) so, I wrote a recipe for Snappy player( snappy_1.0.bb ) as below LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=686e6cb566fd6382c9fcc7a557bf4544" SRCREV = "e73fabce4c397b40d490c74f6a6a0de000804f42" SRC_URI = "git://git.gnome.org/snappy" S = "${WORKDIR}/git" RDEPENDS_${PN} = "gtk+3 gstreamer1.0 glib-2.0 clutter-1.0 gstreamer1.0-plugins-base libxtst clutter-gst-3.0 clutter

What is the sequence to be followed to play a song using gstreramer?

别来无恙 提交于 2019-12-08 04:23:59
问题 I am building a music player based on gstreamer-0.10. I am able to play the successfully , but I have issues when I change the state of the pipeline. I have posted the code to initialize and start the pipeline below : void start_gstreamer() { gst_init(0,NULL);//call to initialise gstreamer time_val=0;//set to default value volume = 1.0;//set volume to default value player = gst_element_factory_make ("playbin2", "player");//get pipeline equalizer = gst_element_factory_make ("equalizer-10bands"

alsa-util 1.1.0 arm cross compile issue

╄→гoц情女王★ 提交于 2019-12-08 03:51:35
问题 I am trying to build alsa-util-1.1.0 for an arm-linux platform, through trial and error I managed to compile alsa-lib and alsa-util ok using these commands: alsa-lib: CC=arm-linux-gnueabihf-gcc ./configure --host=arm-linux -prefix=/home/username/20160311_alsa_work/alsa/install --disable-python alsa-util: CC=arm-linux-gnueabihf-gcc ./configure --prefix=/home/username/20160311_alsa_work/alsa/install --host=arm-linux --with-alsa-inc-prefix=/home/username/20160311_alsa_work/alsa/install/include -

Porting Linux kernel 2.6 to new MIPS board

怎甘沉沦 提交于 2019-12-08 03:43:25
问题 I wanna port Linux kernel 2.6.x to new MIPS board. Unfortunatelly, I can't find good actual documentation with step by step explaination. Hope, you'll help me. Paper books are OK too. Thank you in advance! 回答1: First, get your hands on a MIPS toolchain. You're going to need it to compile the kernel. I've used buildroot a few times, including for building a MIPS toolchain. But buildroot offers a lot more than just that: Buildroot can generate any or all of a cross-compilation toolchain, a root

Compile parameters for MIPS based codesourcery toolchain?

纵然是瞬间 提交于 2019-12-07 23:59:55
问题 I installed codesourcery cross compile toolchain for mips32 architecture on my WIN 7 machince. I want to first compile a simple 'factorial' binary for my router which is based on MIPS32. From little search on the internet, I found it is based on MIPS32 big-endian. #cat /proc/cpuinfo system type : 96338W2 processor : 0 cpu model : BCM6338 V1.0 BogoMIPS : 239.20 wait instruction : no microsecond timers : yes tlb_entries : 32 extra interrupt vector : yes hardware watchpoint : no unaligned access

How to write own package for recipe in arago project build

試著忘記壹切 提交于 2019-12-07 22:15:41
问题 How can i write own package for recipe in arago project build? I know little bit that it can be bitbake files. But how can i write, no idea. I searched on internet, but failed to find any good source to start. can someone provide me link or example to start? Regards Linux Learner. 回答1: Create own recipe with Yocto using Bitbake: Use Yocto Project for Embedded systems. It's documentation and support is awesome. You can get started Yocto Project. Build your own recipe(for the first time build

Why shouldn't I use ioremap on system memory for ARMv6+?

我的梦境 提交于 2019-12-07 18:02:01
问题 I need to reserve a large buffer of physically contiguous RAM from the kernel and be able to gaurantee that the buffer will always use a specific, hard-coded physical address. This buffer should remain reserved for the kernel's entire lifetime. I have written a chardev driver as an interface for accessing this buffer in userspace. My platform is an embedded system with ARMv7 architecture running a 2.6 Linux kernel. Chapter 15 of Linux Device Drivers, Third Edition has the following to say on

Doubts regarding container_of macro in linux

主宰稳场 提交于 2019-12-07 15:50:24
问题 Why do we use container_of macro ? container_of(pointer, container_type, container_field); It is said in the LDD that "This macro takes a pointer to a field named container_field , within a structure of type container_type , and returns a pointer to the containing structure". My questions are: If we want a pointer to the structure (ie container_type) we can directly assign, right? Then why the pointer of one of its field in taken to assign an address to the whole structure? Can anybody please