Go to advanced search

by hjimbens
Thu Apr 19, 2018 12:08 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 425
Views: 26520

Re: Raspberry Pi 3 B+ lockups

I just did an update with sudo rpi-update . I also added arm_freq=1200 to /boot/config.txt so it is running with arm_freq=1200 and sdram_freq=450. It is more stable than before, but it still locks up under load (I am running an application that decodes two mpeg-dash streams and displays them using O...
by hjimbens
Mon Apr 16, 2018 7:53 am
Forum: OpenGLES
Topic: function to return available GPU memory?
Replies: 2
Views: 502

Re: function to return available GPU memory?

As far as I know there is no direct call to query this, but popen ("sudo vcdbg reloc stats", "r") returns a FILE pointer to a file containing something like total space allocated is 236M, with 234M relocatable, 2.3M legacy and 0 offline 143M free memory in 35 free block(s) You can parse it to read t...
by hjimbens
Thu Apr 05, 2018 2:57 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 425
Views: 26520

Re: Raspberry Pi 3 B+ lockups

Earlier in this thread I reported that I have two Pi 3 B+'s, one of which repeatedly freezes after a few minutes, even with "arm_freq=700". However after adding "arm_freq=1200 and "sdram_freq=450" to config.txt I have not seen any freezes yet. Right now I am trying with only "sdram_freq=450" and I h...
by hjimbens
Wed Mar 28, 2018 7:38 am
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 425
Views: 26520

Re: Raspberry Pi 3 B+ lockups

I have a similar situation. I have two Pi 3 B+. The first one locks up after five or ten minutes of operation. Screen freezes, ssh connections freeze, the Pi no longer responds to keyboard. Both red and green leds are on. I am using the official power supply. I monitor temperature via a separate ssh...
by hjimbens
Mon Jan 08, 2018 8:07 am
Forum: Advanced users
Topic: Boot sometimes fails with kernel panic
Replies: 5
Views: 1738

Re: Boot sometimes fails with kernel panic

To investigate the issue I monitor the serial port of three Pi's from a fourth Pi. I didn't know you could monitor more than one serial port from a single Pi. How are you doing this? Are you using USB to serial adaptors? Yes, I am using three USB to serial adapters. As for the crashes, try underclo...
by hjimbens
Mon Jan 08, 2018 8:01 am
Forum: Advanced users
Topic: Boot sometimes fails with kernel panic
Replies: 5
Views: 1738

Re: Boot sometimes fails with kernel panic

You are doing a proper shutdown on your Pi's before it switches off the wall outlet that the three Pi's take there power from, waits 15 seconds and switches it on again. Aren't you? No, the whole point is that some of our Pi's get switched off at night by just cutting power. Some of them don't come...
by hjimbens
Thu Jan 04, 2018 1:28 pm
Forum: Advanced users
Topic: Boot sometimes fails with kernel panic
Replies: 5
Views: 1738

Boot sometimes fails with kernel panic

Sometimes booting my Raspberry Pi fails with a kernel panic. To investigate the issue I monitor the serial port of three Pi's from a fourth Pi. When the fourth Pi detects that all three Pi's are up and running (by making a http connection to all three Pi's) it switches off the wall outlet that the t...
by hjimbens
Fri Dec 04, 2015 9:00 am
Forum: General discussion
Topic: Pi Zero, using USB for networking
Replies: 3
Views: 3544

Re: Pi Zero, using USB for networking

The obvious work around for the Zero is to forego connecting a keyboard or hub to the Pi using the OTG cable adapter and only compile the gadgets driver. The comments on https://github.com/raspberrypi/linux/issues/881 make me doubt whether that will work. There is a new issue https://github.com/ras...
by hjimbens
Thu Dec 03, 2015 2:41 pm
Forum: General discussion
Topic: Pi Zero, using USB for networking
Replies: 3
Views: 3544

Pi Zero, using USB for networking

Setting up a Pi Zero and ssh-ing into it, would be a lot easier if you could connect it to a PC with a USB OTG cable and it would automatically make an Ethernet-over-USB connection. All you need to get started, would be a single USB cable (the same one you use to charge you phone) instead of a power...
by hjimbens
Fri Feb 06, 2015 9:45 am
Forum: General discussion
Topic: The Raspberry Pi 2 Q&A thread
Replies: 442
Views: 92584

Re: The Raspberry Pi 2 Q&A thread

I'm also seeing timing issues on the Pi 2, I've boiled them down to this example which takes 20sec! on a Pi 2 This affects usleep, and subsequently Python's sleep command, which makes code like our Display-o-Tron 3000 examples run in sloooow moootion. #include <unistd.h> int main() { int x = 0; for...
by hjimbens
Mon Feb 02, 2015 8:38 am
Forum: C/C++
Topic: Compiling for Raspberry Pi 2
Replies: 25
Views: 42122

Compiling for Raspberry Pi 2

When I compile for Raspberry Pi 1 with gcc I use: CFLAGS+=-DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -p...
by hjimbens
Mon Dec 22, 2014 1:54 pm
Forum: OpenMAX
Topic: OpenMAX IL demos
Replies: 14
Views: 13513

Re: OpenMAX IL demos

Somewhere in your makefile you link to libopenmaxil with "-lopenmaxil". You should link to libvcos as well with "-lvcos" to reference the symbol 'vcos_pthreads_map_errno'. You probably have to add "-lvchiq_arm -lbcm_host" as well.
by hjimbens
Wed Nov 05, 2014 2:51 pm
Forum: General discussion
Topic: Bubble scopes?
Replies: 5
Views: 1010

Re: Bubble scopes?

I wanted to utilize this for 360degree CCTV camera recording, but have no idea how to implement the software side of it. You should post this question in http://www.raspberrypi.org/forums/viewforum.php?f=67 or http://www.raspberrypi.org/forums/viewforum.php?f=68 . The easiest way to do this with a ...
by hjimbens
Mon Oct 20, 2014 6:19 am
Forum: General discussion
Topic: Webcam Server please
Replies: 10
Views: 1530

Re: Webcam Server please

maybe run apt-get update
Did you try to "sudo apt-get update"?
by hjimbens
Wed Jul 09, 2014 12:00 pm
Forum: Graphics programming
Topic: UDP Image Transfer
Replies: 12
Views: 4212

Re: UDP Image Transfer

You say 'there was a bug in the gist code' what is 'gist'? A gist is a small repository on github. Does the code on github have the bug or is it fixed? Yes, but there is another bug with texture coordinates. It may result in the frames being displayed upside down. Your code seems to use EGL - which...
by hjimbens
Tue Jul 08, 2014 12:37 pm
Forum: Graphics programming
Topic: UDP Image Transfer
Replies: 12
Views: 4212

Re: UDP Image Transfer

Hi Mike, I wrote a short program that reads UDP packets, copies them into a texture and displays the texture on the screen. You can find it here: https://gist.github.com/imbens/cec3f3db278dfaca6937 . I also wrote some test code to send images from my pc. Both sides seem to work (I use your scheme of...
by hjimbens
Sun Jun 29, 2014 8:38 am
Forum: C/C++
Topic: the following code
Replies: 2
Views: 772

Re: the following code

All macros are from the Linux kernel, they all use gcc extensions for very specific tasks. 1)#define __lockfunc __attribute__((section(".spinlock.text"))) This is a macro definition, used in function definitions that tells the compiler/linker? to put the function in a code section named spinlock. Th...
by hjimbens
Fri Jun 27, 2014 12:48 pm
Forum: OpenMAX
Topic: how to decode a h264 file?
Replies: 2
Views: 2085

Re: how to decode a h264 file?

You should use egl_render ( http://home.nouwen.name/RaspberryPi/documentation/ilcomponents/egl_render.html ) instead of video_render. The video will be rendered to a texture. I am not sure you can read this texture with glGetTexImage. If you can't, you can render the texture to a framebuffer object ...
by hjimbens
Mon Jun 23, 2014 7:01 am
Forum: Graphics programming
Topic: Good news for the driver stack
Replies: 9
Views: 3232

Re: Good news for the driver stack

If I understood correctly what he'll be doing (porting the OpenGL stack to run on the ARM core instead of the VPU), isn't that going to slow things down? Some parts will run on the ARM core, but not in such a way that it would slow things down. On his blog, http://anholt.livejournal.com/44312.html ...
by hjimbens
Fri Jun 20, 2014 7:07 am
Forum: OpenMAX
Topic: Refilling input buffer in ilclient empty buffer done callbac
Replies: 4
Views: 2335

Re: Refilling input buffer in ilclient empty buffer done cal

Yes, ilclient_get_input_buffer gets an empty buffer from the pool that you specified earlier. If all buffers are busy/non-empty the functions returns 0.
by hjimbens
Fri Jun 20, 2014 7:05 am
Forum: OpenMAX
Topic: video_scheduler / clock components -- playing video too fast
Replies: 6
Views: 4821

Re: video_scheduler / clock components -- playing video too

Hi, another issue is that you set the start time flag more than once.

Code: Select all

buf->nFlags = OMX_BUFFERFLAG_STARTTIME;
In my code that happens only for the first packet of the first video.
by hjimbens
Thu Jun 19, 2014 6:58 pm
Forum: OpenMAX
Topic: Refilling input buffer in ilclient empty buffer done callbac
Replies: 4
Views: 2335

Re: Refilling input buffer in ilclient empty buffer done cal

Hi, the empty_buffer_done callback does not tell you which buffer was emptied. All you know is that *a* buffer was emptied, so at least one empty buffer will be available. Using ilclient_get_input_buffer you can ask for an empty buffer.
by hjimbens
Thu Jun 19, 2014 6:48 pm
Forum: OpenMAX
Topic: video_scheduler / clock components -- playing video too fast
Replies: 6
Views: 4821

Re: video_scheduler / clock components -- playing video too

Hi, I have similar code that does not exhibit the same problem. The only difference I can spot is that after setting the field nFlags of the buffer, I clear the timestamp:

Code: Select all

buf->nTimeStamp = omx_ticks_from_s64 (0);
by hjimbens
Tue Jun 17, 2014 6:38 pm
Forum: Graphics programming
Topic: Good news for the driver stack
Replies: 9
Views: 3232

Re: Good news for the driver stack

From what I read, Eric Anholt is going to write the three boxes in the second column in this, http://en.wikipedia.org/wiki/Direct_Rendering_Manager#mediaviewer/File:Linux_Graphics_Stack_2013.svg , picture. There is a lot of linux stuff that is going to profit from those boxes. Plus, the fact that it...
by hjimbens
Tue Jun 17, 2014 5:36 pm
Forum: Graphics programming
Topic: Good news for the driver stack
Replies: 9
Views: 3232

Good news for the driver stack

This, http://anholt.livejournal.com/44239.html, is very good news for the Raspberry Pi.

Go to advanced search