Skip to content

Car functions: building a disc ​

How the car functions (carbus) get onto a unit from the command line: building the update CD, the serial console, trying it in the emulator. Using them (the screens, the buttons, Setup, the comfort features) is in the user guide: Car functions.

carbus is built into the unit's navboot on a modified update CD. It uses the unit's own I-Bus connection, with no extra hardware. For the Car entry in the MENU, the disc build also changes two stock parts in place: the MENU module (device_dialog) and the seven language modules (Lng_*, for the entry's label). The modules keep their sizes, and the build applies the changes only if they match the stock V32 modules exactly. Like the rest of the disc, they're built from your own CD; no BMW software is shipped.

Requirements ​

  • A BMW MK4 unit running the V32 software (BMW sets V_2/RR/0101/BMWC01S and BMWM01S).
  • Your own stock V32 software CD image (.iso).
  • The carbus module for your car (a file named display_clock) and the NAVX CLI.
  • A CD-R.

carbus comes in variants by body module, because the locking commands differ: E46 (ZKE5), E38/E39/E52/E53 with GM5/GM6, and E38/E39 with GM1/GM4.

Building the update CD ​

sh
navx cd --iso "BMW MKIV V32 Stock.iso" --add display_clock --version 1003 -o carbus.iso

navx cd adds the module to both BMW software sets and writes the version into sw_rel.tbl. It doesn't add the MENU's Car entry: that comes with the carbus build tool. Without it, TEL opens the car screen. The unit's loader installs software only when the disc's version differs from the one in flash, so give every disc a version that unit hasn't had before (stock is 1000). All other files on the disc stay byte-identical; the command reads the whole image back and checks every module before it finishes. navboot grows by about 32 KB.

Before a disc goes near a car, boot it on the emulated board, which runs the unit's real boot loader and kernel:

sh
navx flash --cd carbus.iso /tmp/flash
navx lowboot --cd carbus.iso --flash /tmp/flash --kernel

It must start the kernel and keep running without a restart.

The serial console ​

A disc can also make the unit's serial port its console, so a first test on a spare unit leaves a boot log: the boot loader's messages and the start-up messages of the unit's software. The port runs at 9600 baud, 8N1, at RS-232 level, on the purple 18-pin connector X1312: pin 8 TX (the unit sends), pin 9 RX, with grounds on 17 (TX) and 18 (RX). Pin 8 goes to the adapter's RXD, pin 9 to its TXD, 17 and 18 to its GND (on an adapter with a DB9 plug: pins 2, 3 and 5). This was measured on a unit with a USB RS-232 adapter: we use the Waveshare USB TO RS232/485, wired to the screw terminals on its RS-232 side (wiring in the user guide). In exchange, the BMW service protocol that normally runs on that port doesn't start, so service tools that talk to the unit over it won't connect while the console is on. The port works both ways: the unit also reads what is sent to it. A boot log and a CD update log from a spare unit are in navx's serial console logs. Don't send anything on the port while an update disc loads: the loader cancels the install on a Ctrl-C in its first 3 seconds.

The console is off unless you ask for it: the carbus build tool and navx cd leave those settings stock, and --console turns it on. Both warn when you do, because it is permanent: once a unit has installed such a disc, no disc turns the console off again (see Installing and going back). Use it on a spare unit only:

sh
navx cd --iso "BMW MKIV V32 Stock.iso" --add display_clock --console --version 1003 -o carbus.iso

Only two settings in the disc's configuration archive change, which keeps its size; every other file in it stays byte for byte. In the emulator, navx lowboot --cd carbus.iso --flash /tmp/flash --kernel --console none (no console of the emulator's own) then shows the start-up messages from the disc's settings alone. A stock disc shows nothing there.

Trying it first ​

Open the modified .iso on tools.navx.bimmerz.app, go to Emulator and press Power on. The Car panel under the screen plays the car: open doors, switch lights, put it in reverse, set speed, rpm, temperatures, fuel and the battery voltage. Use the bezel's TEL button and dial as in the car.

Installing and going back ​

Insert the modified CD as a software update. The loader compares the disc's version with the unit's and installs the new navboot.

To remove carbus, insert the stock V32 CD. Its version (1000) differs again, so the loader installs the stock software.

A serial console from a --console disc stays on after that. The unit's loader keeps a setting the unit already has when a disc only offers a default, and the stock disc's service protocol setting is such a default. A disc made without --console doesn't touch these settings.

On a 16:9 unit, choose Setup → Day colours → Stock before going back to stock. Otherwise the day colours at full screen stay themed, because the unit keeps its saved copy and the stock software never changes it. This needs the unit's software to start: the running software is what notices the disc and switches to the loader.