Are computer units inside cars running on Lunix?

...

Other urls found in this thread:

autoblog.com/2014/04/12/tesla-model-s-owners-hack-their-cars-find-ubuntu/
shkspr.mobi/blog/2016/03/bmw-are-complying-with-the-gpl/
automotivelinux.org/
twitter.com/SFWRedditGifs

yes

Prob since Linux dominates everything but desktop
that is if you mispelled Linux and didn't mean little unix

I wonder if it will ever rise in popularity on desktops again.

no, they usually run RTOSs

The ECUs I've messed with don't use Linux. Linux is overkill for an ECU.

An ECU basically monitors sensors and does the right thing based on a look up table. So it reads the crankshaft postition sensor and oh look it's time to give cylinder one some fuel. Well our throttle is set at such and such, the manifold air pressure sensor says we have this much air, and our rpms are pretty high so we need a little extra fuel to cool the cylinder to prevent knocking. So let's look it up in our ROMS chart. Okay it says turn the injector on for this many milliseconds.

You can right that as baremetal microcontroller code. You might use a RTOS to make your life easier. Linux could do it but you'd spend your time doing things like turning a fuel injector in to a character device file.

Yes.

autoblog.com/2014/04/12/tesla-model-s-owners-hack-their-cars-find-ubuntu/

Yes.

In vehicle entertainment systems typically run Linux.

GPS like Tom Tom run Linux.

Head over to LWN dot net to see many articles on Linux in cars.

Desktops are a dying market and pretty much fucking irrelevant

Kek, why is there a twingo on the front of that tesla

>Linux dominates everything but desktop
>this is what lincucks actually believe

Nope. They run real-time OSs.

linux can be real time

Some, others run QNX, others probably run something else

Hi, welcome to OSs 101.

Yea, brah. Most even use Ubentu

Tesla uses linux heavily in their cars.
They give out patents along with the source code.

yeah this is why people doomsdaying about ransomware in cars are fucking stupid

In the CAN or in peripheral shit like the GPS?

Linux is multitasking

Can Windows not multitasking?

the linux-based pc is connected to the can bus and it uses it to control the electric roof or the suspension height.

I don't know the details but it is highly possible that all the autopilot features that works when the car is moving are running on the linux platform.

If you need a real time OS for cars how come I can play Need for Speed on my MacBook?

because if it hangs for a split second (hundreds of millisecs) you don't even notice it and your virtual car stops in time. Real cars don't stop in time.

You don't know what real-time means and/or how OSs work.

Good to know, that's bretty cool.

>implying it matters if I brake a hundreth of a second later

isn't the point of ransomware that people will pay for data that would be otherwise lost? If you got ransomware on your car you could just tow it into the dealership and get them flash a new OS into the car, no?

>implying the car wil not move about 100ft a second
>implying that you or the car itself can't avoid an accident just by gaining 10 more feet of space

One hundredth of a second. No, it doesn't matter if you brake 10MS late. What would matter is sensor timing. DI engines injecting at TDC, delay in cam readings, etc.

Obviously, these things don't matter to the Tesla.

ECU uses microcontrollers and EEPROM since there is no use for an OS other than introducing lag and requiring more powerful hardware.

GPS and other touchscreens use either linux or windows.

Windows is pretty shit in this application. Lots of complaints about the touch screen crashing in newer trucks.

EMBEDDED SYSTEMS

You what

Just because normies prefer a shit smartphone over a desktop doesn't mean it will die.

A fuel injector as a character device file sounds so badass, I don't know what either is. I drive a 2016 mustang gt 5.0

This does not work at fucking all how you think it does. 1/100th of a second delay will not make you crash any more than you were already going to.

Sorry, I talked about hundreds of milliseconds originally, see
10ms is ok, hundreds of milliseconds are not. Typical non-RT OS can hang an app for few hundred ms before it returns the cpu to it.

The most Sup Forums one uses ubuntu.
autoblog.com/2014/04/12/tesla-model-s-owners-hack-their-cars-find-ubuntu/

dank /o/ memes are the best

Wat car is that? It looks so happy

That's a Twesla, son

No one cares if you brake a hundredth of a second later, but it definitely does matter if the ECU misses the fuel injection timing by a hundredth of a second.
Especially in diesels with multiple injection pulses.
About half of the ECU's job is to control injection/ignition timing.

Tesla has 3 computers over the standard on-boards one. The dashboard is Tegra 4 running Ubuntu, clocks (behind the wheel) is Tegra 3, also Ubuntu. None of those has direct access to the CAN, instead they are in an old fashoned LAN with another computer running FreeRTOS, which is connected to CAN and allows the Ubuntu-based ones to control the car through Tesla's API (so no raw CAN frames from any linux app). It's all pretty well thought and awesome.

shkspr.mobi/blog/2016/03/bmw-are-complying-with-the-gpl/

but im using windows linux does dominate everything but desktop.

Automotive Grade Linux
automotivelinux.org/

tl;dr: Many Europe car use CAN bus nowadays, and Linux will be use it to display info to user like dead headlight, broken sensor, etc.
Also, wifi, gps and entertainment stuff.

Why do cars have so much code?

Shit, that seems a little overkill for dash electronics.

Or does it have a bunch of useless features like tweeting your exact coordinates every other mile?

why is it so happy?

They have lots of features,like music player, navigation or web browser. It's still probably overkill, but I guess they wanted some performance buffer for future features like autopilot (which I assume runs/will run on the Tegra 4, though didn't read anything on the topic)

Also the main screen allows for some multitasking with up to 3 apps visible, so the specs are rather reasonable.

Generally yes. The can bus is far simpler, it's on the firmware level.

If anybody has some more questions about CAN, i just had one course about it this semester, so i can maybe try and answer them.