Go to advanced search

by dickon
Thu Sep 24, 2020 5:14 pm
Forum: Advanced users
Topic: Raspberry Pi4 bootloader - network boot support - BETA
Replies: 104
Views: 35459

Re: Raspberry Pi4 bootloader - network boot support - BETA

And once set they're immutable. It's very limited for this use-case. On the 4, you could add a variable to the EEPROM, but you hit the same basic problem: anyone could run 'vcgencmd bootloader_config' and recover the keys, although you could possibly do something nasty with /dev/vchiq permissions, a...
by dickon
Thu Sep 24, 2020 9:50 am
Forum: Advanced users
Topic: Raspberry Pi4 bootloader - network boot support - BETA
Replies: 104
Views: 35459

Re: Raspberry Pi4 bootloader - network boot support - BETA

The issue with this for me is that I keep my /boot directories inside the roots of the Raspbian installations, that way an apt update will be able to do EEPROM updates correctly. So since I don't have paths like /tftpdir/serial/<bootfiles> I can't use this method and would need to bind mount the /b...
by dickon
Sun Sep 20, 2020 6:17 pm
Forum: General discussion
Topic: Media Storage Advice
Replies: 7
Views: 374

Re: Media Storage Advice

Media storage NAS units don't need to have the discs spinning all the time -- only when recording or playing back -- so a good look at hdparm's manpage is well worth a read. Also, stick the thing somewhere where the noise doesn't matter, and use a second PI to do the actual playback in silence behin...
by dickon
Sat Sep 12, 2020 10:46 am
Forum: Advanced users
Topic: Sniffing packets for advertisement data
Replies: 2
Views: 128

Re: Sniffing packets for advertisement data

Any website or app which serves ads from its own server -- web server, or app-support server or the like -- won't have its ads blocked, as otherwise the main site / app won't work. DNS blocking is only so effective. Defence in depth: Pi-hole. uBlock Origin, and NoScript are requirements in web brows...
by dickon
Thu Sep 10, 2020 7:54 am
Forum: General discussion
Topic: Text Editors for Raspberry Pi 4
Replies: 60
Views: 2802

Re: Text Editors for Raspberry Pi 4

If you find a source of proper, three-buttoned mice, please, please let me know. The three-button mouse I linked above actually took a bit of searching to find. Oh, blimey. I've been looking for one of those things for ages, as a backup to the two I currently own. I've been entirely unable to find ...
by dickon
Wed Sep 09, 2020 7:51 pm
Forum: General discussion
Topic: Using cd from within a bash script
Replies: 42
Views: 1231

Re: Using cd from within a bash script

Use 'ls -lA' instead, and save yourself several microseconds skipping the '.' and '..' entries in the listing...
by dickon
Wed Sep 09, 2020 7:46 pm
Forum: Advanced users
Topic: Root on ZFS to detect and survive SD card corruption
Replies: 15
Views: 400

Re: Root on ZFS to detect and survive SD card corruption

I wouldn't touch butterfs with a 3m bargepole, personally... All the fun and games you talked about with ext*, writ large, only this time attempting to copy a filesystem / block manager / snapshotter -- a far bigger job. I suppose the fact its authors didn't murder anyone -- unlike some filesystems ...
by dickon
Wed Sep 09, 2020 6:53 pm
Forum: Advanced users
Topic: Root on ZFS to detect and survive SD card corruption
Replies: 15
Views: 400

Re: Root on ZFS to detect and survive SD card corruption

Unless and until ZFS gets in-kernel, I suspect you'll be out of luck. And I doubt that will happen. Not because the much-discussed licensing issues, but because there has been enough FUD about so-called 'layer violations' to put Torvalds off it. (Basically, some people seem to think that the block l...
by dickon
Wed Sep 09, 2020 5:15 pm
Forum: Advanced users
Topic: Root on ZFS to detect and survive SD card corruption
Replies: 15
Views: 400

Re: Root on ZFS to detect and survive SD card corruption

Then do it. I just wanted to highlight some of the limitations and issues you may hit. I would strongly recommend the 64b kernel, though, possibly with the 64b userland (which will make compiling the modules easier). You'll also need an initrd, but the zfs-initramfs package should sort that out.
by dickon
Wed Sep 09, 2020 4:54 pm
Forum: Advanced users
Topic: Root on ZFS to detect and survive SD card corruption
Replies: 15
Views: 400

Re: Root on ZFS to detect and survive SD card corruption

