Go to advanced search

by ZPMMaker
Sun Sep 06, 2020 1:06 am
Forum: General discussion
Topic: Long-term booting from USB/SSD/SD card
Replies: 15
Views: 1467

Re: Long-term booting from USB/SSD/SD card

Seeking Sooth wrote:
Sat Sep 05, 2020 7:40 pm
Whatever you do, try to affix the drive so I doesn't wiggle around too much and stress the connections.
Yep, it's all inside an enclosure, with each item/PCB all secured in place so there can be no movement at all. :)
by ZPMMaker
Sat Sep 05, 2020 2:01 am
Forum: General discussion
Topic: Long-term booting from USB/SSD/SD card
Replies: 15
Views: 1467

Re: Long-term booting from USB/SSD/SD card

Thanks everyone for the tips. I ended up doing some testing myself and figured out a USB-C SSD was sufficient (ended up using Samsung T5 s). I don't necessarily need high-speed (although that would be beneficial); I just need longevity. I'm using the Pi 4B because I am also doing deep learning infer...
by ZPMMaker
Tue Jun 23, 2020 1:09 am
Forum: General discussion
Topic: Long-term booting from USB/SSD/SD card
Replies: 15
Views: 1467

Re: Long-term booting from USB/SSD/SD card

epoch1970 wrote:
Mon Jun 22, 2020 9:54 am
Raspi-config has a read only overlay filesystem option now.
The whole root filesystem gets mapped to RAM for writes.
Ah, thanks. That's good to know.
by ZPMMaker
Mon Jun 22, 2020 7:32 am
Forum: General discussion
Topic: Long-term booting from USB/SSD/SD card
Replies: 15
Views: 1467

Long-term booting from USB/SSD/SD card

Hi all, I have had a network of remote RPi Zero's running for a little over three years now, all running Raspbian, booting from microSD cards. They are slowly dying of old age (files are randomly becoming corrupted; only three of the original ten systems remain online, with most of them having died ...
by ZPMMaker
Mon Mar 23, 2020 1:25 am
Forum: Advanced users
Topic: Using two WiFi country codes
Replies: 4
Views: 259

Re: Using two WiFi country codes

"Does the end user not pick the country themselves?" No, it's a completely headless system; I need to pre-program the appropriate WiFi settings prior to shipping. "You need to change it at the last step of your programming process" Yep, was just trying to avoid having to do that...
by ZPMMaker
Sun Mar 22, 2020 10:32 pm
Forum: Advanced users
Topic: Using two WiFi country codes
Replies: 4
Views: 259

Re: Using two WiFi country codes

TL;DR: is there a way to specify more than one WiFi country code in wpa_supplicant.conf? No. You can't specify multiple countries. Does the end user not pick the country themselves? You need to change it at the last step of your programming process or have a manufacturing mode where it defaults to ...
by ZPMMaker
Sun Mar 22, 2020 10:14 pm
Forum: Advanced users
Topic: Using two WiFi country codes
Replies: 4
Views: 259

Using two WiFi country codes

I've been developing an IoT sensor suite based on the RPi, and am about to start shipping the systems to where they're being installed. Problem is, it's more convenient to use WiFi both during system setup (here in Australia) and when the system is being installed (potentially in other countries) ra...
by ZPMMaker
Fri Jan 31, 2020 4:57 am
Forum: Troubleshooting
Topic: Camera not detected despite being plugged in
Replies: 19
Views: 3141

Re: Camera not detected despite being plugged in

i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 5...
by ZPMMaker
Thu Jan 30, 2020 6:53 am
Forum: Troubleshooting
Topic: Camera not detected despite being plugged in
Replies: 19
Views: 3141

Re: Camera not detected despite being plugged in

