beagleboard

How to implement highly accurate timers in Linux Userspace?

老子叫甜甜 提交于 2020-05-13 04:51:37
问题 I have Angstrom Linux on my BeagleBoard. I want to implement very accurate timer which can fire at every 500us. I read about hrtimers , but all the implementations I found were for kernel space. I want to implement it in user space. Is there any API which which can call into these hrtimers , which I can use in userspace or any other way of implementing accurate timer in linux? I have set the jiffy to a few nanoseconds. 回答1: Finally, after some more efforts I found a code which suggested to

How to get permission for pthread_setschedparam

混江龙づ霸主 提交于 2020-01-15 11:09:06
问题 I need to run a C++ program at real-time priority on a BeagleBone with Angstrom Linux version 3.2.18. The program calls pthread_setschedparam to attempt to elevate its priority. When logged in as root, I get an "Operation not permitted" error. However, if I first elevate to superuser "su" at the shell prompt, the call to pthread_setschedparam is successful. How can I achieve the same result without running "su" first? I need to run this program as a service that starts automatically at boot

How to get permission for pthread_setschedparam

喜你入骨 提交于 2020-01-15 11:07:21
问题 I need to run a C++ program at real-time priority on a BeagleBone with Angstrom Linux version 3.2.18. The program calls pthread_setschedparam to attempt to elevate its priority. When logged in as root, I get an "Operation not permitted" error. However, if I first elevate to superuser "su" at the shell prompt, the call to pthread_setschedparam is successful. How can I achieve the same result without running "su" first? I need to run this program as a service that starts automatically at boot

How to get permission for pthread_setschedparam

十年热恋 提交于 2020-01-15 11:07:02
问题 I need to run a C++ program at real-time priority on a BeagleBone with Angstrom Linux version 3.2.18. The program calls pthread_setschedparam to attempt to elevate its priority. When logged in as root, I get an "Operation not permitted" error. However, if I first elevate to superuser "su" at the shell prompt, the call to pthread_setschedparam is successful. How can I achieve the same result without running "su" first? I need to run this program as a service that starts automatically at boot

How to install OpenCV on Ångström Linux?

非 Y 不嫁゛ 提交于 2020-01-07 02:50:10
问题 I want to install OpenCV 2.2 on a Ångström Linux enviroment. I tried to install, but I didn't succeed. What are the steps to install OpenCV on Ångström Linux? 回答1: I am using Angstrom 2011.03 on a BeagleBoard-xM. This has OpenCV 2.2 in the package manager (see e.g. [1]). So I just did: opkg install libopencv-highgui-dev However, this only was successful at the 3rd attempt. 回答2: I've the same issue... I have a BeagleBoard-xM rev.C and I made an Ångström Linux base-image using openembedded. All

Qt creator. read from a file and print it out on beaggleboard

▼魔方 西西 提交于 2020-01-06 02:00:07
问题 I'm doing a project using Qt creator. I have 3 screen for every screen there are 4 button. when clicked on the first button it will wirte 0 to the file (char) and so on to 3. When i reach the last screen (4. screen) where i will read from the file and display the input from the buttons it doenst show the 3 chars. void fileOperation::openFileWrite(char x, off_t s) { int fd; char c[2] = {x}; fd = open("/home/stud/txtFile", O_CREAT | O_WRONLY, 0666);//open file if(fd == -1) cout << "can't open

cross compile azure iot sdk

六月ゝ 毕业季﹏ 提交于 2020-01-05 04:06:07
问题 I try to crosscompile the Azure IoT C SDK (https://github.com/azure/azure-iot-sdk-c) for a BeagleBoard Black. I did setup a Debian GNU/Linux 8.7 (jessie) Machine and installed the toolchain as described here: http://exploringbeaglebone.com/chapter7/. Then i followed the steps here: https://github.com/Azure/azure-iot-sdk-c/blob/master/doc/SDK_cross_compile_example.md and Created a Toolchain file: INCLUDE(CMakeForceCompiler) SET(CMAKE_SYSTEM_NAME Linux) # this one is important SET(CMAKE_SYSTEM

Enabling UART on Beaglebone Black

大憨熊 提交于 2020-01-01 18:53:49
问题 I'm having trouble getting UART enabled. I've gone through many different directions on how to enable and troubleshoot from updating the uEnv.txt file to updating the kernel. I've come to conclude that it may be an issue with using a different kernel than the instructions, but I'm not sure? I don't know very much about the Beaglebone and I'm still learning. Whenever I try to test UART by using Python and typing the following: import Adafruit_BBIO.UART as UART UART.setup("UART1") I get the

Enabling UART on Beaglebone Black

我们两清 提交于 2020-01-01 18:53:08
问题 I'm having trouble getting UART enabled. I've gone through many different directions on how to enable and troubleshoot from updating the uEnv.txt file to updating the kernel. I've come to conclude that it may be an issue with using a different kernel than the instructions, but I'm not sure? I don't know very much about the Beaglebone and I'm still learning. Whenever I try to test UART by using Python and typing the following: import Adafruit_BBIO.UART as UART UART.setup("UART1") I get the

Changing the static IP of Beagle Bone Black USB0 [closed]

两盒软妹~` 提交于 2019-12-25 07:42:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . My goal is to change the IP address of USB0 . The Beagle Bone Black run Debian. I tryed to change /etc/network/interfaces such that default address is 192.168.7.3 instead of 192.168.7.2 as this: iface usb0 inet static address 192.168.7.3 netmask 255.255.255.0 network 192.168.7.0 gateway 192.168.7.1 After running