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 money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Sapozhnik
Jan 2, 2005

Nap Ghost
so if clear linux is so great why doesn't anybody else merge their patches upstream

Adbot
ADBOT LOVES YOU

Cybernetic Vermin
Apr 18, 2005

(for those who don't remember, because you may have needed to pay attention for this one: the powervr thing was intel shipping a series of atom chips with powervr gpus, intended for phones and ultra-low-power netbooks, and while intel paid up for a bunch of driver dev it was still ip blobs and bugs all the way down until they abandoned it for in-house graphics next gen)

pseudorandom name
May 6, 2007

lol I forgot they tried to make Atom a thing

Cybernetic Vermin
Apr 18, 2005

on the theme i'm going we'd have all been better off had atom phones been a thing. there's people out there still running the asus atom phones because you can pretty much install a stock linux on it and it'll work.

as opposed to any and every arm phone.

pseudorandom name
May 6, 2007

remember when ARM developers threw a temper tantrum over their endless poo poo being labeled "cute embedded nonsense hacks"

should give them all "I make e-waste" T-shirts

Sapozhnik
Jan 2, 2005

Nap Ghost
phones really ought to have uefi and acpi firmware like any respectable computer system these days

imagine having a laptop from february 2019 and being told "oh i'm sorry sir that model no longer qualifies for security updates, would you be interested in our 2024 model?"

(of course apple silicon moved in precisely the opposite direction because lol gently caress the existence of general purpose computers i guess)

Sapozhnik
Jan 2, 2005

Nap Ghost
european union save me pls

Cybernetic Vermin
Apr 18, 2005

to make this a clear-cut popular opinion, gently caress qualcomm in particular forever.

far from alone, but as far as mustasche-twirling ewaste-creation they're the loving peak.

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

Sapozhnik posted:

so if clear linux is so great why doesn't anybody else merge their patches upstream

honestly idk. i know some of the optimizations they do are intel hardware specific, but it's certainly not all of them, and amd cpus still benefit from using it anyway (benchmarks back this up iirc)

i'd guess it being x86-specific probably being the reason why more than anything else, but like i said i have no idea. not really my domain

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

Cybernetic Vermin posted:

gently caress qualcomm in particular forever.

yep

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

Sapozhnik posted:

phones really ought to have uefi and acpi firmware like any respectable computer system these days

imagine having a laptop from february 2019 and being told "oh i'm sorry sir that model no longer qualifies for security updates, would you be interested in our 2024 model?"

(of course apple silicon moved in precisely the opposite direction because lol gently caress the existence of general purpose computers i guess)

android does use acpi, but uefi not so much

zero knowledge
Apr 27, 2008
the Qualcomm parts I was evaluating last time I worked at an Android OEM could boot Linux on top of UEFI. you could also still do littlekernel if you wanted to but iirc some SoC features and support were gated on enabling UEFI secure boot. seemed like that was the direction the SoC makers were pushing everyone.

unfortunately whether or not it’s UEFI has nothing to do with whether Qualcomm will keep the BSP updated or whether the OEM will ship the software updates past 2-3 years

Hed
Mar 31, 2004

Fun Shoe

spankmeister posted:

it's ok to like things or not like things

:wrong:

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

zero knowledge posted:

the Qualcomm parts I was evaluating last time I worked at an Android OEM could boot Linux on top of UEFI. you could also still do littlekernel if you wanted to but iirc some SoC features and support were gated on enabling UEFI secure boot. seemed like that was the direction the SoC makers were pushing everyone.

unfortunately whether or not it’s UEFI has nothing to do with whether Qualcomm will keep the BSP updated or whether the OEM will ship the software updates past 2-3 years

yeah i know it can (even ios devices can too, technically, they did before iboot was finished), it just almost always doesn't

i imagine they have to have UEFI compatibility for windows though. probably explains the secure boot requirements too

Scrotum Modem
Sep 12, 2014

the only thing qualcomm got right was eudora

shackleford
Sep 4, 2006

lol

https://computerhistory.org/blog/the-eudora-email-client-source-code/ posted:

• sanitization of “bad words”, mostly in comments, as requested by Qualcomm

Hed
Mar 31, 2004

Fun Shoe

man those computer magazine ads for Eudora brought back a nostalgia wave for mid-90s optimism. What were we going to do with this burgeoning platform called the information superhighway?

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

Sapozhnik posted:

phones really ought to have IEEE-1285 open firmware like any respectable computer system these days

BobHoward
Feb 13, 2012

The only thing white people deserve is a bullet to their empty skull

Sapozhnik posted:

phones really ought to have uefi and acpi firmware like any respectable computer system these days

imagine having a laptop from february 2019 and being told "oh i'm sorry sir that model no longer qualifies for security updates, would you be interested in our 2024 model?"

(of course apple silicon moved in precisely the opposite direction because lol gently caress the existence of general purpose computers i guess)

imagine thinking uefi and acpi are in any way acceptable standards unless you're forced to use them because you want to build something compatible with the pc clone ecosystem

uefi secure boot is so deficient apple had to put a second computer (the t2 security chip) inside late model intel macs to provide all the security features they wanted, as detailed here

https://www.youtube.com/watch?v=3byNNUReyvE&t=147s

there was never a chance apple was going to use uefi on apple silicon macs, it's poo poo. you only think it's not poo poo because it is orders of magnitude better than what it replaced, but what it replaced was so incredibly bad that there's plenty of room to be amazingly better while still being objectively poop

ziasquinn
Jan 1, 2006

Fallen Rib
https://thehackernews.com/2023/12/logofail-uefi-vulnerabilities-expose.html?m=1

Truga
May 4, 2014
Lipstick Apathy
the security features they wanted:
- full control of end user devices
- gently caress you

e: not saying uefi is great, but it's less bad than "gently caress you"

Sapozhnik
Jan 2, 2005

Nap Ghost
well a lot of android phones do indeed give you full control of your device, but all of the power management stuff lives in out-of-tree kernel hacks instead of system firmware, because the system firmware is a first-stage bootloader and nothing else beyond that.

you would need a few other things on top of that, like a pci bus and nvme storage. and i suppose some sort of xhci extension that allows for the device to operate as a usb gadget. but that gives you enough firmware services and generic device classes to boot up a generic operating system image and suspend/resume it.

arm macs are ipads with an unlocked bootloader. well, an unlocked bootloader on the application processor, but not on the dozen other cpus located inside the machine, the totality of which all run macos. so you can't really run alternative operating systems on it, you can dismember macos (which you cannot legally redistribute in whole or in part, by the way) and then reanalyze and reintegrate the undocumented interfaces every single time somebody in cupertino cuts a build. could those accessory cpus each run a generic firmware that provides a stable firmware interface? sure, but why would they, it's not supposed to be a hardware platform, it's supposed to be an appliance. easier to just drop support after five years and turn millions of machines into ewaste.

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN
you do get a pci bus on android and nvme (on some devices, most are probably eMMC or UFS), and xhci

like, lspci/lsusb will work exactly as you expect it to. android phones are, ime, more like a pc than not. ios devices are a different thing entirely, apple kinda dropped the whole "general purpose computer" concept

pseudorandom name
May 6, 2007

BobHoward posted:

imagine thinking uefi and acpi are in any way acceptable standards unless you're forced to use them because you want to build something compatible with the pc clone ecosystem

uefi secure boot is so deficient apple had to put a second computer (the t2 security chip) inside late model intel macs to provide all the security features they wanted, as detailed here

https://www.youtube.com/watch?v=3byNNUReyvE&t=147s

there was never a chance apple was going to use uefi on apple silicon macs, it's poo poo. you only think it's not poo poo because it is orders of magnitude better than what it replaced, but what it replaced was so incredibly bad that there's plenty of room to be amazingly better while still being objectively poop

do you already have your "I make e-waste" T-shirt or do you still need to get it?

outhole surfer
Mar 18, 2003

Beeftweeter posted:

you do get a pci bus on android and nvme (on some devices, most are probably eMMC or UFS), and xhci

like, lspci/lsusb will work exactly as you expect it to. android phones are, ime, more like a pc than not. ios devices are a different thing entirely, apple kinda dropped the whole "general purpose computer" concept

android phones still put a lot of peripherals on the soc with shared memory being the primary means of communication between cores

at least iphones put their modem out on usb (or maybe pcie)?

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

outhole surfer posted:

android phones still put a lot of peripherals on the soc with shared memory being the primary means of communication between cores

at least iphones put their modem out on usb (or maybe pcie)?

some do, some don't. the palm phone definitely has mostly everything on the soc for example, but you can still get an ACPI description of the hardware, list pcie devices (which the gpu is at least nominally attached to), list usb devices (mostly cameras, unless you have something else attached), check out the i2c bus, etc.

i mean, it's still linux. there's only so many ways to get a running system, and why reinvent the wheel

outhole surfer
Mar 18, 2003

Beeftweeter posted:

some do, some don't. the palm phone definitely has mostly everything on the soc for example, but you can still get an ACPI description of the hardware, list pcie devices (which the gpu is at least nominally attached to), list usb devices (mostly cameras, unless you have something else attached), check out the i2c bus, etc.

i mean, it's still linux. there's only so many ways to get a running system, and why reinvent the wheel

it isn't a some do, some don't sorta thing

i challenge you to find an android device from the last 5 years that uses an off-chip baseband

android devices either have the baseband on the soc, or they don't have a baseband at all (and in the case of no baseband at all, it's often still there, it just doesn't have the external hardware available to be useful)

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN
well, i don't have any android devices that are newer than that lol

palm phone is the newest, and the highest end one is a 2018ish huawei mate 10 pro

and while the palm definitely has it on chip, the huawei might have a separate modem, i'm not sure. since the bootloader is permanently locked i can't really find out

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN
actually i did get a LTE hotspot from t-mobile for free recently that turns out runs android. maybe that has separate baseband?

i mean, probably not, but it's possible i suppose

outhole surfer
Mar 18, 2003

the huawei has a kirin 970, which has a built in baseband

https://www.hisilicon.com/en/products/Kirin/Kirin-flagship-chips/Kirin-970

basically the only android capable arm socs that don't ship with a built in baseband are destined for set top boxes, cars or cameras, and are probably rockchip, allwinner, or freescale chips.

pinephone and librem both have separate baseband controllers, but those baseband controllers run their own copy of linux and are basically a smartphone within a smartphone, with the inner smartphone sharing memory between the dsp and a hosed up android

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

ahh. well, ok. not much i can really do about it i guess


outhole surfer posted:

basically the only android capable arm socs that don't ship with a built in baseband are destined for set top boxes, cars or cameras, and are probably rockchip, allwinner, or freescale chips.

pinephone and librem both have separate baseband controllers, but those baseband controllers run their own copy of linux and are basically a smartphone within a smartphone, with the inner smartphone sharing memory between the dsp and a hosed up android

incidentally i think the t-mobile thing i got (https://www.t-mobile.com/support/coverage/test-drive-hotspot) seems to use a qualcomm soc, (from reading this https://github.com/c-herz/TMOHS1-Root-Utility source) so that probably has on-chip baseband too. i don't feel like digging it out to check for sure, but that'd be not terribly surprising anyway

e: huh, there's a buildroot for it here https://github.com/c-herz/tmohs-buildroot

i poked around a bit but couldn't determine the specific platform. doesn't really matter tbh. interestingly it seems to support uefi though

Beeftweeter fucked around with this message at 22:11 on Feb 27, 2024

BobHoward
Feb 13, 2012

The only thing white people deserve is a bullet to their empty skull

Truga posted:

the security features they wanted:
- full control of end user devices
- gently caress you

e: not saying uefi is great, but it's less bad than "gently caress you"

is it opposite day in here?

microsoft requires all pcs capable of running windows to do UEFI secure boot only, no unsigned operating systems. PC OEMs mostly don't bother including certs from anyone but microsoft in their UEFI images. put these things together and debian has to pay microsoft to sign their bootloaders with one of microsoft's private signing keys

to microsoft's credit, their signing service isn't excessively costly (~$100 per signature iirc), and they don't seem to be abusing it to gatekeep anyone from being able to ship alternate operating systems, but if you're going to go around holding up UEFI as something which doesn't say "gently caress you", imo it should give you pause that its deficiencies plus market forces have put microsoft in a position where they can gatekeep

apple silicon macs also have always-on secure boot, but provide their owners the ability to attest that they'd like to boot an unsigned OS. this attestation creates and enrolls a signature in that mac's secure enclave, meaning boot is still fully secure and tamper proof up to the point where apple's firmware hands control over to the user-attested binary

so, though the OOTB config of an apple silicon mac is extremely "locked down", its owner has the power to downgrade security for apple's own operating systems, or install an unsigned OS. this is more control than modern UEFI PCs give you!

and on the topic of "gently caress yous", how about SMM, or intel ME? apple silicon does not appear to have equivalents to these, there's no stay-behind networks baked in to the platform doing random poo poo behind the kernel's back. linux owns 100% of the application processor cycles and the coprocessors are sharply limited in what they can do (more on that below)

Sapozhnik posted:

arm macs are ipads with an unlocked bootloader. well, an unlocked bootloader on the application processor, but not on the dozen other cpus located inside the machine, the totality of which all run macos. so you can't really run alternative operating systems on it, you can dismember macos (which you cannot legally redistribute in whole or in part, by the way) and then reanalyze and reintegrate the undocumented interfaces every single time somebody in cupertino cuts a build. could those accessory cpus each run a generic firmware that provides a stable firmware interface? sure, but why would they, it's not supposed to be a hardware platform, it's supposed to be an appliance. easier to just drop support after five years and turn millions of machines into ewaste.

the coprocessors don't run macos. most run RTKit, apple's minimalist RTOS, hosting essentially the bottom half of a darwin device driver for the peripheral (or collection of peripherals) managed by that coprocessor

it is true that, unlike the application processors, they're only allowed to boot blobs signed by apple, but that's not the whole picture. the asahi linux project established early on that coprocessors are mostly optional. the registers of hardware peripherals managed by each coprocessor are visible to the application processors too, so if you want to fully reverse engineer the hardware, you can write traditional linux device drivers running on the APs and just halt the coprocessors and ignore them

despite this, asahi devs have chosen to use the coprocessors in most cases, as it's much less reverse engineering work. they have excellent protection from apple fuckery in the firmware blobs, since apple gives each coprocessor its own private IOMMU managed by the application processors. these are set up to silo each coprocessor into the minimum amount of memory and MMIO it needs to do its job

(apple does this sandboxing in macos too. it's part of their "defense in depth" security philosophy - if someone finds a vuln in a coprocessor firmware blob, it should be as hard as possible to develop that into an exploit which affects anything outside that one coprocessor)

none of this dooms an apple silicon mac to suddenly teleport itself to ewaste the second apple drops support. linux should be able to give such machines a longer life

Truga
May 4, 2014
Lipstick Apathy
secure boot is lovely security theater, which you can disable

iphone isn't lovely security theater, but you can't disable it either so it's worse

idk how it works on a m1 macbook because i haven't worked with one yet, but if it lets you sign your own kernel, good on them

Truga fucked around with this message at 13:05 on Feb 28, 2024

NihilCredo
Jun 6, 2011

iram omni possibili modo preme:
plus una illa te diffamabit, quam multæ virtutes commendabunt

BobHoward posted:

is it opposite day in here?

microsoft requires all pcs capable of running windows to do UEFI secure boot only, no unsigned operating systems. PC OEMs mostly don't bother including certs from anyone but microsoft in their UEFI images. put these things together and debian has to pay microsoft to sign their bootloaders with one of microsoft's private signing keys

this is straight up misinformation

- windows 11 only requires that the PC is *capable* of secure boot

- you can toggle secure boot off and it will boot windows 11 just fine (you can also turn TPM off, windows will just disable the features that rely on it)

- you can toggle secure boot off and it will obviously boot any unsigned OS you want

- most motherboards will happily let you enroll your own secure boot key. here are ventoy's, a little utility bootloader, instructions for enrolling keys and re-enabling secure boot. or you can do that from the UEFI software directly if you want to be safe and never boot anything unsigned, eg. mine looks like this:



- the reason debian and fedora have their images signed by Microsoft is only so that their users don't have to go through the step described above


i don't know anything about macos but if you speak so confidently about stuff that can be verified in two minutes I am not going to trust anything you say about other platforms either

NihilCredo fucked around with this message at 14:36 on Feb 28, 2024

Tankakern
Jul 25, 2007

:rolleyes:

Tankakern
Jul 25, 2007

KDE MegaRelease 6

:toot:

Cybernetic Vermin
Apr 18, 2005

proper chain of trust is good and important, linux nerds have cried about it for decades, and it has caused basically no issues in itself.

hating uefi is pointless, the competition for it is hardware shipping a basically a blob (usually a mindlessly hacked up linux for those that want to view that as a win) that is supported for a tiny fraction of the devices life (importantly i here do consider zero a tiny fraction)

outhole surfer
Mar 18, 2003

secure boot turns people into total dipshits in the same way wayland does.

the only system i've ever had any trouble with custom keys on was a lenovo laptop that depended on some signed option rom, and wiping the default keys would brick the laptop. i returned that machine and went on with my life.

every other machine i've touched since secure boot became a thing has offered the ability to install your own secure boot databases with no issue.

mystes
May 31, 2006

Do windows laptops with arm processors allow you to disable secure boot?

Adbot
ADBOT LOVES YOU

Visions of Valerie
Jun 18, 2023

Come this autumn, we'll be miles away...

BobHoward posted:

is it opposite day in here?

microsoft requires all pcs capable of running windows to do UEFI secure boot only, no unsigned operating systems. PC OEMs mostly don't bother including certs from anyone but microsoft in their UEFI images. put these things together and debian has to pay microsoft to sign their bootloaders with one of microsoft's private signing keys

to microsoft's credit, their signing service isn't excessively costly (~$100 per signature iirc), and they don't seem to be abusing it to gatekeep anyone from being able to ship alternate operating systems, but if you're going to go around holding up UEFI as something which doesn't say "gently caress you", imo it should give you pause that its deficiencies plus market forces have put microsoft in a position where they can gatekeep

This is not correct. Linux distros do not pay for signatures; signing review happens in public; Debian doesn't have particular difficulty with this process.

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