raspbian

Can't declare .data in inline assembly

我怕爱的太早我们不能终老 提交于 2019-12-13 07:53:44
问题 Hello I have a problem where I can't seem to declare .data . I've tried various different things with my code and it always seems to break at this part asm( ".data\n" ".file: .ascii \"/dev/mem\\000\"\n" ); I can also remove any information after the .data and it will still break at '.data'. This is done on a raspberry pi 2 with inline assembly on C. If the rest of the code is relevant let me know but I'm pretty sure it's not. Thanks for any help! Edit: Apologies I forgot to include the error

Raspbian: PageSpeed (nginx) compliation error

隐身守侯 提交于 2019-12-13 06:57:16
问题 After executing the following commands: mkdir -p ~/bin cd ~/bin svn co http://src.chromium.org/svn/trunk/tools/depot_tools export PATH=$PATH:~/bin/depot_tools mkdir ~/mod_pagespeed cd ~/mod_pagespeed gclient config http://modpagespeed.googlecode.com/svn/tags/1.9.32.1/src/ gclient sync --force --jobs=1 # add --revision=xxxx for a specific svn revision cd src/ make AR.host="$PWD/build/wrappers/ar.sh" \ AR.target="$PWD/build/wrappers/ar.sh" \ BUILDTYPE=Release \ mod_pagespeed_test pagespeed

Detect pin state on start, and allow to continue after script exit

半城伤御伤魂 提交于 2019-12-13 05:12:52
问题 I am trying to have a script which I trigger via cron to turn a pin low and high based on a temperature, however.. I have having a couple of problems. 1 - When the script starts and it setsup the GPIO pin, it will either pull the pin high or low (depending on paramater) - there doesn't appear to be a way to tell it not to change the current state of the pin. This is a problem because if the relay is high and the default state is low then the relay will be set low and then could change to high

incron on Raspbian not working

左心房为你撑大大i 提交于 2019-12-13 01:34:54
问题 I have virtually an identical situation as this question, except the accepted answer does not work for me at all. Making this simple Python script is my second attempt; echoing text and redirecting it to a file doesn't do anything either. I am using the Raspbian linux distro. pi@raspberrypi ~ $ incrontab -l /home/pi IN_CREATE,IN_DELETE /home/pi/test.py pi@raspberrypi ~ $ cat test.py #! /usr/bin/python3 f = open('test.txt', 'a+') f.write('success!\n') f.close() pi@raspberrypi ~ $ touch abc.123

In python carriage return \r returns a musical note

点点圈 提交于 2019-12-13 00:45:25
问题 print "-------------------\r" produces a musical note instead doing the carriage return. Why? Thanks in advance for reply. EDIT: I was using it in this code in order to change dinamically data by 'print' instead to re-print it all: import math import time while True: reading = read_world_2c(0x43) #it's a function for reading data from a sensor print "data: \r", reading time.sleep(0.5) 回答1: That musical note is the symbol for line breaks. If you have MS Word or Notepad++ or similar, open or

GTK# window not rendered completely

六眼飞鱼酱① 提交于 2019-12-12 22:04:03
问题 Right now, I am trying to develop a program using Mono and GTK# on a Debian (Raspbian) system. The issue I'm facing is, that, completely randomly, the GUI (generated by the Stetic designer or its dynamic elements) isn't completely drawn, missing either a few characters from a Label-element or whole widgets, mostly those that were dynamically created. This is how it looks on a dialog window: http://imgur.com/oEZRg7c (text is cut off) As soon as one window shows this issue, every other window

Python SerialException: Device reports readiness to read but returned no data

情到浓时终转凉″ 提交于 2019-12-12 17:14:13
问题 I'm using an Arduino Nano, previously an UNO, to collect data from sensors and then send the data back over a USB connection through a powered hub to a Raspberry Pi model B running Jessie 4.1.19+ Mar, 15 2016 and Python 2.7. The python code uses pyserial readline to get the data. In general it works fine but occasionally (typically a couple of times a day) it fails with the above message. It seemed the only way to fix it was to unplug the USB connection, reconnect it and restart the program.

Raspberry Pi i2c Read/Write Error

喜欢而已 提交于 2019-12-12 11:34:15
问题 Like many people, I've had a Pi for a while but never really done anything with it. I've finally got round to hooking up an MPU6050 IMU to play around with. It uses i2c for communication so I followed the guide by Adafruit regarding enabling i2c shown here Adafruit i2c. I then hooked up the MPU6050 to the i2c bus, and using i2cdetect -y 1 I was able to see a device at 0x68. However, when trying to read or write from the device I got a permission denied error, so I followed this post to solve

JavaME RaspBerryPi UART can't receive data from RS485

天大地大妈咪最大 提交于 2019-12-12 10:19:37
问题 I try to connect my raspberry pi (with raspbian weezy) with a strip LED module. To do this, I use the UART connection of RBPi in order to communicate with RS485 strip connection. My trouble : I can (yes I can) send data but I don't received ACK or anything else. However my strip LED module send data frame to the RBPi (I can see it on oscilloscope). EDIT : I think it's due to the following error that appears when the program opened UART connection. NO : The following error is due to an non

Guide to compile Xuggler for Raspberry Pi

ぃ、小莉子 提交于 2019-12-12 09:02:14
问题 Can someone post a detailed write up, on how to compile Xuggler for Raspberry Pi? 回答1: After working on for about 5 days , I am putting the following guide to compile xuggler for Raspberry Pi (Time required : 8 hrs): Prerequisites: Raspberry Pi Model B+ with 512 MB RAM (Any model less than this will not give you the compiled binaries and will stuck during compilation) Raspbian installed on an SD Card (more than 4GB SD card will do) Steps: Switch to 'root' user. From the Basic xuggler build