News for hackers. Stuff that matters.
Re:Former Tesla Firmware Engineer Discusses the System by agildehaus on Friday August 24, 2018 @02:10PM (#17836666)
Google's self-driving cars run a modified Ubuntu. Or did, last time they talked about it.

https://www.youtube.com/watch?v=7Yd9Ij0INX0

Re:Former Tesla Firmware Engineer Discusses the System by agumonkey on Friday August 24, 2018 @02:15PM (#17836712)
I'm sure anything embedded is almost nothing like the pre-modified stock. The few paper I've read from embedded people is that they know how and will strip everything down until things are like they need.
Re:Former Tesla Firmware Engineer Discusses the System by eeZah7Ux on Friday August 24, 2018 @02:49PM (#17836983)
"strip everything down" consists in removing packages, especially daemons, you don't need.

You don't (want to) make huge changes to the kernel and libraries codebase tho, even if the changes are meant to remove code you don't need, because testing a heavily modified OS gets prohibitively expensive.

Especially on "modern" embedded from the last 10 years were RAM and storage are not that limited.

Re:Former Tesla Firmware Engineer Discusses the System by joering2 on Friday August 24, 2018 @02:58PM (#17837051)
Ubuntu and Centos come pretty naked; what would you strip and why?

Im asking because I run few instances with very heavy traffic and have no issues whatsoever. Just added nano and fail2ban and it runs with no issues for about 2 years now.

Re:Former Tesla Firmware Engineer Discusses the System by nickserv on Friday August 24, 2018 @04:06PM (#17837527)
Any kernel module that's not required (wifi, graphics, sound, USB, etc depending on application), any security system like selinux, any unnecessary libraries, helper utilities, etc etc.

Basically you rip out anything not strictly required for the task at hand.

Running on embedded hardware is quite different from running on server hardware, disk space and memory are measured in megabytes, not gigabytes...

Re:Former Tesla Firmware Engineer Discusses the System by remoteorbust on Friday August 24, 2018 @06:36PM (#17838311)
I once ran an "embedded" Linux on a $10 marvel SOC. It was a pretty vanilla kernel running a basic Debian install. 10MB out of 128MB RAM used most of the time.

Obviously you can go much slimmer, but a $10 board is surprisingly capable.

Re:Former Tesla Firmware Engineer Discusses the System by camtarn on Friday August 24, 2018 @09:32PM (#17839057)
Not necessarily. I'm working with B&R's range of industrial controllers at the moment, which are Atom processors with a few hundred Mb of RAM and CF cards up to 32Gb, but still running a traditional RTOS with hard timing guarantees. They have built-in web servers and (basic) web browsers...!
Re:Former Tesla Firmware Engineer Discusses the System by berti on Friday August 24, 2018 @07:51PM (#17838686)
Those two, particularly Ubuntu, are the opposite of naked. Try something like Arch.
Re:Former Tesla Firmware Engineer Discusses the System by yjftsjthsd-h on Friday August 24, 2018 @10:06PM (#17839146)
Arch? Arch ships packages with debug symbols and docs included, and takes over a hundred MB for just a base install! Alpine is way smaller; base image under 10MB, packages broken apart so you only get binaries unless you ask for more, linked with musl to make it even smaller.

EDIT: This is meant to be a bit tongue-in-cheek, but I seriously do prefer Alpine over literally every other Linux distro I've yet seen for minimalism. Also geared towards embedded-type work.

Re:Former Tesla Firmware Engineer Discusses the System by berti on Friday August 24, 2018 @10:49PM (#17839270)
Fair enough, and you're quite right about Alpine being geared more for embedded. For general use I find Alpine a bit of a pain due to lack of systemd (bring on the hate ;)), and of course lack of docs hurts usability a bit. With regard to debug symbols, I like what Redhat and Debian are doing with an embedded build id linking binaries to separate debug packages.
Re:Former Tesla Firmware Engineer Discusses the System by agumonkey on Saturday August 25, 2018 @01:23PM (#17841645)
yeah come on, don't bring Alpine in the mix, we were talking about Ubuntu, not DamnSmallLinux. Alpine is great, no doubt, but it's in a class of its own.
Re:Former Tesla Firmware Engineer Discusses the System by hobls on Friday August 24, 2018 @03:31PM (#17837289)
Ubuntu is certainly not known as a lightweight distro.
Re:Former Tesla Firmware Engineer Discusses the System by rrcaptain on Friday August 24, 2018 @07:55PM (#17838698)
That's because "lightweight" to Linux nerds is more like "weight of light" than "light of weight".
Re:Former Tesla Firmware Engineer Discusses the System by cma on Friday August 24, 2018 @08:00PM (#17838719)
The Ubuntu message of the day when you log in on a shell runs curl to feed in advertisements. Pretty big attack surface.
Re:Former Tesla Firmware Engineer Discusses the System by azinman2 on Saturday August 25, 2018 @02:02AM (#17839774)
? I’ve never seen that. Since what version?
Re:Former Tesla Firmware Engineer Discusses the System by cma on Saturday August 25, 2018 @10:09PM (#17843819)