Go to advanced search

by DarkElvenAngel
Wed Jul 17, 2019 5:26 pm
Forum: C/C++
Topic: How to code for a RTC
Replies: 0
Views: 83

How to code for a RTC

Hello Everyone, I'm looking to writing a system daemon that among other tasks will look after the system time and RTC. I'm working in a limited Buildroot environment and I'm just looking for examples of how to use rtc.h I want to be able to set system and RTC time as well as synchronize time between...
by DarkElvenAngel
Sat Jul 06, 2019 5:37 pm
Forum: Troubleshooting
Topic: Raylib and Buildroot segmentation fault
Replies: 2
Views: 63

Re: Raylib and Buildroot segmentation fault [solved]

I must say this one was a mystery it showed up and then it was gone.

I recompiled the source code and then it works no problem, so I'm making it solved.
by DarkElvenAngel
Thu Jul 04, 2019 8:11 pm
Forum: Troubleshooting
Topic: Raylib and Buildroot segmentation fault
Replies: 2
Views: 63

Re: Raylib and Buildroot segmentation fault

Silly mistake not enough GPU RAM setting gpu_mem=64 in config.txt Sorted that out but this still happens # /media/raylib\ 2.5/examples/core/core_basic_window INFO: Initializing raylib 2.5 INFO: UPSCALING: Required screen size: 800 x 450 -> Display size: 1920 x 1080 INFO: Display device initialized s...
by DarkElvenAngel
Thu Jul 04, 2019 2:46 pm
Forum: Networking and servers
Topic: Remote access from WLAN-Device (laptop) to Mobile-Internet-Device (Raspberry Pi)
Replies: 7
Views: 267

Re: Remote access from WLAN-Device (laptop) to Mobile-Internet-Device (Raspberry Pi)

Have you looked into piVPN and/or Dynamic DNS?

I have this set up on a Pi connected to the internet and from any where I have tried, mobile networks, public Wi-Fi I can access that pi and all nodes on its LAN as if I was connected directly.
by DarkElvenAngel
Thu Jul 04, 2019 2:36 pm
Forum: Troubleshooting
Topic: Raylib and Buildroot segmentation fault
Replies: 2
Views: 63

Raylib and Buildroot segmentation fault

Hello everyone, I'm trying to get raylib native OpenGL ES 2.0 mode to run under Buildroot but even the simplest example will die in a seg-fault. The crash seems to happen just before the OpenGL is about to display. I have no errors with missing libraries and binary works on Raspbian Stretch How does...
by DarkElvenAngel
Thu Jul 04, 2019 1:47 pm
Forum: Troubleshooting
Topic: Proper way to enable WiFi
Replies: 4
Views: 140

Re: Proper way to enable WiFi

Thanks,
so I just need to work on the dhcpcd-hook and clean it up for the busybox environment. It's enough to know I was on the right track and what other options are available.
by DarkElvenAngel
Thu Jul 04, 2019 1:08 pm
Forum: Troubleshooting
Topic: Proper way to enable WiFi
Replies: 4
Views: 140

Re: Proper way to enable WiFi

What do you mean by "work like Raspbian" ? Start on boot ? Buildroot offers to use different types of init systems. First identify which one you've selected. Next, check which init scripts buildroot might have installed for the packages. See what's in there and add what you need to make it "work li...
by DarkElvenAngel
Thu Jul 04, 2019 1:18 am
Forum: Troubleshooting
Topic: Proper way to enable WiFi
Replies: 4
Views: 140

Proper way to enable WiFi

Hello,

I've got a build of Buildroot and I'm trying to figure out how to automatically enable Wi-Fi.

I got the eudev, dhcpcd, wpa_supplicant all installed and I can get it to working from the command line all separately but how do I make it work like Raspbian?

Thanks
by DarkElvenAngel
Mon Jul 01, 2019 8:01 pm
Forum: Advanced users
Topic: Running Buildroot on a pi 3B+ [Solved]
Replies: 8
Views: 526

Re: Running Buildroot on a pi 3B+

Reporting in I've been a little busy and my pi has been working hard compiling successfully Buildroot. I tried it out and the base install (without setting anything up) works like I expected. Now I'm rebuilding with wireless network tools and more customization to my build. I had one issue with my k...
by DarkElvenAngel
Sat Jun 29, 2019 5:19 pm
Forum: Advanced users
Topic: Running Buildroot on a pi 3B+ [Solved]
Replies: 8
Views: 526

Re: Running Buildroot on a pi 3B+

If you’re using buildroot to produce a root filesystem, Debian packages don’t really come into it. By default, it builds its own toolchain - this should be compatible as long as you make sure you tell it you’re using a Zero (start with the correct defconfig or configure it equivalently) The problem...
by DarkElvenAngel
Sat Jun 29, 2019 12:01 pm
Forum: C/C++
Topic: Script to download and install new GCC
Replies: 43
Views: 11931

Re: Script to download and install new GCC

I'm using this script on a Pi 3B+ and I'm just wondering is it normal for the system to become very sluggish? (Almost unresponsive?) It will at one point during the build when it swaps a lot. Should only last for a few minutes or so. Be patient! I use to run Gentoo Linux in the day so I should have...
by DarkElvenAngel
Sat Jun 29, 2019 12:25 am
Forum: C/C++
Topic: Script to download and install new GCC
Replies: 43
Views: 11931

Re: Script to download and install new GCC

I'm using this script on a Pi 3B+ and I'm just wondering is it normal for the system to become very sluggish? (Almost unresponsive?)

I've got a 1GB swap on a usb stick.

I made sure to comment out PI 4 and uncomment Pi3
by DarkElvenAngel
Fri Jun 28, 2019 1:11 pm
Forum: C/C++
Topic: Script to download and install new GCC
Replies: 43
Views: 11931

