Go to advanced search

by DougieLawson
Tue Aug 03, 2021 6:26 pm
Forum: Advanced users
Topic: Downgrade accidentally updated kernel? From 5.10.52 back to 5.10.49?
Replies: 5
Views: 189

Re: Downgrade accidentally updated kernel? From 5.10.52 back to 5.10.49?

tprier wrote:
Tue Aug 03, 2021 5:29 pm
I did not try it yet. You say its not recommended to downgrade like that. What can go wrong?
It can leave your system unbootable. It can destroy your rootfs (as rpi-update did in January 2021).
You should only run rpi-update if you have a reliable & tested bootable backup.
by DougieLawson
Tue Aug 03, 2021 4:26 pm
Forum: Advanced users
Topic: I'm on 64-bit Raspberry Pi OS, but arm64 packages unsupported
Replies: 1
Views: 65

Re: I'm on 64-bit Raspberry Pi OS, but arm64 packages unsupported

You've got a 64-bit kernel with 32-bit userland. Which I'd suspect you've done with sudo rpi-update (without paying attention to the warnings for rpi-update).

If you want to try the beta 64-bit RaspiOS get it from https://downloads.raspberrypi.org/raspi ... 021-05-28/
by DougieLawson
Mon Aug 02, 2021 6:33 pm
Forum: Advanced users
Topic: Downgrade accidentally updated kernel? From 5.10.52 back to 5.10.49?
Replies: 5
Views: 189

Re: Downgrade accidentally updated kernel? From 5.10.52 back to 5.10.49?

You can but it's generally not recommended.

sudo rpi-update dc6dc9bc6692d808fcce5ace9d6209d33d5afbac

I've found it easier to build MrEngman's module from source for my RPi1B. He's not updated any WiFi modules since 16th June.
by DougieLawson
Mon Aug 02, 2021 6:18 pm
Forum: Troubleshooting
Topic: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.xx.xx+
Replies: 1561
Views: 1537293

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.xx.xx+

Mr Engman, could you post (or point us to) the source code for the drivers, and also post the scripts you use to prepare them? Then we could attempt making them ourselves. Mr Engman hasn't made any update to any driver since June 16th. I found the source for my driver 8188eu with a trivial Google s...
by DougieLawson
Mon Aug 02, 2021 12:26 pm
Forum: Networking and servers
Topic: Network keeps dropping on System Containing Raspberry Pis
Replies: 41
Views: 2272

Re: Network keeps dropping on System Containing Raspberry Pis

It's a script that grew organically. If a piece isn't needed, tear it out. I haven't had a WiFi failure in months (apart from when we deliberately dropped the power on the house on 3rd April). So it's not getting any testing and the IIIBDFI principle applies.
by DougieLawson
Mon Aug 02, 2021 12:09 pm
Forum: Networking and servers
Topic: Network keeps dropping on System Containing Raspberry Pis
Replies: 41
Views: 2272

Re: Network keeps dropping on System Containing Raspberry Pis

I don't use iwconfig anywhere in my script. The ifconfig command is to ensure the interface is in the right state with a locally assigned IP address before starting wpa_supplicant. That bit probably isn't needed now as it was there when I was deliberately forcing a reload of the Broadcom WiFi drivers.
by DougieLawson
Sun Aug 01, 2021 9:55 pm
Forum: Troubleshooting
Topic: Strange partition setup after flash to NVME USB drive
Replies: 10
Views: 229

Re: Strange partition setup after flash to NVME USB drive

