Go to advanced search

by Paeryn
Sat Feb 16, 2019 3:24 am
Forum: Beginners
Topic: How to remove last N entries from bash history?
Replies: 4
Views: 106

Re: How to remove last N entries from bash history?

Just to add some info, running your original shell script from /etc/rc.local and using history to delete entries wouldn't have affected root's history file because the shell running it wouldn't have been an interactive one and non-interactive shells don't waste time reading and saving the history fi...
by Paeryn
Wed Feb 13, 2019 1:50 am
Forum: Bare metal, Assembly language
Topic: RPi ARM boot problem
Replies: 7
Views: 219

Re: RPi ARM boot problem

Your link is the old dead one Paeryn https://github.com/raspberrypi/tools/tree/master/armstubs Thanks, updated it. It was sort of the right link, it just didn't have the https:// at the start which caused it to be treated as local to the forum. I keep forgetting that my phone likes to not copy that...
by Paeryn
Wed Feb 13, 2019 12:22 am
Forum: Bare metal, Assembly language
Topic: RPi ARM boot problem
Replies: 7
Views: 219

Re: RPi ARM boot problem

The VC4 puts an appropriate boot stub starting at address 0 along with a dtb (or atags) and finally the appropriate kernel.img at its start address. The ARM starts at address 0, the original armv6 stub is very basic in that it just loads a few registers and jumps to the kernel whereas the armv7 and ...
by Paeryn
Tue Feb 12, 2019 2:31 am
Forum: Python
Topic: problems w some code
Replies: 4
Views: 123

Re: problems w some code

sudo pip install cymysql is the command i used. I installed it for whatever the above command did. that was wrong huh? Im using python 3.. Yes, pip will install Python2 packages, you need to use pip3 to install Python3 packages. Python2 and Python3 have separate directories for their installed pack...
by Paeryn
Sun Feb 10, 2019 12:20 am
Forum: Python
Topic: subprocess question
Replies: 3
Views: 93

Re: subprocess question

Hello, I write some code where a python3 script is loading other scripts from an usb-stick. These scripts can be shell- or python scripts. Found that running python scripts results in a problem related to using subprocess.run with arguments in arrayor string . The problem is, that when using argume...
by Paeryn
Sat Feb 09, 2019 11:27 pm
Forum: C/C++
Topic: what is memory barrier
Replies: 8
Views: 2981

Re: what is memory barrier

I also read it's a ARMv8, but I also read about ARM53 for the Pi3 (and new OPi2) - just curious about what's true and what's the diffeence in case. The CPU name is Cortex-A53 It is ARMv8 architecture and can support both AArch64 and the 32-bit modes (A32 and T32). It has the latest version of NEON ...
by Paeryn
Sat Feb 09, 2019 9:40 pm
Forum: Python
Topic: try-except loop with sleep command
Replies: 3
Views: 96

Re: try-except loop with sleep command

I'm testing a build right now that involves a small screen currently connected through a breadboard. The program/build is meant to run continuously for long periods of time. During testing the other day, the screen temporarily lost connection through the bread board causing the program to crash out...
by Paeryn
Sat Feb 09, 2019 8:53 pm
Forum: Python
Topic: Converting python 2.7 code to python 3.4
Replies: 11
Views: 279

Re: Converting python 2.7 code to python 3.4

val = str(b_s) hex_val = hex(int(val, 2))[2:].rstrip("L") float_val = struct.unpack('!f', hex_val.decode('hex'))[0] return float_val gives another error: hex_val = hex(int(val, 2))[2:].rstrip("L") ValueError: invalid literal for int() with base 2: "['0', '1', '0', '0', '0', '0', '0', '1', '1', '0',...
by Paeryn
Sat Feb 09, 2019 1:14 pm
Forum: Python
Topic: Converting python 2.7 code to python 3.4
Replies: 11
Views: 279

Re: Converting python 2.7 code to python 3.4

