Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
eddiewalker
Apr 27, 2004


Since youíre on a Mac, open Terminal, navigate to ďbootĒ on the SD card and type ďtouch sshĒ

If you write a lot of Pi images ďapplepibakerĒ can do that step automatically.

Adbot
ADBOT LOVES YOU

SpaceSDoorGunner
May 4, 2018



Thanks!

Lazyhound
Mar 1, 2004

A squid eating dough in a polyethylene bag is fast and bulbous—got me?


You probably shouldnít post a photo of your IoT hubís secret key.

Warbird
May 23, 2012

Burn the 'dawgs
Kill the Yellowjackets
Purge the Tiger
It is better to die for Bama than to live for yourself


Fun Shoe


If youíre running a pi 4 Iíd encourage running it sans box as it tends to run hot and youíd likely hit thermal throttling if itís enclosed like that. An active cooling case would be a decent call as well. Not a major issue Iíd youíre just puttering around, but something to keep in mind.

Somebody fucked around with this message at 05:39 on Sep 27, 2020

yergacheffe
Jan 22, 2007
Whaler on the moon.

I've got a general SBC/Linux question not directly related to Pis, hope it's okay to ask here. How does Linux determine how much RAM is available for it to use?

My situation:

I have an old Beagleboard-XM lying around that I wanted to repurpose for random stuff. I installed the debian 9.5 image from the beagleboard website and ran into issues trying to 'apt update' to get the latest package list. dmesg was reporting that the memory manager was killing apt because the system had run out of memory. As a workaround, I made a swapfile on the SD card.

free -m and the Memory: line in dmesg was reporting about 230Mb. The board is supposed to have 512Mb of RAM.

Later on, I installed Arch instead onto the Beagleboard. Arch correctly reports the full 512Mb of RAM as available.

So why the discrepancy? My only guess is that it's something related to the u-boot bootloader, but I'm unable to find the configuration/sources for those to compare.

EDIT: Digging some more shows that u-boot is responsible for handing off memory information to the Linux kernel. Now I just need to dig up a serial cable and monitor how the boot process differs between the u-boot files provided in Debian vs Arch.

yergacheffe fucked around with this message at 16:54 on Sep 19, 2020

Whoreson Welles
Mar 4, 2015

ON TO THE NEXT PAGE!


Hey thread. I just got a Pi 4 4gb to mess around with some basic stuff in my spare time but Iím having some trouble getting it to work with an LG 65Ē 4k tv. I was hoping to hook it up and control it via VNC/SSH but it wonít boot when connected and the LG says no signal. Canít even ping it after turning it on so itís likely not even booting.

Anybody have similar issues hooking up to a tv? Iíve found some references to the issue online but no concrete fix.

Septic Knothead
Jul 23, 2009

Boris S Wart
The Second Meanest Man In The World


Whoreson Welles posted:

Hey thread. I just got a Pi 4 4gb to mess around with some basic stuff in my spare time but Iím having some trouble getting it to work with an LG 65Ē 4k tv. I was hoping to hook it up and control it via VNC/SSH but it wonít boot when connected and the LG says no signal. Canít even ping it after turning it on so itís likely not even booting.

Anybody have similar issues hooking up to a tv? Iíve found some references to the issue online but no concrete fix.

I had issues like this with my unit that came with the cannakit. I think that the first boot, the one that gives you the setup options doesn't really detect the video that you are connecting to and the low-end defaults that it would choose don't work with your TV. I am not sure about the why, but I do know that I was able to fix it by getting a small (tiny!) monitor for setup and then once I picked all my defaults, I was able to connect via VNC/SSH.

Whoreson Welles
Mar 4, 2015

ON TO THE NEXT PAGE!


I actually managed to get it working by first setting up in a normal headless setup, then adjusting certain boot options (specified 1080 resolution) and now it works.

Centrist Committee
Aug 6, 2019



I think I want to get a Pi for a bunch of little projects. I want to run a VPN server, a print server, and hook up a bunch of sensors, maybe to build a weather station. I was thinking of running Ubuntu Server LTS. Mostly I want to hook up lots of peripherals and tinker with things. My instinct would be to get a Pi 4 with 8 Gb of memory, but I want to keep energy use to a minimum, so if that much RAM would be overkill or an older model runs more efficiently, that would be good to know. Is there a big difference in thermals and energy usage, or just get whatever?

CarForumPoster
Jun 26, 2013


Centrist Committee posted:

