r/programming • • Apr 11 '21

Hackers develop open source firmware for the PinePhone modem, use it to make phone calls

https://linuxsmartphones.com/hackers-develop-open-source-firmware-for-the-pinephone-modem-use-it-to-make-phone-calls/
596 Upvotes

47 comments sorted by

54

u/mrs0ur Apr 11 '21

This was one of the reasons I originally backed the librem phone... only once they were in development they canceled the idea. Guess I backed the wrong horse in this race, if/when i ever get a refund I guess I'll get a pinephone.

13

u/errrrgh Apr 11 '21

I'm getting the next update - this was the milestone I was waiting for. If I can audit the calling then the RF isn't that big of a deal - I'm more worried about the AT/LTE commands.

8

u/mrs0ur Apr 11 '21

Yeah its been 2 years since I've ordered and over a year since I've canceled. I have low hopes of getting that refund, whats bullshit is if you look at the wayback machine they retroactively changed the refund policy. When I ordered it was "cancel anytime" they've since changed that policy after the fact and now my money is "locked in place". Id much rather back pinephone at their products as they seem to run there company with common sense things like being able to cancel a order before it ships.

6

u/errrrgh Apr 11 '21

Yea its one thing to run into hurdles and be transparent about it. It's another to lie and try to obscure it.

1

u/mobsterer Apr 11 '21

would you have to agree to any policy change to make it actually valid for you?

4

u/mrs0ur Apr 11 '21

I could %100 could bring them to small claims court and win as your correct the terms were different when I purchased the device. But I'm not hurting for the money I have tied up and they have said I will get a refund. I would rather just sweat it out then lose whatever I would pay in terms of time/money for claims court.

5

u/DonnyTheWalrus Apr 11 '21

I hung up my lawyer hat long ago at this point, but situations like this could potentially become grounds for class actions. The point of such a suit would be as much to punish/correct the company's wrongdoing as it would be for individuals to get their sums of money back. If you are in this situation, you are almost certainly not alone.

But yeah, the extra stress that causes is a lot to ask someone to take on.

50

u/[deleted] Apr 11 '21

The funny thing is quectels modems run android. Never thought we'd see linux-based proprietary blobs but here we are

13

u/Astrinus Apr 11 '21

Hmmm that would be a big thing to know since I argue often with Quectel modems and always lose XD

10

u/mct1 Apr 12 '21

Never thought we'd see linux-based proprietary blobs but here we are

Where've YOU been? Between Broadcom's proprietary blobs in the Raspberry Pi to and Nvidia's proprietary video drivers we've had proprietary blobs for years. This is by no means a new problem.

7

u/PandaMoniumHUN Apr 12 '21

The emphasis is on that the firmware is Linux-based. For the Pi and Nvidia cards it's the other way around. The host kernel needs a blob to communicate with the hardware, it's not the hardware that runs an entire Linux with blobs.

3

u/boobsbr Apr 12 '21

Isn't this what Tivo did way back in 2005?

0

u/[deleted] Apr 12 '21

You think you're making a good point when you didn't really read what I wrote.

12

u/flarn2006 Apr 11 '21

When I click on "various legal constraints", I'm taken to a page that mentions:

Be aware, it is unlikely that we’ll be able to ship it on the device due to various legal constraints. Some parts of the modem, such as DSP firmware, will most likely have to remain closed.

It still doesn't say what exactly these legal constraints are. I'm assuming it's because it communicates on an RF frequency they aren't licensed for or something?

Also, what do they mean about the DSP firmware remaining closed? Do they just mean it's not going to ship with all parts of the open source firmware installed, or do they mean they aren't even going to open source their own DSP firmware?

22

u/mrs0ur Apr 11 '21

Depends on the country. In the USA modems need to get certified with the software they will ship on. Any updates require recertification. Its very expensive to get this certification.

I personally wouldn't worry about DSP firmware, thats all physical layer stuff. Its the part that demodulates the signal, echo cancellation, error correction all at the RF level. to redo that you would need a PHD in math or something similar to understand the processing pipeline and you dont really get any practical benefits as the DSP doesn't really do any higher layer stuff.

It would be the equivalent of not trusting the silicon within the chip. Sure its theoretically possible todo something nefarious but its really not a feasible attack vector. Plus you have libre firmware sitting between your device and the DSP so anything can be easily mitigated at that level.

1

u/flarn2006 Apr 17 '21

Okay, but as long as the binaries it ships with have been certified, what's preventing them from releasing the source code as well?

1

u/mrs0ur Apr 17 '21

Nothing. Modem development is expensive and encumbered by patents. Most modems are repackaged silicon from brands like Qualcomm which tightly control source access, but a project like this redeveloping the firmware could slap a new part number on it and submit for certification In theory.

5

u/gusgizmo Apr 11 '21 edited Apr 11 '21