Thanks for your reply and advice, 6by9. If you have $ vcgencmd get_camera supported=1 detected=0 whilst $ vcgencmd version Jan 16 2020 16:00:12 Copyright (c) 2012 Broadcom version a15d66d3615281e13110f10573bf580c4d1156fa (clean) (release) (start_x) (start_x includes the camera control code), then yo...
by ZPMMaker
Tue Jan 28, 2020 6:47 am
Forum: Troubleshooting
Topic: Camera not detected despite being plugged in
Replies: 19
Views: 3141

Re: Camera not detected despite being plugged in

You have a mix of Stretch and Buster packages by the look of it. lxkeymap was in Raspbian Stretch, but doesn't exist in Buster. It looks to have been something originally from Ubuntu that was specifically added to Raspbian for the Pi. It's not a standard Debian package. It would be better, if possi...
by ZPMMaker
Tue Jan 28, 2020 2:30 am
Forum: Troubleshooting
Topic: Camera not detected despite being plugged in
Replies: 19
Views: 3141

Re: Camera not detected despite being plugged in

I decided to try and completely remove libraspberrypi-bin (of which raspistill is a part), and then reinstall it. I actually did sudo apt-get --reinstall install libraspberrypi-bin earlier, so instead I tried to uninstall all its dependencies as well, with the aim of reinstalling them too, hoping th...
by ZPMMaker
Mon Jan 27, 2020 10:55 pm
Forum: Troubleshooting
Topic: Camera not detected despite being plugged in
Replies: 19
Views: 3141

Re: Camera not detected despite being plugged in

The other two faulty RPi's (as per the other discussion linked-to in the OP) were fixed by doing a software update. So on this Pi with the bad camera, I ran: sudo apt-get update && sudo apt full-upgrade -y && sudo apt -y dist-upgrade I'm now running on Raspbian Buster (I was previous...
by ZPMMaker
Mon Jan 27, 2020 6:21 am
Forum: Troubleshooting
Topic: FIXED: man <command> exits with code 1
Replies: 11
Views: 1046

Re: man <command> exits with code 1

:~ $ ls -l /proc/$$/fd lrwx------ 1 pi pi 64 Jan 25 09:58 0 -> /dev/pts/1 lrwx------ 1 pi pi 64 Jan 25 09:59 1 -> /dev/pts/1 l-wx------ 1 pi pi 64 Jan 25 09:59 2 -> 'pipe:[5880175]' l-wx------ 1 pi pi 64 Jan 25 09:59 255 -> 'pipe:[5880175]' So, standard input and output (0 and 1) are connected to a...
by ZPMMaker
Sun Jan 26, 2020 12:31 pm
Forum: Troubleshooting
Topic: [Fixed] Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used
Replies: 17
Views: 1581

Re: Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used

OK, major derp moment. I just realised I'm still running Stretch rather than Buster. Just did sudo apt full-upgrade and that completely fixed one of the two faulty systems. Will try and do this on the other one tomorrow (it's almost midnight here now). Will keep the thread updated as I make progres...
by ZPMMaker
Sun Jan 26, 2020 11:26 am
Forum: Troubleshooting
Topic: [Fixed] Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used
Replies: 17
Views: 1581

Re: Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used

OK, major derp moment. I just realised I'm still running Stretch rather than Buster. Just did sudo apt full-upgrade and that completely fixed one of the two faulty systems. Will try and do this on the other one tomorrow (it's almost midnight here now). Will keep the thread updated as I make progress...
by ZPMMaker
Sun Jan 26, 2020 8:30 am
Forum: Troubleshooting
Topic: Camera not detected despite being plugged in
Replies: 19
Views: 3141

Re: Camera not detected despite being plugged in

pi-anazazi wrote:
Sun Jan 26, 2020 8:22 am
You should really have a look at dmesg and and (permanent?) logs in systemctl to see, if anything is in there...
Sorry, could you please explain how to do this?
Thanks. :)
by ZPMMaker
Sun Jan 26, 2020 8:28 am
Forum: Troubleshooting
Topic: FIXED: man <command> exits with code 1
Replies: 11
Views: 1046

Re: man <command> exits with code 1

