embedded-linux

Cross compilation error with QtCreator [Yocto Image]

自古美人都是妖i 提交于 2019-12-12 04:45:10
问题 I've bitbaked a qt5 image for my Beaglebone Black and exported the cross-toolchain sdk. I also tried to setup QtCreator to work with the output toolchain with the steps in this link I put this code at the beginning of the qtcreator.sh file to change the environment variables source /opt/poky/1.6.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi and configured the following options qmake : /home/user/cross/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake g++ compiler : /home/user/cross

reading ARM 9g20 GPIO using mmap wont work

懵懂的女人 提交于 2019-12-12 02:44:07
问题 I'm trying access the GPIO pins on Atmel's Arm9 9g20. My code below keeps getting failing at gpio = mmap(0, getpagesize(), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0xFFFFF400); // start of GPIOA Could someone help me with my code and offer a bit of I/O example code to get me past this hump? Thanks. // gpio.c // compile arm-linux-gcc -o button button.c // #include<unistd.h> #include<sys/types.h> #include<sys/mman.h> #include<stdio.h> #include<fcntl.h> #include<string.h> // GPIO Registers //http:/

tiny6410 friendlyarm connect to capacitive lcd but touch not worked in linux

有些话、适合烂在心里 提交于 2019-12-12 02:24:38
问题 I connect my Capacitive lcd to tiny6410 and install linux on it. I also change the friendlyarm.ini to this: #This line cannot be removed. by FriendlyARM(www.arm9.net) CheckOneButton=No Action=Install OS= Linux LCD-Mode = No LCD-Type = S70 LowFormat = No VerifyNandWrite = No CheckCRC32=No StatusType = Beeper| LED #################### Linux ##################### Linux-BootLoader = Superboot-6410.bin Linux-Kernel = Linux/zImage Linux-CommandLine = root=/dev/mtdblock2 rootfstype=yaffs2 init=

How to install GCC and/or apt on embedded linux Raspberry Pi

不羁岁月 提交于 2019-12-12 01:06:09
问题 I have a pre-configured linux distro on a raspberry pi (used for a bitcoin miner). The problem is that this distro is very minimal, only has busybox for basic commands. It doesn't have a package manager and it doesn't even have a gcc compiler. So my target is to install a gcc compiler on it so I can go further and install other software. So I'm basically limited to these commands from busybox: root@raspberrypi:~# ls /bin addgroup fgrep ping6 adduser grep ps ash gunzip pwd busybox gzip rm cat

probe is not getting called in i2c driver

♀尐吖头ヾ 提交于 2019-12-12 00:38:40
问题 I am trying to learn to write a i2c driver on raspberry pi board and i have taken groove LCD back-light.Here driver.probe is not getting called whereas driver's inserted in system as i can see in dmesg. Init code of driver is getting called, and code => static int lcd_probe(struct i2c_client *i2c_client, const struct i2c_device_id *i2c_id) { int ret = 0; //struct lcd_data *lcd_data; // struct device *dev = &i2c_client->dev; // lcd_data->client = i2c_client; pr_debug("lcd_probe : calling the

BeagleBone Black + PowerCape + LCD4 cape = slow boot

☆樱花仙子☆ 提交于 2019-12-11 21:04:24
问题 I am working on a project of embedded product with a BeagleBone Black (BBB). I also need a touch screen to display information and for inputs. As I also need the 5v power to add a webcam on the usb, I couldn't use the built-in battery capabilities of the BBB which has no voltage booster. I found a cape that does what I want: PowerCape by AndiceLabs. For the screen, I am using mainly the LCD4 by circuitco but also the 4DCAPE-43T by 4D systems, which I think are exactly identical, and so the

Module Programming in linux

荒凉一梦 提交于 2019-12-11 20:12:31
问题 here is the simple module program code. #include <linux/module.h> /* Needed by all modules */ #include <linux/kernel.h> /* Needed for KERN_INFO */ #include <linux/init.h> /* Needed for the macros */ static int hello3_data __initdata = 3; static int __init hello_3_init(void) { printk(KERN_INFO "Hello, world %d\n", hello3_data); return 0; } static void __exit hello_3_exit(void) { printk(KERN_INFO "Goodbye, world %d\n",hello3_data); } module_init(hello_3_init); module_exit(hello_3_exit); I've

Unable to access BUS memory

核能气质少年 提交于 2019-12-11 19:22:12
问题 I am trying to access some registers of ULPI transceiver chip on my embedded board. i found that my read operation for the specific chips are resulting in zero. I am able to access the memory area just above it without any issues. The only difference between these to area is that the 1st area (I can read) has 32 bit address where as the second area (which I cannot read) has 8 bit address. root@FX7500000000:/tmp# ./devmem 0x48062000 //this is 32 bit address range and I am able to read. /dev

Unable to cross-compile Valgrind for ARM

孤街醉人 提交于 2019-12-11 17:44:09
问题 There are many questions similar to mine on google, I have tried them all but none of them works so I have to post this question. I'm trying to use Valgrind to detect memory leak on some binary files, which are compiled for my device (using Processor: ARM926EJ-S rev 5 (v5l)). Therefore, I'm trying to cross compile Valgrind using the specific toolchain for my device. Here is my process: I'm using Valgrind 3.13.0 and Ubuntu 16 1/ cd Valgrind-3.13.0 2/ sed "s/armv7/arm/g" configure (so that it

Mipi Csi2 Error: could not get clock csi_mclk

家住魔仙堡 提交于 2019-12-11 17:18:11
问题 I have been working on writing mipi csi-2 imx290 camera driver. I have faced with csi_clock error. This is my imx290_probe function; static int imx290_probe(struct i2c_client *client, const struct i2c_device_id *id) { struct device *dev = &client->dev; int retval; int value; /* request reset pin */ xclr = of_get_named_gpio(dev->of_node, "rst-gpios", 0); if (!gpio_is_valid(xclr)) { dev_warn(dev, "no sensor reset pin available"); return -EINVAL; } retval = devm_gpio_request_one(dev, xclr, GPIOF