Yes, but it also likes lots of virtual address space to play with -- Solaris apparently heavily uses it internally -- which is extremely limited in 32b. Basically, I wouldn't run it on a Pi, and certainly not with a 32b kernel. I'd run it on an amd64 machine with a couple of SSDs and network boot (w...
by dickon
Wed Sep 09, 2020 4:27 pm
Forum: Advanced users
Topic: Root on ZFS to detect and survive SD card corruption
Replies: 15
Views: 400

Re: Root on ZFS to detect and survive SD card corruption

I don't recall the details -- I ran it once on a 32b kernel and had trouble, so ditched it for a 64b one. On a 64b-capable Pi you're probably better off running the 64b kernel anyway, given what Linux Torvalds says about address space ('virtual space needs to be bigger than physical space. Not “as b...
by dickon
Wed Sep 09, 2020 4:02 pm
Forum: Advanced users
Topic: Root on ZFS to detect and survive SD card corruption
Replies: 15
Views: 400

Re: Root on ZFS to detect and survive SD card corruption

Be careful with it. It's a set of out-of-tree kernel modules, which means you'll need to rebuild it on an update to raspberrypi-kernel or on an rpi-update, and it doesn't much like 32b kernels. You'll also want to limit the memory it uses for cacheing, as it likes to use a lot. Leave compression on ...
by dickon
Wed Sep 09, 2020 9:19 am
Forum: General discussion
Topic: rpi on multiple networks
Replies: 11
Views: 293

Re: rpi on multiple networks

Given they're so far off the beaten track at this point anyway, a script around 'iw dev wlan0 scan | grep -q $BSSID' and a bunch of ifconfigs based on the result is probably simpler and easier to write and maintain.
by dickon
Wed Sep 09, 2020 9:15 am
Forum: General discussion
Topic: Text Editors for Raspberry Pi 4
Replies: 60
Views: 2802

Re: Text Editors for Raspberry Pi 4

If you find a source of proper, three-buttoned mice, please, please let me know. They seem to have entirely disappeared, and the scroll wheel abominations play merry hell with my RSI. I currently have two devices which identify as 'Sun Microsystems, Inc. 3-button Mouse'. These are excellent, but onl...
by dickon
Tue Sep 08, 2020 4:39 pm
Forum: General discussion
Topic: What is the most popular operating system for sny SBC?
Replies: 58
Views: 2210

Re: What is the most popular operating system for sny SBC?

Most of those I would class as embedded, rather than SBC. The OP's question to me was referring to the Pi-class (Raspberry, Orange, and Banana Pis, Jetsons, Vims, O-Droids, etc.) devices we argue about over here all day.
by dickon
Tue Sep 08, 2020 3:50 pm
Forum: General discussion
Topic: rpi on multiple networks
Replies: 11
Views: 293

Re: rpi on multiple networks

This is what dynamic addressing was designed to solve. You could do something with some boot scripts which look for the appropriate SSIDs and configure the thing appropriately, but, really, that's the wrong way to do this. Much better to stick a dhcpd on both networks, and dish out static addresses ...
by dickon
Tue Sep 08, 2020 3:18 pm
Forum: General discussion
Topic: Text Editors for Raspberry Pi 4
Replies: 60
Views: 2802

Re: Text Editors for Raspberry Pi 4

If you're going to be writing any C, then color-coded is another Vim plugin that is an absolute must. Can't an an "absolute must" since I write C without that. Maybe 'must' was a bit too strong, but I heartily recommend it. It catches things like typoed structure elements and incorrect function arg...
by dickon
Tue Sep 08, 2020 3:13 pm
Forum: General discussion
Topic: What is the most popular operating system for sny SBC?
Replies: 58
Views: 2210

Re: What is the most popular operating system for sny SBC?

Across them all, it'll be the 32b Raspberry Pi OS, because the Pi has far, far out-shipped all the other SBCs put together. I would imagine LibreELEC and derivatives will be in second place, with Ubuntu and Debian behind that.
by dickon
Tue Sep 08, 2020 8:09 am
Forum: General discussion
Topic: Text Editors for Raspberry Pi 4
Replies: 60
Views: 2802

Re: Text Editors for Raspberry Pi 4

timg236 wrote:
Mon Sep 07, 2020 10:16 am
If you happen to choose vi (realistically vim) then I'd recommend investigating these plugins
[...]
If you're going to be writing any C, then color-coded is another Vim plugin that is an absolute must.
by dickon
Mon Sep 07, 2020 3:57 pm
Forum: Advanced users
Topic: mail
Replies: 10
Views: 368

Re: mail

It's easy. I run my own mailserver. The downside of that is that a lot of people can't, and if you've hosted it on a domestic ISP range, you'll probably find yourself in Spamhaus' PBL which will likely limit the number of people you can send mail to. FWIW, the default Debian MTA is exim. It's excel...
by dickon
Mon Sep 07, 2020 3:25 pm
Forum: Advanced users
Topic: brcmfmac: Direct firmware load for brcm .. failed with error -2
Replies: 5
Views: 298

Re: brcmfmac: Direct firmware load for brcm .. failed with error -2

It's a non-issue. It appears that the driver looks for a board-specific firmware blob (which doesn't exist), and then falls back to a more generic one (which does).
by dickon
Sun Sep 06, 2020 9:08 am
Forum: Advanced users
Topic: Rasberry pi 4 tether to Canon 5D Mark III to automatically display image
Replies: 12
Views: 549

Re: Rasberry pi 4 tether to Canon 5D Mark III to automatically display image

Canon used to do an addon for the 5D Mk. 2 that had a wifi interface in it that it could use to upload photos in real-time. I assume they do something similar for the mk. 3. I'd use that rather than a USB cable, shoot in raw+small-JPEG more, and have a watcher script on the pi which simply displays ...
by dickon
Sat Sep 05, 2020 1:59 pm
Forum: Advanced users
Topic: looking for bootloader with USB console support
Replies: 11
Views: 542

Re: looking for bootloader with USB console support

That would be of extremely limited use, as the bootloader would have to be written to use it, and if you did that, you may as well have added support to the thing in the first place. There's no API for a bootloader to call to instruct the firmware to send a byte down a serial port: the thing simply ...
by dickon
Fri Sep 04, 2020 9:32 am
Forum: General discussion
Topic: Is Raspberry Pi OS Compromised ?
Replies: 7
Views: 468

Re: Is Raspberry Pi OS Compromised ?

Heater wrote:
Fri Sep 04, 2020 8:36 am
pi-anazazi wrote:
Fri Sep 04, 2020 8:30 am
... the ipv6 trash ...
Why you say dat ?
Ignorance.

Go to advanced search