I think I want to get a Pi for a bunch of little projects. I want to run a VPN server, a print server, and hook up a bunch of sensors, maybe to build a weather station. I was thinking of running Ubuntu Server LTS. Mostly I want to hook up lots of peripherals and tinker with things. My instinct would be to get a Pi 4 with 8 Gb of memory, but I want to keep energy use to a minimum, so if that much RAM would be overkill or an older model runs more efficiently, that would be good to know. Is there a big difference in thermals and energy usage, or just get whatever?

If you have a power budget because you need a battery then worry about power draw. Otherwise any passive air cooled computer isnít going to draw much power. If it doesnít need a fan to dissipate the heat, itís not drawing much power in terms of your electricity bill.

Centrist Committee
Aug 6, 2019



CarForumPoster posted:

If you have a power budget because you need a battery then worry about power draw. Otherwise any passive air cooled computer isnít going to draw much power. If it doesnít need a fan to dissipate the heat, itís not drawing much power in terms of your electricity bill.

Iíd like to get to a power budget, and one of the sensors Iíd like to use or build is some kind of kill-a-watt type thing that would let me collect power usage. There are probably easier ways to do it, but it seems like a dumb, nerdy way to learn about it.

poeticoddity
Jan 14, 2007
"How nice - to feel nothing and still get full credit for being alive." - Kurt Vonnegut Jr. - Slaughterhouse Five

Centrist Committee posted:

I’d like to get to a power budget, and one of the sensors I’d like to use or build is some kind of kill-a-watt type thing that would let me collect power usage. There are probably easier ways to do it, but it seems like a dumb, nerdy way to learn about it.

There are in-line USB current meters that have little OLED or LED displays on them.
If you're just looking for nerd points you could try to read the data off of one using the GPIO pins to make a power-aware RasPi.

mod sassinator
Dec 13, 2006



An 8GB pi is definitely overkill for a few services too, I bet a standard 2GB model would work great. If you don't boot into or use the graphical interface there's not much memory used by the base OS. You can probably run 10-20 little services before really running into much memory pain.

Centrist Committee
Aug 6, 2019



^ Yeah, no GUI, all shell all day

poeticoddity posted:

There are in-line USB current meters that have little OLED or LED displays on them.
If you're just looking for nerd points you could try to read the data off of one using the GPIO pins to make a power-aware RasPi.

Idk what this means but it sounds exactly the kind of thing Iím hoping to get out of this project

poeticoddity
Jan 14, 2007
"How nice - to feel nothing and still get full credit for being alive." - Kurt Vonnegut Jr. - Slaughterhouse Five

Centrist Committee posted:

^ Yeah, no GUI, all shell all day


Idk what this means but it sounds exactly the kind of thing I’m hoping to get out of this project

https://www.amazon.com/PowerJive-Vo...y/dp/B013FANC9W

Something like this, but hack it so you're reading data out to the Raspi instead of you visually reading the display on the meter.

mod sassinator
Dec 13, 2006



Grab a current sensing board like this and you could measure the power consumed by the raspberry pi in your code directly too: https://learn.adafruit.com/adafruit...sensor-breakout You'd route the power to the pi through the board (check the guide for how to wire it up to stuff) instead of connecting the pi directly to the USB power source.

Centrist Committee
Aug 6, 2019



Thatís cool as hell

Handsome Ralph
Sep 3, 2004

Johnny Pussy?


Quick question, my very old Raspberry Pi that I was using for Pihole had it's ethernet port up and die on me. I bought a new Pi 4 but I was wondering, can I just swap the SD card with Pihole into my new Pi and start using it or will I need to configure it from scratch?

xtal
Jan 9, 2011



Handsome Ralph posted:

Quick question, my very old Raspberry Pi that I was using for Pihole had it's ethernet port up and die on me. I bought a new Pi 4 but I was wondering, can I just swap the SD card with Pihole into my new Pi and start using it or will I need to configure it from scratch?

I think some of the super old Pis are 32 bit, in which case the card won't boot. If it's from the same CPU architecture but just a different Pi version, see if it boots, and then make sure you're using the kernel and firmware for the Pi you're using. It may boot with degraded firmware and that's easier than just making a whole new card.

Handsome Ralph
Sep 3, 2004

Johnny Pussy?


Ah right I didn't even think of that (32 bit architecture). I'll just set it up from scratch, thanks!

wolrah
May 8, 2006
what?


As far as I've heard as long as the OS is reasonably up to date such that it'd have driver support for the newer hardware it should generally work just fine to take a card from an older Pi and boot it on a newer one. 64 bit Pis can still boot 32 bit kernels.

SpaceSDoorGunner
May 4, 2018



I installed a mazer case on mine instead of my cardboard box setup and itís great.

