iDrive 8 on a desk · explored · week of
BMW iDrive 8 running on a PC: from firmware image to home screen in three days
To run a car's screen without the car, run its own software for real and fake only the other computers it talks to. Every crash on the way names the next thing that is missing.
iDrive 8 on a desk: a hobby project; nothing from the firmware is published here · private
The screen in a current BMW is drawn by a computer of its own, the head unit: a Linux machine with a Qualcomm ARM chip. Its software update is not encrypted. It unpacks, in three ordinary steps, to a normal disk image. The whole interface is one program, 277 MB, that loads 276 libraries and exports 211,460 named functions.
I wanted that program running on my desktop, with nothing from the car around it.
Three days of stops
I ran the program under an emulator that translates ARM code, and treated each crash as a question: what did it expect to find? The first tools are dated 21 October. The home screen came up on the 24th.
- It asked for the chip's graphics driver and died. I swapped in a software renderer; the program never talks to the driver directly, only through its rendering library.
- It died at once with "illegal instruction". The program is built with a branch-protection feature that the real chip, a Cortex-A76, does not enforce and the emulator's default processor does. Telling the emulator to be a Cortex-A76 fixed it.
- It followed a null pointer. A car's options are written into the unit when the car is configured, and in the update that storage is empty. The firmware ships its maker's own test shim that loads default options, so I used that.
- It waited forever for data packs that install separately. I installed them.
- It needed a display server that speaks a car-specific protocol, and the real one wants display hardware. I wrote a small one, with the protocol rebuilt from the unit's own libraries.
Fake the rest of the car, not the unit
Touch was next. The emulator does not pass through the calls a touchscreen driver answers, so a small shim answers them from a socket. The touches arrived, and the interface threw them away: it believed its display was off, because no other computer in the car had told it the car was on.
That set the rule for everything after. The unit's own services run for real. Only the other computers are faked, as peers on the car's internal network protocol.
the head unit, real faked peers
+----------------+ +--------------+
| interface | | power state |
| its services |<----->| display |
| its renderer | | climate |
+----------------+ | drive modes |
+--------------+
Finding what a fake has to say needs no documentation. Offer the service with nothing in it and watch what the interface asks for: which events it subscribes to, which calls it makes, with what bytes. Its own log then says whether an answer parsed. The firmware names 1,242 such interfaces. Five fakes were enough for a working screen: power (state 11 means fully on), display, vehicle condition, climate and drive modes. The climate bar shows temperatures, and its plus and minus buttons work.
Why it was slow, and the fix
Every tap took seconds. I measured where the time went: 89% of it was the software renderer running inside the emulator, about 33 processor-seconds for one frame.
The renderer uses 99 graphics calls and 16 set-up calls. I replaced the graphics library inside the emulator with a thin one that forwards those calls to a small native program, which draws on the desktop's real graphics card.
Processor time per tap fell from 111 seconds to 2.2. What is left is the interface's own logic under emulation, and a start-up of about 80 seconds.
Everything was pink
Until 26 October every highlight on the screen was magenta. Magenta is the fallback when a colour is missing. The service that sets the colour theme asked for it about one second before the colour tables had loaded, got nothing, and only asks again when the drive mode changes. So the fake drive-mode computer now reports "none" at first and the normal mode 15 seconds later. The theme applied, 645 colours at once, and as a side effect the 3D model of the car appeared on the home screen.
Where it stands
The home screen, the app menu, the live 3D vehicle view and the climate bar work, in a window I can click. I added a tile of my own to the app menu. The buttons inside the climate screen do nothing yet, the navigation map is not running, and there is no video.
My own car has the older unit, with an Intel chip. I checked its updates too: they are encrypted, and hold only the previous generation of the interface. So this runs on a desk and not in a car.
I'm Ovi. I recompile old Windows games to run in a browser, build a virtual GPU for Windows XP, and write tools for my own machines, with AI since 2020. Projects and the latest log