Go to advanced search

by Milliways
Sat Oct 12, 2019 4:15 am
Forum: Raspbian
Topic: GPIO Readall Code
Replies: 11
Views: 645

Re: GPIO Readall Code

OK it is simple to detect Type 2 boards which have hardware revision numbers of 4 - 15 (only 3 lines of code).

Now works on my Raspberry Pi Model B Rev 2 and should be OK an all Rev 2 boards and PiA

Anyone with a Type 1 board will have to make their own changes.
by Milliways
Sat Oct 12, 2019 1:47 am
Forum: Raspbian
Topic: GPIO Readall Code
Replies: 11
Views: 645

Re: GPIO Readall Code

This thread looks like a prime example of project creep. After searching, unsuccessfully for a program to display GPIO state on my Pi4 I decided to write one. This took a couple of hours over 2 days - the hardest part was finding a list of GPIO Functions. When completed I realised it would work on a...
by Milliways
Fri Oct 11, 2019 11:40 am
Forum: Raspbian
Topic: GPIO Readall Code
Replies: 11
Views: 645

GPIO Readall Code

I have regularly used WiringPi gpio readall to monitor GPIO. Now that WiringPi is deprecated I decided to write an analog using pigpio. NOTE only supports Pi models with 40 pin expansion header and Raspberry Pi Model B Rev 2 with 26 pin expansion header This has enhanced functionality - it reports a...
by Milliways
Fri Oct 11, 2019 12:09 am
Forum: General discussion
Topic: The pigpiod.service is set to Disable remote socket interface!
Replies: 0
Views: 88

The pigpiod.service is set to Disable remote socket interface!

Some time ago I discovered that remote access to pigpiod no longer seemed to work. Eventually (after considerable effort) I discovered WHY. The pigpiod.service (which should have made the operation easier) is set to Disable remote socket interface ! This bizarre behaviour (which contradicts the pigp...
by Milliways
Sun Oct 06, 2019 7:03 am
Forum: Advanced users
Topic: Change PTUUID/PARTUUID on an SD card or a USB device
Replies: 17
Views: 3279

Re: Change PTUUID/PARTUUID on an SD card or a USB device

If anyone is interested the below is a safe script I have been using for years to change PTUUID on a cloned SD Card. (The original was posted on this site; I have modified to generate PTUUID) I posted that a couple years ago (in response to your request: How to change Disk identifier ). It's the pr...
by Milliways
Sun Oct 06, 2019 4:52 am
Forum: Advanced users
Topic: Change PTUUID/PARTUUID on an SD card or a USB device
Replies: 17
Views: 3279

Re: Change PTUUID/PARTUUID on an SD card or a USB device

If anyone is interested the below is a safe script I have been using for years to change PTUUID on a cloned SD Card. (The original was posted on this site; I have modified to generate PTUUID) #!/bin/bash errexit() { echo "" echo "$1" echo "" exit 1 } usage() { errexit "Usage: $0 [-n | diskid]" } if ...
by Milliways
Sat Oct 05, 2019 2:06 am
Forum: Troubleshooting
Topic: Raspberry Pi 3+ Communication via UART RX TX GPIO Pins
Replies: 8
Views: 450

Re: Raspberry Pi 3+ Communication via UART RX TX GPIO Pins

/dev/ttyAMA0 is connected to Bluetooth!

Use/dev/serial0 (after enabling in raspi-config)

NOTE Arduino serial is 5V - you will need level shifters to connect to Pi 3.3V logic
by Milliways
Tue Oct 01, 2019 7:39 am
Forum: Raspbian
Topic: 2019-09-26 Raspbian Image PTUUID
Replies: 3
Views: 713

Re: 2019-09-26 Raspbian Image PTUUID

RonR wrote:
Tue Oct 01, 2019 4:40 am
Prior to the latest Raspbian image (2019-09-26), an SD card or USB drive received a unique PTUUID/PARTUUID/UUID on startup.
No it didn't!
by Milliways
Tue Oct 01, 2019 1:20 am
Forum: General discussion
Topic: Stepper motor
Replies: 14
Views: 3370

Re: Stepper motor

stepper.gif Pick 3 GPIO pins, the 5V pin and GND pins, and attach as either of the examples. your python program shouldn't be too hard to figure out, just enable the Enable pin, pick the correct setting for the direction pin and trigger the step pin each time you wish the stepper to make a step. DO...
by Milliways
Thu Sep 26, 2019 5:42 am
Forum: General discussion
Topic: Increase /boot Partiton?
Replies: 34
Views: 1284

Re: Increase /boot Partiton?

I figured it wouldn't be to difficult to calculate sizes (so others wouldn't have to perform the calculation). In the end I realised that it is probably easier to let fdisk set the partition size, so I simplified the script. The only thing the user needs to do is set BOOT_SIZE_MB to the Desired boot...
by Milliways
Wed Sep 25, 2019 11:11 am
Forum: General discussion
Topic: Gap in Raspbian images
Replies: 10
Views: 530

Re: Gap in Raspbian images

The boot partition is aligned with a 4MB Erase Block Boundary, its size is a multiple of 4MB , so is the root partition aligned with a 4MB Erase Block Boundary, but it would if it started at 532480 immediately following the boot partition. Yes, but currently the first partition ends in sector 53248...
by Milliways
Wed Sep 25, 2019 9:45 am
Forum: General discussion
Topic: Gap in Raspbian images
Replies: 10
Views: 530

Re: Gap in Raspbian images