Re: Script to download and install new GCC

It doesn't take 15~20 hours on my Pi 3B+. Actually around 4.5 hours. You need a good heat sink to do that of course (maintain 1.4GHz throughout the build). Yeah, I corrected that, But actually I was using -j2 flag compilation as -j3/j4 was rather causing CPU throttling in my case and resulting in f...
by DarkElvenAngel
Thu Jun 27, 2019 11:07 pm
Forum: Advanced users
Topic: Running Buildroot on a pi 3B+ [Solved]
Replies: 8
Views: 526

Re: Running Buildroot on a pi 3B+

As this is your first time with buildroot, why not start building something that already exists and is known to work. One example is noobs. https;//github.com/raspberry pi/noobs.. The initial build will take several hours as it builds all tools and libs, but thereafter it will be much quicker. You ...
by DarkElvenAngel
Thu Jun 27, 2019 10:45 pm
Forum: Advanced users
Topic: System file permissions best practices
Replies: 2
Views: 365

Re: System file permissions best practices

Hello all, I have an app running on a pi that toggles the a system led. Presently I can achieve this by: 1 - running the app as root (no bueno) 2 - Setting permissions chmod 733 /sys/class/leds/led0 (This would let anyone do it) 3- Adding the app user to root group (also no bueno) What I would like...
by DarkElvenAngel
Thu Jun 27, 2019 9:56 pm
Forum: Advanced users
Topic: Running Buildroot on a pi 3B+ [Solved]
Replies: 8
Views: 526

Re: Running Buildroot on a pi 3B+

I was wondering can't I just downloaded the packages from Debian and install them manually Most Debian packages will not run on a Pi Zero. They do not support the ARMv6 CPU that it has. That's why we have Raspbian. I'm running a Pi 3 B+ though my understanding is that the compiler on that system is...
by DarkElvenAngel
Thu Jun 27, 2019 7:07 pm
Forum: Advanced users
Topic: Running Buildroot on a pi 3B+ [Solved]
Replies: 8
Views: 526

Running Buildroot on a pi 3B+ [Solved]

Hello, I'm trying out Buildroot for the first time and I am trying to do this on a RPI 3B+ to build for a RPI 0W. I'm getting an error that says: mp-divrem_1.s:158: Error: selected processor does not support `mls r1,r4,r8,r11' in ARM mode I've googled around and seems like the gcc installed is the i...
by DarkElvenAngel
Tue Jun 25, 2019 3:08 am
Forum: Advanced users
Topic: Need a script to detect available displays.
Replies: 5
Views: 688

Re: Need a script to detect available displays.

Hello, I have a software framework I wrote for a kiosk display this works very well at detecting during boot if an HDMI display is connected or not. Giving the framework the ability to run in different modes. Ie kiosk or headless. My problem is I don't know how to detect other types of displays ie ...
by DarkElvenAngel
Tue Jun 25, 2019 2:46 am
Forum: C/C++
Topic: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals
Replies: 23
Views: 1475

Re: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals

My apologies, As the code excerpt shows I thought that this was the default behavior. And there is also code for handling gpio in that manner. It is a case of looking at parts of something and not it's whole. In that light as you are saying it uses the /dev/mem and /dev/gpiomem then what is this co...
by DarkElvenAngel
Mon Jun 24, 2019 10:36 pm
Forum: C/C++
Topic: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals
Replies: 23
Views: 1475

Re: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals

My apologies, As the code excerpt shows I thought that this was the default behavior. And there is also code for handling gpio in that manner. It is a case of looking at parts of something and not it's whole. In that light as you are saying it uses the /dev/mem and /dev/gpiomem then what is this cod...
by DarkElvenAngel
Mon Jun 24, 2019 9:06 pm
Forum: C/C++
Topic: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals
Replies: 23
Views: 1475

Re: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals

I believe also by default WiringPi doesn't use /dev/gpiomem it uses the Linux kernel interface and uses /sys/class/gpio/gpio## that might be why you don't see any conflicts. No! Take a look at WiringPi sources. It tries /dev/mem first and, if the user is not running as root, it uses /dev/gpiomem . ...
by DarkElvenAngel
Mon Jun 24, 2019 8:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How soon are interfaces available
Replies: 0
Views: 367

How soon are interfaces available

Hello all, I'm working on a headless setup and I want to add a status OLED display that can show what's going on. I use an initramfs and was just wondering if SPI and/or i2c are loaded this early in the boot process or how can I discover when they are available for uses. Thanks. My OS of choice is R...
by DarkElvenAngel
Sat Jun 22, 2019 5:38 pm
Forum: C/C++
Topic: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals
Replies: 23
Views: 1475

Re: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals

I believe also by default WiringPi doesn't use /dev/gpiomem it uses the Linux kernel interface and uses /sys/class/gpio/gpio## that might be why you don't see any conflicts.
by DarkElvenAngel
Fri Jun 21, 2019 4:53 pm
Forum: C/C++
Topic: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals
Replies: 23
Views: 1475

Re: What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals

Have a look at the BCM2835 library
https://www.airspayce.com/mikem/bcm2835/. That library uses /dev/gpiomem for gpio however you need to use /dev/mem for I2C unless you want to bitbang the protocol.
by DarkElvenAngel
Fri Jun 21, 2019 4:48 pm
Forum: C/C++
Topic: WiringPi / Raw SPI speed issue
Replies: 8
Views: 750

Re: WiringPi / Raw SPI speed issue

Hello I see to have found an issue with the SPI bus and how to get any kind of speed from it. I have tried three libraries BCM2835 no issues with speed WiringPi seems to max out at 500kHz Raw SPI seems to max out at 500kHz This all came about when trying to get my OLED to run faster I assumed the d...

Go to advanced search