When I connect the device to my PI, I can see it however when trying to boot from it, i receive the error: "Unsupported block size 4096" Use the Raspberry Pi Imager tool to write your Linux OS to your SDCard. Do NOT use ANY Windows native utilities (unless you've got the WIN10/WIN11 WSL i...
by DougieLawson
Sun Aug 01, 2021 5:40 pm
Forum: Advanced users
Topic: Second TV HAT on Zero-W
Replies: 4
Views: 228

Re: Second TV HAT on Zero-W

Pearl.852 wrote:
Sat Jul 31, 2021 5:03 am
Take a look at https://pinout.xyz/pinout/spi
https://pinout.xyz/pinout/tv_hat is more likely to be useful for the OP.
by DougieLawson
Sun Aug 01, 2021 5:38 pm
Forum: General discussion
Topic: No revision info in /proc/cpuinfo
Replies: 9
Views: 351

Re: No revision info in /proc/cpuinfo

The stock Linux arm64 kernel doesn't display revision, serial or model in /proc/cpuinfo. The RPT kernel has a patch applied that adds it. OP isn't using RPi OS so their kernel presumably doesn't have it. So replace the kernel with the RPF/RPTL version. It's easy enough to grab that from https://git...
by DougieLawson
Sun Aug 01, 2021 2:08 pm
Forum: General discussion
Topic: No revision info in /proc/cpuinfo
Replies: 9
Views: 351

Re: No revision info in /proc/cpuinfo

Why aren't folks using the more reliable cat /sys/firmware/devicetree/base/model;echo which is easier than decoding the /proc/cpuinfo Revision string.
by DougieLawson
Sun Aug 01, 2021 2:05 pm
Forum: Troubleshooting
Topic: Incorrect Date and Time Preventing Web Access
Replies: 5
Views: 161

Re: Incorrect Date and Time Preventing Web Access

Is it possible that your Network Manager has by policy blocked network protocols that are not needed/approved, thus preventing the RPi/Buster systems from syncing their time from the Internet via NTP? Then they ought to provide a time server on the local network ? (Wouldn't have to be full NTP. Eve...
by DougieLawson
Sun Aug 01, 2021 12:59 pm
Forum: General discussion
Topic: A simple way to get all IP and MAC addresses on my network
Replies: 24
Views: 611

Re: A simple way to get all IP and MAC addresses on my network

I use this nmap script #!/bin/bash $ip="192.168.3.0/24" sudo nmap -n -sP $IP | awk '/Nmap/ {if (x) {if (x ~ /B8:27/) {split(x, m); print m[5] " " m[13];} x="";} } {x=(!x)?$0:x" "$0;}' I'm only looking for the old Raspberry MAC address with that awk command. Or...
by DougieLawson
Sun Aug 01, 2021 12:42 pm
Forum: Networking and servers
Topic: Network keeps dropping on System Containing Raspberry Pis
Replies: 41
Views: 2272

Re: Network keeps dropping on System Containing Raspberry Pis

I'm running a bash script that sleeps for ten minutes, wakes up, checks the network and either sleeps for ten minutes or fixes it.[/code] It's a bit crude, but before I upgraded my TP-Link firmware (which solved the problem permanently) it was keeping the network alive on all of my WiFi raspberries...
by DougieLawson
Sun Aug 01, 2021 12:39 pm
Forum: Advanced users
Topic: Optimal distcc settings when compiling an RPi
Replies: 4
Views: 153

Re: Optimal distcc settings when compiling an RPi

Why not ask the Box86 developer(s) by opening an issue at https://github.com/ptitSeb/box86/issues? They appear to be optimising for ArmV7 in https://github.com/ptitSeb/box86/blob/master/pkgbuilds/PKGBUILD-raspberrypi They should be using -mcpu=cortex-a72 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-f...
by DougieLawson
Sun Aug 01, 2021 12:28 pm
Forum: Advanced users
Topic: Home server security
Replies: 6
Views: 213

Re: Home server security

The thing that really scared me are those 2 entries: 24.99.***.*** - - [01/Aug/2021:02:08:34 +0200] "GET /admin/index.php?lang=en HTTP/1.1" 200 9434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"...
by DougieLawson
Sun Aug 01, 2021 12:15 pm
Forum: Networking and servers
Topic: Network keeps dropping on System Containing Raspberry Pis
Replies: 41
Views: 2272

Re: Network keeps dropping on System Containing Raspberry Pis

The linux watchdog is always a tricky to setup past "apt install watchdog". The watchdog device in a Pi must be polled at least every 15 seconds, so naively using the "ping" directive in watchdog.conf makes the Pi send a ping every 10 secs or so. I'm running a bash script that s...
by DougieLawson
Sun Aug 01, 2021 11:22 am
Forum: Python
Topic: PHP/PYTHON runs fine on a PI3 but not on a PI4
Replies: 9
Views: 295

Re: PHP/PYTHON runs fine on a PI3 but not on a PI4

To be more secure take www-data out of sudoers. Use sudo usermod -a -G gpio www-data; sudo systemctl restart nginx lighttpd apache2 to allow the web server to access RPi.GPIO. Get the paho-mqtt module with sudo pip3 install paho-mqtt #!/usr/bin/python3 import RPi.GPIO as GPIO import os import paho.m...
by DougieLawson
Sun Aug 01, 2021 10:20 am
Forum: Beginners
Topic: How does my RPi get the time -- no NTP daemon
Replies: 4
Views: 141

Re: How does my RPi get the time -- no NTP daemon

It's all done with systemd timesyncd.

If you want to run ntpd you have to a) install it & b) disable the systemd timesyncd stuff.
by DougieLawson
Sun Aug 01, 2021 10:17 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: overclocking the raspberry pi desktop
Replies: 4
Views: 121

Re: overclocking the raspberry pi desktop

coolprofessor wrote:
Sun Aug 01, 2021 1:47 am
Is there a way to overclock the raspberry pi desktop?
Search Google for "X86 DebIan overclocking".

The Raspberry piece is only the desktop and the collection of installed programs, nothing to do with the underlying OS.
by DougieLawson
Fri Jul 30, 2021 6:35 pm
Forum: Python
Topic: PHP/PYTHON runs fine on a PI3 but not on a PI4
Replies: 9
Views: 295

Re: PHP/PYTHON runs fine on a PI3 but not on a PI4

The problem has been solved by adding: www-data ALL=(ALL) NOPASSWD:ALL in the sudoers file. That is a massive security hole, roughly the size of the crater on Mount Fuji that you've opened in your system. Why do you think your python program needs to run with sudo? Why aren't you using the python p...
by DougieLawson
Fri Jul 30, 2021 5:09 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.10
Replies: 639
Views: 97788

Re: Moving Linux Kernel to 5.10

Unless you need an enhancement included in the newer kernel more, you could easily revert to the previous kernel version you were using, until the CEC functionality you are trying to use is/maybe restored in a newer kernel. It's less than easy when they've pushed it out 5.10.52 with the raspberrypi...
by DougieLawson
Thu Jul 29, 2021 7:15 pm
Forum: Troubleshooting
Topic: BME688 Weather Sensor
Replies: 3
Views: 93

Re: BME688 Weather Sensor

It won't work until you solder in those header pins.
by DougieLawson
Thu Jul 29, 2021 6:32 pm
Forum: Troubleshooting
Topic: Very first piB may now be U/S
Replies: 2
Views: 110

Re: Very first piB may now be U/S

Have you tried replacing the power supply? That's what failed on a couple of my older RPi1 boards.

Go to advanced search