I got real scared when I saw all the wires/fan but itís really easy to setup and itís quiet and cool.

other people
Jun 27, 2004
Associate Christ

Does anyone know if the VideCoreIV/OpenMax libraries are available as source code anywhere? All I can find are the binaries (https://github.com/raspberrypi/firm...e/master/opt/vc).

I have set up a Pi4 with fedora and I'd like to try jellyfin with hardware acceleration but that depends on openmax (https://jellyfin.org/docs/general/a...erry-pi-3-and-4).

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS

I thought that was one of the biggest complaints of the hardcore libre community, that there was no source, and never would be, for the video drivers.

SlowBloke
Aug 14, 2017


ante posted:

I thought that was one of the biggest complaints of the hardcore libre community, that there was no source, and never would be, for the video drivers.

I think the forever closed source items are the parts that concern video encode/decode and HDCP, the rest wouldn't impact broadcom that much to provide specs.

SuicidalSmurf
Feb 12, 2002



Wasn't sure if this was better here, or in the learning electronics thread, but wanted to get a sanity check before starting in on a project. I have about 10 paper star lanterns that typically are lit with a low-wattage incandescent bulb. I want to use some LED bulbs, and use a Raspberry pi as a controller to make a sort of chandelier. I would additionally like it to be controllable via Google Home, and do some neat light tricks like dimming, "twinkling," set on a schedule, etc. I've seen a couple projects using strip lights to do something similar and interfacing Google Home through IFTTT. This would pretty much be the same deal, but using larger bulbs that will be a bit more multi-directional.

I'm looking at these bulbs in 5v https://www.amazon.com/gp/product/B...1d6b1bfbee&th=1

I haven't done a ton of work with serial interfaces, except for a little freezer thermometer I built in the past. Am I understanding correctly that so long as all the bulbs are wired to the appropriate GPIO pin, I can individually address all lights on the strand? I would likely have a "strand" or "cluster" of 3-4 bulbs per lantern for the brightness I desire/"twinkling" effects, and probably join at a protoboard and wire in parallel to the pi GPIO. Assuming that if I can address one bulb, that I can address the 3-4 bulbs per lantern and control as a "cluster" as long as it's defined in code?

I'm perfectly willing to suffer/puzzle through how to control these things in Python, and it seems that there are plenty of libraries out there that I can adapt, so long as my assumptions on how everything's all interconnected are okay as a starting point.

Other odds and ends:
If I'm understanding correctly, I'll need to step up the GPIO voltage to 5v to control the linked lights? Would something like the below work to step up?
https://www.amazon.com/Comidox-Modu...02971195&sr=8-1

And this is the power supply I'm looking at. It appears each bulb draws .06 amps, so I'm thinking I'll have .7a overhead if I were running all 50 bulbs and the pi was running full bore at 1.3a (and I'm likely going to be under 40 bulbs total and keep some as spares). Open to suggestions on a better supply, I'm going to need about 10 ft of cord to run from a wall outlet to hang from the ceiling like a lamp.
https://www.amazon.com/JOVNO-100-24...2970823&sr=8-19

Oh and this would be running off a Pi Zero W I have kicking around.

Warbird
May 23, 2012

Burn the 'dawgs
Kill the Yellowjackets
Purge the Tiger
It is better to die for Bama than to live for yourself


Fun Shoe

Iíd typically float an arduino for that sort of thing, but if youíre looking to hook into Google or the like then I think youíre on the right track.

Centrist Committee
Aug 6, 2019



Whereís the learning electronics thread?

SuicidalSmurf
Feb 12, 2002



Centrist Committee posted:

Where’s the learning electronics thread?

DIY
https://forums.somethingawful.com/s...hreadid=2734977

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.


You can't drive a boost converter from the GPIO, it doesn't have the amperage. You probably should look for a solid state switch instead.

Centrist Committee
Aug 6, 2019




ty

SuicidalSmurf
Feb 12, 2002



VictualSquid posted:

You can't drive a boost converter from the GPIO, it doesn't have the amperage. You probably should look for a solid state switch instead.

Makes sense. I have a 2n2222 transistor in my bag of parts, would that work, or do you have a suggestion?

namlosh
Feb 11, 2014

I blew up


In the link you gave, look in the ďoften bought togetherĒ section on amazon:

your link

the component

I donít know for sure, but looks simple enough, read the reviews

Adbot
ADBOT LOVES YOU

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.


SuicidalSmurf posted:

Makes sense. I have a 2n2222 transistor in my bag of parts, would that work, or do you have a suggestion?

Should work.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply