Go to advanced search

by fbe
Sun Aug 02, 2020 9:49 pm
Forum: C/C++
Topic: wiringPi: incidentally digitalWrite() to a pin which is defined as input?
Replies: 5
Views: 151

Re: wiringPi: incidentally digitalWrite() to a pin which is defined as input?

digitalWrite writes to the GPSET*/GPCLR* registers. If the GPIO pin is being used as an input (by default) then the value in the SETn field is ignored. However, if the pin is subsequently defined as an output then the bit will be set according to the last set/clear operation. https://www.raspberrypi...
by fbe
Fri Jul 31, 2020 7:44 pm
Forum: C/C++
Topic: Cross-compile for PI
Replies: 8
Views: 345

Re: Cross-compile for PI

Although your Ubuntu machine may be more powerful, a Pi4 will compile a tiny program like that in a few milliseconds. Although a Pi4 will compile this program, you will have to find a wiringPi version, that is compatible with Pi4 to run it on a Pi4. Please don't start new projects with wiringPi. ht...
by fbe
Sun Jul 19, 2020 1:57 pm
Forum: Beginners
Topic: Buster for Pi 3B+ : still feat. wiringPi (preferably apt package)?
Replies: 7
Views: 232

Re: Buster for Pi 3B+ : still feat. wiringPi (preferably apt package)?

wiringPi 2.50 is preinstalled on the (Buster) Raspberry Pi OS (32bit) with Desktop image. It is compatible with 3B+. You can install it from repositories if you start with the Lite image. AFAIK the wiringPiISR function depends on the sysfs kernel interface, that is still available but deprecated. Th...
by fbe
Sun Jul 05, 2020 4:14 pm
Forum: Troubleshooting
Topic: bluetoothctl does not work with RPi3's BT
Replies: 3
Views: 146

Re: bluetoothctl does not work with RPi3's BT

install a Raspberry Pi OS Lite image.
Verify that bluetoothctl works.
run

Code: Select all

systemctl list-units
stop and disable services step by step and check whether bluetoothctl stops working immediately or after reboot...
by fbe
Tue Jun 30, 2020 8:50 pm
Forum: Beginners
Topic: Extract a OS image from NOOBS
Replies: 22
Views: 640

Re: Extract a OS image from NOOBS

If you have a 32GB SD card and expect that your backup fits on a 8GB SD card, chances are good that you have enough space left on your 32GB SD card to store your backup image without mounting an additional drive.

Please check the output of

Code: Select all

df
by fbe
Tue Jun 30, 2020 7:15 pm
Forum: Beginners
Topic: Extract a OS image from NOOBS
Replies: 22
Views: 640

Re: Extract a OS image from NOOBS

Raspbian/Raspberry Pi OS is a Linux distro.
by fbe
Tue Jun 23, 2020 4:45 pm
Forum: Advanced users
Topic: Image File Utilities
Replies: 268
Views: 29474

Re: Image File Utilities

You can't create files with more than 4GB size on FAT32 filesystems.
by fbe
Tue Jun 23, 2020 4:38 pm
Forum: Advanced users
Topic: Image File Utilities
Replies: 268
Views: 29474

Re: Image File Utilities

Have you got a FAT32 filesystem on your HDD or exFAT?
by fbe
Mon Jun 22, 2020 7:25 pm
Forum: Troubleshooting
Topic: booting from wrong /boot partition
Replies: 3
Views: 215

Re: booting from wrong /boot partition

A Raspberry Pi B Rev. 2 can't "boot from wrong /boot partition". It will allways boot from SD card, if a bootable SD card is inserted. (Maybe it is able to boot from USB if an empty SD-card with a bootcode.bin file only is inserted.) It will load the kernel from the boot partition (/dev/mmcblk0p1) a...
by fbe
Mon Jun 22, 2020 6:12 pm
Forum: Raspberry Pi OS
Topic: Raspberry Pi 4 not booting correctly
Replies: 12
Views: 534

Re: Raspberry Pi 4 not booting correctly

I assume that 4.00 MiB that's unallocated means that it is not expanded to use all space? If it does, should I add that unallocated space to the rootfs partition? No. Everything fine with your 8GB SD card. Nothing to fix here. Please connect your card reader with your 32GB card to your Raspberry Pi...
by fbe
Sun Jun 21, 2020 9:37 pm
Forum: Raspberry Pi OS
Topic: Raspberry Pi 4 not booting correctly
Replies: 12
Views: 534

Re: Raspberry Pi 4 not booting correctly

Are you still able to access your Raspberry Pi remotely, e.g. via ssh/PuTTY or vnc?
by fbe
Sun Jun 21, 2020 7:04 pm
Forum: General discussion
Topic: Runlevel
Replies: 7
Views: 318

Re: Runlevel

You very likely don't need to change the default runlevel. Please explain what you actually want to achieve.
by fbe
Sun Jun 21, 2020 7:22 am
Forum: Advanced users
Topic: Unable to login
Replies: 5
Views: 322

Re: Unable to login

If your raspberry pi isn't running headless, you can add init=/bin/bash to the kernel parameters in cmdline.txt
After booting into the command line execute

Code: Select all

mount -o remount,rw /
Then change the passwords and remove init=/bin/bash from the kernel parameters in cmdline.txt
by fbe
Sun Jun 21, 2020 5:49 am
Forum: Troubleshooting
Topic: Using SSD for multiople OS's
Replies: 5
Views: 209

Re: Using SSD for multiple OS's