You appear to be trying to initialise a bytearray with a list of strings, when using a string to initialise bytearray() you have to give the encoding as well. Not sure if you can use a list of strings though. Always a good idea to read the Python docs on the functions you are using. bytearray([sourc...
by Paeryn
Sat Feb 09, 2019 12:04 pm
Forum: AIY Projects
Topic: Limits and opportunities
Replies: 3
Views: 105

Re: Limits and opportunities

Well to me a dumb speaker is a broken one (i.e. one that is unable to make sound). In relation to a "smart" speaker, a "dumb" speaker is purely a speaker, i.e. you feed it an audio signal and it converts that into sound, possibly with its own volume control (or other controls that only manipulate th...
by Paeryn
Thu Feb 07, 2019 1:20 am
Forum: Troubleshooting
Topic: My es2gears went black
Replies: 49
Views: 1217

Re: My es2gears went black

So I do void *copyto; // for scrolling waterfall, arrays of pointers void *copyfrom; // then once I know the screen size I do (stores is the number of pointers I want) copyto = calloc(stores,sizeof(void *)); // with error checking, not showing that copyfrom = calloc(stores,sizeof(void *)); // then ...
by Paeryn
Wed Feb 06, 2019 1:36 am
Forum: Troubleshooting
Topic: My es2gears went black
Replies: 49
Views: 1217

Re: My es2gears went black

You could probably do it fairly easily using Dispmanx to create a window (not to be confused with an X11 window) above the framebuffer for your waterfall, as long as you don't mind that such a window would be "invisible" to the framebuffer or X11. That way the hardware does the composition as it ge...
by Paeryn
Tue Feb 05, 2019 10:29 pm
Forum: Troubleshooting
Topic: My es2gears went black
Replies: 49
Views: 1217

Re: My es2gears went black

I looked at some datasheets, Jazelle is what they call the Java bytecode thing in the ARM chips. Jazelle was a bit of a weird thing, they kept supporting it but as far as I'm aware a lot of processors (especially newer ones) only had limited hardware support, the rest of the bytecodes just trapped ...
by Paeryn
Mon Feb 04, 2019 11:06 pm
Forum: Bare metal, Assembly language
Topic: RPi3 - start cores and spinlock sync code needed
Replies: 11
Views: 419

Re: RPi3 - start cores and spinlock sync code needed

_start: // read 2-bit #cpuid into x0 mrs x0, mpidr_el1 and x0, x1, #3 Can someone help me understand what I do wrong? First, why this code does not print anything. Then, how should I perform synchronization (I could not find spinlock code). Best regards, Dpotop The second instruction is wrong. You ...
by Paeryn
Mon Feb 04, 2019 12:55 pm
Forum: Troubleshooting
Topic: My es2gears went black
Replies: 49
Views: 1217

Re: My es2gears went black

The number of lines keeps changing, not sure why. I see: 1038 lines in 10 seconds = 103.800 lines/sec 935 lines in 10 seconds = 93.500 lines/sec 1040 lines in 10 seconds = 104.000 lines/sec 992 lines in 10 seconds = 99.200 lines/sec 990 lines in 10 seconds = 99.000 lines/sec Oh well. That's probabl...
by Paeryn
Thu Jan 31, 2019 11:45 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 1375
Views: 51216

Re: Why Avoid BASIC on RPi?

I presume that when adopting neural nets, deep learning, etc one gets all the prejudices and unpredictable behavior of humans but with some distinct advantages. The thing operates 24/7 without complaint. It probably works faster. It's probably cheaper, no salaries, no need for comfy working conditi...
by Paeryn
Thu Jan 31, 2019 5:09 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 365

Re: using Find to remove files older than X number of days

Sorry, the equals sign was a typo... I've updated my post.
by Paeryn
Thu Jan 31, 2019 4:06 am
Forum: Troubleshooting
Topic: Issue with booting despite everything
Replies: 23
Views: 452

Re: Issue with booting despite everything

Looking at that top diagram, the OR gate, it looks like you have :- 5V -> left button -> led -> resistor -> ground 3V3 -> right button -> led -> resistor -> ground If both buttons are pressed at the same time then the 5V line is connected to the 3V3 line, I didn't think that was a good idea to do an...
by Paeryn
Wed Jan 30, 2019 11:03 pm
Forum: Troubleshooting
Topic: My es2gears went black
Replies: 49
Views: 1217

Re: My es2gears went black

OK, thanks. I thought the version was dependent on firmware, but then again somebody would have to write the firmware. And Broadcom would probably not find it profitable to invest time doing that. I was looking a little at GLFW yesterday and a guy at http://discourse.glfw.org/t/glfw-on-rpi-with-ope...
by Paeryn
Wed Jan 30, 2019 10:14 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 365

Re: using Find to remove files older than X number of days

Hi yes, the -rv * is to remove files and directories and the v is for verbose so I can see what is being removed while it's running. I'm aiming to get rid of all files found by the find command it's just for some reason that wasn't happening. I think it's because the backup script I have uses rsync...
by Paeryn
Wed Jan 30, 2019 7:44 am
Forum: Troubleshooting
Topic: My es2gears went black
Replies: 49
Views: 1217

Re: My es2gears went black

ab1jx wrote:
Wed Jan 30, 2019 3:44 am
It's running and doing benchmarks but with a black window. And why is it EGL_VERSION 1.4? I don't remember what that used to say but I thought the pI used EGL 2.1 max.
EGL 1.4 is correct, the very latest version is only 1.5 so no chance of you seeing 2.1.
by Paeryn
Wed Jan 30, 2019 7:31 am
Forum: Raspbian
Topic: Geany broken in Stretch ?
Replies: 13
Views: 3022

Re: Geany broken in Stretch ?

Cannot execute build command "terminal_cmd=x-terminal-emulator --command= "bin/sh /tmp/geany_run_script_2IYJV.sh"': No such file or directory Added emphasis, it looks like you might have missed the leading / at the start of the command, it should be /bin/sh whereas that error says you have it set t...
by Paeryn
Sun Jan 27, 2019 9:25 pm
Forum: Beginners
Topic: I can't build a robot
Replies: 5
Views: 220

Re: I can't build a robot

This code they show under controlling a robot if my_key in control: # My key is pressed my_key_pressed = True else: # My key is released my_key_pressed = False Is not in the actual script so what are they showing me? What is that code for? I'm not following anything this guide is telling me after t...
by Paeryn
Sat Jan 26, 2019 9:03 pm
Forum: C/C++
Topic: Ludev error cross compile
Replies: 5
Views: 172

Re: Ludev error cross compile

It's makes life a lot easier to paste text straight into your post rather than putting links to pictures of said text, especially when one of them is only one line long (and I've just noticed you'd cropped the underscores from the image so they look like spaces). E.g. arm-buildroot-linux-uclibcgnuea...
by Paeryn
Sat Jan 26, 2019 4:29 pm
Forum: C/C++
Topic: Ludev error cross compile
Replies: 5
Views: 172

Re: Ludev error cross compile

So here's the problem : I am trying to cross compile a .c file for my raspberry but the library cannot be found even if I add -ludev . Btw when using gcc there is no errors at all xp So now i am not sure if I have to change something in the menuconfig or not How exactly are you cross-compiling? Whe...

Go to advanced search