That said, I don't understand how you could possibly run a terminal without it being interactive... the whole point of the terminal - as far as I am aware, anyway - is to be able to enter commands in and see the results, i.e. to interact with it. (?) Could you please explain this to me? This is an ...
by ZPMMaker
Sun Jan 26, 2020 6:24 am
Forum: Troubleshooting
Topic: [Fixed] Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used
Replies: 17
Views: 1581

Re: Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used

Interesting that it is coming back with "Temporary failure resolving 'mirrordirector.raspbian.org'". I'm guessing this means the Pi can't connect to the Raspbian server/package repo? It means the Pi can't find out the IP address to use for the server 'mirrordirector.raspbian.org' with a D...
by ZPMMaker
Sun Jan 26, 2020 5:58 am
Forum: Troubleshooting
Topic: [Fixed] Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used
Replies: 17
Views: 1581

Re: Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used

Interesting that it is coming back with "Temporary failure resolving 'mirrordirector.raspbian.org'". I'm guessing this means the Pi can't connect to the Raspbian server/package repo? It means the Pi can't find out the IP address to use for the server 'mirrordirector.raspbian.org' with a D...
by ZPMMaker
Sun Jan 26, 2020 3:11 am
Forum: Troubleshooting
Topic: [Fixed] Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used
Replies: 17
Views: 1581

Re: Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used

I decided to re-run that debsums -a command, but redirected stdout to a file so I could grep -v OK ~/debsums-a.txt and be more thorough, rather than just quickly scrolling through the output with my mouse. This was most wise. I had missed a few things that weren't ok. On system A: /etc/skel/.bashrc ...
by ZPMMaker
Sat Jan 25, 2020 9:00 pm
Forum: Troubleshooting
Topic: Camera not detected despite being plugged in
Replies: 19
Views: 3141

Re: Camera not detected despite being plugged in

Out of interest, how long ago was that? I’m just wondering if you might’ve had the same version of whatever software I updated just before the issue started on my systems... My four Zero Ws are all running the same version of Raspbian Stretch Lite from early 2018 with kernel 4.19.93 and MJPG Stream...
by ZPMMaker
Sat Jan 25, 2020 11:27 am
Forum: Troubleshooting
Topic: Camera not detected despite being plugged in
Replies: 19
Views: 3141

Re: Camera not detected despite being plugged in

I "cured" a raspi 2 with buster by turning on fsck on each boot and enabeling permanent logs (for better debugging... sudo mkdir /var/log/journal), see here https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=256341&p=1591076 ...added to /boot/cmdline.txt fsck.repair=yes and e...
by ZPMMaker
Sat Jan 25, 2020 11:23 am
Forum: Troubleshooting
Topic: [Fixed] Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used
Replies: 17
Views: 1581

Re: Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used

'badblocks" is not as relevant as it was decades ago. Operating systems used to need facilities to find and work around defects in the media. All modern storage devices do this internally, and hide problems from the OS until they lose data. The fact that you can read the whole card is not a ba...
by ZPMMaker
Sat Jan 25, 2020 10:04 am
Forum: Troubleshooting
Topic: FIXED: man <command> exits with code 1
Replies: 11
Views: 1046

Re: man <command> exits with code 1

su -c '/bin/bash -i' pi In another thread I said that a "tcsetattr" error meant that bash thought it was interactive but had no terminal. Here, you are passing the -i flag to bash, forcing it to be interactive when it presumably does not want to be. According to the man page, bash should ...
by ZPMMaker
Fri Jan 24, 2020 4:15 am
Forum: Troubleshooting
Topic: FIXED: man <command> exits with code 1
Replies: 11
Views: 1046

Re: man <command> exits with code 1

A web terminal that logs you in as root sounds really risky. I hope this is only on your local network or you are at least connecting over https:// I would assume that the $TERM variable isn't being set correctly. Do an 'env' or 'echo $TERM' and make sure it matches whatever the web terminal is mos...

Go to advanced search