I am trying to follow the procedure here: https://jamesachambers.com/raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives/ I have reached the point “Change PARTUUID” and suggestion is d34db33f . Do I copy and paste the whole of that script? Or do I sequentially enter the letters in bold, inclu...
by fbe
Sun Jun 14, 2020 7:14 pm
Forum: Networking and servers
Topic: Apache2 403 error on rebuilt Pi
Replies: 4
Views: 216

Re: Apache2 403 error on rebuilt Pi

You changed the DocumentRoot to /media/extdisc1/webstuff. You also need to give Apache the permission for HTTP access to this filesystem path. E.g. the permission for HTTP-access to /var/www is given in /etc/apache2/apache2.conf
by fbe
Sat Jun 13, 2020 8:52 pm
Forum: Troubleshooting
Topic: Unable to mount USB drive: "wrong fs type"
Replies: 3
Views: 183

Re: Unable to mount USB drive: "wrong fs type"

The whole error message is:

Code: Select all

mount: /home/pi/ps2smb: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.
You must not use the option "umask=000" when mounting a Linux filesystem.

Code: Select all

sudo mount /dev/sda1 /home/pi/ps2smb
should work.
by fbe
Sat Jun 13, 2020 6:58 pm
Forum: Graphics programming
Topic: Script to build development Vulkan driver and demos
Replies: 26
Views: 1770

Re: Script to build development Vulkan driver and demos

Build worked, "gears" work.
Raspberry Pi 4B 4GB
Raspberry Pi OS (32-bit) with desktop (2020-05-27)
Most settings default in /boot/config.txt (except for gpu_mem)
by fbe
Sat Jun 13, 2020 6:10 pm
Forum: Graphics programming
Topic: Script to build development Vulkan driver and demos
Replies: 26
Views: 1770

Re: Script to build development Vulkan driver and demos

rpiMike wrote:
Sat Jun 13, 2020 5:43 pm
fbe wrote:
Sat Jun 13, 2020 5:39 pm

Code: Select all

echo $PATH | grep $HOME/.local/bin || export PATH=$HOME/.local/bin:$PATH
...
should fix the path.
I don't think export will work in a script?
It works, but it's scope ends when the script ends (if you don't source the script).
by fbe
Sat Jun 13, 2020 5:39 pm
Forum: Graphics programming
Topic: Script to build development Vulkan driver and demos
Replies: 26
Views: 1770

Re: Script to build development Vulkan driver and demos

Code: Select all

echo $PATH | grep $HOME/.local/bin || export PATH=$HOME/.local/bin:$PATH
...
should fix the path.
by fbe
Sat Jun 13, 2020 5:06 pm
Forum: Graphics programming
Topic: Script to build development Vulkan driver and demos
Replies: 26
Views: 1770

Re: Script to build development Vulkan driver and demos

Code: Select all

...
7/10 Build v3dv
./install_v3dv.sh: 35: ./install_v3dv.sh: meson: not found
pi@raspberrypi:~ $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
pi@raspberrypi:~ $
This is because /home/pi/.local/bin was created after login.
by fbe
Sat Jun 13, 2020 11:52 am
Forum: C/C++
Topic: Edge detection using /dev/gpiomem
Replies: 22
Views: 1110

Re: Edge detection using /dev/gpiomem

The gpiochip interface provides the times of GPIO events (gpiochip is the replacement for sysfs). You probably ought to be using that. However in my tests pigpio gives more accurate results. ... Or is there a really good reference for gpiochip? I like to understand the under how gpiochip works befo...
by fbe
Thu Jun 11, 2020 6:22 pm
Forum: Raspberry Pi OS
Topic: Cloned SDcard boot: first of many FAILED errors "Failed to start Remount Root and Kernel File Systems"
Replies: 7
Views: 523

Re: Cloned SDcard boot: first of many FAILED errors "Failed to start Remount Root and Kernel File Systems"

What commands do you use to make your master image from the first SD card and to write your master image to your second card?
by fbe
Tue Jun 02, 2020 4:55 pm
Forum: Deutsch
Topic: Neues Image vom 27.05.2020 kein Audio
Replies: 6
Views: 782

Re: Neues Image vom 27.05.2020 kein Audio

Der Fix kann über normales update/upgrade mit apt installiert werden. pi@raspberrypi:~ $ apt show raspi-config Package: raspi-config Version: 20200601 Priority: optional Section: utils Maintainer: Serge Schneider <serge@raspberrypi.org> Installed-Size: 111 kB Depends: whiptail, parted, lua5.1, alsa-...
by fbe
Sun May 31, 2020 4:25 pm
Forum: Raspberry Pi OS
Topic: STICKY: Buster bug report thread
Replies: 352
Views: 84598

Raspberry Pi OS (2020-05-27) (german) raspi-config "No internal audio devices found"

Raspberry Pi OS (Release date: 2020-05-27) with german localisation.

raspi-config
-> 7 Advanced Options -> A4 Audio
is broken (No internal audio devices found).

raspi-config fails to handle german output from aplay.

Workaround:

Code: Select all

LANGUAGE=en sudo raspi-config
by fbe
Thu May 28, 2020 7:54 pm
Forum: Deutsch
Topic: Neues Image vom 27.05.2020 kein Audio
Replies: 6
Views: 782

Re: Neues Image vom 27.05.2020 kein Audio

Also ich habe Raspbian mit Desktop. Es hat was mit der Lokalisierung zu tun. aplay -l muss englisch antworten, sonst versteht raspi-config die Antwort nicht. Aus "card 0: ..." wird "Karte 0: ..." Ich hatte im Desktop-Konfigurations-Wizard "Germany" gewählt. Mit dem Vereinigten Königreich wäre das ni...

Go to advanced search