Generally it's down to optimisations for the SD card like trying to make sure the two partitions are in different erase blocks. This reduces the wear and hopefully limits the erase/write block operations on one partition from affecting another. I understand why partitions should be aligned on an Er...
by Milliways
Wed Sep 25, 2019 8:02 am
Forum: General discussion
Topic: Gap in Raspbian images
Replies: 10
Views: 530

Gap in Raspbian images

I was just looking at my Raspbian and there seemed to be a 4MB gap between the end of the boot partition and the start of the root, confirmed in gparted. Thinking this may be an artefact of the image copying utilities I use I checked against a downloaded Raspbian image (2019-07-10-raspbian-buster-li...
by Milliways
Wed Sep 25, 2019 5:21 am
Forum: General discussion
Topic: Increase /boot Partiton?
Replies: 34
Views: 1284

Re: Increase /boot Partiton?

It is a trivial task to resize the partitions on a SD Card image, however this requires some knowledge of the partitioning tools. If I wanted to resize the boot partition (which I think a bad idea) I would modify the image-backup tool https://raspberrypi.org/forums/viewtopic.php?p=1528736 to create ...
by Milliways
Mon Sep 23, 2019 5:14 am
Forum: General discussion
Topic: RPI4: Why is everything still 32-bit?
Replies: 186
Views: 9303

Re: RPI4: Why is everything still 32-bit?

Recent PIs have been advertised as using 64-bit processors. Another thing you do not seem to understand is the difference between Marketing and Engineering . Marketing is the bane of the Engineering department (and I am sure vice versa, if the number of times Marketing complained to the Board about...
by Milliways
Sun Sep 22, 2019 12:35 am
Forum: General discussion
Topic: RPI4: Why is everything still 32-bit?
Replies: 186
Views: 9303

Re: RPI4: Why is everything still 32-bit?

One thing all of the above ignore is the stated Foundation position; no one has established a convincing use case for 64 bit.

With 1GiB RAM almost doubling code size makes no sense.

Now that the Pi4 has 4GiB RAM it may become worthwhile.
by Milliways
Wed Sep 18, 2019 6:26 am
Forum: Advanced users
Topic: Image File Utilities
Replies: 47
Views: 4581

Re: Image File Utilities

I have run the backup, but before copying the image to a SD Card decided to check it out. I noticed that directories under /mnt were NOT copied. I have a number of directories which my fstab assumes exist, but they were missing. This is not a major problem but is easily fixed. I changed the rsync to...
by Milliways
Mon Sep 16, 2019 12:54 pm
Forum: Advanced users
Topic: Image File Utilities
Replies: 47
Views: 4581

Re: Image File Utilities

Botspot wrote:
Mon Sep 16, 2019 12:30 pm
Milliways wrote:
Mon Sep 16, 2019 7:19 am
deleted
Remember we want information...No information no help. Could you clarify "deleted"?
Fix the Forum so that posts can be deleted.
by Milliways
Mon Sep 16, 2019 7:19 am
Forum: Advanced users
Topic: Image File Utilities
Replies: 47
Views: 4581

Re: Image File Utilities

deleted
by Milliways
Sun Sep 15, 2019 7:36 am
Forum: Advanced users
Topic: Image File Utilities
Replies: 47
Views: 4581

Re: Image File Utilities

I had used image-mount: to view a downloaded image and tried to use image-backup to perform a backup. The documentation is incredibly brief, there is no help and even examining the script didn't help much - it is devoid of any comments. I have a mounted drive (in /mnt/PiHDD) which I wanted to use fo...
by Milliways
Sun Sep 01, 2019 7:51 am
Forum: Troubleshooting
Topic: How do I specify a Bluetooth audio device
Replies: 0
Views: 95

How do I specify a Bluetooth audio device

I have been exploring espeakNG on my Pi4 via a Bluetooth speaker. I have successfully got it working from the command line but wanted to use from a program. I installed sudo pip3 install py-espeak-ng but all my attempts produce cryptic errors and as usual the Python documentation is sparse. from esp...
by Milliways
Tue Aug 27, 2019 5:24 am
Forum: Troubleshooting
Topic: Error in apt update blocks updating
Replies: 4
Views: 229

Re: Error in apt update blocks updating

The rror I'm getting is : "Failed to fetch http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/libraspberrypi-doc_1.20190819-1_armhf.deb Connection Failed IP:93.93.135.188 Port: 80 This breaks all updates. the ip is the main web address for raspberripi.org so that's not the probl...
by Milliways
Tue Aug 27, 2019 5:14 am
Forum: Raspbian
Topic: why xz format not used for distribution of raspbian images
Replies: 34
Views: 1436

Re: why xz format not used for distribution of raspbian images

we know that xz format is more efficient compression method. but the raspbian images are distributed in zip compressed image. If xz is used at extreme compression level (level 9), much disk space and bandwidth can be saved. That means Raspbian buster desktop image without recommend softwares, will ...
by Milliways
Mon Aug 26, 2019 12:24 pm
Forum: Troubleshooting
Topic: No WiFi on a 4B-4GB with Raspbian Buster
Replies: 45
Views: 2845

Re: No WiFi on a 4B-4GB with Raspbian Buster

If you just install Raspbian (without all the unnecessary overhead of NOOBS or PINN) Ethernet should work out of the box, and WiFi after completing the regionalisation options prompted on first boot.
by Milliways
Fri Aug 23, 2019 6:47 am
Forum: General discussion
Topic: Forum Problems with Sticky
Replies: 2
Views: 178

Forum Problems with Sticky

I have set my preferences to only show the last 6 months Topics (I would prefer a shorter period - so I don't see the thousands of obsolete posts). Unfortunately this means most of the Sticky Posts don't appear e.g The Boot Problems Sticky https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=5815...

Go to advanced search