Go to advanced search

by Milliways
Sun Oct 20, 2019 3:51 am
Forum: Beginners
Topic: Why buy 32GB or less MicroSD card when 64GB is a few dollars more?
Replies: 18
Views: 451

Re: Why buy 32GB or less MicroSD card when 64GB is a few dollars more?

DougieLawson wrote:
Sat Oct 19, 2019 6:22 pm
… NOOBS is a pain…
I agree (despite SD Card size) and don't see why the Foundation continues to recommend it - it is harder to setup and less flexible.
by Milliways
Sat Oct 19, 2019 11:58 pm
Forum: Raspbian
Topic: Samba share not visible on MacOS
Replies: 6
Views: 245

Re: Samba share not visible on MacOS

I use Samba on the Pi and access from my Mac, BUT I find the Finder almost useless. Finder does show shares after connection. I always use something like the following to open my shares open smb://MilliwaysPi4.local/www I have made minimal changes to /etc/samba/smb.conf - just setting shares e.g. [w...
by Milliways
Wed Oct 16, 2019 3:15 am
Forum: Advanced users
Topic: gpio-fan
Replies: 0
Views: 96

gpio-fan

Has anyone used gpio-fan? Name: gpio-fan Info: Configure a GPIO pin to control a cooling fan. Load: dtoverlay=gpio-fan,<param>=<val> Params: gpiopin GPIO used to control the fan (default 12) temp Temperature at which the fan switches on, in millicelcius (default 55000) I tried this on my Pi4, and GP...
by Milliways
Wed Oct 16, 2019 2:30 am
Forum: Raspbian
Topic: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small
Replies: 35
Views: 2195

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

Is there anyway of non-destructively resizing the boot partition? No - at least not on a running system - you can't move an active root filesystem. It is possible to resize/move partitions on a mounted filesystem. This can be done with gparted (or manually). The easiest is to make a modified image....
by Milliways
Sat Oct 12, 2019 11:45 pm
Forum: Raspbian
Topic: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small
Replies: 35
Views: 2195

Re: raspberrypi-bootloader (1.20190925-1) upgrade fails: /boot too small

If you make a backup using the code in https://raspberrypi.stackexchange.com/a/103991/8697 then restore the new Image will have a 256MB boot partition. (This also fixes the problem with Buster images which actually have 256MB + 1 sector boot partition and a 4MB gap before the root partition). NOTE U...
by Milliways
Sat Oct 12, 2019 4:15 am
Forum: Raspbian
Topic: GPIO Readall Code
Replies: 11
Views: 411

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: 411

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: 411

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: 71

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: 978

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: 978

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: 7
Views: 175

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: 409

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: 3189

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: 1081

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: 457

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: 457

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: 457

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: 1081

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: 180
Views: 6554

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: 180
Views: 6554

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: 24
Views: 2463

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: 24
Views: 2463

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: 24
Views: 2463

Re: Image File Utilities

deleted

Go to advanced search