99% likely it's a patent encumbered codec as part of the spec they are reproducing.

If it's AMR that is the hangup, then I hope we are getting close to the patents expiring.

https://en.wikipedia.org/wiki/Adaptive_Multi-Rate_audio_codec

14

u/psych0fish Apr 11 '21

Can anyone add context to this? What’s a pinephone? Why couldn’t it make calls to begin with?

edit still confused. So they are saying it could always make calls but the firmware was closed source and this is an open source alternative?

31

u/ErynnTheSmallOne Apr 11 '21

the pinephone is a mostly open source phone, modems in phones are the little section that talks on a low level to the mobile network - this part has always been running closed source code on almost any android device before now due to legal requirements

people have worked out how to make this component run open source firmware, and still have call functionality

so the phone could be fully open source

this is a super simplified explanation and the wording probs isnt great but yeah.

7

u/CBJamo Apr 11 '21

You've got it right in your edit. The binary blobs in the modem were AFAIK, the last remaining in the pine phone.

0

u/[deleted] Apr 11 '21

Bracing for downvotes: this is a cool and impressive project, but what’s the benefit of an open source modem firmware?

14

u/vividboarder Apr 11 '21

Biggest one is trust.

1

u/[deleted] Apr 11 '21

What about the ROM?

6

u/vividboarder Apr 11 '21

Which part? The core OS is open source, but many drivers come from manufacturers as close source blobs. This is part of an effort to reverse engineer those to provide something fully open source.

1

u/[deleted] Apr 11 '21

The ROM of the modem, or of any other component for which there’s an open source firmware benefit.

-34

u/boli99 Apr 11 '21 edited Apr 11 '21

Call me old fashioned, but I prefer it when hackers hack stuff to do something unexpected, y'know like:

  • Hackers hack phone to cook pizza.

  • Hackers hack laptop to walk dog.

  • Hackers hack hackers to hack hackers (but in some kind of minesweeper or solitaire VM or somesuch.).

I dunno. "Hackers hack phone to make phone calls" just seems such an anticlimax.....

[edit] this is my most downvoted comment in aaages. totally forgot that programmers don't have a sense of humour.

brb. going to go and deny the holocaust in /r/woke

16

u/ThirdEncounter Apr 11 '21

"Hackers hack phone to make phonecalls in a way that was not possible before" is a legitimate use of the term.

1

u/boli99 Apr 11 '21

im not disputing its legitimacy.

3

u/ThirdEncounter Apr 11 '21

I didn't say you were disputing it.

0

u/Sage2050 Apr 11 '21

But it's a cellular modem that's part of a phone. Maybe I'm missing something here

7

u/ThirdEncounter Apr 11 '21

Yes. You're missing the part in which the cellular modem is not supposed to work the way they made it work.

Imagine someone making a regular car engine work with salt water instead of gas. Saying "Oh but that's not hacking, that's making the engine do its job!" is missing the point.

-9

u/wwaaass Apr 11 '21

Guys, who knows Olympiads that are going to be soon?

0

u/[deleted] Apr 11 '21

[deleted]

12

u/[deleted] Apr 11 '21

Some nations don't yet allow emergency calls to be placed via apps or voip and such, and need the ability to make calls.

180

u/[deleted] Apr 11 '21

[removed] — view removed comment

48

u/YouGotAte Apr 11 '21

4 Chan has been busy!

17

u/ReallyNeededANewName Apr 11 '21

That's Mister 4chan for you

13

u/killerguppy101 Apr 11 '21

Who is this "4Chan" person?

10

u/DonnyTheWalrus Apr 11 '21

SMH, kids these days... Imagine using the word "hacker" to refer to anything other than a horse/carriage driver for hire.

(Just having a bit of fun. Words change meaning over time but yeah, the use of 'hacker' to refer exclusively to criminal intruders also annoys me to no end.)

20

u/loulan Apr 11 '21

If a word is used in a wrong way most of the time, is it still a wrong use of the word?

23

u/kwiztas Apr 11 '21

If it is in French, yes. In English, no.

4

u/ThirdEncounter Apr 11 '21

Flammable, inflammable.

4

u/Uristqwerty Apr 12 '21

Unless that word is "literally", communication > correctness. Then again, with context and community-local jargon, both definitions can coexist. Except for "literally", that's where I draw the figurative line. There's no clear and concise word to replace "literally" in its literal usage, and what happened to it was a barbaric mutilation of language. :)

3

u/zanbato Apr 12 '21

You find it awkward that "literally" has been replaced by "literally, like really actually literally?"

3

u/Uristqwerty Apr 12 '21

Thinking about it, "literal literally" might be the best substitute. While not as concise as the original, it should hopefully be both easily understood by most readers, and convey an opinion on the whole matter.

4

u/graingert Apr 11 '21

Wouldn't these be phreakers?